61 lines
2.8 KiB
TypeScript
61 lines
2.8 KiB
TypeScript
/* Metro module 12734; source: design/void/Status/native/StatusUtils.tsx; dependencies: [1306, 12735, 2] */
|
|
function _fun97457(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:6, offset: 0x02182206, size: 169 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const statusConstantsModule = require(1306) /* metro dependency 1306: StatusConstants */;
|
|
const env0_2 = statusConstantsModule.STATUS_PADDING;
|
|
const env0_3 = statusConstantsModule.StatusSizes;
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('design/void/Status/native/StatusUtils.tsx');
|
|
exports.getAnimatedTypingTranslateX = function(a0) {
|
|
return a0 / 2 - 6;
|
|
};
|
|
exports.getMobileStatusContainerRect = getMobileStatusContainerRect;
|
|
exports.getVRStatusContainerRect = getVRStatusContainerRect;
|
|
exports.getStatusTypingDimensions = getStatusTypingDimensions;
|
|
}
|
|
|
|
function getMobileStatusContainerRect(a0) { // fn#97459, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:331, offset: 0x021822c2, size: 59 bytes, params: 2, frame: 3
|
|
const value = a0 + 2 * STATUS_PADDING;
|
|
return {width: value, height: 1.4 * value, cornerRadius: value / 4};
|
|
}
|
|
|
|
function getVRStatusContainerRect(a0) { // fn#97460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:451, offset: 0x021822fd, size: 71 bytes, params: 2, frame: 15
|
|
let value = importDefault(12735) /* metro dependency 12735: getStatusContainerStyle */;
|
|
value = value(a0, false, true);
|
|
return {width: value.width, height: value.height, cornerRadius: value.borderRadius};
|
|
}
|
|
|
|
function getStatusTypingDimensions(a0) { // fn#97461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12924:606, offset: 0x02182344, size: 110 bytes, params: 2, frame: 14
|
|
var r1;
|
|
var r5;
|
|
var REFRESH_MEDIUM_10;
|
|
var value;
|
|
const SMALL = StatusSizes.SMALL;
|
|
if (SMALL === a0) {
|
|
value = 22;
|
|
r1 = 4;
|
|
r5 = value;
|
|
} else if (StatusSizes.XSMALL === a0) {
|
|
value = 22;
|
|
r1 = 4;
|
|
r5 = value;
|
|
} else {
|
|
REFRESH_MEDIUM_10 = StatusSizes.REFRESH_MEDIUM_10;
|
|
value = 28;
|
|
if (REFRESH_MEDIUM_10 !== a0) {
|
|
r1 = 6;
|
|
r5 = value;
|
|
} else {
|
|
value = 22;
|
|
r1 = 4;
|
|
r5 = value;
|
|
}
|
|
}
|
|
const object2 = {width: r5};
|
|
const Math = global.Math;
|
|
object2.height = Math.floor(r5 / 2.33);
|
|
object2.dotSize = r1;
|
|
return object2;
|
|
}
|
|
|