Files
discord-decomp/sources/utils/BasicPermissionUtils.tsx
T
2026-07-28 01:06:53 +03:00

46 lines
2.9 KiB
TypeScript

/* Metro module 3792; source: utils/BasicPermissionUtils.tsx; dependencies: [6, 7, 483, 2] */
import ClassCallCheck from '../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as BigFlagUtilsModule from '../external/discord_common/js/shared/utils/BigFlagUtils.tsx'; /* Metro dependency 483 */
function _fun28835(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#28835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3919:6, offset: 0x00f8474c, size: 143 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const value = _fun28836();
value.cache = {};
(FileImportTrackerModule).fileFinishedImporting('utils/BasicPermissionUtils.tsx');
exports.default = value;
function _fun28836() { // fn#28836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3919:118, offset: 0x00f847db, size: 106 bytes, params: 1, frame: 16
return CreateClass(BasicPermissionUtils, null, [{key: 'has', value: function(a0, a1) {
return !!(a0 & a1);
}}, {key: 'asBasicFlag', value: value_28839}, {key: 'asBigFlag', value: value_28840}]);
function BasicPermissionUtils() { // fn#28837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3919:139, offset: 0x00c618a4, size: 27 bytes, params: 1, frame: 13
env1_2(this, BasicPermissionUtils);
}
function value_28839(a0) { // fn#28839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3919:280, offset: 0x00f84845, size: 45 bytes, params: 2, frame: 13
const value = environment.__proto__;
return (BigFlagUtilsModule).asUintN(20, a0);
}
function value_28840(a0) { // fn#28840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:3919:346, offset: 0x00f84872, size: 93 bytes, params: 2, frame: 15
var value;
const Object = global.Object;
const hasOwn = Object.hasOwn;
let cache = this.cache;
if (!Reflect.apply(hasOwn, Object, [cache, a0])) {
cache = this.cache;
value = environment.__proto__;
value = importAll(483) /* metro dependency 483: BigFlagUtils */;
cache[a0] = value.deserialize(a0);
}
return this.cache[a0];
}
}
}
global.__d(_fun28835, 3792, [6, 7, 483, 2]) /* metro module 3792, dependencies: [6, 7, 483, 2] */;