64 lines
3.4 KiB
JavaScript
64 lines
3.4 KiB
JavaScript
/* Metro module 3930; source: unknown; dependencies: [5, 3888] */
|
|
import Module00005 from './module-00005.js'; /* Metro dependency 5 */
|
|
import * as Module03888Module from './module-03888.js'; /* Metro dependency 3888 */
|
|
|
|
function _fun32279(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#32279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4079:6, offset: 0x010108ad, size: 120 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_0 = Module00005;
|
|
const NitroModules = (Module03888Module).NitroModules;
|
|
const env0_1 = NitroModules.createHybridObject('RiveRuntime');
|
|
object = {};
|
|
((a0) => {
|
|
var env0_0 = _fun32281;
|
|
a0.initialize = _fun32284;
|
|
a0.getStatus = _fun32285;
|
|
})(object);
|
|
exports.RiveRuntime = object;
|
|
function _fun32280(a0) { // fn#32280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4079:166, offset: 0x01010925, size: 40 bytes, params: 2, frame: 3
|
|
a0.initialize = function() {
|
|
return _initialize_32281.apply(this, arguments);
|
|
};
|
|
a0.getStatus = getStatus;
|
|
function _initialize_32281() { // fn#32281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4079:178, offset: 0x0101094d, size: 51 bytes, params: 1, frame: 13
|
|
var environment;
|
|
const value = environment.__proto__;
|
|
return env1_0(_fun32283).apply(this, arguments);
|
|
function* _fun32283() { // fn#32283, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4079:223, offset: 0x01010989, size: 141 bytes, params: 1, frame: 15
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
const binding = env3_1;
|
|
yield binding.initialize();
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (env3_1.isInitialized) {
|
|
return undefined;
|
|
}
|
|
const Error = global.Error;
|
|
value = 'Rive initialization failed: ' + (env3_1.initError ?? 'Unknown error');
|
|
const value5 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
const error = new Error(value);
|
|
throw error instanceof Object ? error : value5;
|
|
}
|
|
|
|
}
|
|
|
|
function initialize_32284() { // fn#32284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4079:411, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
|
|
return _initialize_32281.apply(this, arguments);
|
|
}
|
|
|
|
function getStatus() { // fn#32285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4079:487, offset: 0x01010a16, size: 46 bytes, params: 1, frame: 4
|
|
const value = environment.__proto__;
|
|
const binding = env1_1;
|
|
return {isInitialized: binding.isInitialized, error: binding.initError ?? undefined};
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun32279, 3930, [5, 3888]) /* metro module 3930, dependencies: [5, 3888] */;
|