"use strict";window.OlaJSNativeBridge=window.OlaJSNativeBridge||{},window.OlaJSNativeBridge.appEventListeners={},window.OlaJSNativeBridge.nativeToWeb=function(e,i){console.log("nativeToWeb called",e,i),i=i||{};var t=this.appEventListeners[e]||[];if(t.length)try{for(var n=t.length,a=0;a<n;a++)t[a]&&t[a](JSON.parse(i))}catch(e){console.log(e)}},window.OlaJSNativeBridge.webToNative=window.OlaJSNativeBridge.webToNative||function(e,i){console.log(e,i)},window.OlaJSNativeBridge.addAppEventListener=function(e,i,t){var n=this.appEventListeners[e]||[];return t=t||{},n.push(i),this.appEventListeners[e]=n,console.log("webToNative called",e,t),window.webkit&&window.webkit.messageHandlers?window.webkit.messageHandlers[e].postMessage(t):this.webToNative(e,i?"nativeToWeb":"",JSON.stringify(t)),{eventName:e,pos:n.length-1}},window.OlaJSNativeBridge.removeAppEventListener=function(e){this.appEventListeners[e.eventName][e.pos]=void 0};
//# sourceMappingURL=../sourcemap/mixins/nativebridge.a578e033.js.map
