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

90 lines
5.5 KiB
JavaScript

/* Metro module 1708; source: unknown; dependencies: [1654] */
import * as Module01654Module from './module-01654.js'; /* Metro dependency 1654 */
function _fun18621(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18621, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:6, offset: 0x00e91e04, size: 98 bytes, params: 8, frame: 16
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object = {code: 'function pnpm_ViewDescriptorsSetTs1(descriptors){const{item,updater}=this.__closure;var _updater;const index=descriptors.findIndex(function(descriptor){return descriptor.tag===item.tag;});if(index!==-1){descriptors[index]=item;}else{descriptors.push(item);}(_updater=updater)===null||_updater===void 0||_updater(true);return descriptors;}'};
object = {code: 'function pnpm_ViewDescriptorsSetTs2(descriptors){const{viewTag}=this.__closure;const index=descriptors.findIndex(function(descriptor){return descriptor.tag===viewTag;});if(index!==-1){descriptors.splice(index,1);}return descriptors;}'};
exports.makeViewDescriptorsSet = makeViewDescriptorsSet;
function makeViewDescriptorsSet() { // fn#18622, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:716, offset: 0x00e91e66, size: 114 bytes, params: 1, frame: 12
let value = Module01654Module;
value = value.makeMutable([]);
const Set = global.Set;
const set = new Set();
return {shareableViewDescriptors: value, add: add_18623, remove: remove_18626, has: has_18629};
function makeViewDescriptorsSetAdd(a0, a1) { // fn#18623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:828, owner: makeViewDescriptorsSet.add, offset: 0x00e91ed8, size: 127 bytes, params: 3, frame: 16
const env0_0 = a0;
let binding = env0_1;
binding.add(a0.tag);
const value2 = undefined;
const current = a1 == null ? value2 : a1.current;
binding = env0_0;
const modify = binding.modify;
const pnpm_ViewDescriptorsSetTs12 = pnpm_ViewDescriptorsSetTs1;
pnpm_ViewDescriptorsSetTs12.__closure = {item: a0, updater: current};
pnpm_ViewDescriptorsSetTs12.__workletHash = 1368679644593;
pnpm_ViewDescriptorsSetTs12.__initData = env1_2;
Reflect.apply(modify, binding, [pnpm_ViewDescriptorsSetTs12, false]);
return value2;
function pnpm_ViewDescriptorsSetTs1(a0) { // fn#18624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:905, owner: makeViewDescriptorsSet.add.pnpm_ViewDescriptorsSetTs1, offset: 0x00e91f57, size: 89 bytes, params: 2, frame: 12
const index = a0.findIndex(_fun18625);
if (index !== -1) {
a0[index] = env0_0;
} else {
a0.push(env0_0);
}
if (current != null) {
current(true);
}
return a0;
function _fun18625({tag}) { // fn#18625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:963, offset: 0x00e91fb0, size: 26 bytes, params: 2, frame: 2
return tag === env1_0.tag;
}
}
}
function makeViewDescriptorsSetRemove(a0) { // fn#18626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:1137, owner: makeViewDescriptorsSet.remove, offset: 0x00e91fca, size: 95 bytes, params: 2, frame: 14
const env0_0 = a0;
let binding = env0_1;
binding.delete(a0);
binding = env0_0;
const modify = binding.modify;
const closure = function(a0) {
var index = a0.findIndex(_fun18628);
if (index !== -1) {
a0.splice(index, 1);
}
return a0;
};
closure.__closure = {viewTag: a0};
closure.__workletHash = 5508648561577;
closure.__initData = env1_3;
Reflect.apply(modify, binding, [closure, false]);
function pnpm_ViewDescriptorsSetTs2(a0) { // fn#18627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:1187, owner: makeViewDescriptorsSet.remove.pnpm_ViewDescriptorsSetTs2, offset: 0x00e92029, size: 48 bytes, params: 2, frame: 13
const index = a0.findIndex(_fun18628);
if (index !== -1) {
a0.splice(index, 1);
}
return a0;
function _fun18628({tag}) { // fn#18628, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:1245, offset: 0x00e92059, size: 21 bytes, params: 2, frame: 2
return tag === env1_0;
}
}
}
function makeViewDescriptorsSetHas(a0) { // fn#18629, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1835:1388, owner: makeViewDescriptorsSet.has, offset: 0x00e4c0f3, size: 22 bytes, params: 2, frame: 11
return env0_1.has(a0);
}
}
}
global.__d(_fun18621, 1708, [1654]) /* metro module 1708, dependencies: [1654] */;