var h=Object.create;var c=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty;var D=(r,e)=>{for(var t in e)c(r,t,{get:e[t],enumerable:!0})},p=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of u(e))!x.call(r,s)&&s!==t&&c(r,s,{get:()=>e[s],enumerable:!(o=w(e,s))||o.enumerable});return r};var P=(r,e,t)=>(t=r!=null?h(y(r)):{},p(e||!r||!r.__esModule?c(t,"default",{value:r,enumerable:!0}):t,r)),g=r=>p(c({},"__esModule",{value:!0}),r);var _={};D(_,{claimBnsDomain:()=>C,claimDomain:()=>A,claimEnsDomain:()=>k,claimSnsDomain:()=>Y,getBnsDomainSuggestions:()=>S,getDomainSuggestions:()=>$,getEnsDomainSuggestions:()=>X,getSnsDomainSuggestions:()=>v,lockDomain:()=>I,preLockDomain:()=>b,registerBnsDomain:()=>f,registerSnsDomain:()=>K});module.exports=g(_);var n=P(require("axios"),1);var i=require("react"),E=require("react/jsx-runtime"),R=(0,i.createContext)(void 0),l="production";var a=l==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var $=async(r,e,t)=>{try{return(await n.default.get(`${a}/collection/unstoppable/searchDomain?query=${e}&wallet_address=${t}`,{headers:{"X-API-KEY":r}})).data}catch(o){throw new Error(o)}},A=async(r,e)=>{try{return(await n.default.post(`${a}/collection/unstoppable/claim`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}},I=async(r,e)=>{try{return(await n.default.post(`${a}/collection/unstoppable/lockDomain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}},b=async(r,e,t,o)=>{try{return(await n.default.get(`${a}/collection/unstoppable/updatedPrice?domain=${e}&currency=${t}&wallet_address=${o}`,{headers:{"X-API-KEY":r}})).data}catch(s){throw s}},v=async(r,e)=>{try{return(await n.default.get(`${a}/collection/sns/searchDomain?=&query=${e}`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}},K=async(r,e,t,o,s,m)=>{try{return(await n.default.post(`${a}/collection/sns/registerDomain`,{name:e,claimWallet:t,price:o,payUsing:s,space:m},{headers:{"X-API-KEY":r}})).data}catch(d){throw new Error(d)}},Y=async(r,e,t)=>{try{return(await n.default.post(`${a}/collection/sns/claimDomain`,{name:e,transactionHash:t},{headers:{"X-API-KEY":r}})).data}catch(o){throw new Error(o)}},X=async(r,e)=>{try{return(await n.default.get(`${a}/collection/ens/searchDomains?query=${e}.eth`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}},k=async(r,e)=>{try{return(await n.default.post(`${a}/collection/ens/claimDomain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}},S=async(r,e)=>{try{return(await n.default.get(`${a}/collection/base/search-domains?query=${e}`,{headers:{"X-API-KEY":r}})).data}catch(t){throw new Error(t)}},f=async(r,e,t)=>{try{return(await n.default.post(`${a}/collection/base/register-domain`,{name:e,claimWallet:t},{headers:{"X-API-KEY":r}})).data}catch(o){throw new Error(o)}},C=async(r,e)=>{try{return(await n.default.post(`${a}/collection/base/claim-domain`,e,{headers:{"X-API-KEY":r}})).data}catch(t){throw t}};0&&(module.exports={claimBnsDomain,claimDomain,claimEnsDomain,claimSnsDomain,getBnsDomainSuggestions,getDomainSuggestions,getEnsDomainSuggestions,getSnsDomainSuggestions,lockDomain,preLockDomain,registerBnsDomain,registerSnsDomain});
