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