58 lines
3.2 KiB
React
58 lines
3.2 KiB
React
/* Metro module 1189; source: unknown; dependencies: [6, 7, 826, 1009] */
|
|
function _fun13201(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1316:6, offset: 0x00de3fab, size: 147 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const closure = makeNativeTransport;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
const value = _fun13203();
|
|
exports.DEFAULT_BUFFER_SIZE = 30;
|
|
exports.NativeTransport = value;
|
|
exports.makeNativeTransport = closure;
|
|
exports.makeNativeTransportFactory = function(a0) {
|
|
return a0.enableNative && require(dependencyMap[3]).NATIVE.isNativeAvailable() ? makeNativeTransport : null;
|
|
};
|
|
}
|
|
|
|
function makeNativeTransport() { // fn#13202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1316:530, offset: 0x00de403e, size: 61 bytes, params: 1, frame: 13
|
|
const binding = env0_4;
|
|
const r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
const value = Object.create(binding.prototype, {constructor: {value: binding}});
|
|
const binding2 = new binding(r0);
|
|
return binding2 instanceof Object ? binding2 : value;
|
|
}
|
|
|
|
function _fun13203() { // fn#13203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1316:118, offset: 0x00de407b, size: 78 bytes, params: 1, frame: 15
|
|
return env0_3(NativeTransport, [{key: 'send', value: function(a0) {
|
|
var env0_0 = a0;
|
|
return this._buffer.add(_fun13206).then(_fun13207);
|
|
}}, {key: 'flush', value: function(a0) {
|
|
return this._buffer.drain(a0);
|
|
}}]);
|
|
}
|
|
|
|
function NativeTransport() { // fn#13204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1316:139, offset: 0x00de40c9, size: 103 bytes, params: 1, frame: 15
|
|
const r1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
let value = environment.__proto__;
|
|
env1_2(this, NativeTransport);
|
|
value = require(826) /* metro dependency 826 */;
|
|
const makePromiseBuffer = value.makePromiseBuffer;
|
|
let bufferSize = r1.bufferSize;
|
|
bufferSize = !bufferSize ? 30 : bufferSize;
|
|
this._buffer = Reflect.apply(makePromiseBuffer, value, [bufferSize]);
|
|
}
|
|
|
|
function value_13205(a0) { // fn#13205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1316:332, offset: 0x00de4130, size: 50 bytes, params: 2, frame: 12
|
|
const env0_0 = a0;
|
|
return this._buffer.add(_fun13206).then(function() {
|
|
return {};
|
|
});
|
|
}
|
|
|
|
function _fun13206() { // fn#13206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1316:374, offset: 0x00de4162, size: 51 bytes, params: 1, frame: 11
|
|
const NATIVE = (require(1009) /* metro dependency 1009 */).NATIVE;
|
|
return NATIVE.sendEnvelope(env0_0);
|
|
}
|
|
|