/* 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; }