Files
discord-decomp/sources/by-id/module-01647.jsx
T
2026-07-27 16:20:00 +03:00

302 lines
17 KiB
React

/* Metro module 1647; source: unknown; dependencies: [1613, 1614, 1648, 1640, 1617, 1621, 1641] */
function _fun17981(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:6, offset: 0x00e7c87a, size: 295 bytes, params: 8, frame: 18
const env0_0 = require;
const checkInvalidReadDuringRender = function() {
};
const checkInvalidWriteDuringRender = function() {
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1613) /* metro dependency 1613 */;
value = value.shouldBeUseWeb();
const env0_2 = (require(1613) /* metro dependency 1613 */).isJest();
object = {code: "function addCompilerSafeGetAndSet_Pnpm_mutablesTs1(mutable){Object.defineProperties(mutable,{get:{value:function(){return mutable.value;},configurable:false,enumerable:false},set:{value:function(newValue){if(typeof newValue==='function'&&!newValue.__isAnimationDefinition){mutable.value=newValue(mutable.value);}else{mutable.value=newValue;}},configurable:false,enumerable:false}});}"};
const env0_4 = _fun17984();
object = {code: "function hideInternalValueProp_Pnpm_mutablesTs2(mutable){Object.defineProperty(mutable,'_value',{configurable:false,enumerable:false});}"};
const env0_6 = _fun17991();
object = {code: 'function makeMutableUI_Pnpm_mutablesTs3(initial){const{valueSetter,hideInternalValueProp,addCompilerSafeGetAndSet}=this.__closure;const listeners=new Map();let value=initial;const mutable={get value(){return value;},set value(newValue){valueSetter(mutable,newValue);},get _value(){return value;},set _value(newValue){value=newValue;listeners.forEach(function(listener){listener(newValue);});},modify:function(modifier,forceUpdate=true){valueSetter(mutable,modifier!==undefined?modifier(value):value,forceUpdate);},addListener:function(id,listener){listeners.set(id,listener);},removeListener:function(id){listeners.delete(id);},_animation:null,_isReanimatedSharedValue:true};hideInternalValueProp(mutable);addCompilerSafeGetAndSet(mutable);return mutable;}'};
const value3 = _fun17993();
object = {code: 'function pnpm_mutablesTs4(){const{makeMutableUI,initial}=this.__closure;return makeMutableUI(initial);}'};
object = {code: 'function pnpm_mutablesTs5(sv){return sv.value;}'};
object = {code: 'function pnpm_mutablesTs6(){const{mutable,newValue}=this.__closure;mutable.value=newValue;}'};
object = {code: 'function pnpm_mutablesTs7(){const{mutable,modifier,forceUpdate}=this.__closure;mutable.modify(modifier,forceUpdate);}'};
const r1 = value ? makeMutableWeb : makeMutableNative;
exports.makeMutableUI = value3;
exports.makeMutable = r1;
}
function _fun17984() { // fn#17984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:628, offset: 0x00e7c9a1, size: 46 bytes, params: 1, frame: 2
const closure = function(a0) {
var env0_0 = a0;
var Object = global.Object;
var object3 = {'value': null, 'configurable': false, 'enumerable': false};
object3.value = _fun17987(_fun17990);
Object.defineProperties(a0, {get: {'value': null, 'configurable': false, 'enumerable': false, value: _fun17986},
set: object3});
};
closure.__closure = {};
closure.__workletHash = 14094096506039;
closure.__initData = env0_3;
return closure;
}
function _fun17991() { // fn#17991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:1266, offset: 0x00e7caac, size: 46 bytes, params: 1, frame: 2
const closure = function(a0) {
var Object = global.Object;
Object.defineProperty(a0, '_value', {'configurable': false, 'enumerable': false});
};
closure.__closure = {};
closure.__workletHash = 3380393180484;
closure.__initData = env0_5;
return closure;
}
function _fun17993() { // fn#17993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2226, offset: 0x00e7cb03, size: 101 bytes, params: 1, frame: 14
const closure = makeMutableUI;
const object2 = {};
object2.valueSetter = (require(1648) /* metro dependency 1648 */).valueSetter;
object2.hideInternalValueProp = env0_6;
object2.addCompilerSafeGetAndSet = env0_4;
closure.__closure = object2;
closure.__workletHash = 8132940328790;
closure.__initData = env0_7;
return closure;
}
function makeMutableWeb(a0) { // fn#18003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3297, offset: 0x00e7ccde, size: 167 bytes, params: 2, frame: 13
const env0_0 = a0;
const Map = global.Map;
const map = new Map();
const object2 = {};
Object.defineProperty(object2, 'value', {get: _fun18004, set: _fun18005, enumerable: true, configurable: true});
Object.defineProperty(object2, '_value', {get: _fun18006, set: _fun18007, enumerable: true, configurable: true});
object2.modify = modify;
object2.addListener = addListener_18010;
object2.removeListener = removeListener_18011;
object2._isReanimatedSharedValue = true;
const env0_2 = object2;
env0_6(object2);
env0_4(object2);
if (env0_2) {
object2.toJSON = toJSON_18012;
}
return object2;
}
function makeMutableNative(a0) { // fn#18013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3931, offset: 0x00e7ce87, size: 237 bytes, params: 2, frame: 21
var object2;
const env0_0 = a0;
const moduleValue = require(1640) /* metro dependency 1640 */;
const makeShareableCloneRecursive = moduleValue.makeShareableCloneRecursive;
const closure = __init_18014;
closure.__closure = {makeMutableUI: env0_8, initial: a0};
closure.__workletHash = 38746935544;
closure.__initData = env0_9;
const shareableCloneRecursive = Reflect.apply(makeShareableCloneRecursive, moduleValue, [{__init: closure}]);
object2 = {};
Object.defineProperty(object2, 'value', {get: _fun18015, set: _fun18017, enumerable: true, configurable: true});
Object.defineProperty(object2, '_value', {get: _fun18019, set: _fun18020, enumerable: true, configurable: true});
object2.modify = modify;
object2.addListener = addListener_18023;
object2.removeListener = removeListener_18024;
object2._isReanimatedSharedValue = true;
env0_6(object2);
env0_4(object2);
(require(1641) /* metro dependency 1641 */).shareableMappingCache.set(object2, shareableCloneRecursive);
return object2;
}
function addCompilerSafeGetAndSet(a0) { // fn#17985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:645, offset: 0x00e7c9cf, size: 95 bytes, params: 2, frame: 17
let env0_0 = a0;
const Object = global.Object;
const defineProperties = Object.defineProperties;
const object2 = {};
object2.get = {'value': null, 'configurable': false, 'enumerable': false, value: value_17986};
const object4 = {'value': null, 'configurable': false, 'enumerable': false};
object4.value = (function(a0) {
var env0_0 = a0;
var closure = _fun17988;
closure.toString = _fun17989;
return closure;
})(_fun17990);
object2.set = object4;
Reflect.apply(defineProperties, Object, [a0, object2]);
}
function makeMutableUI(a0) { // fn#17994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2243, offset: 0x00e7cb68, size: 156 bytes, params: 2, frame: 13
var environment;
const Map = global.Map;
let map = new Map();
const env0_1 = a0;
const object2 = {};
Object.defineProperty(object2, 'value', {get: _fun17995, set: _fun17996, enumerable: true, configurable: true});
Object.defineProperty(object2, '_value', {get: _fun17997, set: _fun17998, enumerable: true, configurable: true});
object2.modify = modify;
object2.addListener = addListener_18001;
object2.removeListener = removeListener_18002;
object2._animation = null;
object2._isReanimatedSharedValue = true;
map = environment.__proto__;
env1_6(object2);
env1_4(object2);
return object2;
}
function _fun18004() { // fn#18004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3345, offset: 0x00e7cd85, size: 22 bytes, params: 1, frame: 9
checkInvalidReadDuringRender();
return env0_0;
}
function _fun18005(a0) { // fn#18005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3398, offset: 0x00e7cd9b, size: 57 bytes, params: 2, frame: 14
const value = environment.__proto__;
checkInvalidWriteDuringRender();
(require(1648) /* metro dependency 1648 */).valueSetter(env0_2, a0);
}
function _fun18007(a0) { // fn#18007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3492, offset: 0x00e7cdd4, size: 39 bytes, params: 2, frame: 11
let env0_0 = a0;
env0_0 = a0;
env0_1.forEach(_fun18008);
}
function makeMutableWebModify(a0) { // fn#18009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3549, owner: makeMutableWeb.modify, offset: 0x00e7cdfb, size: 112 bytes, params: 2, frame: 19
const r3 = arguments.length > 1 && arguments[1] !== undefined;
const r5 = r3 ? arguments[1] : !r3;
value = environment.__proto__;
value = require(1648) /* metro dependency 1648 */;
value.valueSetter(env0_2, a0 !== undefined ? a0(env0_2.value) : env0_2.value, r5);
}
function makeMutableWebRemoveListener(a0) { // fn#18011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3754, owner: makeMutableWeb.removeListener, offset: 0x00d6c900, size: 24 bytes, params: 2, frame: 11
env0_1.delete(a0);
}
function makeMutableWebToJSON() { // fn#18012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:3853, owner: makeMutableWeb.toJSON, offset: 0x00e7ce6b, size: 28 bytes, params: 1, frame: 11
const binding = env0_0;
const JSON = global.JSON;
return JSON.stringify(binding);
}
function _fun18015() { // fn#18015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4148, offset: 0x00e7cf8b, size: 99 bytes, params: 1, frame: 14
var environment;
const value = environment.__proto__;
checkInvalidReadDuringRender();
const moduleValue = require(1617) /* metro dependency 1617 */;
const executeOnUIRuntimeSync = moduleValue.executeOnUIRuntimeSync;
const closure = function(a0) {
return a0.value;
};
closure.__closure = {};
closure.__workletHash = 5375306386445;
closure.__initData = env1_10;
return Reflect.apply(executeOnUIRuntimeSync, moduleValue, [closure])(env0_1);
}
function _fun18017(a0) { // fn#18017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4351, offset: 0x00e7cfee, size: 115 bytes, params: 2, frame: 16
const env0_0 = a0;
checkInvalidWriteDuringRender();
const moduleValue = require(1617) /* metro dependency 1617 */;
const runOnUI = moduleValue.runOnUI;
const closure = pnpm_mutablesTs6;
closure.__closure = {mutable: env0_1, newValue: a0};
closure.__workletHash = 11269088169577;
closure.__initData = env1_11;
Reflect.apply(runOnUI, moduleValue, [closure])();
}
function _fun18019() { // fn#18019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4547, offset: 0x00e7d079, size: 59 bytes, params: 1, frame: 11
const value = environment.__proto__;
const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError;
throw new ReanimatedError('Reading from `_value` directly is only possible on the UI runtime. Perhaps you passed an Animated Style to a non-animated component?');
}
function _fun18020(a0) { // fn#18020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4732, offset: 0x00e7d0b4, size: 59 bytes, params: 2, frame: 11
const value = environment.__proto__;
const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError;
throw new ReanimatedError('Setting `_value` directly is only possible on the UI runtime. Perhaps you want to assign to `value` instead?');
}
function makeMutableNativeModify(a0) { // fn#18021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4901, owner: makeMutableNative.modify, offset: 0x00e7d0ef, size: 151 bytes, params: 2, frame: 17
var environment;
const env0_0 = a0;
const r4 = arguments.length > 1 && arguments[1] !== undefined;
const r6 = r4 ? arguments[1] : !r4;
const env0_1 = r6;
value = environment.__proto__;
const moduleValue = require(1617) /* metro dependency 1617 */;
const runOnUI = moduleValue.runOnUI;
const closure = pnpm_mutablesTs7;
closure.__closure = {mutable: env0_1, modifier: a0, forceUpdate: r6};
closure.__workletHash = 15983399508815;
closure.__initData = env1_12;
Reflect.apply(runOnUI, moduleValue, [closure])();
}
function makeMutableNativeAddListener() { // fn#18023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:5162, owner: makeMutableNative.addListener, offset: 0x00e7d1a8, size: 59 bytes, params: 1, frame: 11
const value = environment.__proto__;
const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError;
throw new ReanimatedError('Adding listeners is only possible on the UI runtime.');
}
function makeMutableNativeRemoveListener() { // fn#18024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:5292, owner: makeMutableNative.removeListener, offset: 0x00e7d1e3, size: 59 bytes, params: 1, frame: 11
const value = environment.__proto__;
const ReanimatedError = (require(1621) /* metro dependency 1621 */).ReanimatedError;
throw new ReanimatedError('Removing listeners is only possible on the UI runtime.');
}
function addCompilerSafeGetAndSetValue() { // fn#17986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:720, owner: addCompilerSafeGetAndSet.value, offset: 0x00e7ca2e, size: 14 bytes, params: 1, frame: 1
return env0_0.value;
}
function _fun17987(a0) { // fn#17987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:795, offset: 0x00e7ca3c, size: 27 bytes, params: 2, frame: 2
const env0_0 = a0;
const closure = value_17988;
closure.toString = toString_17989;
return closure;
}
function _fun17990(a0) { // fn#17990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:918, offset: 0x00e7ca69, size: 67 bytes, params: 2, frame: 12
var binding;
if (typeof a0 !== 'function') {
env0_0.value = a0;
} else if (a0.__isAnimationDefinition) {
env0_0.value = a0;
} else {
binding = env0_0;
binding.value = a0(binding.value);
}
}
function _fun17996(a0) { // fn#17996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2312, offset: 0x00e7cc04, size: 49 bytes, params: 2, frame: 14
const value = environment.__proto__.__proto__;
(require(1648) /* metro dependency 1648 */).valueSetter(env0_2, a0);
}
function _fun17998(a0) { // fn#17998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2374, offset: 0x00e7cc35, size: 39 bytes, params: 2, frame: 11
const env0_0 = a0;
env0_1 = a0;
env0_0.forEach(_fun17999);
}
function modify(a0) { // fn#18000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:2431, owner: makeMutableUI.modify, offset: 0x00e7cc5c, size: 102 bytes, params: 2, frame: 19
const r3 = arguments.length > 1 && arguments[1] !== undefined;
const r5 = r3 ? arguments[1] : !r3;
value = environment.__proto__.__proto__;
value = require(1648) /* metro dependency 1648 */;
value.valueSetter(env0_2, a0 !== undefined ? a0(env0_1) : env0_1, r5);
}
function pnpm_mutablesTs6() { // fn#18018, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:4422, offset: 0x00e7d061, size: 24 bytes, params: 1, frame: 2
env1_1.value = env0_0;
}
function pnpm_mutablesTs7() { // fn#18022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:5007, owner: makeMutableNative.modify.pnpm_mutablesTs7, offset: 0x00e7d186, size: 34 bytes, params: 1, frame: 13
const binding = env1_1;
binding.modify(env0_0, env0_1);
}
function toString_17989() { // fn#17989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1774:878, offset: 0x00e7ca57, size: 18 bytes, params: 1, frame: 9
return env0_0.toString();
}