110 lines
5.2 KiB
TypeScript
110 lines
5.2 KiB
TypeScript
/* Metro module 12735; source: design/void/Status/native/getStatusContainerStyle.tsx; dependencies: [1306, 2] */
|
|
function _fun97462(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12925:6, offset: 0x021823b2, size: 419 bytes, params: 8, frame: 22
|
|
var object2;
|
|
const closure = createContainerStyle;
|
|
const closure2 = function(a0) {
|
|
var value2 = a0 * VR_STATUS_SCALE;
|
|
var value3 = value2 + 2 * STATUS_PADDING;
|
|
return {width: value2 * VR_STATUS_WIDTH_RATIO + 2 * STATUS_PADDING, height: value3,
|
|
borderRadius: value3 / 2, paddingLeft: STATUS_PADDING, paddingRight: STATUS_PADDING, paddingTop: STATUS_PADDING, paddingBottom: STATUS_PADDING};
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const statusConstantsModule = require(1306) /* metro dependency 1306: StatusConstants */;
|
|
const env0_0 = statusConstantsModule.STATUS_PADDING;
|
|
const StatusSizes = statusConstantsModule.StatusSizes;
|
|
const env0_2 = statusConstantsModule.VR_STATUS_SCALE;
|
|
const env0_3 = statusConstantsModule.VR_STATUS_WIDTH_RATIO;
|
|
object2 = {};
|
|
let SMALL = StatusSizes.SMALL;
|
|
object2.containerSmall = closure(SMALL, false);
|
|
let REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
|
|
object2.containerRefreshMedium = closure(REFRESH_MEDIUM_10, false);
|
|
let MEDIUM = StatusSizes.MEDIUM;
|
|
object2.containerMedium = closure(MEDIUM, false);
|
|
let LARGE = StatusSizes.LARGE;
|
|
object2.containerLarge = closure(LARGE, false);
|
|
LARGE = StatusSizes.LARGE;
|
|
object2.containerXLarge = closure(LARGE, false);
|
|
SMALL = StatusSizes.SMALL;
|
|
object2.containerMobileOnlineSmall = closure(SMALL, true);
|
|
REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
|
|
object2.containerMobileOnlineRefreshMedium = closure(REFRESH_MEDIUM_10, true);
|
|
MEDIUM = StatusSizes.MEDIUM;
|
|
object2.containerMobileOnlineMedium = closure(MEDIUM, true);
|
|
LARGE = StatusSizes.LARGE;
|
|
object2.containerMobileOnlineLarge = closure(LARGE, true);
|
|
LARGE = StatusSizes.LARGE;
|
|
object2.containerMobileOnlineXLarge = closure(LARGE, true);
|
|
SMALL = StatusSizes.SMALL;
|
|
object2.containerVRSmall = closure2(SMALL);
|
|
REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
|
|
object2.containerVRRefreshMedium = closure2(REFRESH_MEDIUM_10);
|
|
MEDIUM = StatusSizes.MEDIUM;
|
|
object2.containerVRMedium = closure2(MEDIUM);
|
|
LARGE = StatusSizes.LARGE;
|
|
object2.containerVRLarge = closure2(LARGE);
|
|
LARGE = StatusSizes.LARGE;
|
|
object2.containerVRXLarge = closure2(LARGE);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Status/native/getStatusContainerStyle.tsx');
|
|
exports.default = getStatusContainerStyle;
|
|
}
|
|
|
|
function createContainerStyle(a0, a1) { // fn#97463, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12925:1045, offset: 0x02182555, size: 139 bytes, params: 3, frame: 8
|
|
const value2 = a0 + 2 * STATUS_PADDING;
|
|
const value3 = 0;
|
|
return {width: value2,
|
|
height: value2 + (a1 ? value2 / 2.5 : value3), borderRadius: a1 ? value2 / 4 : value2 / 2, paddingLeft: STATUS_PADDING, paddingRight: STATUS_PADDING, paddingTop: STATUS_PADDING + (a1 ? 1 : value3), paddingBottom: STATUS_PADDING + (a1 ? 1 : value3)};
|
|
}
|
|
|
|
function getStatusContainerStyle(a0, a1) { // fn#97465, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12925:1475, offset: 0x02182649, size: 360 bytes, params: 3, frame: 17
|
|
var binding;
|
|
const value = a2;
|
|
const r5 = value !== undefined ? value : false;
|
|
const SMALL = StatusSizes.SMALL;
|
|
if (r5) {
|
|
if (SMALL === a0) {
|
|
return env0_4.containerVRSmall;
|
|
}
|
|
if (StatusSizes.REFRESH_MEDIUM_10 === a0) {
|
|
return env0_4.containerVRRefreshMedium;
|
|
}
|
|
if (StatusSizes.MEDIUM === a0) {
|
|
return env0_4.containerVRMedium;
|
|
}
|
|
if (StatusSizes.LARGE === a0) {
|
|
return env0_4.containerVRLarge;
|
|
}
|
|
if (StatusSizes.XLARGE === a0) {
|
|
return env0_4.containerVRXLarge;
|
|
}
|
|
return createVRContainerStyle(a0);
|
|
}
|
|
if (SMALL === a0) {
|
|
binding = env0_4;
|
|
return a1 ? binding.containerMobileOnlineSmall : binding.containerSmall;
|
|
}
|
|
const REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
|
|
if (REFRESH_MEDIUM_10 === a0) {
|
|
binding = env0_4;
|
|
return a1 ? binding.containerMobileOnlineRefreshMedium : binding.containerRefreshMedium;
|
|
}
|
|
const MEDIUM = StatusSizes.MEDIUM;
|
|
if (MEDIUM === a0) {
|
|
binding = env0_4;
|
|
return a1 ? binding.containerMobileOnlineMedium : binding.containerMedium;
|
|
}
|
|
const LARGE = StatusSizes.LARGE;
|
|
if (LARGE === a0) {
|
|
binding = env0_4;
|
|
return a1 ? binding.containerMobileOnlineLarge : binding.containerLarge;
|
|
}
|
|
const XLARGE = StatusSizes.XLARGE;
|
|
if (XLARGE === a0) {
|
|
binding = env0_4;
|
|
return a1 ? binding.containerMobileOnlineXLarge : binding.containerXLarge;
|
|
}
|
|
return createContainerStyle(a0, a1);
|
|
}
|
|
|