75 lines
4.7 KiB
TypeScript
75 lines
4.7 KiB
TypeScript
/* Metro module 10651; source: modules/activities/confirmExternalAppLaunchAlert.native.tsx; dependencies: [31, 27, 4237, 33, 4501, 10652, 4573, 1244, 4578, 3853, 4647, 2] */
|
|
function _fun81933(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:6, offset: 0x01ee4d61, size: 359 bytes, params: 8, frame: 20
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_3 = value.Image;
|
|
const env0_4 = value.View;
|
|
const env0_5 = (require(4237) /* metro dependency 4237: Constants */).PRIVATE_APPS_HELP_ARTICLE;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_6 = value.jsx;
|
|
const env0_7 = value.jsxs;
|
|
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({alertContainer: {'display': 'flex',
|
|
'alignItems': 'center', 'padding': 8}, alertEyebrowText: {'marginTop': 40, 'textAlign': 'center'},
|
|
alertTitleText: {'marginTop': 16, 'textAlign': 'center'}, alertSubtitleText: {'marginTop': 16,
|
|
'textAlign': 'center'}, announcementBirb: {'width': 90, 'height': 100, 'position': 'absolute', 'top': -66},
|
|
linkWrapper: {marginTop: 8}});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/confirmExternalAppLaunchAlert.native.tsx');
|
|
exports.confirmExternalAppLaunchAlert = confirmExternalAppLaunchAlert;
|
|
}
|
|
|
|
function ConfirmActivityGateContent_81934({application}) { // fn#81934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:529, offset: 0x01ee4ec8, size: 434 bytes, params: 2, frame: 28
|
|
const styles = useStyles();
|
|
const items2 = [<Image source={importDefault(10652) /* metro dependency 10652 */} style={styles.announcementBirb} />];
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
items2[1] = <Text style={styles.alertEyebrowText} variant="eyebrow">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['06YebE'])}</Text>;
|
|
items2[2] = <Text style={styles.alertTitleText} variant="heading-lg/bold">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['Z/eMDT'],
|
|
{activityName: application.name})}</Text>;
|
|
items2[3] = <Text style={styles.alertSubtitleText} variant="text-sm/normal">{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z81WwD)}</Text>;
|
|
return (
|
|
<View style={styles.alertContainer}>
|
|
{items2}
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function LinkButton_81935() { // fn#81935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1053, offset: 0x01ee507a, size: 160 bytes, params: 1, frame: 21
|
|
const styles = useStyles();
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
const string = intl.string;
|
|
const E0gf5l = (require(1244) /* metro dependency 1244: indexNative */).t.E0gf5l;
|
|
return (
|
|
<View style={styles.linkWrapper}>
|
|
<Button
|
|
variant="secondary"
|
|
size="sm"
|
|
onPress={function() {
|
|
importDefault(dependencyMap[9]).openURL(PRIVATE_APPS_HELP_ARTICLE);
|
|
}}
|
|
text={Reflect.apply(string, intl, [E0gf5l])}
|
|
/>
|
|
</View>
|
|
);
|
|
}
|
|
|
|
function confirmExternalAppLaunchAlert({application, onConfirm, onCancel}) { // fn#81937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10837:1380, offset: 0x01ee5144, size: 246 bytes, params: 2, frame: 23
|
|
const Promise = global.Promise;
|
|
const resolve = Promise.resolve;
|
|
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
|
|
const show = defaultImport.show;
|
|
const object2 = {title: ''};
|
|
object2.children = <ConfirmActivityGateContent_81934 application={application} />;
|
|
object2.onConfirm = onConfirm;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz']);
|
|
object2.onCancel = onCancel;
|
|
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
|
object2.footer = <LinkButton_81935 />;
|
|
return Reflect.apply(resolve, Promise, [Reflect.apply(show, defaultImport, [object2])]);
|
|
}
|
|
|