87 lines
4.7 KiB
TypeScript
87 lines
4.7 KiB
TypeScript
/* Metro module 15498; source: modules/activities/native/ActivitiesDebugOverlay.tsx; dependencies: [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573, 2] */
|
|
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
|
|
import UseSafeAreaInsetsNative from '../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
|
|
import UseThermalState from '../../device/useThermalState.tsx'; /* Metro dependency 8095 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
import * as ColorUtilsModule from '../../../utils/ColorUtils.tsx'; /* Metro dependency 4000 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
|
|
function _fun118674(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:6, offset: 0x024e761f, size: 292 bytes, params: 8, frame: 23
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
let value = JsxRuntimeModule;
|
|
const env0_4 = value.jsxs;
|
|
const env0_5 = value.jsx;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
const hexWithOpacity = ColorUtilsModule.hexWithOpacity;
|
|
const BLACK = (Native).unsafe_rawColors.BLACK;
|
|
const env0_6 = Reflect.apply(createStyles, value, [{container: {'position': 'absolute', 'top': 0, 'left': 0,
|
|
'backgroundColor': null, 'paddingRight': 16, 'paddingBottom': 16, backgroundColor: Reflect.apply(hexWithOpacity,
|
|
ColorUtilsModule, [BLACK, 0.7])}, row: {flexDirection: 'row'}}]);
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/ActivitiesDebugOverlay.tsx');
|
|
exports.default = ActivitiesDebugOverlay;
|
|
function ActivitiesDebugOverlay() { // fn#118675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15695:446, offset: 0x024e7743, size: 508 bytes, params: 1, frame: 24
|
|
var r9;
|
|
var r10;
|
|
var SERIOUS;
|
|
var value10;
|
|
var value11;
|
|
const value2 = undefined;
|
|
const styles = useStyles();
|
|
const value3 = (UseThermalState)();
|
|
const ThermalStates = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates;
|
|
const UNHANDLED = ThermalStates.UNHANDLED;
|
|
if (UNHANDLED === value3) {
|
|
r9 = '';
|
|
r10 = 'always-white';
|
|
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.NOMINAL === value3) {
|
|
r9 = 'nominal';
|
|
r10 = 'text-feedback-positive';
|
|
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.FAIR === value3) {
|
|
r9 = 'fair';
|
|
r10 = 'text-feedback-warning';
|
|
} else {
|
|
SERIOUS = (require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.SERIOUS;
|
|
value10 = 'serious';
|
|
value11 = 'text-feedback-critical';
|
|
if (SERIOUS === value3) {
|
|
r9 = value10;
|
|
r10 = value11;
|
|
} else if ((require(8095) /* metro dependency 8095: useThermalState */).ThermalStates.CRITICAL !== value3) {
|
|
r9 = value2;
|
|
r10 = value2;
|
|
} else {
|
|
r9 = 'critical';
|
|
r10 = value11;
|
|
}
|
|
}
|
|
const {top, left} = (UseSafeAreaInsetsNative)();
|
|
const items2 = [styles.container];
|
|
items2[1] = {paddingTop: top + 16, paddingLeft: left + 16};
|
|
const Text = (TextModule).Text;
|
|
return (
|
|
<View style={items2} pointerEvents="none">
|
|
<View style={styles.row}>
|
|
<Text variant="text-md/normal" color="always-white">
|
|
{'thermal state:'}
|
|
{' '}
|
|
</Text>
|
|
<Text variant="text-md/normal" color={r10}>
|
|
{r9}
|
|
</Text>
|
|
</View>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun118674, 15498, [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573,
|
|
2]) /* metro module 15498, dependencies: [31, 27, 33, 4501, 4000, 697, 8095, 1585, 4573, 2] */;
|