60 lines
3.4 KiB
JavaScript
60 lines
3.4 KiB
JavaScript
/* Metro module 5276; source: unknown; dependencies: [27] */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
|
|
function _fun46902(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#46902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:6, offset: 0x011b2584, size: 115 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const NativeEventEmitter = ReactNativeModule.NativeEventEmitter;
|
|
const nativeEventEmitter = new NativeEventEmitter(undefined);
|
|
exports.default = (() => {
|
|
var closure = _fun46904;
|
|
closure.prototype.injectJavaScript = _fun46905;
|
|
closure.prototype.addOnMessageListener = _fun46906;
|
|
closure.prototype.releaseWebView = _fun46908;
|
|
return closure;
|
|
})();
|
|
function _fun46903() { // fn#46903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:164, offset: 0x011b25f7, size: 57 bytes, params: 1, frame: 4
|
|
const closure = function(a0) {
|
|
this.webViewKey = a0;
|
|
};
|
|
closure.prototype.injectJavaScript = function(a0) {
|
|
var RNCWebView = NativeModules.RNCWebView;
|
|
return RNCWebView.injectJavaScriptWithWebViewKey(this.webViewKey, a0);
|
|
};
|
|
closure.prototype.addOnMessageListener = addOnMessageListener;
|
|
closure.prototype.releaseWebView = function() {
|
|
var RNCWebView = NativeModules.RNCWebView;
|
|
RNCWebView.releaseWebView(this.webViewKey);
|
|
};
|
|
return closure;
|
|
function injectJavaScript(a0) { // fn#46905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:265, offset: 0x011b2640, size: 41 bytes, params: 2, frame: 13
|
|
const RNCWebView = NativeModules.RNCWebView;
|
|
return RNCWebView.injectJavaScriptWithWebViewKey(this.webViewKey, a0);
|
|
}
|
|
|
|
function addOnMessageListener(a0) { // fn#46906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:392, offset: 0x011b2669, size: 48 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
return env1_1.addListener('ReactNativeWebViewOnMessageWithWebViewKey', _fun46907);
|
|
function _fun46907(a0) { // fn#46907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:481, offset: 0x011b2699, size: 41 bytes, params: 2, frame: 12
|
|
if (a0.webViewKey === env0_1.webViewKey) {
|
|
env0_0(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function releaseWebView() { // fn#46908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:569, offset: 0x011b26c2, size: 37 bytes, params: 1, frame: 11
|
|
const RNCWebView = NativeModules.RNCWebView;
|
|
RNCWebView.releaseWebView(this.webViewKey);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function WebViewProxy(a0) { // fn#46904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5454:175, offset: 0x011b2630, size: 16 bytes, params: 2, frame: 2
|
|
this.webViewKey = a0;
|
|
}
|
|
|
|
global.__d(_fun46902, 5276, [27]) /* metro module 5276, dependencies: [27] */;
|