57 lines
2.6 KiB
React
57 lines
2.6 KiB
React
/* Metro module 3930; source: unknown; dependencies: [5, 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
|
|
var object2;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_0 = importDefault(5) /* metro dependency 5 */;
|
|
const NitroModules = (require(3888) /* metro dependency 3888 */).NitroModules;
|
|
const env0_1 = NitroModules.createHybridObject('RiveRuntime');
|
|
object2 = {};
|
|
((a0) => {
|
|
var env0_0 = _fun32281;
|
|
a0.initialize = _fun32284;
|
|
a0.getStatus = _fun32285;
|
|
})(object2);
|
|
exports.RiveRuntime = object2;
|
|
}
|
|
|
|
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.apply(this, arguments);
|
|
};
|
|
a0.getStatus = getStatus_32285;
|
|
}
|
|
|
|
function _initialize() { // 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 getStatus_32285() { // 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};
|
|
}
|
|
|
|
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;
|
|
}
|
|
|