26 lines
2.0 KiB
TypeScript
26 lines
2.0 KiB
TypeScript
/* Metro module 7740; source: modules/video_calls/native/useActionBarHeight.tsx; dependencies: [4259, 661, 6276, 7741, 7856, 10659, 566, 2] */
|
|
function _fun61960(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7918:6, offset: 0x01b4ff51, size: 230 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const mediaEngineStore = importDefault(4259) /* metro dependency 4259: MediaEngineStore */;
|
|
const env0_4 = (require(661) /* metro dependency 661: Constants */).InputModes;
|
|
const env0_5 = (require(6276) /* metro dependency 6276: ActionSheetConstants */).ACTION_SHEET_HANDLE_SPACING;
|
|
const SMALL_ACTION_BUTTON_DIMENSIONS = (require(7741) /* metro dependency 7741: CallBarAction */).SMALL_ACTION_BUTTON_DIMENSIONS;
|
|
const value = 2 * SMALL_ACTION_BUTTON_DIMENSIONS.buttonRadius + 16 + 16;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/video_calls/native/useActionBarHeight.tsx');
|
|
exports.default = _default_61961;
|
|
exports.CALL_ACTION_BAR_HEIGHT = 88;
|
|
exports.FIVE_BUTTON_CONTAINER_PADDING_TOP = 16;
|
|
exports.FIVE_BUTTON_CONTAINER_PADDING_BOTTOM = 16;
|
|
exports.FIVE_BUTTON_LAYOUT_ACTION_BAR_HEIGHT = value;
|
|
}
|
|
|
|
function _default_61961(a0) { // fn#61961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7918:236, offset: 0x01b50037, size: 139 bytes, params: 2, frame: 17
|
|
return ((require(7856) /* metro dependency 7856: useIsFiveButtonLayout */).useIsFiveButtonLayout(a0) ? env0_6 : 88) + ACTION_SHEET_HANDLE_SPACING + ((require(566) /* metro dependency 566: flux */).useStateFromStores([MediaEngineStore],
|
|
function() {
|
|
return MediaEngineStore.getMode() === InputModes.PUSH_TO_TALK;
|
|
}) && (importDefault(10659) /* metro dependency 10659: useCanSpeakInChannel */)(a0) ? 56 : 0);
|
|
}
|
|
|