98 lines
5.6 KiB
TypeScript
98 lines
5.6 KiB
TypeScript
/* Metro module 15278; source: modules/app_icons/native/AppIconsCoachmark.tsx; dependencies: [31, 27, 1878, 1376, 33, 4501, 697, 566, 3802, 4080, 6275, 15279, 1305, 8619, 4573, 1244, 4578, 12187, 2] */
|
|
function _fun116873(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15475:6, offset: 0x02499143, size: 405 bytes, params: 8, frame: 23
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
let value = require(27) /* metro dependency 27 */;
|
|
const env0_4 = value.Image;
|
|
const env0_5 = value.View;
|
|
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
|
const env0_7 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
|
|
value = require(33) /* metro dependency 33 */;
|
|
const env0_8 = value.jsx;
|
|
const env0_9 = value.jsxs;
|
|
value = require(4501) /* metro dependency 4501: createStyles */;
|
|
const createStyles = value.createStyles;
|
|
object2 = {};
|
|
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
|
object2.container = {padding: PX_16, paddingBottom: 0};
|
|
object2.info = {alignItems: 'center'};
|
|
object2.image = {'alignSelf': 'center', 'marginBottom': 20};
|
|
object2.nitroWheel = {marginRight: 8};
|
|
object2.titleContainer = {'display': 'flex', 'flexDirection': 'row', 'alignItems': 'center'};
|
|
object2.subtitle = {'marginTop': 8, 'textAlign': 'center'};
|
|
const PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8;
|
|
object2.footer = {marginTop: 20, gap: PX_8};
|
|
const env0_10 = Reflect.apply(createStyles, value, [object2]);
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/app_icons/native/AppIconsCoachmark.tsx');
|
|
exports.default = AppIconsCoachmarkActionSheet;
|
|
}
|
|
|
|
function AppIconsCoachmarkActionSheet({markAsDismissed}) { // fn#116874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15475:636, offset: 0x024992d8, size: 840 bytes, params: 2, frame: 33
|
|
const styles = useStyles();
|
|
const currentUser = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
|
return UserStore.getCurrentUser();
|
|
});
|
|
const isPremium2 = (importDefault(3802) /* metro dependency 3802: PremiumUtils */).isPremium(currentUser);
|
|
const value2 = env0_3.useCallback(function() {
|
|
importDefault(dependencyMap[9]).hideActionSheet();
|
|
if (markAsDismissed != null) {
|
|
markAsDismissed(ContentDismissActionType.DISMISS);
|
|
}
|
|
}, [markAsDismissed]);
|
|
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
|
|
const items2 = [<Image source={importDefault(15279) /* metro dependency 15279 */} style={styles.image} />];
|
|
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
|
const object = {source: importDefault(8619) /* metro dependency 8619 */};
|
|
const IconSizes = (require(1305) /* metro dependency 1305: native */).IconSizes;
|
|
const MEDIUM = IconSizes.MEDIUM;
|
|
object.size = MEDIUM;
|
|
object.style = styles.nitroWheel;
|
|
object.disableColor = true;
|
|
const icon = <Icon {...object} />;
|
|
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
let string = intl.string;
|
|
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
|
const EfA4Cq = t.EfA4Cq;
|
|
items2[1] = <View style={styles.titleContainer}>{icon}<Text variant="heading-xl/extrabold" color="mobile-text-heading-primary">{Reflect.apply(string,
|
|
intl, [EfA4Cq])}</Text></View>;
|
|
string = intl.string;
|
|
items2[2] = <Text variant="text-md/normal" color="text-default" style={styles.subtitle}>{isPremium2 ? Reflect.apply(string,
|
|
intl, [t.IgchKK]) : Reflect.apply(string, intl, [t.D0XzaS])}</Text>;
|
|
const view = <View style={styles.info}>{items2}</View>;
|
|
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
|
string = intl.string;
|
|
const Pt547C = (require(1244) /* metro dependency 1244: indexNative */).t.Pt547C;
|
|
return (
|
|
<BottomSheet
|
|
onDismiss={function() {
|
|
return markAsDismissed(ContentDismissActionType.DISMISS);
|
|
}}
|
|
contentStyles={styles.container}
|
|
>
|
|
{view}
|
|
<View style={styles.footer}>
|
|
<Button text={Reflect.apply(string, intl, [Pt547C])} onPress={onPress_116878} />
|
|
<Button
|
|
variant="secondary"
|
|
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iSrIIZ)}
|
|
onPress={value2}
|
|
/>
|
|
</View>
|
|
</BottomSheet>
|
|
);
|
|
}
|
|
|
|
function AppIconsCoachmarkActionSheetOnPress() { // fn#116878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15475:1578, owner: AppIconsCoachmarkActionSheet.onPress, offset: 0x02499682, size: 99 bytes, params: 1, frame: 13
|
|
const value = environment.__proto__;
|
|
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
|
|
if (markAsDismissed != null) {
|
|
markAsDismissed(ContentDismissActionType.PRIMARY);
|
|
}
|
|
(require(12187) /* metro dependency 12187: AppIconUtils */).navigateToAppIconSettings();
|
|
}
|
|
|