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