66 lines
4.0 KiB
TypeScript
66 lines
4.0 KiB
TypeScript
/* Metro module 10662; source: modules/activities/native/IgnoreThermalStateAlert.tsx; dependencies: [31, 33, 4501, 4596, 1244, 7860, 4573, 2] */
|
|
import Alert from '../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
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 CreateStylesModule from '../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
|
|
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
|
|
import * as EmbeddedActivitiesActionCreatorsModule from '../EmbeddedActivitiesActionCreators.tsx'; /* Metro dependency 7860 */
|
|
|
|
function _fun81998(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:6, offset: 0x01ee6a12, size: 207 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
const env0_5 = (CreateStylesModule).createStyles({text: {'marginTop': 16,
|
|
'lineHeight': 20, 'textAlign': 'center'}, header: {textAlign: 'center'}});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activities/native/IgnoreThermalStateAlert.tsx');
|
|
exports.IgnoreThermalStateAlert = IgnoreThermalStateAlert;
|
|
function IgnoreThermalStateAlert(a0) { // fn#81999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:351, offset: 0x01ee6ae1, size: 434 bytes, params: 2, frame: 25
|
|
const env0_0 = a0.onConfirm;
|
|
let value = Object.create(null);
|
|
value.onConfirm = 0;
|
|
const value2 = copyDataProperties({}, a0, value, undefined);
|
|
const styles = useStyles();
|
|
const defaultImportProps = {...value2};
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
defaultImportProps['cancelText'] = Reflect.apply(string, intl,
|
|
[(require(1244) /* metro dependency 1244: indexNative */).t['1fRDnT']]);
|
|
defaultImportProps['onCancel'] = IgnoreThermalStateAlertOnCancel;
|
|
defaultImportProps['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oEAioF);
|
|
const Text = (TextModule).Text;
|
|
value = (
|
|
<Text
|
|
style={styles.header}
|
|
variant="heading-lg/extrabold"
|
|
color="mobile-text-heading-primary"
|
|
>
|
|
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v5X4fZ)}
|
|
</Text>
|
|
);
|
|
string = intl.string;
|
|
const VOgTjy = (require(1244) /* metro dependency 1244: indexNative */).t.VOgTjy;
|
|
return (
|
|
<Alert {...defaultImportProps}>
|
|
{value}
|
|
<Text style={styles.text} variant="text-md/medium">
|
|
{Reflect.apply(string, intl, [VOgTjy])}
|
|
</Text>
|
|
</Alert>
|
|
);
|
|
function IgnoreThermalStateAlertOnCancel() { // fn#82000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10848:498, owner: IgnoreThermalStateAlert.onCancel, offset: 0x01ee6c93, size: 60 bytes, params: 1, frame: 11
|
|
if (onConfirm != null) {
|
|
onConfirm();
|
|
}
|
|
const value = environment.__proto__;
|
|
(EmbeddedActivitiesActionCreatorsModule).disregardSeriousThermalState();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun81998, 10662, [31, 33, 4501, 4596, 1244, 7860, 4573,
|
|
2]) /* metro module 10662, dependencies: [31, 33, 4501, 4596, 1244, 7860, 4573, 2] */;
|