Files
discord-decomp/sources/by-id/module-01630-createNativeWorkletsModule.js
T
2026-07-28 01:06:53 +03:00

56 lines
3.6 KiB
JavaScript

/* Metro module 1630; source: unknown; dependencies: [6, 7, 99, 100, 1631, 1632, 1621] */
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00099 from './module-00099.js'; /* Metro dependency 99 */
import Module00100 from './module-00100.js'; /* Metro dependency 100 */
import * as Module01632Module from './module-01632.js'; /* Metro dependency 1632 */
function _fun17827(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1757:6, offset: 0x00e77a54, size: 163 bytes, params: 8, frame: 18
const env0_1 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_6 = (Module00100)('workletsModuleProxy');
const env0_7 = _fun17828();
exports.createNativeWorkletsModule = createNativeWorkletsModule;
function _fun17828() { // fn#17828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1757:165, offset: 0x00e77af7, size: 55 bytes, params: 1, frame: 14
return CreateClass(NativeWorklets, [{key: 'makeShareableClone', value: value_17830}]);
function NativeWorklets() { // fn#17829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1757:186, offset: 0x00e77b2e, size: 262 bytes, params: 1, frame: 18
const WorkletsTurboModule = (Module01632Module).WorkletsTurboModule;
const value = environment.__proto__;
let binding = env1_3;
binding(this, NativeWorklets);
const Object = global.Object;
Object.defineProperty(this, env1_6, {writable: true, value: undefined});
if (env1_0.__workletsModuleProxy === undefined) {
if (WorkletsTurboModule != null) {
WorkletsTurboModule.installTurboModule((require(1631) /* metro dependency 1631 */).getValueUnpackerCode());
}
}
if (env1_0.__workletsModuleProxy === undefined) {
throw new (require(1621) /* metro dependency 1621 */).ReanimatedError("Native part of Reanimated doesn't seem to be initialized (Worklets).\nSee https://docs.swmansion.com/react-native-reanimated/docs/guides/troubleshooting#native-part-of-reanimated-doesnt-seem-to-be-initialized for more details.");
}
binding = env1_5;
const binding2 = env1_6;
binding(this, binding2)[binding2] = env1_0.__workletsModuleProxy;
}
function value_17830(a0, a1, a2) { // fn#17830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1757:824, offset: 0x00e77c34, size: 50 bytes, params: 4, frame: 15
const binding = env1_5;
const binding2 = env1_6;
return binding(this, binding2)[binding2].makeShareableClone(a0, a1, a2);
}
}
function createNativeWorkletsModule() { // fn#17831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1757:941, offset: 0x00e77820, size: 29 bytes, params: 1, frame: 9
const binding = env0_7;
const value = Object.create(binding.prototype, {constructor: {value: binding}});
const binding2 = new binding();
return binding2 instanceof Object ? binding2 : value;
}
}
global.__d(_fun17827, 1630, [6, 7, 99, 100, 1631, 1632,
1621]) /* metro module 1630, dependencies: [6, 7, 99, 100, 1631, 1632, 1621] */;