Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,237 @@
/* Metro module 1479; source: modules/screen/native/DimensionsStore.android.tsx; dependencies: [27, 1480, 1850, 1585, 1851, 1598, 690, 629, 1586, 2] */
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) {
var r0;
var r1;
var r2;
var value3;
var length;
var value5;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
length = a0.length;
r1 = length;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
value = (0, global.Array)(r1);
var value4 = 0;
if (value4 < r1) {
r2 = value4;
reducibleLoop5: while (true) {
value[r2] = a0[r2];
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value5 < r1) {
r2 = value5;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value;
};
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 */;
let value3 = (require(629) /* metro dependency 629 */).create(function() {
return getDimensionsStoreState(undefined);
});
(importDefault(1586) /* metro dependency 1586: SafeAreaStoreNative */).subscribe(function() {
updateDimensionsStoreState();
});
subscribeToKeyboardUIStore(function() {
updateDimensionsStoreState();
});
Dimensions.addEventListener('change', function() {
updateDimensionsStoreState();
});
(require(2) /* metro dependency 2 */).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)) {
if (r1) {
}
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') {
value = _arrayLikeToArray_16947(a0, value);
r6 = value;
} else {
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;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
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 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;
}
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 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;
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: 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 _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);
});
}
@@ -0,0 +1,28 @@
/* Metro module 8815; source: modules/screen/native/FWOMeasureUtils.tsx; dependencies: [8816, 2] */
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 */;
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');
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 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;
}
@@ -0,0 +1,32 @@
/* Metro module 11336; source: modules/screen/native/drawer/useDrawerWidth.tsx; dependencies: [661, 4012, 4010, 2] */
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 value = 260 + DM_WIDTH;
const env0_4 = 300 + DM_WIDTH;
(require(2) /* metro dependency 2 */).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 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;
}
@@ -0,0 +1,35 @@
/* Metro module 1850; source: modules/screen/native/readAppEntryWindowMetrics.android.tsx; dependencies: [656, 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');
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;
}
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;
}
return r0;
}
@@ -0,0 +1,40 @@
/* Metro module 4012; source: modules/screen/native/useBaseAppContainerDimensions.tsx; dependencies: [31, 1478, 1585, 2] */
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');
exports.default = function() {
var value2 = importDefault(dependencyMap[1])();
var width = value2.width;
var env0_0 = width;
var height = value2.height;
var env0_1 = height;
var value3 = importDefault(dependencyMap[2])();
var left = value3.left;
var env0_2 = left;
var right = value3.right;
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} = (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};
}
@@ -0,0 +1,30 @@
/* Metro module 4584; source: modules/screen/native/useFontScale.tsx; dependencies: [31, 1479, 1481, 2] */
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');
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 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;
}
@@ -0,0 +1,20 @@
/* Metro module 7556; source: modules/screen/native/useIsWindowLarge.tsx; dependencies: [4011, 2] */
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');
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 = 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;
}
@@ -0,0 +1,20 @@
/* Metro module 9625; source: modules/screen/native/useIsWindowSmall.tsx; dependencies: [4011, 2] */
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');
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 = 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;
}
@@ -0,0 +1,36 @@
/* Metro module 8518; source: modules/screen/native/useScaledTextLineHeight.android.tsx; dependencies: [8519, 4573, 4584, 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 closure2 = function(a0, a1) {
var scaleLineHeightBinding = scaleLineHeight;
var TextStyleSheet = require(dependencyMap[1]).TextStyleSheet;
return scaleLineHeightBinding(TextStyleSheet[a0].lineHeight);
};
const Object = global.Object;
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;
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;
}
return r0;
}
@@ -0,0 +1,33 @@
/* Metro module 4011; source: modules/screen/native/useWindowSizeClassifier.tsx; dependencies: [4012, 2] */
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');
exports.default = function() {
return calculateFromWidth(importDefault(dependencyMap[0])().width);
};
exports.WindowSizeClassifier = object2;
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 value = require(4012) /* metro dependency 4012: useBaseAppContainerDimensions */;
const getBaseAppContainerDimensions = value.getBaseAppContainerDimensions;
return calculateFromWidthBinding(Reflect.apply(getBaseAppContainerDimensions, value, []).width);
}