var v=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var y=(t,e)=>{for(var o in e)i(t,o,{get:e[o],enumerable:!0})},l=(t,e,o,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of b(e))!k.call(t,n)&&n!==o&&i(t,n,{get:()=>e[n],enumerable:!(s=h(e,n))||s.enumerable});return t};var c=(t,e,o)=>(o=t!=null?v(g(t)):{},l(e||!t||!t.__esModule?i(o,"default",{value:t,enumerable:!0}):o,t)),w=t=>l(i({},"__esModule",{value:!0}),t);var N={};y(N,{default:()=>S});module.exports=w(N);var C=require("react");var d=c(require("posthog-js"),1);function p(t){let e={api_host:"https://logger.bandit.network"};d.default.init(t,e)}var f=require("react");var r=require("react");var E=c(require("axios"),1);var a=require("react"),P=require("react/jsx-runtime"),L=(0,a.createContext)(void 0);var m=require("react/jsx-runtime");var I=require("react/jsx-runtime"),u=(0,r.createContext)(void 0);var x=()=>(0,f.useContext)(u);var D=({children:t})=>{let{config:{analyticsEnabled:e=!1,logKey:o}}=x();return(0,C.useEffect)(()=>{e&&p(o)},[e,o]),t},S=D;
