This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,4 +1,12 @@
/* Metro module 1479; source: modules/screen/native/DimensionsStore.android.tsx; dependencies: [27, 1480, 1850, 1585, 1851, 1598, 690, 629, 1586, 2] */
import SubscribeToKeyboardUIStore from '../../keyboard/native/subscribeToKeyboardUIStore.tsx'; /* Metro dependency 1480 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactBatchUpdatesNativeModule from '../../../external/discord_common/js/shared/utils/ReactBatchUpdates.native.tsx'; /* Metro dependency 690 */
import * as UseSafeAreaInsetsNativeModule from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import * as AppEntryKeyModule from '../../window/native/AppEntryKey.tsx'; /* Metro dependency 1598 */
import * as ReadAppEntryWindowMetricsAndroidModule from './readAppEntryWindowMetrics.android.tsx'; /* Metro dependency 1850 */
function _fun16944(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16944, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:6, offset: 0x00e5f8d7, size: 269 bytes, params: 8, frame: 21
const env0_0 = require;
const _arrayLikeToArray_16947 = function(a0, a1) {
@@ -46,192 +54,197 @@ function _fun16944(global, require, importDefault, importAll, module, exports, d
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const Dimensions = (require(27) /* metro dependency 27 */).Dimensions;
const subscribeToKeyboardUIStore = importDefault(1480) /* metro dependency 1480: subscribeToKeyboardUIStore */;
const Dimensions = (ReactNativeModule).Dimensions;
let value3 = (require(629) /* metro dependency 629 */).create(function() {
return getDimensionsStoreState(undefined);
});
(importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */).subscribe(function() {
updateDimensionsStoreState();
});
subscribeToKeyboardUIStore(function() {
SubscribeToKeyboardUIStore(function() {
updateDimensionsStoreState();
});
Dimensions.addEventListener('change', function() {
updateDimensionsStoreState();
});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/DimensionsStore.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/DimensionsStore.android.tsx');
exports.default = value3;
}
function _createForOfIteratorHelperLoose_16945(a0, a1) { // fn#16945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:132, offset: 0x00e5f9e4, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
function _createForOfIteratorHelperLoose_16945(a0, a1) { // fn#16945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:132, offset: 0x00e5f9e4, size: 370 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun16946;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_16947(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun16946;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_16947(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_16947(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_16947(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
r5 = r6;
} else {
r5 = value;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
if (r5) {
}
return _fun16946;
}
return _fun16946;
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun16946() { // fn#16946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:703, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return env0_1 >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof env0_1 === 'bigint' ? env0_1 : +env0_1]};
}
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function computeWindowDimensions(a0, a1, {width, height}, {width, height}, a4) { // fn#16948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:1042, offset: 0x00e5fb56, size: 250 bytes, params: 6, frame: 22
var r6;
var r10;
const value = a0;
const safeAreaInsets = (require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */).getSafeAreaInsets(a4);
if (height !== width) {
r6 = height;
r10 = width;
} else {
r6 = width;
r10 = height;
function computeWindowDimensions(a0, a1, {width, height}, {width, height}, a4) { // fn#16948, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:1042, offset: 0x00e5fb56, size: 250 bytes, params: 6, frame: 22
var r6;
var r10;
const value = a0;
const safeAreaInsets = (UseSafeAreaInsetsNativeModule).getSafeAreaInsets(a4);
if (height !== width) {
r6 = height;
r10 = width;
} else {
r6 = width;
r10 = height;
}
let Math = global.Math;
const value6 = Math.min(width + safeAreaInsets.left + safeAreaInsets.right, r10);
Math = global.Math;
const value11 = Math.min(height + safeAreaInsets.top + safeAreaInsets.bottom - (a1 ? 0 : (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight({appEntryKey: a4})),
r6);
return value?.width !== value6 ? {width: value6,
height: value11} : value.height === value11 ? value : {width: value6, height: value11};
}
let Math = global.Math;
const value6 = Math.min(width + safeAreaInsets.left + safeAreaInsets.right, r10);
Math = global.Math;
const value11 = Math.min(height + safeAreaInsets.top + safeAreaInsets.bottom - (a1 ? 0 : (require(1851) /* metro dependency 1851: useSystemKeyboardHeightNative */).getSystemKeyboardHeight({appEntryKey: a4})),
r6);
return value?.width !== value6 ? {width: value6,
height: value11} : value.height === value11 ? value : {width: value6, height: value11};
}
function getDimensionsStoreStateForEntry(a0, a1) { // fn#16949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:1374, offset: 0x00e5fc50, size: 288 bytes, params: 3, frame: 24
const value = a1;
const object2 = {};
const get = Dimensions.get;
copyDataProperties(object2, Reflect.apply(get, Dimensions, ['window']), undefined);
const value3 = undefined;
const readAppEntryWindowMetricsAndroidModule = require(1850) /* metro dependency 1850: readAppEntryWindowMetricsAndroid */;
copyDataProperties(object2, readAppEntryWindowMetricsAndroidModule.readWindowSizeForAppEntry(a0), undefined);
const r9 = readAppEntryWindowMetricsAndroidModule.readScreenSizeForAppEntry(a0) ?? Dimensions.get('screen');
const fontScale = object2.fontScale;
const value6 = r9.width > r9.height;
const windowDimensions = value == null ? value3 : value.windowDimensions;
const windowDimensionsIgnoringKeyboard = value == null ? value3 : value.windowDimensionsIgnoringKeyboard;
const computeWindowDimensionsBinding = computeWindowDimensions;
const windowDimensions2 = computeWindowDimensionsBinding(windowDimensions, false, object2, r9, a0);
const windowDimensions3 = computeWindowDimensionsBinding(windowDimensionsIgnoringKeyboard, true, object2, r9, a0);
return (value == null ? value3 : value.windowDimensions) !== windowDimensions2 || value.windowDimensionsIgnoringKeyboard !== windowDimensions3 || value.fontScale !== fontScale ? {fontScale: fontScale,
screenIsLandscape: value6, windowDimensions: windowDimensions2,
windowDimensionsIgnoringKeyboard: windowDimensions3} : value.screenIsLandscape === value6 ? value : {fontScale: fontScale,
screenIsLandscape: value6, windowDimensions: windowDimensions2,
windowDimensionsIgnoringKeyboard: windowDimensions3};
}
function getDimensionsStoreStateForEntry(a0, a1) { // fn#16949, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:1374, offset: 0x00e5fc50, size: 288 bytes, params: 3, frame: 24
const value = a1;
const object = {};
const get = Dimensions.get;
copyDataProperties(object, Reflect.apply(get, Dimensions, ['window']), undefined);
const value3 = undefined;
copyDataProperties(object, ReadAppEntryWindowMetricsAndroidModule.readWindowSizeForAppEntry(a0), undefined);
const r9 = ReadAppEntryWindowMetricsAndroidModule.readScreenSizeForAppEntry(a0) ?? Dimensions.get('screen');
const fontScale = object.fontScale;
const value6 = r9.width > r9.height;
const windowDimensions = value == null ? value3 : value.windowDimensions;
const windowDimensionsIgnoringKeyboard = value == null ? value3 : value.windowDimensionsIgnoringKeyboard;
const computeWindowDimensionsBinding = computeWindowDimensions;
const windowDimensions2 = computeWindowDimensionsBinding(windowDimensions, false, object, r9, a0);
const windowDimensions3 = computeWindowDimensionsBinding(windowDimensionsIgnoringKeyboard, true, object, r9, a0);
return (value == null ? value3 : value.windowDimensions) !== windowDimensions2 || value.windowDimensionsIgnoringKeyboard !== windowDimensions3 || value.fontScale !== fontScale ? {fontScale: fontScale,
screenIsLandscape: value6, windowDimensions: windowDimensions2,
windowDimensionsIgnoringKeyboard: windowDimensions3} : value.screenIsLandscape === value6 ? value : {fontScale: fontScale,
screenIsLandscape: value6, windowDimensions: windowDimensions2,
windowDimensionsIgnoringKeyboard: windowDimensions3};
}
function getDimensionsStoreState(a0) { // fn#16950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:2072, offset: 0x00e5fd70, size: 172 bytes, params: 2, frame: 23
var r5;
var r6;
var r4;
var r3;
var value7;
var getDimensionsStoreStateForEntryBinding;
var byAppEntry;
var property;
var dimensionsStoreStateForEntryBinding;
var value9;
var value10;
const value = a0;
const object2 = {};
const value2 = value != null;
const _createForOfIteratorHelperLoose_16945Binding = _createForOfIteratorHelperLoose_16945;
const value4 = undefined;
const APP_ENTRY_KEYS = (require(1598) /* metro dependency 1598: AppEntryKey */).APP_ENTRY_KEYS;
const value5 = _createForOfIteratorHelperLoose_16945Binding(APP_ENTRY_KEYS);
const value6 = value5();
let done = value6.done;
if (done) {
r3 = value2;
} else {
r5 = value2;
r6 = value6;
while (true) {
value7 = r6.value;
getDimensionsStoreStateForEntryBinding = getDimensionsStoreStateForEntry;
r4 = value == null ? value4 : value.byAppEntry[value7];
dimensionsStoreStateForEntryBinding = getDimensionsStoreStateForEntryBinding(value7, r4);
object2[value7] = dimensionsStoreStateForEntryBinding;
if (value == null) {
r4 = value4;
function getDimensionsStoreState(a0) { // fn#16950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:2072, offset: 0x00e5fd70, size: 172 bytes, params: 2, frame: 23
var r5;
var r6;
var r4;
var r3;
var value7;
var getDimensionsStoreStateForEntryBinding;
var byAppEntry;
var property;
var dimensionsStoreStateForEntryBinding;
var value9;
var value10;
const value = a0;
const object = {};
const value2 = value != null;
const _createForOfIteratorHelperLoose_16945Binding = _createForOfIteratorHelperLoose_16945;
const value4 = undefined;
const APP_ENTRY_KEYS = (AppEntryKeyModule).APP_ENTRY_KEYS;
const value5 = _createForOfIteratorHelperLoose_16945Binding(APP_ENTRY_KEYS);
const value6 = value5();
let done = value6.done;
if (done) {
r3 = value2;
} else {
r5 = value2;
r6 = value6;
while (true) {
value7 = r6.value;
getDimensionsStoreStateForEntryBinding = getDimensionsStoreStateForEntry;
r4 = value == null ? value4 : value.byAppEntry[value7];
dimensionsStoreStateForEntryBinding = getDimensionsStoreStateForEntryBinding(value7, r4);
object[value7] = dimensionsStoreStateForEntryBinding;
if (value == null) {
r4 = value4;
continue;
}
byAppEntry = value.byAppEntry;
property = byAppEntry[value7];
r4 = property;
if (r4 === dimensionsStoreStateForEntryBinding) {
continue;
}
value9 = false;
r5 = value9;
value10 = value5();
done = value10.done;
if (done) {
r3 = r5;
break;
}
r6 = value10;
continue;
}
byAppEntry = value.byAppEntry;
property = byAppEntry[value7];
r4 = property;
if (r4 === dimensionsStoreStateForEntryBinding) {
continue;
}
value9 = false;
r5 = value9;
value10 = value5();
done = value10.done;
if (done) {
r3 = r5;
break;
}
r6 = value10;
continue;
}
return r3 && value != null ? value : {byAppEntry: object};
}
return r3 && value != null ? value : {byAppEntry: object2};
}
function updateDimensionsStoreState() { // fn#16951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:2377, offset: 0x00e5fe1c, size: 45 bytes, params: 1, frame: 12
(require(690) /* metro dependency 690: ReactBatchUpdatesNative */).batchUpdates(_fun16952);
}
function updateDimensionsStoreState() { // fn#16951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:2377, offset: 0x00e5fe1c, size: 45 bytes, params: 1, frame: 12
(ReactBatchUpdatesNativeModule).batchUpdates(_fun16952);
function _fun16952() { // fn#16952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:2438, offset: 0x00e5fe49, size: 27 bytes, params: 1, frame: 11
return env1_3.setState(function(a0) {
return getDimensionsStoreState(a0);
});
}
}
function _fun16952() { // fn#16952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1606:2438, offset: 0x00e5fe49, size: 27 bytes, params: 1, frame: 11
return env1_3.setState(function(a0) {
return getDimensionsStoreState(a0);
});
}
global.__d(_fun16944, 1479, [27, 1480, 1850, 1585, 1851, 1598, 690, 629, 1586,
2]) /* metro module 1479, dependencies: [27, 1480, 1850, 1585, 1851, 1598, 690, 629, 1586, 2] */;
@@ -1,28 +1,32 @@
/* Metro module 8815; source: modules/screen/native/FWOMeasureUtils.tsx; dependencies: [8816, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as NativeFWOMeasureModuleModule from '../../../external/discord_common/js/packages/rtn-codegen/js/NativeFWOMeasureModule.tsx'; /* Metro dependency 8816 */
function _fun68916(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68916, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9000:6, offset: 0x01c617ee, size: 134 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
require(8816) /* metro dependency 8816: NativeFWOMeasureModule */;
NativeFWOMeasureModuleModule;
const env0_0 = global.__measureInWindowForFWO;
object = {code: 'function measureInWindowForFWO_FWOMeasureUtilsTsx1(tag){const{_measureInWindowForFWO}=this.__closure;var _measureInWindowForFW,_measureInWindowForFW2;return(_measureInWindowForFW=(_measureInWindowForFW2=_measureInWindowForFWO)===null||_measureInWindowForFW2===void 0?void 0:_measureInWindowForFW2(tag))!==null&&_measureInWindowForFW!==void 0?_measureInWindowForFW:null;}'};
const value = _fun68917();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/FWOMeasureUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/FWOMeasureUtils.tsx');
exports.measureInWindowForFWO = value;
function _fun68917() { // fn#68917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9000:516, offset: 0x01c61874, size: 59 bytes, params: 1, frame: 4
const measureInWindowForFWO2 = measureInWindowForFWO;
measureInWindowForFWO2.__closure = {_measureInWindowForFWO: __measureInWindowForFWO};
measureInWindowForFWO2.__workletHash = 12993496951221;
measureInWindowForFWO2.__initData = env0_1;
return measureInWindowForFWO2;
function measureInWindowForFWO(a0) { // fn#68918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9000:553, offset: 0x01c618af, size: 46 bytes, params: 2, frame: 13
const value = environment.__proto__;
const __measureInWindowForFWOBinding = __measureInWindowForFWO;
const value2 = null;
const r1 = value2 == __measureInWindowForFWOBinding ? undefined : __measureInWindowForFWO(a0);
return value2 != r1 ? r1 : value2;
}
}
}
function _fun68917() { // fn#68917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9000:516, offset: 0x01c61874, size: 59 bytes, params: 1, frame: 4
const closure = measureInWindowForFWO;
closure.__closure = {_measureInWindowForFWO: __measureInWindowForFWO};
closure.__workletHash = 12993496951221;
closure.__initData = env0_1;
return closure;
}
function measureInWindowForFWO(a0) { // fn#68918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9000:553, offset: 0x01c618af, size: 46 bytes, params: 2, frame: 13
const value = environment.__proto__;
const __measureInWindowForFWOBinding = __measureInWindowForFWO;
const value2 = null;
const r1 = value2 == __measureInWindowForFWOBinding ? undefined : __measureInWindowForFWO(a0);
return value2 != r1 ? r1 : value2;
}
global.__d(_fun68916, 8815, [8816, 2]) /* metro module 8815, dependencies: [8816, 2] */;
@@ -1,32 +1,39 @@
/* Metro module 11336; source: modules/screen/native/drawer/useDrawerWidth.tsx; dependencies: [661, 4012, 4010, 2] */
import UseChatLayout from '../../../chat/native/useChatLayout.tsx'; /* Metro dependency 4010 */
import UseBaseAppContainerDimensions from '../useBaseAppContainerDimensions.tsx'; /* Metro dependency 4012 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseChatLayoutModule from '../../../chat/native/useChatLayout.tsx'; /* Metro dependency 4010 */
import * as UseBaseAppContainerDimensionsModule from '../useBaseAppContainerDimensions.tsx'; /* Metro dependency 4012 */
function _fun86565(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:6, offset: 0x01f97e0d, size: 178 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const DM_WIDTH = (require(661) /* metro dependency 661: Constants */).DM_WIDTH;
const DM_WIDTH = (ConstantsModule).DM_WIDTH;
const value = 260 + DM_WIDTH;
const env0_4 = 300 + DM_WIDTH;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/drawer/useDrawerWidth.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/drawer/useDrawerWidth.tsx');
exports.DRAWER_LEFT_WIDTH_MIN = value;
exports.getDrawerWidth = getDrawerWidth;
exports.useDrawerWidth = useDrawerWidth;
function computeTabletDrawerWidth(a0, a1) { // fn#86566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:131, offset: 0x01f97ebf, size: 50 bytes, params: 3, frame: 15
return a1 ? env0_3 : global.Math.min(env0_4, a0 - 32);
}
function getDrawerWidth() { // fn#86567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:322, offset: 0x01f97ef1, size: 92 bytes, params: 1, frame: 15
const getBaseAppContainerDimensions = UseBaseAppContainerDimensionsModule.getBaseAppContainerDimensions;
const width = Reflect.apply(getBaseAppContainerDimensions, UseBaseAppContainerDimensionsModule, []).width;
const chatLayout = (UseChatLayoutModule).getChatLayout();
return chatLayout.isChatBesideChannelList ? computeTabletDrawerWidth(width, chatLayout.isChatLockedOpen) : width;
}
function useDrawerWidth() { // fn#86568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:534, offset: 0x01f97f4d, size: 80 bytes, params: 1, frame: 15
const width = (UseBaseAppContainerDimensions)().width;
const value2 = (UseChatLayout)();
return value2.isChatBesideChannelList ? computeTabletDrawerWidth(width, value2.isChatLockedOpen) : width;
}
}
function computeTabletDrawerWidth(a0, a1) { // fn#86566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:131, offset: 0x01f97ebf, size: 50 bytes, params: 3, frame: 15
return a1 ? env0_3 : global.Math.min(env0_4, a0 - 32);
}
function getDrawerWidth() { // fn#86567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:322, offset: 0x01f97ef1, size: 92 bytes, params: 1, frame: 15
const useBaseAppContainerDimensionsModule = require(4012) /* metro dependency 4012: useBaseAppContainerDimensions */;
const getBaseAppContainerDimensions = useBaseAppContainerDimensionsModule.getBaseAppContainerDimensions;
const width = Reflect.apply(getBaseAppContainerDimensions, useBaseAppContainerDimensionsModule, []).width;
const chatLayout = (require(4010) /* metro dependency 4010: useChatLayout */).getChatLayout();
return chatLayout.isChatBesideChannelList ? computeTabletDrawerWidth(width, chatLayout.isChatLockedOpen) : width;
}
function useDrawerWidth() { // fn#86568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11522:534, offset: 0x01f97f4d, size: 80 bytes, params: 1, frame: 15
const width = (importDefault(4012) /* metro dependency 4012: useBaseAppContainerDimensions */)().width;
const value2 = (importDefault(4010) /* metro dependency 4010: useChatLayout */)();
return value2.isChatBesideChannelList ? computeTabletDrawerWidth(width, value2.isChatLockedOpen) : width;
}
global.__d(_fun86565, 11336, [661, 4012, 4010, 2]) /* metro module 11336, dependencies: [661, 4012, 4010, 2] */;
@@ -1,35 +1,38 @@
/* Metro module 1850; source: modules/screen/native/readAppEntryWindowMetrics.android.tsx; dependencies: [656, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun20005(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#20005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1977:6, offset: 0x00ebc308, size: 108 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/readAppEntryWindowMetrics.android.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/readAppEntryWindowMetrics.android.tsx');
exports.readWindowSizeForAppEntry = readWindowSizeForAppEntry;
exports.readScreenSizeForAppEntry = readScreenSizeForAppEntry;
}
function readWindowSizeForAppEntry(a0) { // fn#20006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1977:213, offset: 0x00ebc374, size: 68 bytes, params: 2, frame: 13
var r0;
var value;
if ((importDefault(656) /* metro dependency 656: NativeDeviceModule */) == null) {
r0 = undefined;
} else {
value = importDefault(656) /* metro dependency 656: NativeDeviceModule */;
value = value.getWindowSize(a0);
r0 = value;
function readWindowSizeForAppEntry(a0) { // fn#20006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1977:213, offset: 0x00ebc374, size: 68 bytes, params: 2, frame: 13
var r0;
var value;
if ((importDefault(656) /* metro dependency 656: NativeDeviceModule */) == null) {
r0 = undefined;
} else {
value = importDefault(656) /* metro dependency 656: NativeDeviceModule */;
value = value.getWindowSize(a0);
r0 = value;
}
return r0;
}
return r0;
}
function readScreenSizeForAppEntry(a0) { // fn#20007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1977:333, offset: 0x00ebc3b8, size: 70 bytes, params: 2, frame: 13
var r0;
var value;
if ((importDefault(656) /* metro dependency 656: NativeDeviceModule */) == null) {
r0 = undefined;
} else {
value = importDefault(656) /* metro dependency 656: NativeDeviceModule */;
value = value.getScreenSize(a0);
r0 = value;
function readScreenSizeForAppEntry(a0) { // fn#20007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1977:333, offset: 0x00ebc3b8, size: 70 bytes, params: 2, frame: 13
var r0;
var value;
if ((importDefault(656) /* metro dependency 656: NativeDeviceModule */) == null) {
r0 = undefined;
} else {
value = importDefault(656) /* metro dependency 656: NativeDeviceModule */;
value = value.getScreenSize(a0);
r0 = value;
}
return r0;
}
return r0;
}
global.__d(_fun20005, 1850, [656, 2]) /* metro module 1850, dependencies: [656, 2] */;
@@ -1,10 +1,15 @@
/* Metro module 4012; source: modules/screen/native/useBaseAppContainerDimensions.tsx; dependencies: [31, 1478, 1585, 2] */
import UseWindowDimensionsNative from '../useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as UseWindowDimensionsNativeModule from '../useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
function _fun33052(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4170:6, offset: 0x01026916, size: 130 bytes, params: 8, frame: 18
let env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/useBaseAppContainerDimensions.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/useBaseAppContainerDimensions.tsx');
exports.default = function() {
var value2 = importDefault(dependencyMap[1])();
var width = value2.width;
@@ -18,23 +23,28 @@ function _fun33052(global, require, importDefault, importAll, module, exports, d
return right.useMemo(_fun33054, [width, height, left, right]);
};
exports.getBaseAppContainerDimensions = getBaseAppContainerDimensions;
function useBaseAppContainerDimensions() { // fn#33053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4170:205, offset: 0x01026998, size: 125 bytes, params: 1, frame: 17
const {width, height} = (UseWindowDimensionsNative)();
const {left, right} = (UseSafeAreaInsetsNative)();
return right.useMemo(function() {
return {width: width - left - right, height: height};
}, [width, height, left, right]);
function _fun33054() { // fn#33054, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4170:332, offset: 0x01026a15, size: 39 bytes, params: 1, frame: 4
return {width: width - left - right, height: height};
}
}
function getBaseAppContainerDimensions() { // fn#33055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4170:406, offset: 0x01026a3c, size: 97 bytes, params: 1, frame: 14
let value = UseWindowDimensionsNativeModule;
value = value.getWindowDimensions();
const width = value.width;
const height = value.height;
value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
value = value.getSafeAreaInsets();
return {width: width - value.left - value.right, height: height};
}
}
function useBaseAppContainerDimensions() { // fn#33053, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4170:205, offset: 0x01026998, size: 125 bytes, params: 1, frame: 17
const {width, height} = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)();
const {left, right} = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)();
return right.useMemo(function() {
return {width: width - left - right, height: height};
}, [width, height, left, right]);
}
function getBaseAppContainerDimensions() { // fn#33055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4170:406, offset: 0x01026a3c, size: 97 bytes, params: 1, frame: 14
let value = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
value = value.getWindowDimensions();
const width = value.width;
const height = value.height;
value = require(1585) /* metro dependency 1585: useSafeAreaInsetsNative */;
value = value.getSafeAreaInsets();
return {width: width - value.left - value.right, height: height};
}
global.__d(_fun33052, 4012, [31, 1478, 1585, 2]) /* metro module 4012, dependencies: [31, 1478, 1585, 2] */;
+26 -21
View File
@@ -1,30 +1,35 @@
/* Metro module 4584; source: modules/screen/native/useFontScale.tsx; dependencies: [31, 1479, 1481, 2] */
import DimensionsStoreAndroid from './DimensionsStore.android.tsx'; /* Metro dependency 1479 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AppEntryKeyContextModule from '../../window/native/AppEntryKeyContext.tsx'; /* Metro dependency 1481 */
function _fun38885(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#38885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:6, offset: 0x010cf308, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const dimensionsStoreAndroid = importDefault(1479) /* metro dependency 1479: DimensionsStoreAndroid */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/useFontScale.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/useFontScale.tsx');
exports.getFontScale = getFontScale;
exports.useFontScale = useFontScale;
function getFontScale() { // fn#38886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:203, offset: 0x010cf396, size: 48 bytes, params: 1, frame: 10
const value = a0;
const r1 = value !== undefined ? value : 'main';
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
const getState = dimensionsStoreAndroidBinding.getState;
return Reflect.apply(getState, dimensionsStoreAndroidBinding, []).byAppEntry[r1].fontScale;
}
function useFontScale() { // fn#38887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:295, offset: 0x010cf3c6, size: 80 bytes, params: 1, frame: 16
const value2 = (AppEntryKeyContextModule).useAppEntryKey();
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
const useCallback = ReactModule.useCallback;
return dimensionsStoreAndroidBinding(Reflect.apply(useCallback, ReactModule, [_fun38888, [value2]]));
function _fun38888({byAppEntry}) { // fn#38888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:374, offset: 0x010cf416, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].fontScale;
}
}
}
function getFontScale() { // fn#38886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:203, offset: 0x010cf396, size: 48 bytes, params: 1, frame: 10
const value = a0;
const r1 = value !== undefined ? value : 'main';
const getState = DimensionsStoreAndroid.getState;
return Reflect.apply(getState, DimensionsStoreAndroid, []).byAppEntry[r1].fontScale;
}
function useFontScale() { // fn#38887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:295, offset: 0x010cf3c6, size: 80 bytes, params: 1, frame: 16
const value2 = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
const binding = env0_2;
const useCallback = binding.useCallback;
return DimensionsStoreAndroid(Reflect.apply(useCallback, binding, [_fun38888, [value2]]));
}
function _fun38888({byAppEntry}) { // fn#38888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4762:374, offset: 0x010cf416, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].fontScale;
}
global.__d(_fun38885, 4584, [31, 1479, 1481, 2]) /* metro module 4584, dependencies: [31, 1479, 1481, 2] */;
@@ -1,20 +1,24 @@
/* Metro module 7556; source: modules/screen/native/useIsWindowLarge.tsx; dependencies: [4011, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseWindowSizeClassifierModule from './useWindowSizeClassifier.tsx'; /* Metro dependency 4011 */
function _fun60762(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7734:6, offset: 0x0170e260, size: 112 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/useIsWindowLarge.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/useIsWindowLarge.tsx');
exports.default = function() {
return importDefault(dependencyMap[0])() >= require(dependencyMap[0]).WindowSizeClassifier.LARGE;
};
exports.getIsWindowLarge = getIsWindowLarge;
function getIsWindowLarge() { // fn#60764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7734:279, offset: 0x0170e30b, size: 61 bytes, params: 1, frame: 14
let value = UseWindowSizeClassifierModule;
value = value.getWindowSizeClassifier();
const WindowSizeClassifier = (UseWindowSizeClassifierModule).WindowSizeClassifier;
const LARGE = WindowSizeClassifier.LARGE;
return value >= LARGE;
}
}
function getIsWindowLarge() { // fn#60764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7734:279, offset: 0x0170e30b, size: 61 bytes, params: 1, frame: 14
let value = require(4011) /* metro dependency 4011: useWindowSizeClassifier */;
value = value.getWindowSizeClassifier();
const WindowSizeClassifier = (require(4011) /* metro dependency 4011: useWindowSizeClassifier */).WindowSizeClassifier;
const LARGE = WindowSizeClassifier.LARGE;
return value >= LARGE;
}
global.__d(_fun60762, 7556, [4011, 2]) /* metro module 7556, dependencies: [4011, 2] */;
@@ -1,20 +1,24 @@
/* Metro module 9625; source: modules/screen/native/useIsWindowSmall.tsx; dependencies: [4011, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseWindowSizeClassifierModule from './useWindowSizeClassifier.tsx'; /* Metro dependency 4011 */
function _fun75511(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75511, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9811:6, offset: 0x01daf3ab, size: 116 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/useIsWindowSmall.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/useIsWindowSmall.tsx');
exports.default = getIsWindowSmall;
exports.useIsWindowSmall = function() {
return importDefault(dependencyMap[0])() <= require(dependencyMap[0]).WindowSizeClassifier.SMALL;
};
function getIsWindowSmall() { // fn#75512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9811:178, offset: 0x01daf41f, size: 61 bytes, params: 1, frame: 14
let value = UseWindowSizeClassifierModule;
value = value.getWindowSizeClassifier();
const WindowSizeClassifier = (UseWindowSizeClassifierModule).WindowSizeClassifier;
const SMALL = WindowSizeClassifier.SMALL;
return value <= SMALL;
}
}
function getIsWindowSmall() { // fn#75512, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9811:178, offset: 0x01daf41f, size: 61 bytes, params: 1, frame: 14
let value = require(4011) /* metro dependency 4011: useWindowSizeClassifier */;
value = value.getWindowSizeClassifier();
const WindowSizeClassifier = (require(4011) /* metro dependency 4011: useWindowSizeClassifier */).WindowSizeClassifier;
const SMALL = WindowSizeClassifier.SMALL;
return value <= SMALL;
}
global.__d(_fun75511, 9625, [4011, 2]) /* metro module 9625, dependencies: [4011, 2] */;
@@ -1,7 +1,9 @@
/* Metro module 8518; source: modules/screen/native/useScaledTextLineHeight.android.tsx; dependencies: [8519, 4573, 4584, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun67514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#67514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8703:6, offset: 0x01c27407, size: 167 bytes, params: 8, frame: 21
const env0_0 = require;
const closure = scaleLineHeight;
const scaleLineHeight2 = scaleLineHeight;
const closure2 = function(a0, a1) {
var scaleLineHeightBinding = scaleLineHeight;
var TextStyleSheet = require(dependencyMap[1]).TextStyleSheet;
@@ -11,26 +13,27 @@ function _fun67514(global, require, importDefault, importAll, module, exports, d
Object.defineProperty(exports, '__esModule', {value: true});
const Map = global.Map;
const map = new Map();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/useScaledTextLineHeight.android.tsx');
exports.scaleLineHeight = closure;
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/useScaledTextLineHeight.android.tsx');
exports.scaleLineHeight = scaleLineHeight2;
exports.scaleTextLineHeight = closure2;
exports.useScaledTextLineHeight = function(a0) {
require(dependencyMap[2]).useFontScale();
return scaleTextLineHeight(a0);
};
}
function scaleLineHeight(a0) { // fn#67515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8703:106, offset: 0x01c274ae, size: 80 bytes, params: 2, frame: 15
var r0;
var scaledHeightForText;
const value2 = env0_3.get(a0);
if (value2 != null) {
r0 = value2;
} else {
scaledHeightForText = (importDefault(8519) /* metro dependency 8519: NativeFontModule */).getScaledHeightForText(a0);
env0_3.set(a0, scaledHeightForText);
r0 = scaledHeightForText;
function scaleLineHeight(a0) { // fn#67515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8703:106, offset: 0x01c274ae, size: 80 bytes, params: 2, frame: 15
var r0;
var scaledHeightForText;
const value2 = env0_3.get(a0);
if (value2 != null) {
r0 = value2;
} else {
scaledHeightForText = (importDefault(8519) /* metro dependency 8519: NativeFontModule */).getScaledHeightForText(a0);
env0_3.set(a0, scaledHeightForText);
r0 = scaledHeightForText;
}
return r0;
}
return r0;
}
global.__d(_fun67514, 8518, [8519, 4573, 4584, 2]) /* metro module 8518, dependencies: [8519, 4573, 4584, 2] */;
@@ -1,33 +1,35 @@
/* Metro module 4011; source: modules/screen/native/useWindowSizeClassifier.tsx; dependencies: [4012, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseBaseAppContainerDimensionsModule from './useBaseAppContainerDimensions.tsx'; /* Metro dependency 4012 */
function _fun33048(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33048, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4169:6, offset: 0x01026796, size: 197 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {SMALL: 0};
object2[0] = 'SMALL';
object2.NORMAL = 1;
object2[1] = 'NORMAL';
object2.LARGE = 2;
object2[2] = 'LARGE';
object2.XLARGE = 3;
object2[3] = 'XLARGE';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/native/useWindowSizeClassifier.tsx');
object = {SMALL: 0};
object[0] = 'SMALL';
object.NORMAL = 1;
object[1] = 'NORMAL';
object.LARGE = 2;
object[2] = 'LARGE';
object.XLARGE = 3;
object[3] = 'XLARGE';
(FileImportTrackerModule).fileFinishedImporting('modules/screen/native/useWindowSizeClassifier.tsx');
exports.default = function() {
return calculateFromWidth(importDefault(dependencyMap[0])().width);
};
exports.WindowSizeClassifier = object2;
exports.WindowSizeClassifier = object;
exports.getWindowSizeClassifier = getWindowSizeClassifier;
function calculateFromWidth(a0) { // fn#33049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4169:212, offset: 0x0102685b, size: 93 bytes, params: 2, frame: 2
return a0 <= 360 ? env0_3.SMALL : a0 <= 600 ? env0_3.NORMAL : a0 <= 840 ? env0_3.LARGE : env0_3.XLARGE;
}
function getWindowSizeClassifier() { // fn#33051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4169:528, offset: 0x010268e4, size: 50 bytes, params: 1, frame: 12
const calculateFromWidthBinding = calculateFromWidth;
const getBaseAppContainerDimensions = UseBaseAppContainerDimensionsModule.getBaseAppContainerDimensions;
return calculateFromWidthBinding(Reflect.apply(getBaseAppContainerDimensions, UseBaseAppContainerDimensionsModule, []).width);
}
}
function calculateFromWidth(a0) { // fn#33049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4169:212, offset: 0x0102685b, size: 93 bytes, params: 2, frame: 2
return a0 <= 360 ? env0_3.SMALL : a0 <= 600 ? env0_3.NORMAL : a0 <= 840 ? env0_3.LARGE : env0_3.XLARGE;
}
function getWindowSizeClassifier() { // fn#33051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4169:528, offset: 0x010268e4, size: 50 bytes, params: 1, frame: 12
const calculateFromWidthBinding = calculateFromWidth;
const value = require(4012) /* metro dependency 4012: useBaseAppContainerDimensions */;
const getBaseAppContainerDimensions = value.getBaseAppContainerDimensions;
return calculateFromWidthBinding(Reflect.apply(getBaseAppContainerDimensions, value, []).width);
}
global.__d(_fun33048, 4011, [4012, 2]) /* metro module 4011, dependencies: [4012, 2] */;
@@ -1,21 +1,24 @@
/* Metro module 11534; source: modules/screen/subscribeToWindowDimensions.native.tsx; dependencies: [1479, 2] */
import DimensionsStoreAndroid from './native/DimensionsStore.android.tsx'; /* Metro dependency 1479 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun88352(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#88352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11720:6, offset: 0x01fe0325, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const dimensionsStoreAndroid = importDefault(1479) /* metro dependency 1479: DimensionsStoreAndroid */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/subscribeToWindowDimensions.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/subscribeToWindowDimensions.native.tsx');
exports.default = subscribeToWindowDimensions;
function subscribeToWindowDimensions(a0) { // fn#88353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11720:203, offset: 0x01fe038f, size: 53 bytes, params: 2, frame: 11
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 'main';
return DimensionsStoreAndroid.subscribe(_fun88354);
function _fun88354({byAppEntry}) { // fn#88354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11720:272, offset: 0x01fe03c4, size: 46 bytes, params: 2, frame: 13
const property = byAppEntry[env0_1];
env0_0(property.windowDimensions, property.windowDimensionsIgnoringKeyboard);
}
}
}
function subscribeToWindowDimensions(a0) { // fn#88353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11720:203, offset: 0x01fe038f, size: 53 bytes, params: 2, frame: 11
const value = a1;
const env0_0 = a0;
const env0_1 = value !== undefined ? value : 'main';
return DimensionsStoreAndroid.subscribe(_fun88354);
}
function _fun88354({byAppEntry}) { // fn#88354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11720:272, offset: 0x01fe03c4, size: 46 bytes, params: 2, frame: 13
const property = byAppEntry[env0_1];
env0_0(property.windowDimensions, property.windowDimensionsIgnoringKeyboard);
}
global.__d(_fun88352, 11534, [1479, 2]) /* metro module 11534, dependencies: [1479, 2] */;
@@ -1,30 +1,35 @@
/* Metro module 8750; source: modules/screen/useIsScreenLandscape.native.tsx; dependencies: [31, 1479, 1481, 2] */
import DimensionsStoreAndroid from './native/DimensionsStore.android.tsx'; /* Metro dependency 1479 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as AppEntryKeyContextModule from '../window/native/AppEntryKeyContext.tsx'; /* Metro dependency 1481 */
function _fun68520(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:6, offset: 0x01c5257b, size: 146 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const dimensionsStoreAndroid = importDefault(1479) /* metro dependency 1479: DimensionsStoreAndroid */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/useIsScreenLandscape.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/useIsScreenLandscape.native.tsx');
exports.getIsScreenLandscape = getIsScreenLandscape;
exports.useIsScreenLandscape = useIsScreenLandscape;
function getIsScreenLandscape() { // fn#68521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:219, offset: 0x01c5260d, size: 48 bytes, params: 1, frame: 10
const value = a0;
const r1 = value !== undefined ? value : 'main';
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
const getState = dimensionsStoreAndroidBinding.getState;
return Reflect.apply(getState, dimensionsStoreAndroidBinding, []).byAppEntry[r1].screenIsLandscape;
}
function useIsScreenLandscape() { // fn#68522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:335, offset: 0x01c5263d, size: 82 bytes, params: 1, frame: 16
const value2 = (AppEntryKeyContextModule).useAppEntryKey();
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
const useCallback = ReactModule.useCallback;
return dimensionsStoreAndroidBinding(Reflect.apply(useCallback, ReactModule, [_fun68523, [value2]]));
function _fun68523({byAppEntry}) { // fn#68523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:422, offset: 0x01c5268f, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].screenIsLandscape;
}
}
}
function getIsScreenLandscape() { // fn#68521, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:219, offset: 0x01c5260d, size: 48 bytes, params: 1, frame: 10
const value = a0;
const r1 = value !== undefined ? value : 'main';
const getState = DimensionsStoreAndroid.getState;
return Reflect.apply(getState, DimensionsStoreAndroid, []).byAppEntry[r1].screenIsLandscape;
}
function useIsScreenLandscape() { // fn#68522, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:335, offset: 0x01c5263d, size: 82 bytes, params: 1, frame: 16
const value2 = (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
const binding = env0_2;
const useCallback = binding.useCallback;
return DimensionsStoreAndroid(Reflect.apply(useCallback, binding, [_fun68523, [value2]]));
}
function _fun68523({byAppEntry}) { // fn#68523, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8935:422, offset: 0x01c5268f, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].screenIsLandscape;
}
global.__d(_fun68520, 8750, [31, 1479, 1481, 2]) /* metro module 8750, dependencies: [31, 1479, 1481, 2] */;
@@ -1,64 +1,67 @@
/* Metro module 1478; source: modules/screen/useWindowDimensions.native.tsx; dependencies: [31, 1479, 1481, 2] */
import DimensionsStoreAndroid from './native/DimensionsStore.android.tsx'; /* Metro dependency 1479 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun16936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:6, offset: 0x00e5f6d7, size: 155 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const dimensionsStoreAndroid = importDefault(1479) /* metro dependency 1479: DimensionsStoreAndroid */;
object = {ignoreKeyboard: false};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/useWindowDimensions.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/useWindowDimensions.native.tsx');
exports.default = useWindowDimensions_16937;
exports.getWindowDimensions = getWindowDimensions;
function useWindowDimensions_16937() { // fn#16937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:227, offset: 0x00e5f772, size: 133 bytes, params: 1, frame: 17
const value = a0;
const r0 = value !== undefined ? value : env0_4;
let ignoreKeyboard = r0.ignoreKeyboard;
ignoreKeyboard = !(ignoreKeyboard === undefined) && ignoreKeyboard;
const r6 = r0.appEntryKey ?? (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
const useMemo = ReactModule.useMemo;
return DimensionsStoreAndroid(Reflect.apply(useMemo, ReactModule, [_fun16938, [ignoreKeyboard, r6]]));
function _fun16938() { // fn#16938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:353, offset: 0x00e5f7f7, size: 48 bytes, params: 1, frame: 13
return ignoreKeyboard ? ((a0) => {
var env0_0 = a0;
return _fun16940;
})(env0_1) : ((a0) => {
var env0_0 = a0;
return _fun16942;
})(env0_1);
function _fun16939(a0) { // fn#16939, offset: 0x00e5f827, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun16940;
function _fun16940({byAppEntry}) { // fn#16940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:363, offset: 0x00e5f837, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].windowDimensionsIgnoringKeyboard;
}
}
function _fun16941(a0) { // fn#16941, offset: 0x00e5f853, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun16942;
function _fun16942({byAppEntry}) { // fn#16942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:423, offset: 0x00e5f863, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].windowDimensions;
}
}
}
}
function getWindowDimensions() { // fn#16943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:506, offset: 0x00e5f87f, size: 88 bytes, params: 1, frame: 11
const value = a0;
const r2 = value !== undefined ? value : env0_4;
let ignoreKeyboard = r2.ignoreKeyboard;
ignoreKeyboard = !(ignoreKeyboard === undefined) && ignoreKeyboard;
let appEntryKey = r2.appEntryKey;
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
const dimensionsStoreAndroidBinding = DimensionsStoreAndroid;
const getState = dimensionsStoreAndroidBinding.getState;
const property = Reflect.apply(getState, dimensionsStoreAndroidBinding, []).byAppEntry[appEntryKey];
return ignoreKeyboard ? property.windowDimensionsIgnoringKeyboard : property.windowDimensions;
}
}
function useWindowDimensions_16937() { // fn#16937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:227, offset: 0x00e5f772, size: 133 bytes, params: 1, frame: 17
const value = a0;
const r0 = value !== undefined ? value : env0_4;
let ignoreKeyboard = r0.ignoreKeyboard;
ignoreKeyboard = !(ignoreKeyboard === undefined) && ignoreKeyboard;
const r6 = r0.appEntryKey ?? (require(1481) /* metro dependency 1481: AppEntryKeyContext */).useAppEntryKey();
const binding = env0_2;
const useMemo = binding.useMemo;
return DimensionsStoreAndroid(Reflect.apply(useMemo, binding, [_fun16938, [ignoreKeyboard, r6]]));
}
function getWindowDimensions() { // fn#16943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:506, offset: 0x00e5f87f, size: 88 bytes, params: 1, frame: 11
const value = a0;
const r2 = value !== undefined ? value : env0_4;
let ignoreKeyboard = r2.ignoreKeyboard;
ignoreKeyboard = !(ignoreKeyboard === undefined) && ignoreKeyboard;
let appEntryKey = r2.appEntryKey;
appEntryKey = appEntryKey === undefined ? 'main' : appEntryKey;
const getState = DimensionsStoreAndroid.getState;
const property = Reflect.apply(getState, DimensionsStoreAndroid, []).byAppEntry[appEntryKey];
return ignoreKeyboard ? property.windowDimensionsIgnoringKeyboard : property.windowDimensions;
}
function _fun16938() { // fn#16938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:353, offset: 0x00e5f7f7, size: 48 bytes, params: 1, frame: 13
return ignoreKeyboard ? ((a0) => {
var env0_0 = a0;
return _fun16940;
})(env0_1) : ((a0) => {
var env0_0 = a0;
return _fun16942;
})(env0_1);
}
function _fun16939(a0) { // fn#16939, offset: 0x00e5f827, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun16940;
}
function _fun16941(a0) { // fn#16941, offset: 0x00e5f853, size: 16 bytes, params: 2, frame: 2
const env0_0 = a0;
return _fun16942;
}
function _fun16940({byAppEntry}) { // fn#16940, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:363, offset: 0x00e5f837, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].windowDimensionsIgnoringKeyboard;
}
function _fun16942({byAppEntry}) { // fn#16942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1605:423, offset: 0x00e5f863, size: 28 bytes, params: 2, frame: 2
return byAppEntry[env0_0].windowDimensions;
}
global.__d(_fun16936, 1478, [31, 1479, 1481, 2]) /* metro module 1478, dependencies: [31, 1479, 1481, 2] */;
@@ -1,64 +1,69 @@
/* Metro module 14283; source: modules/screen/useWindowDimensionsSharedValue.native.tsx; dependencies: [4017, 1478, 11534, 11282, 2] */
import UpdateSharedValueIfChangedNative from '../reanimated/utils/updateSharedValueIfChanged.native.tsx'; /* Metro dependency 11282 */
import SubscribeToWindowDimensionsNative from './subscribeToWindowDimensions.native.tsx'; /* Metro dependency 11534 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as UseWindowDimensionsNativeModule from './useWindowDimensions.native.tsx'; /* Metro dependency 1478 */
function _fun108028(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#108028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:6, offset: 0x023127e6, size: 273 bytes, params: 8, frame: 24
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
let makeMutable = value.makeMutable;
object2 = {};
const useWindowDimensionsNativeModule = require(1478) /* metro dependency 1478: useWindowDimensionsNative */;
let getWindowDimensions = useWindowDimensionsNativeModule.getWindowDimensions;
copyDataProperties(object2, Reflect.apply(getWindowDimensions, useWindowDimensionsNativeModule, []), undefined);
const env0_2 = Reflect.apply(makeMutable, value, [object2]);
object = {};
let getWindowDimensions = UseWindowDimensionsNativeModule.getWindowDimensions;
copyDataProperties(object, Reflect.apply(getWindowDimensions, UseWindowDimensionsNativeModule, []), undefined);
const env0_2 = Reflect.apply(makeMutable, value, [object]);
value = require(4017) /* metro dependency 4017: ReanimatedRexport */;
makeMutable = value.makeMutable;
object2 = {};
const value3 = useWindowDimensionsNativeModule;
getWindowDimensions = value3.getWindowDimensions;
copyDataProperties(object2, Reflect.apply(getWindowDimensions, value3, [{ignoreKeyboard: true}]), undefined);
const env0_3 = Reflect.apply(makeMutable, value, [object2]);
(importDefault(11534) /* metro dependency 11534: subscribeToWindowDimensionsNative */)(_fun108029);
object2 = {code: 'function getWindowDimensionsWorklet_useWindowDimensionsSharedValueNativeTsx1(params=undefined){const{windowDimensionsSharedValueIgnoringKeyboard,windowDimensionsSharedValue}=this.__closure;return(params===null||params===void 0?void 0:params.ignoreKeyboard)===true?windowDimensionsSharedValueIgnoringKeyboard.get():windowDimensionsSharedValue.get();}'};
object = {};
getWindowDimensions = UseWindowDimensionsNativeModule.getWindowDimensions;
copyDataProperties(object, Reflect.apply(getWindowDimensions, UseWindowDimensionsNativeModule, [{ignoreKeyboard: true}]), undefined);
const env0_3 = Reflect.apply(makeMutable, value, [object]);
(SubscribeToWindowDimensionsNative)(_fun108029);
object = {code: 'function getWindowDimensionsWorklet_useWindowDimensionsSharedValueNativeTsx1(params=undefined){const{windowDimensionsSharedValueIgnoringKeyboard,windowDimensionsSharedValue}=this.__closure;return(params===null||params===void 0?void 0:params.ignoreKeyboard)===true?windowDimensionsSharedValueIgnoringKeyboard.get():windowDimensionsSharedValue.get();}'};
value = _fun108030();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/screen/useWindowDimensionsSharedValue.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/screen/useWindowDimensionsSharedValue.native.tsx');
exports.default = useWindowDimensionsSharedValue;
exports.getWindowDimensionsWorklet = value;
}
function _fun108029(a0, a1) { // fn#108029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:240, offset: 0x023128f7, size: 62 bytes, params: 3, frame: 17
(importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */)(env0_2, a0);
(importDefault(11282) /* metro dependency 11282: updateSharedValueIfChangedNative */)(env0_3, a1);
}
function _fun108030() { // fn#108030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:644, offset: 0x02312935, size: 68 bytes, params: 1, frame: 4
const closure = getWindowDimensionsWorklet;
closure.__closure = {windowDimensionsSharedValueIgnoringKeyboard: env0_3, windowDimensionsSharedValue: env0_2};
closure.__workletHash = 17271034964949;
closure.__initData = env0_4;
return closure;
}
function useWindowDimensionsSharedValue() { // fn#108032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:1114, offset: 0x023129bf, size: 52 bytes, params: 1, frame: 3
const value = a0;
const value2 = undefined;
let r0 = value !== value2 ? value : value2;
r0 = (r0 == null ? value2 : r0.ignoreKeyboard) === true ? env0_3 : env0_2;
return r0;
}
function getWindowDimensionsWorklet() { // fn#108031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:686, offset: 0x02312979, size: 70 bytes, params: 1, frame: 10
let value = a0;
const value2 = undefined;
let r0 = value !== value2 ? value : value2;
if ((r0 == null ? value2 : r0.ignoreKeyboard) === true) {
value = environment.__proto__;
value = env1_3.get();
r0 = value;
} else {
value = environment.__proto__;
value = env1_2.get();
r0 = value;
function _fun108029(a0, a1) { // fn#108029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:240, offset: 0x023128f7, size: 62 bytes, params: 3, frame: 17
(UpdateSharedValueIfChangedNative)(env0_2, a0);
(UpdateSharedValueIfChangedNative)(env0_3, a1);
}
return r0;
function _fun108030() { // fn#108030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:644, offset: 0x02312935, size: 68 bytes, params: 1, frame: 4
const getWindowDimensionsWorklet2 = getWindowDimensionsWorklet;
getWindowDimensionsWorklet2.__closure = {windowDimensionsSharedValueIgnoringKeyboard: env0_3,
windowDimensionsSharedValue: env0_2};
getWindowDimensionsWorklet2.__workletHash = 17271034964949;
getWindowDimensionsWorklet2.__initData = env0_4;
return getWindowDimensionsWorklet2;
function getWindowDimensionsWorklet() { // fn#108031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:686, offset: 0x02312979, size: 70 bytes, params: 1, frame: 10
let value = a0;
const value2 = undefined;
let r0 = value !== value2 ? value : value2;
if ((r0 == null ? value2 : r0.ignoreKeyboard) === true) {
value = environment.__proto__;
value = env1_3.get();
r0 = value;
} else {
value = environment.__proto__;
value = env1_2.get();
r0 = value;
}
return r0;
}
}
function useWindowDimensionsSharedValue() { // fn#108032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14480:1114, offset: 0x023129bf, size: 52 bytes, params: 1, frame: 3
const value = a0;
const value2 = undefined;
let r0 = value !== value2 ? value : value2;
r0 = (r0 == null ? value2 : r0.ignoreKeyboard) === true ? env0_3 : env0_2;
return r0;
}
}
global.__d(_fun108028, 14283, [4017, 1478, 11534, 11282,
2]) /* metro module 14283, dependencies: [4017, 1478, 11534, 11282, 2] */;