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