var b=Object.create;var p=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty;var w=(t,e)=>{for(var o in e)p(t,o,{get:e[o],enumerable:!0})},c=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of k(e))!f.call(t,n)&&n!==o&&p(t,n,{get:()=>e[n],enumerable:!(a=h(e,n))||a.enumerable});return t};var A=(t,e,o)=>(o=t!=null?b(C(t)):{},c(e||!t||!t.__esModule?p(o,"default",{value:t,enumerable:!0}):o,t)),y=t=>c(p({},"__esModule",{value:!0}),t);var m=(t,e,o)=>new Promise((a,n)=>{var u=r=>{try{i(o.next(r))}catch(d){n(d)}},P=r=>{try{i(o.throw(r))}catch(d){n(d)}},i=r=>r.done?a(r.value):Promise.resolve(r.value).then(u,P);i((o=o.apply(t,e)).next())});var _={};w(_,{getConsumerDetails:()=>I});module.exports=y(_);var x=A(require("axios"),1);var s=require("react"),D=require("react/jsx-runtime"),B=(0,s.createContext)(void 0),v="production";var l=v==="development"?"https://qa-api-v2.bandit.network/sdk":"https://api-v2.bandit.network/sdk";var I=t=>m(void 0,null,function*(){try{return(yield x.default.get(`${l}/consumer`,{headers:{"X-API-KEY":t}})).data}catch(e){return{}}});0&&(module.exports={getConsumerDetails});
