This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,117 +1,139 @@
/* Metro module 13470; source: modules/user_settings/connections/native/AddConnectionActionSheet.tsx; dependencies: [661, 4916, 33, 4501, 1305, 4048, 1585, 4239, 5039, 6777, 6275, 6758, 1244, 6277, 6238, 4080, 9354, 1423, 4002, 6774, 6771, 6789, 2] */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import ActionSheetActionCreators from '../../../action_sheet/native/ActionSheetActionCreators.tsx'; /* Metro dependency 4080 */
import UseAnalyticsLocations from '../../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import UseStartAuthorize from '../../../application_account_linking/native/useStartAuthorize.tsx'; /* Metro dependency 6774 */
import AnalyticsLocation from '../../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as AvatarUtilsModule from '../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as SharedModule from '../../../../design/shared.tsx'; /* Metro dependency 4002 */
import * as RiotSocialSDKMigrationModule from '../../../application_account_linking/experiments/riotSocialSDKMigration.tsx'; /* Metro dependency 4239 */
import * as UserApplicationIdentityConstantsModule from '../../../user_application_identity/UserApplicationIdentityConstants.tsx'; /* Metro dependency 4916 */
import * as ConnectionsHooksModule from '../../../connections/ConnectionsHooks.tsx'; /* Metro dependency 5039 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as BottomSheetNativeModule from '../../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
import * as Module06277Module from '../../../../by-id/module-06277.js'; /* Metro dependency 6277 */
import * as BottomSheetTitleHeaderNativeModule from '../../../../design/components/Sheet/native/BottomSheetTitleHeader.native.tsx'; /* Metro dependency 6758 */
function _fun102395(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:6, offset: 0x02239d2e, size: 288 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
const env0_4 = (require(4916) /* metro dependency 4916: UserApplicationIdentityConstants */).APPLICATION_IDENTITY_CONNECTIONS_SCREEN_APPLICATIONS;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const nativeModule = require(1305) /* metro dependency 1305: native */;
const getIconSize = nativeModule.getIconSize;
const Icon = nativeModule.Icon;
const getIconSize = NativeModule.getIconSize;
const Icon = NativeModule.Icon;
const Sizes = Icon.Sizes;
const LARGE = Sizes.LARGE;
const env0_7 = Reflect.apply(createStyles, value, [{list: {paddingHorizontal: 16},
icon: {borderRadius: Reflect.apply(getIconSize, nativeModule, [LARGE])}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/AddConnectionActionSheet.tsx');
icon: {borderRadius: Reflect.apply(getIconSize, NativeModule, [LARGE])}}]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/AddConnectionActionSheet.tsx');
exports.default = AddConnectionActionSheet;
function AddApplicationIdentityTableRow({application, start, end}) { // fn#102396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:336, offset: 0x02239e4e, size: 364 bytes, params: 2, frame: 25
const value2 = (UseStartAuthorize)(application);
const canStartAuthorization = value2.canStartAuthorization;
const env0_0 = value2.startAuthorization;
const defaultImport = UseAnalyticsLocations;
const ACTION_SHEET = (AnalyticsLocation).ACTION_SHEET;
const env0_1 = defaultImport(ACTION_SHEET).analyticsLocations;
const styles = useStyles();
const getIconSource = application.getIconSource;
const getIconSize = NativeModule.getIconSize;
const IconSizes = NativeModule.IconSizes;
const LARGE = IconSizes.LARGE;
const value3 = Reflect.apply(getIconSource, application, [Reflect.apply(getIconSize, NativeModule, [LARGE])]);
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps2 = {start: start, end: end, label: application.name, onPress: onPress_102397,
icon: value3 != null ? <NativeModule.Icon source={value3} style={styles.icon} disableColor /> : null};
const TableRow2 = (TableRowNativeModule).TableRow;
const Arrow = TableRow2.Arrow;
tableRowProps2.trailing = <Arrow />;
tableRowProps2.disabled = !canStartAuthorization;
return <TableRow {...tableRowProps2} key={application.id} />;
function AddApplicationIdentityTableRowOnPress() { // fn#102397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:663, owner: AddApplicationIdentityTableRow.onPress, offset: 0x02239fba, size: 60 bytes, params: 1, frame: 12
const value = environment.__proto__;
(ActionSheetActionCreators).hideActionSheet();
startAuthorization({analyticsLocations: analyticsLocations});
}
}
function AddConnectionActionSheet() { // fn#102398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:969, offset: 0x02239ff6, size: 446 bytes, params: 1, frame: 27
const styles = useStyles();
const env0_0 = (UseTheme)();
const bottom = (UseSafeAreaInsetsNative)().bottom;
const value2 = (RiotSocialSDKMigrationModule).useIsRiotSocialSDKMigrationEnabled({location: 'AddConnectionActionSheet'});
const value4 = (ConnectionsHooksModule).usePlatforms().filter(_fun102399);
const value6 = (importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)(value2 ? APPLICATION_IDENTITY_CONNECTIONS_SCREEN_APPLICATIONS : []).filter(function(a0) {
return a0 != null;
});
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
object = {'scrollable': true, 'startExpanded': true};
const BottomSheetTitleHeader = (BottomSheetTitleHeaderNativeModule).BottomSheetTitleHeader;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const Zhcj9X = (IndexNativeModule).t.Zhcj9X;
object.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [Zhcj9X])} />;
const BottomSheetScrollView = (Module06277Module).BottomSheetScrollView;
return (
<BottomSheet {...object}>
<BottomSheetScrollView style={styles.list} contentContainerStyle={{paddingBottom: bottom}}>
{[value6.map(_fun102401), value4.map(_fun102402)]}
</BottomSheetScrollView>
</BottomSheet>
);
function _fun102399(a0) { // fn#102399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:1165, offset: 0x0223a1b4, size: 30 bytes, params: 2, frame: 3
const binding = env0_1;
return binding ? a0.replacedBy == null : !binding;
}
function _fun102401(a0, a1) { // fn#102401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:1498, offset: 0x0223a1d2, size: 92 bytes, params: 3, frame: 19
const value = environment.__proto__;
return (
<AddApplicationIdentityTableRow
application={a0}
start={a1 === 0}
end={a1 === ConstantsModule.AnalyticsLocations.length - 1 && env0_2.length === 0}
key={a0.id}
/>
);
}
function _fun102402({name, type, icon}, a1) { // fn#102402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:1614, offset: 0x0223a22e, size: 309 bytes, params: 3, frame: 27
const type2 = type;
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps = {start: a1 === 0 && ConstantsModule.AnalyticsLocations.length === 0, end: a1 === env0_2.length - 1, label: name,
onPress: function() {
importDefault(dependencyMap[15]).hideActionSheet();
importDefault(dependencyMap[16])({platformType: type, location: AnalyticsLocations.USER_SETTINGS});
}};
const Icon = (NativeModule).Icon;
const makeSource = AvatarUtilsModule.makeSource;
tableRowProps.icon = (
<Icon
source={Reflect.apply(makeSource, AvatarUtilsModule,
[SharedModule.isThemeDark(type2) ? icon.darkPNG : icon.lightPNG])}
disableColor
/>
);
const TableRow2 = (TableRowNativeModule).TableRow;
const Arrow = TableRow2.Arrow;
tableRowProps.trailing = <Arrow />;
return <TableRow {...tableRowProps} key={type} />;
}
}
}
function AddApplicationIdentityTableRow({application, start, end}) { // fn#102396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:336, offset: 0x02239e4e, size: 364 bytes, params: 2, frame: 25
const value2 = (importDefault(6774) /* metro dependency 6774: useStartAuthorize */)(application);
const canStartAuthorization = value2.canStartAuthorization;
const env0_0 = value2.startAuthorization;
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const ACTION_SHEET = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).ACTION_SHEET;
const env0_1 = defaultImport(ACTION_SHEET).analyticsLocations;
const styles = useStyles();
const getIconSource = application.getIconSource;
const nativeModule = require(1305) /* metro dependency 1305: native */;
const getIconSize = nativeModule.getIconSize;
const IconSizes = nativeModule.IconSizes;
const LARGE = IconSizes.LARGE;
const value3 = Reflect.apply(getIconSource, application, [Reflect.apply(getIconSize, nativeModule, [LARGE])]);
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps2 = {start: start, end: end, label: application.name, onPress: onPress_102397,
icon: value3 != null ? <nativeModule.Icon source={value3} style={styles.icon} disableColor /> : null};
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Arrow = TableRow2.Arrow;
tableRowProps2.trailing = <Arrow />;
tableRowProps2.disabled = !canStartAuthorization;
return <TableRow {...tableRowProps2} key={application.id} />;
}
function AddConnectionActionSheet() { // fn#102398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:969, offset: 0x02239ff6, size: 446 bytes, params: 1, frame: 27
var object2;
const styles = useStyles();
const env0_0 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const value2 = (require(4239) /* metro dependency 4239: riotSocialSDKMigration */).useIsRiotSocialSDKMigrationEnabled({location: 'AddConnectionActionSheet'});
const value4 = (require(5039) /* metro dependency 5039: ConnectionsHooks */).usePlatforms().filter(_fun102399);
const value6 = (importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)(value2 ? APPLICATION_IDENTITY_CONNECTIONS_SCREEN_APPLICATIONS : []).filter(function(a0) {
return a0 != null;
});
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
object2 = {'scrollable': true, 'startExpanded': true};
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const Zhcj9X = (require(1244) /* metro dependency 1244: indexNative */).t.Zhcj9X;
object2.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [Zhcj9X])} />;
const BottomSheetScrollView = (require(6277) /* metro dependency 6277 */).BottomSheetScrollView;
return (
<BottomSheet {...object2}>
<BottomSheetScrollView style={styles.list} contentContainerStyle={{paddingBottom: bottom}}>
{[value6.map(_fun102401), value4.map(_fun102402)]}
</BottomSheetScrollView>
</BottomSheet>
);
}
function AddApplicationIdentityTableRowOnPress() { // fn#102397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:663, owner: AddApplicationIdentityTableRow.onPress, offset: 0x02239fba, size: 60 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(4080) /* metro dependency 4080: ActionSheetActionCreators */).hideActionSheet();
startAuthorization({analyticsLocations: analyticsLocations});
}
function _fun102399(a0) { // fn#102399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:1165, offset: 0x0223a1b4, size: 30 bytes, params: 2, frame: 3
const binding = env0_1;
return binding ? a0.replacedBy == null : !binding;
}
function _fun102401(a0, a1) { // fn#102401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:1498, offset: 0x0223a1d2, size: 92 bytes, params: 3, frame: 19
const value = environment.__proto__;
return (
<AddApplicationIdentityTableRow
application={a0}
start={a1 === 0}
end={a1 === env0_3.length - 1 && env0_2.length === 0}
key={a0.id}
/>
);
}
function _fun102402({name, type, icon}, a1) { // fn#102402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13660:1614, offset: 0x0223a22e, size: 309 bytes, params: 3, frame: 27
const env0_0 = type;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {start: a1 === 0 && env0_3.length === 0, end: a1 === env0_2.length - 1, label: name,
onPress: function() {
importDefault(dependencyMap[15]).hideActionSheet();
importDefault(dependencyMap[16])({platformType: type, location: AnalyticsLocations.USER_SETTINGS});
}};
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
const makeSource = avatarUtilsModule.makeSource;
const sharedModule = require(4002) /* metro dependency 4002: shared */;
tableRowProps.icon = <Icon source={Reflect.apply(makeSource, avatarUtilsModule,
[sharedModule.isThemeDark(env0_0) ? icon.darkPNG : icon.lightPNG])} disableColor />;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Arrow = TableRow2.Arrow;
tableRowProps.trailing = <Arrow />;
return <TableRow {...tableRowProps} key={type} />;
}
global.__d(_fun102395, 13470, [661, 4916, 33, 4501, 1305, 4048, 1585, 4239, 5039, 6777, 6275, 6758, 1244, 6277,
6238, 4080, 9354, 1423, 4002, 6774, 6771, 6789,
2]) /* metro module 13470, dependencies: [661, 4916, 33, 4501, 1305, 4048, 1585, 4239, 5039, 6777, 6275, 6758, 1244, 6277, 6238, 4080, 9354, 1423, 4002, 6774, 6771, 6789, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,275 +1,343 @@
/* Metro module 13475; source: modules/user_settings/connections/native/ConnectedApplicationIdentity.tsx; dependencies: [5, 57, 31, 27, 33, 4501, 13476, 1244, 1305, 4573, 8469, 4647, 13454, 4596, 1423, 4580, 10369, 4572, 5278, 8160, 6238, 6808, 2] */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import AvatarUtils from '../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import Icon from '../../../../design/void/Icon/native/Icon.tsx'; /* Metro dependency 4580 */
import Alert from '../../../../components_native/common/Alert.tsx'; /* Metro dependency 4596 */
import AlertActionCreators from '../../../../actions/AlertActionCreators.tsx'; /* Metro dependency 4647 */
import Module08160 from '../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as IconModule from '../../../../design/void/Icon/native/Icon.tsx'; /* Metro dependency 4580 */
import * as PressablesModule from '../../../../design/void/Pressables/native/Pressables.tsx'; /* Metro dependency 5278 */
import * as TableRowNativeModule from '../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as TableSwitchRowNativeModule from '../../../../design/components/TableRow/native/TableSwitchRow.native.tsx'; /* Metro dependency 6808 */
import * as ConnectedAccountModule from './ConnectedAccount.tsx'; /* Metro dependency 13476 */
function _fun102431(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102431, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:6, offset: 0x0223b563, size: 204 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
const env0_6 = (require(27) /* metro dependency 27 */).View;
const value = require(33) /* metro dependency 33 */;
const value = JsxRuntimeModule;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/ConnectedApplicationIdentity.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/ConnectedApplicationIdentity.tsx');
exports.default = ConnectedApplicationIdentity;
}
function ConnectedApplicationIdentity({identity, token}) { // fn#102432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:286, offset: 0x0223b62f, size: 1016 bytes, params: 2, frame: 33
let env0_4 = undefined;
let env0_5 = undefined;
const application = token?.application;
let name = application?.name;
const r10 = name ?? '';
const value4 = (require(4501) /* metro dependency 4501: createStyles */).useLegacyClassComponentStyles((require(13476) /* metro dependency 13476: ConnectedAccount */).readStyles);
let binding = env0_5;
const useState = binding.useState;
const connection_visible = identity.profile?.connection_visible;
const value7 = env0_4(Reflect.apply(useState, binding, [connection_visible != null && connection_visible]), 2);
const property = value7[0];
env0_4 = value7[1];
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const VgqIPj = (require(1244) /* metro dependency 1244: indexNative */).t.VgqIPj;
const value8 = Reflect.apply(format, intl, [VgqIPj, {provider: r10}]);
env0_5 = value8;
binding = env0_5;
const value9 = binding.useCallback(_fun102433, [r10, value8, token]);
const value10 = binding.useMemo(_fun102435, [application?.icon, identity.application_id]);
const value12 = env0_5.useCallback(_fun102436(), [identity.profile?.connection_visible,
identity.provider_issued_user_id, identity.application_id]);
if (application == null) {
return null;
}
const Icon = importDefault(4580) /* metro dependency 4580: Icon */;
name = application.name;
const items2 = [value4.connectedApplicationIdentityIcon];
items2[1] = value4.platformIcon;
const Sizes = Icon.Sizes;
const LARGE = Sizes.LARGE;
const icon = <Icon accessible accessibilityLabel={name} style={items2} size={LARGE} source={value10} disableColor />;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const stack = <Stack spacing={8} direction="horizontal" align="center"><PressableOpacity accessibilityRole="button" accessibilityLabel={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['DT39A+'])} onPress={value9} hitSlop={{'top': 5,
'left': 5, 'bottom': 5,
'right': 5}} disabled={token == null}><Icon style={value4.deleteConnectionIcon} source={importDefault(8160) /* metro dependency 8160 */} /></PressableOpacity></Stack>;
const container = value4.container;
const connectedAccountItem = value4.connectedAccountItem;
const connectedAccountTopContainer = value4.connectedAccountTopContainer;
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const view = <View style={connectedAccountTopContainer}><TableRow label={application.name} icon={icon} trailing={stack} /></View>;
const TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
return (
<View style={container}>
<View style={connectedAccountItem}>
{view}
<View style={{marginVertical: 8}}>
<TableSwitchRow
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.f7yOAX)}
value={property}
onValueChange={value12}
/>
function ConnectedApplicationIdentity({identity, token}) { // fn#102432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:286, offset: 0x0223b62f, size: 1016 bytes, params: 2, frame: 33
let env0_4 = undefined;
let env0_5 = undefined;
const application = token?.application;
let name = application?.name;
const r10 = name ?? '';
const value4 = (CreateStylesModule).useLegacyClassComponentStyles((ConnectedAccountModule).readStyles);
let binding = env0_5;
const useState = binding.useState;
const connection_visible = identity.profile?.connection_visible;
const value7 = env0_4(Reflect.apply(useState, binding, [connection_visible != null && connection_visible]), 2);
const property = value7[0];
env0_4 = value7[1];
const intl = (IndexNativeModule).intl;
const format = intl.format;
const VgqIPj = (IndexNativeModule).t.VgqIPj;
const value8 = Reflect.apply(format, intl, [VgqIPj, {provider: r10}]);
env0_5 = value8;
binding = env0_5;
const value9 = binding.useCallback(_fun102433, [r10, value8, token]);
const value10 = binding.useMemo(_fun102435, [application?.icon, identity.application_id]);
const value12 = env0_5.useCallback(_fun102436(), [identity.profile?.connection_visible,
identity.provider_issued_user_id, identity.application_id]);
if (application == null) {
return null;
}
name = application.name;
const items2 = [value4.connectedApplicationIdentityIcon];
items2[1] = value4.platformIcon;
const Sizes = Icon.Sizes;
const LARGE = Sizes.LARGE;
const icon = (
<Icon
accessible
accessibilityLabel={name}
style={items2}
size={LARGE}
source={value10}
disableColor
/>
);
const Stack = (StackNativeModule).Stack;
const PressableOpacity = (PressablesModule).PressableOpacity;
const stack = (
<Stack
spacing={8}
direction="horizontal"
align="center"
>
<PressableOpacity
accessibilityRole="button"
accessibilityLabel={intl.string((IndexNativeModule).t['DT39A+'])}
onPress={value9}
hitSlop={{
'top': 5,
'left': 5,
'bottom': 5,
'right': 5,
}}
disabled={token == null}
>
<Icon style={value4.deleteConnectionIcon} source={Module08160} />
</PressableOpacity>
</Stack>
);
const container = value4.container;
const connectedAccountItem = value4.connectedAccountItem;
const connectedAccountTopContainer = value4.connectedAccountTopContainer;
const TableRow = (TableRowNativeModule).TableRow;
const view = (
<View style={connectedAccountTopContainer}>
<TableRow
label={application.name}
icon={icon}
trailing={stack}
/>
</View>
);
const TableSwitchRow = (TableSwitchRowNativeModule).TableSwitchRow;
return (
<View style={container}>
<View style={connectedAccountItem}>
{view}
<View style={{marginVertical: 8}}>
<TableSwitchRow
label={intl.string((IndexNativeModule).t.f7yOAX)}
value={property}
onValueChange={value12}
/>
</View>
</View>
</View>
</View>
);
}
);
function _fun102433() { // fn#102433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:656, offset: 0x0223ba27, size: 539 bytes, params: 1, frame: 28
var environment;
let value = environment.__proto__;
const Spacer = (NativeModule).Spacer;
const items2 = [
<Spacer size={8} />,
];
const Text = (TextModule).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let format = intl.format;
const VgqIPj = (require(1244) /* metro dependency 1244: indexNative */).t.VgqIPj;
items2[1] = (
<Text variant="text-md/medium">
{Reflect.apply(format, intl, [VgqIPj, {provider: Module00005}])}
</Text>
);
items2[2] = <Spacer size={16} />;
value = importDefault(8469) /* metro dependency 8469: InfoBox */;
format = intl.format;
const COW3Xn = (require(1244) /* metro dependency 1244: indexNative */).t.COW3Xn;
items2[3] = ((Component) => <Component>{Reflect.apply(format, intl, [COW3Xn,
{platformName: Module00005}])}</Component>)(value);
value = (
<View>
{items2}
</View>
);
const defaultImport = AlertActionCreators;
const show = defaultImport.show;
object = {};
const formatToPlainString = intl.formatToPlainString;
const U5x12f = (require(1244) /* metro dependency 1244: indexNative */).t.U5x12f;
object.title = Reflect.apply(formatToPlainString, intl, [U5x12f, {name: Module00005}]);
object.body = env0_5;
object.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
object.children = value;
object.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ppppRJ);
object.onConfirm = onConfirm_102434;
const Colors = (Alert).Colors;
const RED = Colors.RED;
object.confirmColor = RED;
Reflect.apply(show, defaultImport, [object]);
function onConfirm_102434() { // fn#102434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1132, offset: 0x0223bc42, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (token != null) {
value2 = environment.__proto__.__proto__;
moduleValue = require(13454) /* metro dependency 13454: UserSettingsAuthedApp */;
moduleValue.handleDeleteApp(token);
}
}
function _fun102433() { // fn#102433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:656, offset: 0x0223ba27, size: 539 bytes, params: 1, frame: 28
var object2;
var environment;
let value = environment.__proto__;
const Spacer = (require(1305) /* metro dependency 1305: native */).Spacer;
const items2 = [<Spacer size={8} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let format = intl.format;
const VgqIPj = (require(1244) /* metro dependency 1244: indexNative */).t.VgqIPj;
items2[1] = <Text variant="text-md/medium">{Reflect.apply(format, intl, [VgqIPj, {provider: env0_3}])}</Text>;
items2[2] = <Spacer size={16} />;
value = importDefault(8469) /* metro dependency 8469: InfoBox */;
format = intl.format;
const COW3Xn = (require(1244) /* metro dependency 1244: indexNative */).t.COW3Xn;
items2[3] = ((Component) => <Component>{Reflect.apply(format, intl, [COW3Xn,
{platformName: env0_3}])}</Component>)(value);
value = <View>{items2}</View>;
const defaultImport = importDefault(4647) /* metro dependency 4647: AlertActionCreators */;
const show = defaultImport.show;
object2 = {};
const formatToPlainString = intl.formatToPlainString;
const U5x12f = (require(1244) /* metro dependency 1244: indexNative */).t.U5x12f;
object2.title = Reflect.apply(formatToPlainString, intl, [U5x12f, {name: env0_3}]);
object2.body = env0_5;
object2.cancelText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
object2.children = value;
object2.confirmText = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ppppRJ);
object2.onConfirm = onConfirm_102434;
const Colors = (importDefault(4596) /* metro dependency 4596: Alert */).Colors;
const RED = Colors.RED;
object2.confirmColor = RED;
Reflect.apply(show, defaultImport, [object2]);
}
}
function _fun102435() { // fn#102435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1234, offset: 0x0223bc7b, size: 152 bytes, params: 1, frame: 17
const value2 = undefined;
const defaultImport = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
const getApplicationIconSource = defaultImport.getApplicationIconSource;
const object2 = {};
object2.id = identity.application_id;
object2.icon = application == null ? value2 : application.icon;
const iconModule = require(4580) /* metro dependency 4580: Icon */;
const getIconSize = iconModule.getIconSize;
const Sizes = (importDefault(4580) /* metro dependency 4580: Icon */).Sizes;
const LARGE = Sizes.LARGE;
object2.size = Reflect.apply(getIconSize, iconModule, [LARGE]);
object2.botIconFirst = false;
return Reflect.apply(getApplicationIconSource, defaultImport, [object2]);
}
function _fun102435() { // fn#102435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1234, offset: 0x0223bc7b, size: 152 bytes, params: 1, frame: 17
const value2 = undefined;
const defaultImport = AvatarUtils;
const getApplicationIconSource = defaultImport.getApplicationIconSource;
const object = {};
object.id = identity.application_id;
object.icon = application == null ? value2 : application.icon;
const getIconSize = IconModule.getIconSize;
const Sizes = (Icon).Sizes;
const LARGE = Sizes.LARGE;
object.size = Reflect.apply(getIconSize, IconModule, [LARGE]);
object.botIconFirst = false;
return Reflect.apply(getApplicationIconSource, defaultImport, [object]);
}
function _fun102436() { // fn#102436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1445, offset: 0x0223bd13, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun102438);
return _fun102439;
}
function _fun102436() { // fn#102436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1445, offset: 0x0223bd13, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun102438);
return _fun102439;
function* _fun102438(a0) { // fn#102438, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1465, offset: 0x0223bd42, size: 159 bytes, params: 2, frame: 20
var connection_visible;
var binding;
var binding2;
var property;
var value5;
var updateApplicationIdentityConfig;
var application_id;
var provider_issued_user_id;
var object;
var value6;
var value7;
var value8;
var error;
var profile;
if (false) {
return undefined;
}
value = undefined;
env2_4(a0);
try {
binding = env3_1;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
property = binding2[16];
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
value5 = binding(property);
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
updateApplicationIdentityConfig = value5.updateApplicationIdentityConfig;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
application_id = require.application_id;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
provider_issued_user_id = require.provider_issued_user_id;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
object = {};
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
object.connection_visible = a0;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
value6 = Reflect.apply(updateApplicationIdentityConfig, value5, [application_id, provider_issued_user_id,
object]);
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
return value8 ? value7 : value;
}
function onConfirm_102434() { // fn#102434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1132, offset: 0x0223bc42, size: 57 bytes, params: 1, frame: 12
var value2;
var moduleValue;
if (token != null) {
value2 = environment.__proto__.__proto__;
moduleValue = require(13454) /* metro dependency 13454: UserSettingsAuthedApp */;
moduleValue.handleDeleteApp(token);
}
}
function _fun102439() { // fn#102439, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1685, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function* _fun102438(a0) { // fn#102438, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13665:1465, offset: 0x0223bd42, size: 159 bytes, params: 2, frame: 20
var connection_visible;
var binding;
var binding2;
var property;
var value5;
var updateApplicationIdentityConfig;
var application_id;
var provider_issued_user_id;
var object2;
var value6;
var value7;
var value8;
var error;
var profile;
if (false) {
return undefined;
}
value = undefined;
env2_4(a0);
try {
binding = env3_1;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
property = binding2[16];
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
value5 = binding(property);
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
updateApplicationIdentityConfig = value5.updateApplicationIdentityConfig;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
application_id = require.application_id;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
provider_issued_user_id = require.provider_issued_user_id;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
object2 = {};
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
object2.connection_visible = a0;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
try {
value6 = Reflect.apply(updateApplicationIdentityConfig, value5, [application_id, provider_issued_user_id,
object2]);
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
binding = env2_4;
profile = require.profile;
connection_visible = profile == null ? value : profile.connection_visible;
binding(connection_visible === true);
return value;
}
return value8 ? value7 : value;
}
global.__d(_fun102431, 13475, [5, 57, 31, 27, 33, 4501, 13476, 1244, 1305, 4573, 8469, 4647, 13454, 4596, 1423,
4580, 10369, 4572, 5278, 8160, 6238, 6808,
2]) /* metro module 13475, dependencies: [5, 57, 31, 27, 33, 4501, 13476, 1244, 1305, 4573, 8469, 4647, 13454, 4596, 1423, 4580, 10369, 4572, 5278, 8160, 6238, 6808, 2] */;
@@ -1,170 +1,221 @@
/* Metro module 13472; source: modules/user_settings/connections/native/ConnectionsEmptyStateUpsell.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4048, 9354, 13473, 13474, 1423, 4002, 6239, 1305, 4080, 13470, 1962, 4573, 5039, 1585, 4572, 1244, 2] */
import UseSafeAreaInsetsNative from '../../../safe_area/useSafeAreaInsets.native.tsx'; /* Metro dependency 1585 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import AuthorizeConnectionNative from '../../../connections/authorizeConnection.native.tsx'; /* Metro dependency 9354 */
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as AvatarUtilsModule from '../../../../utils/AvatarUtils.tsx'; /* Metro dependency 1423 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ConnectionsHooksModule from '../../../connections/ConnectionsHooks.tsx'; /* Metro dependency 5039 */
import * as CardNativeModule from '../../../../design/components/Card/native/Card.native.tsx'; /* Metro dependency 6239 */
import * as ConnectionsTrackingModule from './ConnectionsTracking.tsx'; /* Metro dependency 13473 */
import * as ConnectionPlatformUtilsNativeModule from '../../../connections/native/ConnectionPlatformUtils.native.tsx'; /* Metro dependency 13474 */
function _fun102415(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102415, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:6, offset: 0x0223a9cc, size: 249 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
const 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(_fun102421);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/ConnectionsEmptyStateUpsell.tsx');
const env0_8 = (CreateStylesModule).createStyles(_fun102421);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/ConnectionsEmptyStateUpsell.tsx');
exports.default = ConnectionsEmptyStateUpsell;
}
function EmptyStateCard({platform}) { // fn#102416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:677, offset: 0x0223aac5, size: 399 bytes, params: 2, frame: 24
const styles = useStyles();
const value2 = (UseTheme)();
const value3 = ReactModule.useCallback(_fun102417, [platform]);
const connectionBackgroundColor = (ConnectionPlatformUtilsNativeModule).getConnectionBackgroundColor(platform.type);
const value5 = ReactModule.useMemo(_fun102418, [connectionBackgroundColor, platform.icon.darkPNG, platform.icon.lightPNG,
platform.icon.whitePNG, value2]);
const Card = (CardNativeModule).Card;
const items2 = [styles.iconContainer];
items2[1] = platform.color != null && ({backgroundColor: connectionBackgroundColor});
const Icon = (NativeModule).Icon;
return (
<Card
onPress={value3}
style={styles.card}
border="strong"
>
<View style={items2}>
<Icon
style={styles.icon}
source={value5}
resizeMode="contain"
disableColor
accessibilityLabel={platform.name}
/>
</View>
</Card>
);
function _fun102417() { // fn#102417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:754, offset: 0x0223ac54, size: 104 bytes, params: 1, frame: 15
const value = environment.__proto__;
const defaultImport = AuthorizeConnectionNative;
const platformBinding = platform;
const CONNECTIONS_EMPTY_STATE = AnalyticsLocations.CONNECTIONS_EMPTY_STATE;
defaultImport({platformType: platformBinding.type, location: CONNECTIONS_EMPTY_STATE});
(ConnectionsTrackingModule).trackEmptyStateCardClicked({platformType: platformBinding.type});
}
function EmptyStateCard({platform}) { // fn#102416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:677, offset: 0x0223aac5, size: 399 bytes, params: 2, frame: 24
const styles = useStyles();
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const value3 = env0_3.useCallback(_fun102417, [platform]);
const connectionBackgroundColor = (require(13474) /* metro dependency 13474: ConnectionPlatformUtilsNative */).getConnectionBackgroundColor(platform.type);
const value5 = env0_3.useMemo(_fun102418, [connectionBackgroundColor, platform.icon.darkPNG, platform.icon.lightPNG,
platform.icon.whitePNG, value2]);
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
const items2 = [styles.iconContainer];
items2[1] = platform.color != null && ({backgroundColor: connectionBackgroundColor});
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
return (
<Card
onPress={value3}
style={styles.card}
border="strong"
>
<View style={items2}>
<Icon
style={styles.icon}
source={value5}
resizeMode="contain"
disableColor
accessibilityLabel={platform.name}
/>
</View>
</Card>
);
}
function _fun102418() { // fn#102418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:950, offset: 0x0223acbc, size: 129 bytes, params: 1, frame: 15
var r0;
var icon;
let value = environment.__proto__;
const makeSource = AvatarUtilsModule.makeSource;
if (env0_2 != null) {
r0 = platform.icon.whitePNG;
} else {
value = require(4002) /* metro dependency 4002: shared */;
value = value.isThemeDark(env0_1);
icon = platform.icon;
r0 = value ? icon.darkPNG : icon.lightPNG;
}
return Reflect.apply(makeSource, AvatarUtilsModule, [r0]);
}
function OtherConnectionsCard({count}) { // fn#102419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1362, offset: 0x0223ad3d, size: 185 bytes, params: 2, frame: 19
const styles = useStyles();
const value2 = env0_3.useCallback(_fun102420, []);
const Card = (require(6239) /* metro dependency 6239: CardNative */).Card;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<Card
onPress={value2}
style={styles.card}
border="strong"
>
<Text variant="text-md/medium" color="interactive-text-default">
{'+' + count}
</Text>
</Card>
);
}
function _fun102421() { // fn#102421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:201, offset: 0x0223ae45, size: 165 bytes, params: 1, frame: 13
const object = {'flex': 1, 'maxHeight': 52, 'maxWidth': 52, 'aspectRatio': 1, 'borderRadius': null,
'alignItems': 'center', 'justifyContent': 'center', 'padding': 8};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
return {container: {'flex': 1, 'alignItems': 'center'}, content: {'flex': 1, 'width': '100%', 'maxWidth': 260,
'alignItems': 'center', 'justifyContent': 'center'}, card: {'flex': 1, 'maxHeight': 76, 'maxWidth': 76,
'aspectRatio': 1, 'alignItems': 'center', 'justifyContent': 'center', 'padding': 12},
textContainer: {marginTop: 32}, text: {textAlign: 'center'}, iconContainer: object, icon: {'flex': 1,
'aspectRatio': 1}};
}
function ConnectionsEmptyStateUpsell() { // fn#102422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1674, offset: 0x0223aeea, size: 710 bytes, params: 1, frame: 32
const styles = useStyles();
const value2 = (require(5039) /* metro dependency 5039: ConnectionsHooks */).useEmptyStatePlatforms();
const value3 = env0_3.useMemo(_fun102423, [value2]);
const value4 = env0_3.useMemo(_fun102424, [value2]);
const bottom = (importDefault(1585) /* metro dependency 1585: useSafeAreaInsetsNative */)().bottom;
const items2 = [styles.container];
items2[1] = {paddingBottom: bottom};
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
let textContainer = styles.textContainer;
const Stack2 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const stack = <Stack2 spacing={16} justify="center" direction="horizontal">{value3.map(_fun102425)}</Stack2>;
const Stack3 = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const stack2 = <Stack spacing={16} direction="vertical" align="center" style={textContainer}>{stack}<Stack3 spacing={16} justify="center" direction="horizontal">{value4.map(_fun102426)}<OtherConnectionsCard count={value2.length - 5} /></Stack3></Stack>;
textContainer = styles.textContainer;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let text = styles.text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const JlrHXb = (require(1244) /* metro dependency 1244: indexNative */).t.JlrHXb;
const text2 = <Text variant="text-lg/bold" color="mobile-text-heading-primary" style={text}>{Reflect.apply(string,
intl, [JlrHXb])}</Text>;
text = styles.text;
string = intl.string;
const XijaQP = (require(1244) /* metro dependency 1244: indexNative */).t.XijaQP;
return (
<View style={items2}>
<View style={styles.content}>
{stack2}
<Stack
spacing={8}
align="center"
style={textContainer}
>
{text2}
<Text
variant="text-md/medium"
color="text-default"
style={text}
>
{Reflect.apply(string, intl, [XijaQP])}
</Text>
</Stack>
</View>
</View>
);
}
function _fun102417() { // fn#102417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:754, offset: 0x0223ac54, size: 104 bytes, params: 1, frame: 15
const value = environment.__proto__;
const defaultImport = importDefault(9354) /* metro dependency 9354: authorizeConnectionNative */;
const platformBinding = platform;
const CONNECTIONS_EMPTY_STATE = AnalyticsLocations.CONNECTIONS_EMPTY_STATE;
defaultImport({platformType: platformBinding.type, location: CONNECTIONS_EMPTY_STATE});
(require(13473) /* metro dependency 13473: ConnectionsTracking */).trackEmptyStateCardClicked({platformType: platformBinding.type});
}
function _fun102418() { // fn#102418, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:950, offset: 0x0223acbc, size: 129 bytes, params: 1, frame: 15
var r0;
var icon;
let value = environment.__proto__;
const avatarUtilsModule = require(1423) /* metro dependency 1423: AvatarUtils */;
const makeSource = avatarUtilsModule.makeSource;
if (env0_2 != null) {
r0 = platform.icon.whitePNG;
} else {
value = require(4002) /* metro dependency 4002: shared */;
value = value.isThemeDark(env0_1);
icon = platform.icon;
r0 = value ? icon.darkPNG : icon.lightPNG;
}
return Reflect.apply(makeSource, avatarUtilsModule, [r0]);
}
function _fun102420() { // fn#102420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1430, offset: 0x0223adf6, size: 79 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[14]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[16]);
value = value(dependencyMap[15], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'AddConnection']);
}
function _fun102423() { // fn#102423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1772, offset: 0x0223b1b0, size: 25 bytes, params: 1, frame: 13
return env0_0.slice(0, 3);
}
function _fun102424() { // fn#102424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1808, offset: 0x0223b1c9, size: 26 bytes, params: 1, frame: 13
return env0_0.slice(3, 5);
}
function _fun102425(a0) { // fn#102425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:2123, offset: 0x0223b1e3, size: 37 bytes, params: 2, frame: 15
return <EmptyStateCard platform={a0} key={a0.type} />;
function OtherConnectionsCard({count}) { // fn#102419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1362, offset: 0x0223ad3d, size: 185 bytes, params: 2, frame: 19
const styles = useStyles();
const value2 = ReactModule.useCallback(_fun102420, []);
const Card = (CardNativeModule).Card;
const Text = (TextModule).Text;
return (
<Card
onPress={value2}
style={styles.card}
border="strong"
>
<Text variant="text-md/medium" color="interactive-text-default">
{'+' + count}
</Text>
</Card>
);
function _fun102420() { // fn#102420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1430, offset: 0x0223adf6, size: 79 bytes, params: 1, frame: 15
let value = environment.__proto__;
const defaultImport = importDefault(dependencyMap[14]);
const openLazy = defaultImport.openLazy;
value = require(dependencyMap[16]);
value = value(dependencyMap[15], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'AddConnection']);
}
}
function _fun102421() { // fn#102421, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:201, offset: 0x0223ae45, size: 165 bytes, params: 1, frame: 13
const object2 = {'flex': 1, 'maxHeight': 52, 'maxWidth': 52, 'aspectRatio': 1, 'borderRadius': null,
'alignItems': 'center', 'justifyContent': 'center', 'padding': 8};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.round;
return {container: {'flex': 1, 'alignItems': 'center'}, content: {'flex': 1, 'width': '100%', 'maxWidth': 260,
'alignItems': 'center', 'justifyContent': 'center'}, card: {'flex': 1, 'maxHeight': 76, 'maxWidth': 76,
'aspectRatio': 1, 'alignItems': 'center', 'justifyContent': 'center', 'padding': 12},
textContainer: {marginTop: 32}, text: {textAlign: 'center'}, iconContainer: object2, icon: {'flex': 1,
'aspectRatio': 1}};
}
function ConnectionsEmptyStateUpsell() { // fn#102422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1674, offset: 0x0223aeea, size: 710 bytes, params: 1, frame: 32
const styles = useStyles();
const value2 = (ConnectionsHooksModule).useEmptyStatePlatforms();
const value3 = ReactModule.useMemo(_fun102423, [value2]);
const value4 = ReactModule.useMemo(_fun102424, [value2]);
const bottom = (UseSafeAreaInsetsNative)().bottom;
const items2 = [styles.container];
items2[1] = {paddingBottom: bottom};
const Stack = (StackNativeModule).Stack;
let textContainer = styles.textContainer;
const Stack2 = (StackNativeModule).Stack;
const stack = (
<Stack2
spacing={16}
justify="center"
direction="horizontal"
>
{value3.map(_fun102425)}
</Stack2>
);
const Stack3 = (StackNativeModule).Stack;
const stack2 = (
<Stack
spacing={16}
direction="vertical"
align="center"
style={textContainer}
>
{stack}
<Stack3
spacing={16}
justify="center"
direction="horizontal"
>
{value4.map(_fun102426)}
<OtherConnectionsCard count={value2.length - 5} />
</Stack3>
</Stack>
);
textContainer = styles.textContainer;
const Text = (TextModule).Text;
let text = styles.text;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const JlrHXb = (IndexNativeModule).t.JlrHXb;
const text2 = (
<Text
variant="text-lg/bold"
color="mobile-text-heading-primary"
style={text}
>
{Reflect.apply(string, intl, [JlrHXb])}
</Text>
);
text = styles.text;
string = intl.string;
const XijaQP = (IndexNativeModule).t.XijaQP;
return (
<View style={items2}>
<View style={styles.content}>
{stack2}
<Stack
spacing={8}
align="center"
style={textContainer}
>
{text2}
<Text
variant="text-md/medium"
color="text-default"
style={text}
>
{Reflect.apply(string, intl, [XijaQP])}
</Text>
</Stack>
</View>
</View>
);
function _fun102423() { // fn#102423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1772, offset: 0x0223b1b0, size: 25 bytes, params: 1, frame: 13
return env0_0.slice(0, 3);
}
function _fun102424() { // fn#102424, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:1808, offset: 0x0223b1c9, size: 26 bytes, params: 1, frame: 13
return env0_0.slice(3, 5);
}
function _fun102425(a0) { // fn#102425, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:2123, offset: 0x0223b1e3, size: 37 bytes, params: 2, frame: 15
return <EmptyStateCard platform={a0} key={a0.type} />;
}
function _fun102426(a0) { // fn#102426, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13662:2254, offset: 0x0223b1e3, size: 37 bytes, params: 2, frame: 15
return <EmptyStateCard platform={a0} key={a0.type} />;
}
}
}
global.__d(_fun102415, 13472, [31, 27, 661, 33, 4501, 697, 4048, 9354, 13473, 13474, 1423, 4002, 6239, 1305, 4080,
13470, 1962, 4573, 5039, 1585, 4572, 1244,
2]) /* metro module 13472, dependencies: [31, 27, 661, 33, 4501, 697, 4048, 9354, 13473, 13474, 1423, 4002, 6239, 1305, 4080, 13470, 1962, 4573, 5039, 1585, 4572, 1244, 2] */;
@@ -1,49 +1,58 @@
/* Metro module 13469; source: modules/user_settings/connections/native/ConnectionsSettingScreen.tsx; dependencies: [31, 33, 4080, 13470, 1962, 1484, 7032, 9603, 1244, 13471, 2] */
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 IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseSettingNavigationRouteModule from '../../core/native/useSettingNavigationRoute.tsx'; /* Metro dependency 7032 */
import * as HeaderSharedModule from '../../../main_tabs_v2/native/shared_components/HeaderShared.tsx'; /* Metro dependency 9603 */
import * as UserSettingsConnectionsModule from './UserSettingsConnections.tsx'; /* Metro dependency 13471 */
function _fun102390(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:6, offset: 0x02239af8, size: 163 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(ConnectionsSettingScreen);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/ConnectionsSettingScreen.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/ConnectionsSettingScreen.tsx');
exports.default = value;
function onPress_102391() { // fn#102391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:120, offset: 0x02239b9b, size: 79 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[2]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[4]);
value = value(dependencyMap[3], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'AddConnection']);
}
function ConnectionsSettingScreen() { // fn#102392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:209, offset: 0x02239bea, size: 162 bytes, params: 1, frame: 17
const value2 = undefined;
const value3 = (UseNavigationNativeModule).useStackNavigation();
const useSettingNavigationRoute = UseSettingNavigationRouteModule.useSettingNavigationRoute;
const params = Reflect.apply(useSettingNavigationRoute, UseSettingNavigationRouteModule, []).params;
const selectedPlatformType = params == null ? value2 : params.selectedPlatformType;
env0_3.useLayoutEffect(_fun102393, [value3]);
const UserSettingsConnections = (UserSettingsConnectionsModule).UserSettingsConnections;
return <UserSettingsConnections selectedPlatformType={selectedPlatformType} />;
function _fun102393() { // fn#102393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:393, offset: 0x02239c8c, size: 38 bytes, params: 1, frame: 12
const binding = env0_0;
binding.setOptions({headerRight: headerRight_102394});
function headerRight_102394(a0) { // fn#102394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:424, offset: 0x02239cb2, size: 124 bytes, params: 2, frame: 18
const value = environment.__proto__.__proto__;
const HeaderTextButton = (HeaderSharedModule).HeaderTextButton;
const headerTextButtonProps = {...a0};
headerTextButtonProps['onPress'] = onPress_102391;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const OYkgVk = (IndexNativeModule).t.OYkgVk;
headerTextButtonProps['label'] = Reflect.apply(string, intl, [OYkgVk]);
return <HeaderTextButton {...headerTextButtonProps} />;
}
}
}
}
function onPress_102391() { // fn#102391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:120, offset: 0x02239b9b, size: 79 bytes, params: 1, frame: 15
const defaultImport = importDefault(dependencyMap[2]);
const openLazy = defaultImport.openLazy;
let value = require(dependencyMap[4]);
value = value(dependencyMap[3], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport, [value, 'AddConnection']);
}
function ConnectionsSettingScreen() { // fn#102392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:209, offset: 0x02239bea, size: 162 bytes, params: 1, frame: 17
const value2 = undefined;
const value3 = (require(1484) /* metro dependency 1484: useNavigationNative */).useStackNavigation();
const useSettingNavigationRouteModule = require(7032) /* metro dependency 7032: useSettingNavigationRoute */;
const useSettingNavigationRoute = useSettingNavigationRouteModule.useSettingNavigationRoute;
const params = Reflect.apply(useSettingNavigationRoute, useSettingNavigationRouteModule, []).params;
const selectedPlatformType = params == null ? value2 : params.selectedPlatformType;
env0_3.useLayoutEffect(_fun102393, [value3]);
const UserSettingsConnections = (require(13471) /* metro dependency 13471: UserSettingsConnections */).UserSettingsConnections;
return <UserSettingsConnections selectedPlatformType={selectedPlatformType} />;
}
function _fun102393() { // fn#102393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:393, offset: 0x02239c8c, size: 38 bytes, params: 1, frame: 12
const binding = env0_0;
binding.setOptions({headerRight: headerRight_102394});
}
function headerRight_102394(a0) { // fn#102394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13659:424, offset: 0x02239cb2, size: 124 bytes, params: 2, frame: 18
const value = environment.__proto__.__proto__;
const HeaderTextButton = (require(9603) /* metro dependency 9603: HeaderShared */).HeaderTextButton;
const headerTextButtonProps = {...a0};
headerTextButtonProps['onPress'] = onPress_102391;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const OYkgVk = (require(1244) /* metro dependency 1244: indexNative */).t.OYkgVk;
headerTextButtonProps['label'] = Reflect.apply(string, intl, [OYkgVk]);
return <HeaderTextButton {...headerTextButtonProps} />;
}
global.__d(_fun102390, 13469, [31, 33, 4080, 13470, 1962, 1484, 7032, 9603, 1244, 13471,
2]) /* metro module 13469, dependencies: [31, 33, 4080, 13470, 1962, 1484, 7032, 9603, 1244, 13471, 2] */;
@@ -1,9 +1,11 @@
/* Metro module 13473; source: modules/user_settings/connections/native/ConnectionsTracking.tsx; dependencies: [661, 683, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
function _fun102427(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102427, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13663:6, offset: 0x0223b208, size: 120 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/ConnectionsTracking.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/ConnectionsTracking.tsx');
exports.trackEmptyStateCardClicked = function({platformType}) {
var defaultImport = importDefault(dependencyMap[1]);
var CONNECTIONS_EMPTY_STATE_CARD_CLICKED = AnalyticEvents.CONNECTIONS_EMPTY_STATE_CARD_CLICKED;
@@ -11,3 +13,4 @@ function _fun102427(global, require, importDefault, importAll, module, exports,
};
}
global.__d(_fun102427, 13473, [661, 683, 2]) /* metro module 13473, dependencies: [661, 683, 2] */;
@@ -1,137 +1,160 @@
/* Metro module 13471; source: modules/user_settings/connections/native/UserSettingsConnections.tsx; dependencies: [31, 27, 1226, 5109, 5040, 1949, 661, 33, 4501, 697, 4048, 566, 10368, 6779, 5042, 4080, 13470, 1962, 9354, 13472, 7972, 13475, 4572, 13476, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import AuthenticationStore from '../../../../stores/AuthenticationStore.tsx'; /* Metro dependency 1226 */
import LocaleStore from '../../LocaleStore.tsx'; /* Metro dependency 1949 */
import UseTheme from '../../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import ConnectedAccountsStore from '../../../../stores/ConnectedAccountsStore.tsx'; /* Metro dependency 5040 */
import ConnectedAccountsActionCreators from '../../../../actions/ConnectedAccountsActionCreators.tsx'; /* Metro dependency 5042 */
import AuthorizedAppsStore from '../../../../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
import UseConnectionFilteredAppIdentities from '../../../user_application_identity/hooks/useConnectionFilteredAppIdentities.tsx'; /* Metro dependency 10368 */
import ConnectedApplicationIdentity from './ConnectedApplicationIdentity.tsx'; /* Metro dependency 13475 */
import ConnectedAccount from './ConnectedAccount.tsx'; /* Metro dependency 13476 */
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 ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as AuthorizedAppsStoreModule from '../../../../stores/AuthorizedAppsStore.tsx'; /* Metro dependency 5109 */
import * as NativeModule from '../../../../design/void/Form/native/index.tsx'; /* Metro dependency 7972 */
function _fun102404(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102404, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:6, offset: 0x0223a3b5, size: 387 bytes, params: 8, frame: 22
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).ActivityIndicator;
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
const authorizedAppsStore = importDefault(5109) /* metro dependency 5109: AuthorizedAppsStore */;
const env0_7 = (require(5109) /* metro dependency 5109: AuthorizedAppsStore */).FetchState;
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticsLocations;
let value = require(33) /* metro dependency 33 */;
let value = JsxRuntimeModule;
const env0_11 = value.jsx;
const env0_12 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {};
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object.backgroundColor = BACKGROUND_BASE_LOW;
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
object.padding = PX_16;
const env0_13 = Reflect.apply(createStyles, value, [{flex: {flex: 1}, form: object}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/UserSettingsConnections.tsx');
const object2 = {};
const BACKGROUND_BASE_LOW = (Native).colors.BACKGROUND_BASE_LOW;
object2.backgroundColor = BACKGROUND_BASE_LOW;
const PX_16 = (Native).space.PX_16;
object2.padding = PX_16;
const env0_13 = Reflect.apply(createStyles, value, [{flex: {flex: 1}, form: object2}]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/UserSettingsConnections.tsx');
exports.ADD_CONNECTIONS_SHEET_SENTINEL = -1;
exports.UserSettingsConnections = UserSettingsConnections;
}
function UserSettingsConnections({selectedPlatformType}) { // fn#102405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:542, offset: 0x0223a538, size: 595 bytes, params: 2, frame: 22
var r0;
const Form = (require(7972) /* metro dependency 7972: native */).Form;
var items2;
var value;
const styles = useStyles();
const env0_1 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const env0_2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
return LocaleStore.locale;
});
const {fetching,
accounts} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ConnectedAccountsStore],
function() {
var object = {};
object.fetching = ConnectedAccountsStore.isFetching();
object.accounts = ConnectedAccountsStore.getAccounts();
return object;
});
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AuthorizedAppsStore],
function() {
var object = {};
object.authorizedAppsFetchState = AuthorizedAppsStore.getFetchState();
object.authorizedApps = AuthorizedAppsStore.getNewestTokensForNonChildrenApplications();
return object;
});
const authorizedAppsFetchState = value3.authorizedAppsFetchState;
const env0_3 = authorizedAppsFetchState;
const env0_4 = value3.authorizedApps;
const {isLoading,
filteredAppIdentities} = (importDefault(10368) /* metro dependency 10368: useConnectionFilteredAppIdentities */)(AuthenticationStore.getId(),
{includeHidden: true});
const binding = env0_3;
binding.useEffect(_fun102409, [authorizedAppsFetchState]);
binding.useEffect(_fun102410, []);
binding.useEffect(_fun102411, [selectedPlatformType]);
if (fetching) {
r0 = <ActivityIndicator style={styles.flex} size="large" />;
} else if (isLoading) {
r0 = <ActivityIndicator style={styles.flex} size="large" />;
} else if (accounts.length !== 0) {
var formProps = {style: styles.form};
items2 = [filteredAppIdentities.map(_fun102412)];
items2[1] = ((Stack) => <Stack spacing={16}>{accounts.map(_fun102414)}</Stack>)((require(4572) /* metro dependency 4572: StackNative */).Stack);
r0 = <Form {...formProps}>{items2}</Form>;
} else if (filteredAppIdentities.length === 0) {
value = importDefault(13472) /* metro dependency 13472: ConnectionsEmptyStateUpsell */;
value = ((Component) => <Component />)(value);
r0 = value;
} else {
var formProps = {style: styles.form};
items2 = [filteredAppIdentities.map(_fun102412)];
items2[1] = ((Stack) => <Stack spacing={16}>{accounts.map(_fun102414)}</Stack>)((require(4572) /* metro dependency 4572: StackNative */).Stack);
r0 = <Form {...formProps}>{items2}</Form>;
}
return r0;
}
function _fun102409() { // fn#102409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1104, offset: 0x0223a7dd, size: 60 bytes, params: 1, frame: 11
const authorizedAppsFetchStateBinding = authorizedAppsFetchState;
const value = environment.__proto__;
const NOT_FETCHED = FetchState.NOT_FETCHED;
if (authorizedAppsFetchStateBinding === NOT_FETCHED) {
(importDefault(6779) /* metro dependency 6779: AuthorizedAppsActionCreators */).fetch();
}
}
function _fun102410() { // fn#102410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1165, offset: 0x0223a819, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(importDefault(5042) /* metro dependency 5042: ConnectedAccountsActionCreators */).fetch();
}
function _fun102411() { // fn#102411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1206, offset: 0x0223a83e, size: 168 bytes, params: 1, frame: 15
var value2;
var defaultImport2;
var openLazy;
var value;
if (selectedPlatformType != null) {
if (selectedPlatformType === -1) {
value = environment.__proto__;
defaultImport2 = importDefault(dependencyMap[15]);
openLazy = defaultImport2.openLazy;
value = require(dependencyMap[17]);
value = value(dependencyMap[16], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport2, [value, 'AddConnection']);
function UserSettingsConnections({selectedPlatformType}) { // fn#102405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:542, offset: 0x0223a538, size: 595 bytes, params: 2, frame: 22
var r0;
const Form = (NativeModule).Form;
var items2;
var value;
const styles = useStyles();
const env0_1 = (UseTheme)();
const env0_2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([LocaleStore], function() {
return LocaleStore.locale;
});
const {fetching,
accounts} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([ConnectedAccountsStore],
function() {
var object = {};
var connectedAccountsStoreBinding = ConnectedAccountsStore;
object.fetching = connectedAccountsStoreBinding.isFetching();
object.accounts = connectedAccountsStoreBinding.getAccounts();
return object;
});
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([AuthorizedAppsStore],
function() {
var object = {};
var authorizedAppsStoreBinding = AuthorizedAppsStore;
object.authorizedAppsFetchState = authorizedAppsStoreBinding.getFetchState();
object.authorizedApps = authorizedAppsStoreBinding.getNewestTokensForNonChildrenApplications();
return object;
});
const authorizedAppsFetchState = value3.authorizedAppsFetchState;
const authorizedAppsFetchState2 = authorizedAppsFetchState;
const env0_4 = value3.authorizedApps;
const {isLoading,
filteredAppIdentities} = (UseConnectionFilteredAppIdentities)(AuthenticationStore.getId(),
{includeHidden: true});
const binding = authorizedAppsFetchState2;
binding.useEffect(_fun102409, [authorizedAppsFetchState]);
binding.useEffect(_fun102410, []);
binding.useEffect(_fun102411, [selectedPlatformType]);
if (fetching) {
r0 = <ActivityIndicator style={styles.flex} size="large" />;
} else if (isLoading) {
r0 = <ActivityIndicator style={styles.flex} size="large" />;
} else if (accounts.length !== 0) {
var formProps = {style: styles.form};
items2 = [filteredAppIdentities.map(_fun102412)];
items2[1] = ((Stack) => <Stack spacing={16}>{accounts.map(_fun102414)}</Stack>)((require(4572) /* metro dependency 4572: StackNative */).Stack);
r0 = (
<Form {...formProps}>
{items2}
</Form>
);
} else if (filteredAppIdentities.length === 0) {
value = importDefault(13472) /* metro dependency 13472: ConnectionsEmptyStateUpsell */;
value = ((Component) => <Component />)(value);
r0 = value;
} else {
value2 = environment.__proto__;
importDefault(dependencyMap[18])({platformType: selectedPlatformType,
location: AnalyticsLocations.USER_SETTINGS});
var formProps = {style: styles.form};
items2 = [filteredAppIdentities.map(_fun102412)];
items2[1] = ((Stack) => <Stack spacing={16}>{accounts.map(_fun102414)}</Stack>)((require(4572) /* metro dependency 4572: StackNative */).Stack);
r0 = (
<Form {...formProps}>
{items2}
</Form>
);
}
return r0;
function _fun102409() { // fn#102409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1104, offset: 0x0223a7dd, size: 60 bytes, params: 1, frame: 11
const authorizedAppsFetchStateBinding = authorizedAppsFetchState;
const value = environment.__proto__;
const NOT_FETCHED = FetchState.NOT_FETCHED;
if (authorizedAppsFetchStateBinding === NOT_FETCHED) {
(importDefault(6779) /* metro dependency 6779: AuthorizedAppsActionCreators */).fetch();
}
}
function _fun102410() { // fn#102410, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1165, offset: 0x0223a819, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
(ConnectedAccountsActionCreators).fetch();
}
function _fun102411() { // fn#102411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1206, offset: 0x0223a83e, size: 168 bytes, params: 1, frame: 15
var value2;
var defaultImport2;
var openLazy;
var value;
if (selectedPlatformType != null) {
if (selectedPlatformType === -1) {
value = environment.__proto__;
defaultImport2 = importDefault(dependencyMap[15]);
openLazy = defaultImport2.openLazy;
value = require(dependencyMap[17]);
value = value(dependencyMap[16], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport2, [value, 'AddConnection']);
} else {
value2 = environment.__proto__;
importDefault(dependencyMap[18])({platformType: selectedPlatformType,
location: AnalyticsLocations.USER_SETTINGS});
}
}
}
function _fun102412(a0) { // fn#102412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1474, offset: 0x0223a8e6, size: 124 bytes, params: 2, frame: 19
var environment;
const env0_0 = a0;
const value = environment.__proto__;
return ((Component) => <Component identity={a0} token={authorizedApps.find(_fun102413)} key={'' + a0.application_id + '-' + a0.provider_issued_user_id} />)(ConnectedApplicationIdentity);
function _fun102413({application}) { // fn#102413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1514, offset: 0x0223a962, size: 32 bytes, params: 2, frame: 2
return application.id === env0_0.application_id;
}
}
function _fun102414(a0) { // fn#102414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1655, offset: 0x0223a982, size: 74 bytes, params: 2, frame: 17
const value = environment.__proto__;
return ((Component) => <Component theme={env0_1} locale={locale} account={a0} key={a0.id} />)(ConnectedAccount);
}
}
}
function _fun102412(a0) { // fn#102412, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1474, offset: 0x0223a8e6, size: 124 bytes, params: 2, frame: 19
var environment;
const env0_0 = a0;
const value = environment.__proto__;
return ((Component) => <Component identity={a0} token={authorizedApps.find(_fun102413)} key={'' + a0.application_id + '-' + a0.provider_issued_user_id} />)(importDefault(13475) /* metro dependency 13475: ConnectedApplicationIdentity */);
}
function _fun102414(a0) { // fn#102414, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1655, offset: 0x0223a982, size: 74 bytes, params: 2, frame: 17
const value = environment.__proto__;
return ((Component) => <Component theme={env0_1} locale={locale} account={a0} key={a0.id} />)(importDefault(13476) /* metro dependency 13476: ConnectedAccount */);
}
function _fun102413({application}) { // fn#102413, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13661:1514, offset: 0x0223a962, size: 32 bytes, params: 2, frame: 2
return application.id === env0_0.application_id;
}
global.__d(_fun102404, 13471, [31, 27, 1226, 5109, 5040, 1949, 661, 33, 4501, 697, 4048, 566, 10368, 6779, 5042,
4080, 13470, 1962, 9354, 13472, 7972, 13475, 4572, 13476,
2]) /* metro module 13471, dependencies: [31, 27, 1226, 5109, 5040, 1949, 661, 33, 4501, 697, 4048, 566, 10368, 6779, 5042, 4080, 13470, 1962, 9354, 13472, 7972, 13475, 4572, 13476, 2] */;
@@ -1,83 +1,111 @@
/* Metro module 13479; source: modules/user_settings/connections/native/two_way_link/OneWayToTwoWayLinkUpsell.tsx; dependencies: [31, 27, 661, 1376, 33, 4501, 697, 6597, 1305, 10357, 4573, 4578, 1244, 2] */
import TextStyles from '../../../../rebrand/native/TextStyles.tsx'; /* Metro dependency 6597 */
import SelectedDismissibleContent from '../../../../dismissible_content/native/SelectedDismissibleContent.tsx'; /* Metro dependency 10357 */
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 ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as NativeModule from '../../../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as DismissibleContentConstantsModule from '../../../../dismissible_content/DismissibleContentConstants.tsx'; /* Metro dependency 1376 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
function _fun102489(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:6, offset: 0x0223e514, size: 507 bytes, params: 8, frame: 27
var object5;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const Fonts = (require(661) /* metro dependency 661: Constants */).Fonts;
const env0_5 = (require(1376) /* metro dependency 1376: DismissibleContentConstants */).ContentDismissActionType;
let value = require(33) /* metro dependency 33 */;
const Fonts = (ConstantsModule).Fonts;
let value = JsxRuntimeModule;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object5 = {};
const object6 = {'backgroundColor': null, 'margin': 16, 'padding': 12};
object = {};
const object2 = {'backgroundColor': null, 'margin': 16, 'padding': 12};
const BACKGROUND_MOD_NORMAL = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_MOD_NORMAL;
object6.backgroundColor = BACKGROUND_MOD_NORMAL;
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object5.container = object6;
object5.header = {'flexDirection': 'row', 'marginBottom': 4, 'alignItems': 'center'};
object5.titleContainer = {'flexGrow': 1, 'flexShrink': 1};
const object7 = {};
const textStyles = importDefault(6597) /* metro dependency 6597: TextStyles */;
object2.backgroundColor = BACKGROUND_MOD_NORMAL;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.container = object2;
object.header = {'flexDirection': 'row', 'marginBottom': 4, 'alignItems': 'center'};
object.titleContainer = {'flexGrow': 1, 'flexShrink': 1};
const object3 = {};
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
let TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
copyDataProperties(object7, textStyles(PRIMARY_SEMIBOLD, TEXT_DEFAULT, 16), undefined);
object5.title = object7;
const object8 = {};
const value3 = textStyles;
copyDataProperties(object3, TextStyles(PRIMARY_SEMIBOLD, TEXT_DEFAULT, 16), undefined);
object.title = object3;
const object4 = {};
const PRIMARY_MEDIUM = Fonts.PRIMARY_MEDIUM;
TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_DEFAULT;
copyDataProperties(object8, value3(PRIMARY_MEDIUM, TEXT_DEFAULT, 14), undefined);
object5.body = object8;
object5.newContainer = {'paddingHorizontal': 6, 'width': 'auto', 'alignSelf': 'flex-start', 'marginBottom': 4};
object5.reconnectButton = {marginTop: 8};
const env0_8 = Reflect.apply(createStyles, value, [object5]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/OneWayToTwoWayLinkUpsell.tsx');
copyDataProperties(object4, TextStyles(PRIMARY_MEDIUM, TEXT_DEFAULT, 14), undefined);
object.body = object4;
object.newContainer = {'paddingHorizontal': 6, 'width': 'auto', 'alignSelf': 'flex-start', 'marginBottom': 4};
object.reconnectButton = {marginTop: 8};
const env0_8 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/OneWayToTwoWayLinkUpsell.tsx');
exports.OneWayToTwoWayLinkUpsell = OneWayToTwoWayLinkUpsell;
}
function OneWayToTwoWayNewTag({markAsDismissed}) { // fn#102490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:720, offset: 0x0223e70f, size: 119 bytes, params: 2, frame: 17
const styles = useStyles();
env0_3.useEffect(function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}, [markAsDismissed]);
const NewTag = (require(1305) /* metro dependency 1305: native */).NewTag;
return <NewTag containerStyle={styles.newContainer} variant="text-xs/bold" />;
}
function OneWayToTwoWayLinkUpsell({title, body, img, newIndicatorDismissibleContent, onPress}) { // fn#102492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:1015, offset: 0x0223e7a3, size: 418 bytes, params: 2, frame: 28
const styles = useStyles();
const value2 = ((Component) => <Component contentTypes={[newIndicatorDismissibleContent]}>{children_102493}</Component>)(importDefault(10357) /* metro dependency 10357: SelectedDismissibleContent */);
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
let view = <View style={styles.titleContainer}>{value2}<Text style={styles.title} variant="text-md/semibold">{title}</Text></View>;
view = <View style={styles.header}>{view}{img}</View>;
const items4 = [view];
items4[1] = <Text style={styles.body} variant="text-sm/medium">{body}</Text>;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4[2] = <View style={styles.reconnectButton}><Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vD60Pv)} onPress={onPress} /></View>;
return (
<View style={styles.container}>
{items4}
</View>
);
}
function OneWayToTwoWayLinkUpsellChildren({visibleContent, markAsDismissed}) { // fn#102493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:1240, owner: OneWayToTwoWayLinkUpsell.children, offset: 0x0223e945, size: 56 bytes, params: 2, frame: 14
var r0;
const newIndicatorDismissibleContentBinding = newIndicatorDismissibleContent;
let value = null;
if (visibleContent !== newIndicatorDismissibleContentBinding) {
r0 = value;
} else {
value = environment.__proto__;
value = <OneWayToTwoWayNewTag markAsDismissed={markAsDismissed} />;
r0 = value;
function OneWayToTwoWayNewTag({markAsDismissed}) { // fn#102490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:720, offset: 0x0223e70f, size: 119 bytes, params: 2, frame: 17
const styles = useStyles();
ReactModule.useEffect(function() {
return markAsDismissed(ContentDismissActionType.UNKNOWN);
}, [markAsDismissed]);
const NewTag = (NativeModule).NewTag;
return <NewTag containerStyle={styles.newContainer} variant="text-xs/bold" />;
}
return r0;
function OneWayToTwoWayLinkUpsell({title, body, img, newIndicatorDismissibleContent, onPress}) { // fn#102492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:1015, offset: 0x0223e7a3, size: 418 bytes, params: 2, frame: 28
const styles = useStyles();
const value2 = ((Component) => <Component contentTypes={[newIndicatorDismissibleContent]}>{children_102493}</Component>)(SelectedDismissibleContent);
const Text = (TextModule).Text;
let view = (
<View style={styles.titleContainer}>
{value2}
<Text style={styles.title} variant="text-md/semibold">
{title}
</Text>
</View>
);
view = (
<View style={styles.header}>
{view}
{img}
</View>
);
const items4 = [view];
items4[1] = (
<Text style={styles.body} variant="text-sm/medium">
{body}
</Text>
);
const Button = (ButtonNativeModule).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items4[2] = (
<View style={styles.reconnectButton}>
<Button text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vD60Pv)} onPress={onPress} />
</View>
);
return (
<View style={styles.container}>
{items4}
</View>
);
function OneWayToTwoWayLinkUpsellChildren({visibleContent, markAsDismissed}) { // fn#102493, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13669:1240, owner: OneWayToTwoWayLinkUpsell.children, offset: 0x0223e945, size: 56 bytes, params: 2, frame: 14
var r0;
const newIndicatorDismissibleContentBinding = newIndicatorDismissibleContent;
let value = null;
if (visibleContent !== newIndicatorDismissibleContentBinding) {
r0 = value;
} else {
value = environment.__proto__;
value = <OneWayToTwoWayNewTag markAsDismissed={markAsDismissed} />;
r0 = value;
}
return r0;
}
}
}
global.__d(_fun102489, 13479, [31, 27, 661, 1376, 33, 4501, 697, 6597, 1305, 10357, 4573, 4578, 1244,
2]) /* metro module 13479, dependencies: [31, 27, 661, 1376, 33, 4501, 697, 6597, 1305, 10357, 4573, 4578, 1244, 2] */;
@@ -1,12 +1,20 @@
/* Metro module 9341; source: modules/user_settings/connections/native/two_way_link/TwoWayLinkDiscordConsent.tsx; dependencies: [5, 57, 31, 27, 33, 3, 4501, 9333, 5042, 9342, 44, 5467, 6618, 4578, 1244, 2] */
import Module00005 from '../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import KeyboardAwareView from '../../../../keyboard/native/KeyboardAwareView.tsx'; /* Metro dependency 5467 */
import UseOAuth2AuthorizeForm from '../../../../oauth2/native/useOAuth2AuthorizeForm.tsx'; /* Metro dependency 9342 */
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 CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as SafeAreaViewModule from '../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TwoWayLinkStylesModule from './TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun72890(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:6, offset: 0x01d5785b, size: 313 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const env0_4 = importDefault(57) /* metro dependency 57 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_6 = value.View;
const env0_7 = value.ScrollView;
value = require(33) /* metro dependency 33 */;
@@ -14,304 +22,327 @@ function _fun72890(global, require, importDefault, importAll, module, exports, d
const env0_9 = value.jsx;
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('TwoWayLinkDiscordConsentNative');
const env0_11 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({scroller: {'alignSelf': 'stretch',
const env0_11 = (CreateStylesModule).createStyles({scroller: {'alignSelf': 'stretch',
'flexShrink': 1}, flex: {flex: 1}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkDiscordConsent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkDiscordConsent.tsx');
exports.TwoWayLinkDiscordConsent = TwoWayLinkDiscordConsent;
}
function TwoWayLinkDiscordConsent({callbackCode, callbackState, platformType, clientId, scopes, onNext, onError, redirectUri}) { // fn#72891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:464, offset: 0x01d57994, size: 691 bytes, params: 2, frame: 34
var r12;
var Button;
var intl;
const env0_4 = onError;
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const binding = env0_5;
var [property, env0_5] = env0_4(binding.useState(false), 2);
const useCallback = binding.useCallback;
const {header, body, appDetails,
sendAuthorize} = (importDefault(9342) /* metro dependency 9342: useOAuth2AuthorizeForm */)({'clientId': null,
'scopes': null, 'responseType': 'code', 'callback': null, 'isTrustedName': true, 'isEmbeddedFlow': true,
clientId: clientId, scopes: scopes, callback: Reflect.apply(useCallback, binding, [_fun72892(), [callbackCode,
callbackState, platformType, onNext, onError]]), redirectUri: redirectUri, withBackPressHandler: false});
const value8 = binding.useCallback(_fun72896, [sendAuthorize]);
const container = value2.container;
const KeyboardAwareView = importDefault(5467) /* metro dependency 5467: KeyboardAwareView */;
const view = <View style={value2.body}>{header}<View style={value2.bodyContent}>{body}{appDetails}</View></View>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const value10 = sendAuthorize != null;
if (value10) {
var viewBinding2Props = {style: value2.footerButton};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r12 = <View {...viewBinding2Props}><Button size="lg" variant="primary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ZN4hkc)} onPress={value8} loading={property} /></View>;
} else {
r12 = value10;
}
return (
<View style={container}>
<KeyboardAwareView style={styles.flex}>
<ScrollView style={styles.scroller}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
{r12}
</SafeAreaPaddingView>
</ScrollView>
</KeyboardAwareView>
</View>
);
}
function _fun72892() { // fn#72892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:698, offset: 0x01d57c47, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun72894);
return _fun72895;
}
function _fun72896() { // fn#72896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:1171, offset: 0x01d57d55, size: 75 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = importDefault(44) /* metro dependency 44 */;
const sendAuthorizeBinding = sendAuthorize;
value(sendAuthorizeBinding != null, 'sendAuthorize not available');
env0_5(true);
sendAuthorizeBinding({isAuthorized: true});
}
function* _fun72894(a0) { // fn#72894, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:718, offset: 0x01d57c76, size: 223 bytes, params: 2, frame: 23
var code;
var r2;
var r3;
var binding;
var binding2;
var property;
var value4;
var completeTwoWayLink;
var value6;
var value7;
var value8;
var error;
var error2;
var value9;
var body;
var value10;
var value11;
let value = undefined;
if (true) {
value = undefined;
var location = a0.location;
try {
binding = env3_1;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
property = binding2[8];
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
value4 = binding(property);
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
completeTwoWayLink = value4.completeTwoWayLink;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
value6 = Reflect.apply(completeTwoWayLink, value4, [dependencyMap, location, require, importDefault]);
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
if (value8) {
return value7;
}
r2 = value;
r3 = value7;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
function TwoWayLinkDiscordConsent({callbackCode, callbackState, platformType, clientId, scopes, onNext, onError, redirectUri}) { // fn#72891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:464, offset: 0x01d57994, size: 691 bytes, params: 2, frame: 34
var r12;
var Button;
var intl;
const onError2 = onError;
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const binding = env0_5;
var [property, env0_5] = onError2(binding.useState(false), 2);
const useCallback = binding.useCallback;
const {header, body, appDetails,
sendAuthorize} = (UseOAuth2AuthorizeForm)({'clientId': null,
'scopes': null, 'responseType': 'code', 'callback': null, 'isTrustedName': true, 'isEmbeddedFlow': true,
clientId: clientId, scopes: scopes, callback: Reflect.apply(useCallback, binding, [_fun72892(), [callbackCode,
callbackState, platformType, onNext, onError]]), redirectUri: redirectUri, withBackPressHandler: false});
const value8 = binding.useCallback(_fun72896, [sendAuthorize]);
const container = value2.container;
const view = (
<View style={value2.body}>
{header}
<View style={value2.bodyContent}>
{body}
{appDetails}
</View>
</View>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const value10 = sendAuthorize != null;
if (value10) {
var viewBinding2Props = {style: value2.footerButton};
Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
r12 = (
<View {...viewBinding2Props}>
<Button
size="lg"
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ZN4hkc)}
onPress={value8}
loading={property}
/>
</View>
);
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
r12 = value10;
}
return (
<View style={container}>
<KeyboardAwareView style={styles.flex}>
<ScrollView style={styles.scroller}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
{r12}
</SafeAreaPaddingView>
</ScrollView>
</KeyboardAwareView>
</View>
);
function _fun72892() { // fn#72892, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:698, offset: 0x01d57c47, size: 36 bytes, params: 1, frame: 12
const env0_0 = env1_3(_fun72894);
return _fun72895;
function* _fun72894(a0) { // fn#72894, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:718, offset: 0x01d57c76, size: 223 bytes, params: 2, frame: 23
var code;
var r2;
var r3;
var binding;
var binding2;
var property;
var value4;
var completeTwoWayLink;
var value6;
var value7;
var value8;
var error;
var error2;
var value9;
var body;
var value10;
var value11;
let value = undefined;
if (true) {
value = undefined;
var location = a0.location;
try {
binding = env3_1;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
binding2 = env3_2;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
property = binding2[8];
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
value4 = binding(property);
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
completeTwoWayLink = value4.completeTwoWayLink;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
try {
value6 = Reflect.apply(completeTwoWayLink, value4, [dependencyMap, location, require, importDefault]);
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
yield value6;
try {
value7 = undefined;
value8 = false;
} catch (error) {
binding = env3_10;
error2 = binding.error;
value9 = environment.__proto__.__proto__;
Reflect.apply(error2, binding, ['' + dependencyMap + ' link error:', error]);
body = error.body;
code = body == null ? value : body.code;
r2 = code;
r3 = value;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
return value;
}
if (value8) {
return value7;
}
r2 = value;
r3 = value7;
if (r3 != null) {
value11 = environment.__proto__.__proto__;
env2_3();
} else {
value10 = environment.__proto__.__proto__;
env2_4(r2);
}
}
return value;
}
function _fun72895() { // fn#72895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:905, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
function _fun72896() { // fn#72896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9527:1171, offset: 0x01d57d55, size: 75 bytes, params: 1, frame: 15
let value = environment.__proto__;
value = importDefault(44) /* metro dependency 44 */;
const sendAuthorizeBinding = sendAuthorize;
value(sendAuthorizeBinding != null, 'sendAuthorize not available');
env0_5(true);
sendAuthorizeBinding({isAuthorized: true});
}
}
return value;
}
global.__d(_fun72890, 9341, [5, 57, 31, 27, 33, 3, 4501, 9333, 5042, 9342, 44, 5467, 6618, 4578, 1244,
2]) /* metro module 9341, dependencies: [5, 57, 31, 27, 33, 3, 4501, 9333, 5042, 9342, 44, 5467, 6618, 4578, 1244, 2] */;
@@ -1,42 +1,98 @@
/* Metro module 9369; source: modules/user_settings/connections/native/two_way_link/TwoWayLinkError.tsx; dependencies: [31, 27, 33, 4501, 9333, 9370, 4573, 6618, 4572, 4578, 1244, 2] */
import Module09370 from '../../../../../by-id/module-09370.js'; /* Metro dependency 9370 */
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 CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TwoWayLinkStylesModule from './TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun73151(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9555:6, offset: 0x01d60bba, size: 225 bytes, params: 8, frame: 19
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 254,
const env0_7 = (CreateStylesModule).createStyles({image: {'width': 254,
'height': 127, 'marginBottom': 32}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkError.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkError.tsx');
exports.TwoWayLinkError = TwoWayLinkError;
function TwoWayLinkError({onClose, title, body, onRetry}) { // fn#73152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9555:357, offset: 0x01d60c9b, size: 579 bytes, params: 2, frame: 30
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const container = value2.container;
const content = value2.content;
const items3 = [
<Image source={Module09370} style={styles.image} />,
];
const Text = (TextModule).Text;
items3[1] = (
<Text
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
style={value2.title}
>
{title}
</Text>
);
items3[2] = (
<Text
variant="text-md/normal"
color="text-default"
style={value2.body}
>
{body}
</Text>
);
const items2 = [
<View style={content}>
{items3}
</View>,
];
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const Stack = (StackNativeModule).Stack;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<SafeAreaPaddingView bottom style={footerContainer}>
<Stack
spacing={8}
direction="vertical"
style={footerButton}
>
<Button
size="lg"
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5911Lb'])}
onPress={onRetry}
/>
<Button
size="lg"
variant="secondary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
onPress={onClose}
/>
</Stack>
</SafeAreaPaddingView>
);
return (
<View style={container}>
{items2}
</View>
);
}
}
function TwoWayLinkError({onClose, title, body, onRetry}) { // fn#73152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9555:357, offset: 0x01d60c9b, size: 579 bytes, params: 2, frame: 30
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const container = value2.container;
const content = value2.content;
const items3 = [<Image source={importDefault(9370) /* metro dependency 9370 */} style={styles.image} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items3[1] = <Text variant="heading-xl/extrabold" color="mobile-text-heading-primary" style={value2.title}>{title}</Text>;
items3[2] = <Text variant="text-md/normal" color="text-default" style={value2.body}>{body}</Text>;
const items2 = [<View style={content}>{items3}</View>];
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <SafeAreaPaddingView bottom style={footerContainer}><Stack spacing={8} direction="vertical" style={footerButton}><Button size="lg" variant="primary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['5911Lb'])} onPress={onRetry} /><Button size="lg" variant="secondary" text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])} onPress={onClose} /></Stack></SafeAreaPaddingView>;
return (
<View style={container}>
{items2}
</View>
);
}
global.__d(_fun73151, 9369, [31, 27, 33, 4501, 9333, 9370, 4573, 6618, 4572, 4578, 1244,
2]) /* metro module 9369, dependencies: [31, 27, 33, 4501, 9333, 9370, 4573, 6618, 4572, 4578, 1244, 2] */;
@@ -1,79 +1,131 @@
/* Metro module 9332; source: modules/user_settings/connections/native/two_way_link/TwoWayLinkLanding.tsx; dependencies: [31, 27, 5040, 33, 4501, 9333, 566, 4573, 6238, 6766, 1244, 6618, 4572, 4578, 2] */
import ConnectedAccountsStore from '../../../../../stores/ConnectedAccountsStore.tsx'; /* Metro dependency 5040 */
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 FluxModule from '../../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as StackNativeModule from '../../../../../design/components/Stack/native/Stack.native.tsx'; /* Metro dependency 4572 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as TableRowNativeModule from '../../../../../design/components/TableRow/native/TableRow.native.tsx'; /* Metro dependency 6238 */
import * as SafeAreaViewModule from '../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TwoWayLinkStylesModule from './TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun72859(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:6, offset: 0x01d55f8c, size: 261 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 */;
ReactModule;
let value = ReactNativeModule;
const env0_2 = value.Image;
const env0_3 = value.View;
const env0_4 = value.ScrollView;
const connectedAccountsStore = importDefault(5040) /* metro dependency 5040: ConnectedAccountsStore */;
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({image: {marginBottom: 32},
const env0_8 = (CreateStylesModule).createStyles({image: {marginBottom: 32},
valueProps: {'marginTop': 24, 'maxWidth': '100%'}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkLanding.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkLanding.tsx');
exports.TwoWayLinkLanding = TwoWayLinkLanding;
function TwoWayLinkLanding({platformType, img, imgStyle, headerConnect, headerReconnect, body, valueProps, learnMoreLink, onNext}) { // fn#72860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:409, offset: 0x01d56091, size: 837 bytes, params: 2, frame: 35
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const value3 = (FluxModule).useStateFromStores([ConnectedAccountsStore],
_fun72861);
const container = value2.container;
const content = value2.content;
const items2 = [
<Image source={img} style={[styles.image, imgStyle != null && imgStyle]} />,
];
const Text = (TextModule).Text;
items2[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={value2.title}
accessibilityRole="header"
>
{value3 ? headerReconnect ?? headerConnect : headerConnect}
</Text>
);
items2[2] = (
<Text
variant="text-md/medium"
color="text-default"
style={value2.body}
>
{body}
</Text>
);
items2[3] = (
<View style={styles.valueProps}>
{valueProps.map(_fun72862)}
</View>
);
const scrollView = (
<ScrollView alwaysBounceVertical={false}>
<View style={content}>
{items2}
</View>
{
learnMoreLink != null
? ((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-md/normal" color="text-default" style={value2.body}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['/l3n+1'],
{helpCenterLink: learnMoreLink})}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround)
: null
}
</ScrollView>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const Stack = (StackNativeModule).Stack;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
const string = intl.string;
const LhlgY9 = (require(1244) /* metro dependency 1244: indexNative */).t.LhlgY9;
return (
<View style={container}>
{scrollView}
<SafeAreaPaddingView bottom style={footerContainer}>
<Stack
spacing={8}
direction="vertical"
style={footerButton}
>
<Button
variant="primary"
size="lg"
text={Reflect.apply(string, intl, [LhlgY9])}
onPress={onNext}
/>
</Stack>
</SafeAreaPaddingView>
</View>
);
function _fun72861() { // fn#72861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:626, offset: 0x01d563d6, size: 51 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ConnectedAccountsStore.getAccount(null, platformType)?.twoWayLink === false;
}
function _fun72862({label, subLabel, icon}, a1) { // fn#72862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:1128, offset: 0x01d56409, size: 191 bytes, params: 3, frame: 23
const TableRow = (TableRowNativeModule).TableRow;
const tableRowProps = {start: a1 === 0, end: a1 === valueProps.length - 1, subLabel: subLabel};
const Text = (TextModule).Text;
tableRowProps.label = (
<Text variant="text-sm/normal" color="mobile-text-heading-primary">
{label}
</Text>
);
const TableRow2 = (TableRowNativeModule).TableRow;
const Icon = TableRow2.Icon;
tableRowProps.icon = <Icon IconComponent={icon} />;
return <TableRow {...tableRowProps} key={label} />;
}
}
}
function TwoWayLinkLanding({platformType, img, imgStyle, headerConnect, headerReconnect, body, valueProps, learnMoreLink, onNext}) { // fn#72860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:409, offset: 0x01d56091, size: 837 bytes, params: 2, frame: 35
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([ConnectedAccountsStore],
_fun72861);
const container = value2.container;
const content = value2.content;
const items2 = [<Image source={img} style={[styles.image, imgStyle != null && imgStyle]} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={value2.title} accessibilityRole="header">{value3 ? headerReconnect ?? headerConnect : headerConnect}</Text>;
items2[2] = <Text variant="text-md/medium" color="text-default" style={value2.body}>{body}</Text>;
items2[3] = <View style={styles.valueProps}>{valueProps.map(_fun72862)}</View>;
const scrollView = <ScrollView alwaysBounceVertical={false}><View style={content}>{items2}</View>{learnMoreLink != null ? ((TextWithIOSLinkWorkaround) => <TextWithIOSLinkWorkaround variant="text-md/normal" color="text-default" style={value2.body}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t['/l3n+1'],
{helpCenterLink: learnMoreLink})}</TextWithIOSLinkWorkaround>)((require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround) : null}</ScrollView>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
const string = intl.string;
const LhlgY9 = (require(1244) /* metro dependency 1244: indexNative */).t.LhlgY9;
return (
<View style={container}>
{scrollView}
<SafeAreaPaddingView bottom style={footerContainer}>
<Stack
spacing={8}
direction="vertical"
style={footerButton}
>
<Button
variant="primary"
size="lg"
text={Reflect.apply(string, intl, [LhlgY9])}
onPress={onNext}
/>
</Stack>
</SafeAreaPaddingView>
</View>
);
}
function _fun72861() { // fn#72861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:626, offset: 0x01d563d6, size: 51 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ConnectedAccountsStore.getAccount(null, platformType)?.twoWayLink === false;
}
function _fun72862({label, subLabel, icon}, a1) { // fn#72862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9518:1128, offset: 0x01d56409, size: 191 bytes, params: 3, frame: 23
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const tableRowProps = {start: a1 === 0, end: a1 === valueProps.length - 1, subLabel: subLabel};
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
tableRowProps.label = <Text variant="text-sm/normal" color="mobile-text-heading-primary">{label}</Text>;
const TableRow2 = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
const Icon = TableRow2.Icon;
tableRowProps.icon = <Icon IconComponent={icon} />;
return <TableRow {...tableRowProps} key={label} />;
}
global.__d(_fun72859, 9332, [31, 27, 5040, 33, 4501, 9333, 566, 4573, 6238, 6766, 1244, 6618, 4572, 4578,
2]) /* metro module 9332, dependencies: [31, 27, 5040, 33, 4501, 9333, 566, 4573, 6238, 6766, 1244, 6618, 4572, 4578, 2] */;
@@ -1,171 +1,209 @@
/* Metro module 9337; source: modules/user_settings/connections/native/two_way_link/TwoWayLinkPreConnect.tsx; dependencies: [57, 5, 31, 27, 661, 33, 3, 4501, 5042, 9338, 3853, 477, 9333, 5043, 44, 694, 4573, 1244, 6618, 4578, 2] */
import Module00005 from '../../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Dispatcher from '../../../../../Dispatcher.tsx'; /* Metro dependency 694 */
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 ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
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 ButtonNativeModule from '../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TwoWayLinkStylesModule from './TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun72872(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72872, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:6, offset: 0x01d56a59, size: 345 bytes, params: 8, frame: 20
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importDefault(5) /* metro dependency 5 */;
const env0_5 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_6 = value.Image;
const env0_7 = value.View;
const env0_8 = (require(661) /* metro dependency 661: Constants */).WebBrowserType;
value = require(33) /* metro dependency 33 */;
const env0_9 = value.jsx;
const env0_10 = value.jsxs;
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('TwoWayLink');
const env0_12 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {marginBottom: 32},
const env0_12 = (CreateStylesModule).createStyles({image: {marginBottom: 32},
redirect: {marginTop: 8}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkPreConnect.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkPreConnect.tsx');
exports.TwoWayLinkPreConnect = TwoWayLinkPreConnect;
}
function _authorizeLink() { // fn#72873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:309, offset: 0x01d56bb2, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun72875).apply(this, arguments);
function* _fun72875(a0) { // fn#72875, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:360, offset: 0x01d56bef, size: 193 bytes, params: 2, frame: 19
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[8]);
const authorize = value3.authorize;
const TwoWayLinkType = env2_0(binding2[9]).TwoWayLinkType;
const MOBILE = TwoWayLinkType.MOBILE;
yield Reflect.apply(authorize, value3, [a0, {twoWayLinkType: MOBILE}]);
const value4 = undefined;
if (false) {
return value4;
}
const url = value4.body.url;
binding = env2_1;
const binding3 = env2_2;
const value6 = binding(binding3[10]);
const openURL = value6.openURL;
const isAndroid2 = env2_0(binding3[11]).isAndroid();
binding = env2_8;
Reflect.apply(openURL, value6, [url, isAndroid2 ? binding.CHROME : binding.IN_APP]);
return url;
}
function _authorizeLink() { // fn#72873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:309, offset: 0x01d56bb2, size: 50 bytes, params: 1, frame: 14
return env0_4(_fun72875).apply(this, arguments);
}
function TwoWayLinkPreConnect({platformType, onError, onNext, img, imgStyle, title, body, redirectDestination}) { // fn#72876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:694, offset: 0x01d56cb0, size: 821 bytes, params: 2, frame: 31
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const binding = env0_5;
const [property, env0_3] = env0_3Binding(binding.useState(false), 2);
const value6 = binding.useCallback(binding.useRef(undefined)(_fun72878), [onError, platformType]);
binding.useEffect(_fun72881, [binding.useCallback(_fun72880, [platformType, onNext])]);
const container = value2.container;
const content = value2.content;
const items2 = [<Image source={img} style={[styles.image, imgStyle != null && imgStyle]} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={value2.title} accessibilityRole="header">{title}</Text>;
items2[2] = <Text variant="text-md/medium" color="text-default" style={value2.body}>{body}</Text>;
items2[3] = redirectDestination != null && <Text style={styles.redirect} variant="text-sm/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.XhlYYn,
{redirectUrl: redirectDestination})}</Text>;
const view = <View style={content}>{items2}</View>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
variant="primary"
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz'])}
onPress={value6}
loading={property}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
function* _fun72875(a0) { // fn#72875, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:360, offset: 0x01d56bef, size: 193 bytes, params: 2, frame: 19
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
let binding = env2_1;
const binding2 = env2_2;
const value3 = binding(binding2[8]);
const authorize = value3.authorize;
const TwoWayLinkType = env2_0(binding2[9]).TwoWayLinkType;
const MOBILE = TwoWayLinkType.MOBILE;
yield Reflect.apply(authorize, value3, [a0, {twoWayLinkType: MOBILE}]);
const value4 = undefined;
if (false) {
return value4;
function TwoWayLinkPreConnect({platformType, onError, onNext, img, imgStyle, title, body, redirectDestination}) { // fn#72876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:694, offset: 0x01d56cb0, size: 821 bytes, params: 2, frame: 31
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const [property, env0_3] = env0_3Binding(ReactModule.useState(false), 2);
const value6 = ReactModule.useCallback(ReactModule.useRef(undefined)(_fun72878), [onError, platformType]);
ReactModule.useEffect(_fun72881, [ReactModule.useCallback(_fun72880, [platformType, onNext])]);
const container = value2.container;
const content = value2.content;
const items2 = [
<Image source={img} style={[styles.image, imgStyle != null && imgStyle]} />,
];
const Text = (TextModule).Text;
items2[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={value2.title}
accessibilityRole="header"
>
{title}
</Text>
);
items2[2] = (
<Text
variant="text-md/medium"
color="text-default"
style={value2.body}
>
{body}
</Text>
);
items2[3] = redirectDestination != null && <Text style={styles.redirect} variant="text-sm/medium" color="text-default">{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.XhlYYn,
{redirectUrl: redirectDestination})}</Text>;
const view = (
<View style={content}>
{items2}
</View>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
variant="primary"
size="lg"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz'])}
onPress={value6}
loading={property}
/>
</View>
</SafeAreaPaddingView>
</View>
);
function* _fun72878() { // fn#72878, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:936, offset: 0x01d56ff0, size: 177 bytes, params: 1, frame: 18
var environment;
var authorizeLink2;
var value3;
var value4;
var value5;
var error;
if (true) {
value = environment.__proto__;
env1_3(true);
try {
} catch (error) {
importDefault();
return undefined;
}
try {
} catch (error) {
importDefault();
return undefined;
}
try {
authorizeLink2 = authorizeLink;
} catch (error) {
importDefault();
return undefined;
}
try {
value3 = authorizeLink2(require);
} catch (error) {
importDefault();
return undefined;
}
yield value3;
try {
value4 = undefined;
value5 = false;
} catch (error) {
importDefault();
return undefined;
}
if (value5) {
return value4;
}
env1_3(false);
var binding = env2_0;
var binding2 = env2_2;
var value7 = binding(binding2[13]);
var getCallbackParamsFromURL = value7.getCallbackParamsFromURL;
var state = Reflect.apply(getCallbackParamsFromURL, value7, [value4]).state;
env2_1(binding2[14])(state != null, 'Authorize URL state query parameter must be present');
env1_4.current = state;
}
function authorizeLink() { // fn#72879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:972, offset: 0x01d570a1, size: 30 bytes, params: 1, frame: 13
return env3_13.apply(this, arguments);
}
}
function _fun72880({callbackCode, callbackState}) { // fn#72880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:1236, offset: 0x01d570bf, size: 110 bytes, params: 2, frame: 18
var value2;
var binding;
if (callbackState === Module00005.current) {
onNext({callbackCode: callbackCode, callbackState: callbackState});
} else {
value2 = environment.__proto__;
binding = env1_11;
binding.warn('' + platformType + ' link: received mismatching callback state!');
}
}
function _fun72881() { // fn#72881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:1410, offset: 0x01d5712d, size: 59 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
(Dispatcher).subscribe('USER_CONNECTIONS_LINK_CALLBACK', ReactModule);
return _fun72882;
function _fun72882() { // fn#72882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:1470, offset: 0x01d57168, size: 50 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
(Dispatcher).unsubscribe('USER_CONNECTIONS_LINK_CALLBACK', env1_5);
}
}
}
const url = value4.body.url;
binding = env2_1;
const binding3 = env2_2;
const value6 = binding(binding3[10]);
const openURL = value6.openURL;
const isAndroid2 = env2_0(binding3[11]).isAndroid();
binding = env2_8;
Reflect.apply(openURL, value6, [url, isAndroid2 ? binding.CHROME : binding.IN_APP]);
return url;
}
function* _fun72878() { // fn#72878, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:936, offset: 0x01d56ff0, size: 177 bytes, params: 1, frame: 18
var environment;
var closure;
var value3;
var value4;
var value5;
var error;
if (true) {
value = environment.__proto__;
env1_3(true);
try {
} catch (error) {
importDefault();
return undefined;
}
try {
} catch (error) {
importDefault();
return undefined;
}
try {
closure = authorizeLink;
} catch (error) {
importDefault();
return undefined;
}
try {
value3 = closure(require);
} catch (error) {
importDefault();
return undefined;
}
yield value3;
try {
value4 = undefined;
value5 = false;
} catch (error) {
importDefault();
return undefined;
}
if (value5) {
return value4;
}
env1_3(false);
var binding = env2_0;
var binding2 = env2_2;
var value7 = binding(binding2[13]);
var getCallbackParamsFromURL = value7.getCallbackParamsFromURL;
var state = Reflect.apply(getCallbackParamsFromURL, value7, [value4]).state;
env2_1(binding2[14])(state != null, 'Authorize URL state query parameter must be present');
env1_4.current = state;
}
}
function _fun72880({callbackCode, callbackState}) { // fn#72880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:1236, offset: 0x01d570bf, size: 110 bytes, params: 2, frame: 18
var value2;
var binding;
if (callbackState === env0_4.current) {
onNext({callbackCode: callbackCode, callbackState: callbackState});
} else {
value2 = environment.__proto__;
binding = env1_11;
binding.warn('' + platformType + ' link: received mismatching callback state!');
}
}
function _fun72881() { // fn#72881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:1410, offset: 0x01d5712d, size: 59 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).subscribe('USER_CONNECTIONS_LINK_CALLBACK', env0_5);
return _fun72882;
}
function _fun72882() { // fn#72882, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9523:1470, offset: 0x01d57168, size: 50 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).unsubscribe('USER_CONNECTIONS_LINK_CALLBACK', env1_5);
}
global.__d(_fun72872, 9337, [57, 5, 31, 27, 661, 33, 3, 4501, 5042, 9338, 3853, 477, 9333, 5043, 44, 694, 4573,
1244, 6618, 4578,
2]) /* metro module 9337, dependencies: [57, 5, 31, 27, 661, 33, 3, 4501, 5042, 9338, 3853, 477, 9333, 5043, 44, 694, 4573, 1244, 6618, 4578, 2] */;
@@ -1,28 +1,36 @@
/* Metro module 9334; source: modules/user_settings/connections/native/two_way_link/TwoWayLinkStepHeader.tsx; dependencies: [31, 33, 9333, 4573, 1244, 2] */
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 IndexNativeModule from '../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as TwoWayLinkStylesModule from './TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun72864(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9520:6, offset: 0x01d56645, size: 131 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkStepHeader.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkStepHeader.tsx');
exports.TwoWayLinkStepHeader = TwoWayLinkStepHeader;
function TwoWayLinkStepHeader({idx, total}) { // fn#72865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9520:253, offset: 0x01d566c8, size: 169 bytes, params: 2, frame: 20
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const Text = (TextModule).Text;
const stepHeader = value2.stepHeader;
const intl = (IndexNativeModule).intl;
return (
<Text
variant="text-xs/bold"
color="text-default"
style={stepHeader}
>
{intl.format((IndexNativeModule).t.fHz6eR, {number: idx,
total: total})}
</Text>
);
}
}
function TwoWayLinkStepHeader({idx, total}) { // fn#72865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9520:253, offset: 0x01d566c8, size: 169 bytes, params: 2, frame: 20
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const stepHeader = value2.stepHeader;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Text
variant="text-xs/bold"
color="text-default"
style={stepHeader}
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.fHz6eR, {number: idx,
total: total})}
</Text>
);
}
global.__d(_fun72864, 9334, [31, 33, 9333, 4573, 1244,
2]) /* metro module 9334, dependencies: [31, 33, 9333, 4573, 1244, 2] */;
@@ -1,37 +1,40 @@
/* Metro module 9333; source: modules/user_settings/connections/native/two_way_link/TwoWayLinkStyles.tsx; dependencies: [4501, 697, 2] */
import * as FileImportTrackerModule from '../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as CreateStylesModule from '../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
function _fun72863(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9519:6, offset: 0x01d564c8, size: 381 bytes, params: 8, frame: 21
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(4501) /* metro dependency 4501: createStyles */;
let value = CreateStylesModule;
const createStyles = value.createStyles;
object2 = {};
object = {};
let BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object2.container = {'flex': 1, 'alignItems': 'stretch', 'justifyContent': 'flex-start',
object.container = {'flex': 1, 'alignItems': 'stretch', 'justifyContent': 'flex-start',
backgroundColor: BACKGROUND_BASE_LOW};
const object4 = {};
const object3 = {};
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object4.backgroundColor = BACKGROUND_BASE_LOW;
object3.backgroundColor = BACKGROUND_BASE_LOW;
let BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object4.borderBottomColor = BORDER_SUBTLE;
object4.shadowColor = 'transparent';
object2.navHeader = object4;
object2.content = {'alignItems': 'center', 'flex': 1, 'paddingTop': 24, 'paddingHorizontal': 16, 'maxWidth': 480,
object3.borderBottomColor = BORDER_SUBTLE;
object3.shadowColor = 'transparent';
object.navHeader = object3;
object.content = {'alignItems': 'center', 'flex': 1, 'paddingTop': 24, 'paddingHorizontal': 16, 'maxWidth': 480,
'alignSelf': 'center'};
object2.title = {textAlign: 'center'};
object2.stepHeader = {textTransform: 'uppercase'};
object2.body = {'marginTop': 8, 'textAlign': 'center'};
object2.bodyContent = {'flexDirection': 'column', 'gap': 24, 'padding': 16};
const object5 = {'backgroundColor': null, 'borderTopColor': null, 'borderTopWidth': 1, 'paddingTop': 24,
object.title = {textAlign: 'center'};
object.stepHeader = {textTransform: 'uppercase'};
object.body = {'marginTop': 8, 'textAlign': 'center'};
object.bodyContent = {'flexDirection': 'column', 'gap': 24, 'padding': 16};
const object6 = {'backgroundColor': null, 'borderTopColor': null, 'borderTopWidth': 1, 'paddingTop': 24,
'paddingBottom': 18, 'paddingHorizontal': 12, 'width': '100%', 'flexShrink': 0};
BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
object5.backgroundColor = BACKGROUND_BASE_LOW;
object6.backgroundColor = BACKGROUND_BASE_LOW;
BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
object5.borderTopColor = BORDER_SUBTLE;
object2.footerContainer = object5;
object2.footerButton = {marginBottom: 6};
value = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkStyles.tsx');
object6.borderTopColor = BORDER_SUBTLE;
object.footerContainer = object6;
object.footerButton = {marginBottom: 6};
value = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/TwoWayLinkStyles.tsx');
exports.useTwoWayLinkStyles = value;
}
global.__d(_fun72863, 9333, [4501, 697, 2]) /* metro module 9333, dependencies: [4501, 697, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 9374; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73177(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73177, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9560:6, offset: 0x01d615ab, size: 136 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkConstants.tsx');
exports.CrunchyrollLinkModalScenes = {LANDING: 'landing', PRE_CONNECT: 'pre-connect',
DISCORD_CONSENT: 'discord-consent', SUCCESS: 'success', ERROR: 'error'};
}
global.__d(_fun73177, 9374, [2]) /* metro module 9374, dependencies: [2] */;
@@ -1,36 +1,53 @@
/* Metro module 9381; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkDiscordConsent.tsx; dependencies: [31, 9374, 661, 8847, 33, 1484, 9341, 2] */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CrunchyrollConnectionConstantsModule from '../../../../../connections/CrunchyrollConnectionConstants.tsx'; /* Metro dependency 8847 */
import * as TwoWayLinkDiscordConsentModule from '../TwoWayLinkDiscordConsent.tsx'; /* Metro dependency 9341 */
import * as CrunchyrollLinkConstantsModule from './CrunchyrollLinkConstants.tsx'; /* Metro dependency 9374 */
function _fun73191(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73191, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9567:6, offset: 0x01d61c63, size: 211 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(9374) /* metro dependency 9374: CrunchyrollLinkConstants */).CrunchyrollLinkModalScenes;
const env0_4 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const crunchyrollConnectionConstantsModule = require(8847) /* metro dependency 8847: CrunchyrollConnectionConstants */;
const env0_5 = crunchyrollConnectionConstantsModule.CRUNCHYROLL_CLIENT_ID;
const env0_6 = crunchyrollConnectionConstantsModule.CRUNCHYROLL_CLIENT_SCOPES;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkDiscordConsent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkDiscordConsent.tsx');
exports.default = CrunchyrollLinkDiscordConsent;
function CrunchyrollLinkDiscordConsent({callbackCode, callbackState}) { // fn#73192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9567:390, offset: 0x01d61d36, size: 197 bytes, params: 2, frame: 21
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useCallback(_fun73193, [value2]);
const value4 = ReactModule.useCallback(_fun73194, [value2]);
const TwoWayLinkDiscordConsent = (TwoWayLinkDiscordConsentModule).TwoWayLinkDiscordConsent;
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
return (
<TwoWayLinkDiscordConsent
platformType={CRUNCHYROLL}
callbackCode={callbackCode}
callbackState={callbackState}
clientId={CRUNCHYROLL_CLIENT_ID}
scopes={CRUNCHYROLL_CLIENT_SCOPES}
onNext={value3}
onError={value4}
/>
);
function _fun73193() { // fn#73193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9567:510, offset: 0x01d573e9, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const SUCCESS = CrunchyrollLinkModalScenes.SUCCESS;
Reflect.apply(push, binding, [SUCCESS]);
}
function _fun73194() { // fn#73194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9567:557, offset: 0x01d5740b, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const ERROR = CrunchyrollLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR]);
}
}
}
function CrunchyrollLinkDiscordConsent({callbackCode, callbackState}) { // fn#73192, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9567:390, offset: 0x01d61d36, size: 197 bytes, params: 2, frame: 21
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_2;
const value3 = binding.useCallback(_fun73193, [value2]);
const value4 = binding.useCallback(_fun73194, [value2]);
const TwoWayLinkDiscordConsent = (require(9341) /* metro dependency 9341: TwoWayLinkDiscordConsent */).TwoWayLinkDiscordConsent;
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
return (
<TwoWayLinkDiscordConsent
platformType={CRUNCHYROLL}
callbackCode={callbackCode}
callbackState={callbackState}
clientId={CRUNCHYROLL_CLIENT_ID}
scopes={CRUNCHYROLL_CLIENT_SCOPES}
onNext={value3}
onError={value4}
/>
);
}
global.__d(_fun73191, 9381, [31, 9374, 661, 8847, 33, 1484, 9341,
2]) /* metro module 9381, dependencies: [31, 9374, 661, 8847, 33, 1484, 9341, 2] */;
@@ -1,30 +1,38 @@
/* Metro module 9384; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkError.tsx; dependencies: [31, 9374, 33, 1484, 9368, 9369, 1244, 2] */
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 IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseConnectRetryModule from '../useConnectRetry.tsx'; /* Metro dependency 9368 */
import * as TwoWayLinkErrorModule from '../TwoWayLinkError.tsx'; /* Metro dependency 9369 */
import * as CrunchyrollLinkConstantsModule from './CrunchyrollLinkConstants.tsx'; /* Metro dependency 9374 */
function _fun73198(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73198, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9570:6, offset: 0x01d6212d, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(9374) /* metro dependency 9374: CrunchyrollLinkConstants */).CrunchyrollLinkModalScenes;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkError.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkError.tsx');
exports.default = CrunchyrollLinkDiscordError;
function CrunchyrollLinkDiscordError({onClose}) { // fn#73199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9570:289, offset: 0x01d621c6, size: 223 bytes, params: 2, frame: 21
const value2 = (UseNavigationNativeModule).useNavigation();
const useConnectRetry = UseConnectRetryModule.useConnectRetry;
const PRE_CONNECT = CrunchyrollLinkModalScenes.PRE_CONNECT;
const value3 = Reflect.apply(useConnectRetry, UseConnectRetryModule, [value2, PRE_CONNECT]);
const TwoWayLinkError = (TwoWayLinkErrorModule).TwoWayLinkError;
const intl = (IndexNativeModule).intl;
return (
<TwoWayLinkError
title={intl.string((IndexNativeModule).t['8YK70c'])}
body={intl.string((IndexNativeModule).t.moyYLf)}
onClose={onClose}
onRetry={value3}
/>
);
}
}
function CrunchyrollLinkDiscordError({onClose}) { // fn#73199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9570:289, offset: 0x01d621c6, size: 223 bytes, params: 2, frame: 21
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const useConnectRetryModule = require(9368) /* metro dependency 9368: useConnectRetry */;
const useConnectRetry = useConnectRetryModule.useConnectRetry;
const PRE_CONNECT = CrunchyrollLinkModalScenes.PRE_CONNECT;
const value3 = Reflect.apply(useConnectRetry, useConnectRetryModule, [value2, PRE_CONNECT]);
const TwoWayLinkError = (require(9369) /* metro dependency 9369: TwoWayLinkError */).TwoWayLinkError;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<TwoWayLinkError
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['8YK70c'])}
body={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.moyYLf)}
onClose={onClose}
onRetry={value3}
/>
);
}
global.__d(_fun73198, 9384, [31, 9374, 33, 1484, 9368, 9369, 1244,
2]) /* metro module 9384, dependencies: [31, 9374, 33, 1484, 9368, 9369, 1244, 2] */;
@@ -1,51 +1,62 @@
/* Metro module 9375; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkLanding.tsx; dependencies: [31, 9374, 661, 33, 4501, 1244, 9376, 1484, 9332, 9378, 1948, 2] */
import HelpdeskUtils from '../../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TwoWayLinkLandingModule from '../TwoWayLinkLanding.tsx'; /* Metro dependency 9332 */
import * as CrunchyrollLinkConstantsModule from './CrunchyrollLinkConstants.tsx'; /* Metro dependency 9374 */
function _fun73178(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9561:6, offset: 0x01d61633, size: 243 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9374) /* metro dependency 9374: CrunchyrollLinkConstants */).CrunchyrollLinkModalScenes;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.HelpdeskArticles;
const env0_6 = constantsModule.PlatformTypes;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 234,
const env0_8 = (CreateStylesModule).createStyles({image: {'width': 234,
'height': 147}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkLanding.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkLanding.tsx');
exports.default = CrunchyrollLinkLanding;
function CrunchyrollLinkLanding() { // fn#73179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9561:398, offset: 0x01d61726, size: 332 bytes, params: 1, frame: 23
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useMemo(function() {
var object = {};
object.label = require(dependencyMap[5]).intl.string(require(dependencyMap[5]).t['2TXHQd']);
object.icon = require(dependencyMap[6]).PlayIcon;
return [object];
}, []);
const value4 = ReactModule.useCallback(_fun73181, [value2]);
const TwoWayLinkLanding = (TwoWayLinkLandingModule).TwoWayLinkLanding;
object = {};
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
object.platformType = CRUNCHYROLL;
object.img = importDefault(9378) /* metro dependency 9378 */;
object.imgStyle = styles.image;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object.headerConnect = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['Da+3NJ']]);
string = intl.string;
const MaPpPL = (require(1244) /* metro dependency 1244: indexNative */).t.MaPpPL;
object.body = Reflect.apply(string, intl, [MaPpPL]);
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const CRUNCHYROLL_CONNECTION = HelpdeskArticles.CRUNCHYROLL_CONNECTION;
object.learnMoreLink = Reflect.apply(getArticleURL, defaultImport, [CRUNCHYROLL_CONNECTION]);
object.onNext = value4;
object.valueProps = value3;
return <TwoWayLinkLanding {...object} />;
function _fun73181() { // fn#73181, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9561:625, offset: 0x01d55ee2, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const PRE_CONNECT = CrunchyrollLinkModalScenes.PRE_CONNECT;
Reflect.apply(push, binding, [PRE_CONNECT]);
}
}
}
function CrunchyrollLinkLanding() { // fn#73179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9561:398, offset: 0x01d61726, size: 332 bytes, params: 1, frame: 23
var object2;
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_3;
const value3 = binding.useMemo(function() {
var object = {};
object.label = require(dependencyMap[5]).intl.string(require(dependencyMap[5]).t['2TXHQd']);
object.icon = require(dependencyMap[6]).PlayIcon;
return [object];
}, []);
const value4 = binding.useCallback(_fun73181, [value2]);
const TwoWayLinkLanding = (require(9332) /* metro dependency 9332: TwoWayLinkLanding */).TwoWayLinkLanding;
object2 = {};
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
object2.platformType = CRUNCHYROLL;
object2.img = importDefault(9378) /* metro dependency 9378 */;
object2.imgStyle = styles.image;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
object2.headerConnect = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['Da+3NJ']]);
string = intl.string;
const MaPpPL = (require(1244) /* metro dependency 1244: indexNative */).t.MaPpPL;
object2.body = Reflect.apply(string, intl, [MaPpPL]);
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const CRUNCHYROLL_CONNECTION = HelpdeskArticles.CRUNCHYROLL_CONNECTION;
object2.learnMoreLink = Reflect.apply(getArticleURL, defaultImport, [CRUNCHYROLL_CONNECTION]);
object2.onNext = value4;
object2.valueProps = value3;
return <TwoWayLinkLanding {...object2} />;
}
global.__d(_fun73178, 9375, [31, 9374, 661, 33, 4501, 1244, 9376, 1484, 9332, 9378, 1948,
2]) /* metro module 9375, dependencies: [31, 9374, 661, 33, 4501, 1244, 9376, 1484, 9332, 9378, 1948, 2] */;
@@ -1,70 +1,127 @@
/* Metro module 9373; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkModal.tsx; dependencies: [31, 9374, 661, 33, 5277, 8160, 9372, 1244, 9375, 9334, 9379, 9381, 9382, 9384, 9333, 9371, 5280, 2] */
import Module08160 from '../../../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import CrunchyrollLinkModalActionCreators from './CrunchyrollLinkModalActionCreators.tsx'; /* Metro dependency 9372 */
import CrunchyrollLinkLanding from './CrunchyrollLinkLanding.tsx'; /* Metro dependency 9375 */
import CrunchyrollLinkPreConnect from './CrunchyrollLinkPreConnect.tsx'; /* Metro dependency 9379 */
import CrunchyrollLinkDiscordConsent from './CrunchyrollLinkDiscordConsent.tsx'; /* Metro dependency 9381 */
import CrunchyrollLinkSuccess from './CrunchyrollLinkSuccess.tsx'; /* Metro dependency 9382 */
import CrunchyrollLinkError from './CrunchyrollLinkError.tsx'; /* Metro dependency 9384 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as HeaderActionButtonNativeModule from '../../../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
import * as TwoWayLinkStepHeaderModule from '../TwoWayLinkStepHeader.tsx'; /* Metro dependency 9334 */
import * as UseAccountLinkStepTrackingModule from '../useAccountLinkStepTracking.tsx'; /* Metro dependency 9371 */
import * as CrunchyrollLinkConstantsModule from './CrunchyrollLinkConstants.tsx'; /* Metro dependency 9374 */
function _fun73162(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:6, offset: 0x01d61207, size: 197 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9374) /* metro dependency 9374: CrunchyrollLinkConstants */).CrunchyrollLinkModalScenes;
const env0_5 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkModal.tsx');
exports.default = CrunchyrollLinkModal;
function CloseButton_73163() { // fn#73163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:181, offset: 0x01d612cc, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160, onPress: onPress_73164};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
function CloseButton_73163OnPress() { // fn#73164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:264, owner: CloseButton_73163.onPress, offset: 0x01d5564c, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (CrunchyrollLinkModalActionCreators).hideModal();
}
}
function CrunchyrollLinkModal({locationStack}) { // fn#73165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:482, offset: 0x01d6134d, size: 223 bytes, params: 2, frame: 19
const value3 = ReactModule.useMemo(_fun73166,
[(TwoWayLinkStylesModule).useTwoWayLinkStyles()]);
const useAccountLinkStepTracking = UseAccountLinkStepTrackingModule.useAccountLinkStepTracking;
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
const value4 = Reflect.apply(useAccountLinkStepTracking, UseAccountLinkStepTrackingModule, [CRUNCHYROLL,
locationStack]);
const Navigator = (NavigatorNativeModule).Navigator;
const LANDING = CrunchyrollLinkModalScenes.LANDING;
const intl = (IndexNativeModule).intl;
return (
<Navigator
onStateChange={value4}
screens={value3}
initialRouteName={LANDING}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun73166() { // fn#73166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:581, offset: 0x01d6142c, size: 25 bytes, params: 1, frame: 11
return getScreens_73167(env0_0);
function getScreens_73167(a0) { // fn#73167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:585, offset: 0x01d61445, size: 307 bytes, params: 2, frame: 9
const closure = function() {
return null;
};
const LANDING = CrunchyrollLinkModalScenes.LANDING;
const PRE_CONNECT = CrunchyrollLinkModalScenes.PRE_CONNECT;
const DISCORD_CONSENT = CrunchyrollLinkModalScenes.DISCORD_CONSENT;
const SUCCESS = CrunchyrollLinkModalScenes.SUCCESS;
const ERROR = CrunchyrollLinkModalScenes.ERROR;
return {[LANDING]: {headerLeft: closure, headerRight: CloseButton_73163, headerTitle: closure,
headerStyle: a0.navHeader, render: render_73170}, [PRE_CONNECT]: {headerLeft: closure,
headerRight: CloseButton_73163, headerStyle: a0.navHeader, headerTitle: headerTitle_73171,
render: render_73172}, [DISCORD_CONSENT]: {headerLeft: closure, headerRight: CloseButton_73163,
headerStyle: a0.navHeader, headerTitle: headerTitle_73173, render: render_73174},
[SUCCESS]: {headerLeft: closure, headerRight: CloseButton_73163, headerTitle: closure,
headerStyle: a0.navHeader, render: render_73175}, [ERROR]: {headerLeft: closure, headerRight: CloseButton_73163,
headerTitle: closure, headerStyle: a0.navHeader, render: render_73176}};
function getScreens_73167OnClose() { // fn#73168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:620, owner: getScreens_73167.onClose, offset: 0x01d558cf, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (CrunchyrollLinkModalActionCreators).hideModal();
}
function getScreens_73167Render() { // fn#73170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:769, owner: getScreens_73167.render, offset: 0x01d558f4, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(CrunchyrollLinkLanding);
}
function getScreens_73167HeaderTitle() { // fn#73171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:882, owner: getScreens_73167.headerTitle, offset: 0x01d5591b, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (TwoWayLinkStepHeaderModule).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={1} total={2} />;
}
function getScreens_73167Render_73172() { // fn#73172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:941, owner: getScreens_73167.render, offset: 0x01d55954, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(CrunchyrollLinkPreConnect);
}
function getScreens_73167HeaderTitle_73173() { // fn#73173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:1059, owner: getScreens_73167.headerTitle, offset: 0x01d5597b, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (TwoWayLinkStepHeaderModule).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={2} total={2} />;
}
function getScreens_73167Render_73174({callbackCode, callbackState}) { // fn#73174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:1118, owner: getScreens_73167.render, offset: 0x01d559b4, size: 64 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component callbackCode={callbackCode} callbackState={callbackState} />)(CrunchyrollLinkDiscordConsent);
}
function getScreens_73167Render_73175() { // fn#73175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:1303, owner: getScreens_73167.render, offset: 0x01d61578, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_73167OnClose} />)(CrunchyrollLinkSuccess);
}
function getScreens_73167Render_73176() { // fn#73176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:1439, owner: getScreens_73167.render, offset: 0x01d55a1b, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_73167OnClose} />)(CrunchyrollLinkError);
}
}
}
}
}
function CloseButton_73163() { // fn#73163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:181, offset: 0x01d612cc, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: onPress_73164};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function CrunchyrollLinkModal({locationStack}) { // fn#73165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:482, offset: 0x01d6134d, size: 223 bytes, params: 2, frame: 19
const value3 = env0_3.useMemo(_fun73166,
[(require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles()]);
const useAccountLinkStepTrackingModule = require(9371) /* metro dependency 9371: useAccountLinkStepTracking */;
const useAccountLinkStepTracking = useAccountLinkStepTrackingModule.useAccountLinkStepTracking;
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
const value4 = Reflect.apply(useAccountLinkStepTracking, useAccountLinkStepTrackingModule, [CRUNCHYROLL,
locationStack]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const LANDING = CrunchyrollLinkModalScenes.LANDING;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
onStateChange={value4}
screens={value3}
initialRouteName={LANDING}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun73166() { // fn#73166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:581, offset: 0x01d6142c, size: 25 bytes, params: 1, frame: 11
return getScreens_73167(env0_0);
}
function getScreens_73167(a0) { // fn#73167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:585, offset: 0x01d61445, size: 307 bytes, params: 2, frame: 9
const closure = function() {
return null;
};
const LANDING = CrunchyrollLinkModalScenes.LANDING;
const PRE_CONNECT = CrunchyrollLinkModalScenes.PRE_CONNECT;
const DISCORD_CONSENT = CrunchyrollLinkModalScenes.DISCORD_CONSENT;
const SUCCESS = CrunchyrollLinkModalScenes.SUCCESS;
const ERROR = CrunchyrollLinkModalScenes.ERROR;
return {[LANDING]: {headerLeft: closure, headerRight: CloseButton_73163, headerTitle: closure,
headerStyle: a0.navHeader, render: render_73170}, [PRE_CONNECT]: {headerLeft: closure,
headerRight: CloseButton_73163, headerStyle: a0.navHeader, headerTitle: headerTitle_73171,
render: render_73172}, [DISCORD_CONSENT]: {headerLeft: closure, headerRight: CloseButton_73163,
headerStyle: a0.navHeader, headerTitle: headerTitle_73173, render: render_73174},
[SUCCESS]: {headerLeft: closure, headerRight: CloseButton_73163, headerTitle: closure,
headerStyle: a0.navHeader, render: render_73175}, [ERROR]: {headerLeft: closure, headerRight: CloseButton_73163,
headerTitle: closure, headerStyle: a0.navHeader, render: render_73176}};
}
function getScreens_73167Render_73175() { // fn#73175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9559:1303, owner: getScreens_73167.render, offset: 0x01d61578, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_73167OnClose} />)(importDefault(9382) /* metro dependency 9382: CrunchyrollLinkSuccess */);
}
global.__d(_fun73162, 9373, [31, 9374, 661, 33, 5277, 8160, 9372, 1244, 9375, 9334, 9379, 9381, 9382, 9384, 9333,
9371, 5280,
2]) /* metro module 9373, dependencies: [31, 9374, 661, 33, 5277, 8160, 9372, 1244, 9375, 9334, 9379, 9381, 9382, 9384, 9333, 9371, 5280, 2] */;
@@ -1,24 +1,27 @@
/* Metro module 9372; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkModalActionCreators.tsx; dependencies: [5080, 9373, 1962, 2] */
import ModalActionCreators from '../../../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73159(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9558:6, offset: 0x01d61109, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {showModal: showModal_73160, hideModal: hideModal_73161};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkModalActionCreators.tsx');
exports.default = object2;
}
object = {showModal: showModal_73160, hideModal: hideModal_73161};
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkModalActionCreators.tsx');
exports.default = object;
function showModal_73160(a0) { // fn#73160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9558:156, offset: 0x01d61183, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {locationStack: a0},
'USER_SETTINGS_CONNECTIONS_CRUNCHYROLL_LINK_MODAL_KEY']);
}
function showModal_73160(a0) { // fn#73160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9558:156, offset: 0x01d61183, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {locationStack: a0},
'USER_SETTINGS_CONNECTIONS_CRUNCHYROLL_LINK_MODAL_KEY']);
}
function hideModal_73161() { // fn#73161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9558:230, offset: 0x01d611dc, size: 43 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('USER_SETTINGS_CONNECTIONS_CRUNCHYROLL_LINK_MODAL_KEY');
}
function hideModal_73161() { // fn#73161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9558:230, offset: 0x01d611dc, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('USER_SETTINGS_CONNECTIONS_CRUNCHYROLL_LINK_MODAL_KEY');
}
global.__d(_fun73159, 9372, [5080, 9373, 1962, 2]) /* metro module 9372, dependencies: [5080, 9373, 1962, 2] */;
@@ -1,38 +1,57 @@
/* Metro module 9379; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkPreConnect.tsx; dependencies: [31, 9374, 661, 8847, 33, 4501, 1484, 9337, 9380, 1244, 2] */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as CrunchyrollConnectionConstantsModule from '../../../../../connections/CrunchyrollConnectionConstants.tsx'; /* Metro dependency 8847 */
import * as TwoWayLinkPreConnectModule from '../TwoWayLinkPreConnect.tsx'; /* Metro dependency 9337 */
import * as CrunchyrollLinkConstantsModule from './CrunchyrollLinkConstants.tsx'; /* Metro dependency 9374 */
function _fun73186(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73186, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9565:6, offset: 0x01d619ec, size: 255 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9374) /* metro dependency 9374: CrunchyrollLinkConstants */).CrunchyrollLinkModalScenes;
const env0_5 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_6 = (require(8847) /* metro dependency 8847: CrunchyrollConnectionConstants */).CRUNCHYROLL_LINK_DEST_ORIGIN;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 152,
const env0_8 = (CreateStylesModule).createStyles({image: {'width': 152,
'height': 123}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkPreConnect.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkPreConnect.tsx');
exports.default = CrunchyrollLinkPreConnect;
function CrunchyrollLinkPreConnect() { // fn#73187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9565:415, offset: 0x01d61aeb, size: 306 bytes, params: 1, frame: 20
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useCallback(_fun73188, [value2]);
const value4 = ReactModule.useCallback(_fun73189, [value2]);
const TwoWayLinkPreConnect = (TwoWayLinkPreConnectModule).TwoWayLinkPreConnect;
object = {};
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
object.platformType = CRUNCHYROLL;
object.onError = value4;
object.onNext = value3;
object.img = importDefault(9380) /* metro dependency 9380 */;
object.imgStyle = styles.image;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.siPkNp);
object.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oS4NEH);
object.redirectDestination = CRUNCHYROLL_LINK_DEST_ORIGIN;
return <TwoWayLinkPreConnect {...object} />;
function _fun73188(a0) { // fn#73188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9565:505, offset: 0x01d56989, size: 38 bytes, params: 2, frame: 13
const binding = env0_0;
const push = binding.push;
const DISCORD_CONSENT = CrunchyrollLinkModalScenes.DISCORD_CONSENT;
Reflect.apply(push, binding, [DISCORD_CONSENT, a0]);
}
function _fun73189() { // fn#73189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9565:561, offset: 0x01d569af, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const ERROR = CrunchyrollLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR]);
}
}
}
function CrunchyrollLinkPreConnect() { // fn#73187, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9565:415, offset: 0x01d61aeb, size: 306 bytes, params: 1, frame: 20
var object2;
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_3;
const value3 = binding.useCallback(_fun73188, [value2]);
const value4 = binding.useCallback(_fun73189, [value2]);
const TwoWayLinkPreConnect = (require(9337) /* metro dependency 9337: TwoWayLinkPreConnect */).TwoWayLinkPreConnect;
object2 = {};
const CRUNCHYROLL = PlatformTypes.CRUNCHYROLL;
object2.platformType = CRUNCHYROLL;
object2.onError = value4;
object2.onNext = value3;
object2.img = importDefault(9380) /* metro dependency 9380 */;
object2.imgStyle = styles.image;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.siPkNp);
object2.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oS4NEH);
object2.redirectDestination = CRUNCHYROLL_LINK_DEST_ORIGIN;
return <TwoWayLinkPreConnect {...object2} />;
}
global.__d(_fun73186, 9379, [31, 9374, 661, 8847, 33, 4501, 1484, 9337, 9380, 1244,
2]) /* metro module 9379, dependencies: [31, 9374, 661, 8847, 33, 4501, 1484, 9337, 9380, 1244, 2] */;
@@ -1,57 +1,90 @@
/* Metro module 9382; source: modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkSuccess.tsx; dependencies: [31, 27, 33, 4501, 9333, 9383, 4573, 1244, 6618, 4578, 2] */
import Module09383 from '../../../../../../by-id/module-09383.js'; /* Metro dependency 9383 */
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 IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
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 ButtonNativeModule from '../../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun73195(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73195, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9568:6, offset: 0x01d61dfb, size: 225 bytes, params: 8, frame: 19
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 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.Image;
const env0_4 = value.View;
value = require(33) /* metro dependency 33 */;
const env0_5 = value.jsx;
const env0_6 = value.jsxs;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 232,
const env0_7 = (CreateStylesModule).createStyles({image: {'width': 232,
'height': 108, 'marginBottom': 24}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkSuccess.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/crunchyroll/CrunchyrollLinkSuccess.tsx');
exports.default = CrunchyrollLinkDiscordSuccess;
function CrunchyrollLinkDiscordSuccess({onClose}) { // fn#73196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9568:368, offset: 0x01d61edc, size: 523 bytes, params: 2, frame: 27
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const container = value2.container;
const content = value2.content;
const items2 = [
<Image source={Module09383} style={styles.image} />,
];
const Text = (TextModule).Text;
const title = value2.title;
const intl = (IndexNativeModule).intl;
let string = intl.string;
const Fnvxvk = (IndexNativeModule).t.Fnvxvk;
items2[1] = (
<Text
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
style={title}
>
{Reflect.apply(string, intl, [Fnvxvk])}
</Text>
);
const body = value2.body;
string = intl.string;
const YwXceg = (IndexNativeModule).t.YwXceg;
items2[2] = (
<Text
variant="text-md/normal"
color="text-default"
style={body}
>
{Reflect.apply(string, intl, [YwXceg])}
</Text>
);
const view = (
<View style={content}>
{items2}
</View>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="md"
text={intl.string((IndexNativeModule).t.i4jeWR)}
onPress={onClose}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
}
function CrunchyrollLinkDiscordSuccess({onClose}) { // fn#73196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9568:368, offset: 0x01d61edc, size: 523 bytes, params: 2, frame: 27
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const container = value2.container;
const content = value2.content;
const items2 = [<Image source={importDefault(9383) /* metro dependency 9383 */} style={styles.image} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const Fnvxvk = (require(1244) /* metro dependency 1244: indexNative */).t.Fnvxvk;
items2[1] = <Text variant="heading-xl/extrabold" color="mobile-text-heading-primary" style={title}>{Reflect.apply(string,
intl, [Fnvxvk])}</Text>;
const body = value2.body;
string = intl.string;
const YwXceg = (require(1244) /* metro dependency 1244: indexNative */).t.YwXceg;
items2[2] = <Text variant="text-md/normal" color="text-default" style={body}>{Reflect.apply(string, intl,
[YwXceg])}</Text>;
const view = <View style={content}>{items2}</View>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
onPress={onClose}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
global.__d(_fun73195, 9382, [31, 27, 33, 4501, 9333, 9383, 4573, 1244, 6618, 4578,
2]) /* metro module 9382, dependencies: [31, 27, 33, 4501, 9333, 9383, 4573, 1244, 6618, 4578, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 9357; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73122(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73122, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9543:6, offset: 0x01d5fa42, size: 136 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkConstants.tsx');
exports.PlayStationLinkModalScenes = {LANDING: 'landing', PRE_CONNECT: 'pre-connect',
DISCORD_CONSENT: 'discord-consent', SUCCESS: 'success', ERROR: 'error'};
}
global.__d(_fun73122, 9357, [2]) /* metro module 9357, dependencies: [2] */;
@@ -1,45 +1,57 @@
/* Metro module 9362; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkDiscordConsent.tsx; dependencies: [31, 9357, 661, 9340, 33, 1484, 9363, 9364, 9341, 2] */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as GameConsoleConstantsModule from '../../../../../game_console/GameConsoleConstants.tsx'; /* Metro dependency 9340 */
import * as TwoWayLinkDiscordConsentModule from '../TwoWayLinkDiscordConsent.tsx'; /* Metro dependency 9341 */
import * as PlayStationLinkConstantsModule from './PlayStationLinkConstants.tsx'; /* Metro dependency 9357 */
function _fun73135(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73135, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9548:6, offset: 0x01d60159, size: 201 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(9357) /* metro dependency 9357: PlayStationLinkConstants */).PlayStationLinkModalScenes;
const env0_4 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_5 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).PLAYSTATION_CLIENT_SCOPES;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkDiscordConsent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkDiscordConsent.tsx');
exports.PlayStationLinkDiscordConsent = PlayStationLinkDiscordConsent;
function PlayStationLinkDiscordConsent({callbackCode, callbackState, platformType}) { // fn#73136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9548:382, offset: 0x01d60222, size: 362 bytes, params: 2, frame: 22
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useCallback(_fun73137, [value2]);
const value4 = ReactModule.useCallback(_fun73138, [value2]);
let PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
const r8 = platformType === PLAYSTATION_STAGING ? (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID : (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID;
PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
const r4 = platformType === PLAYSTATION_STAGING ? (require(9364) /* metro dependency 9364: ConsoleAuthorizationRedirectURIs */).ConsoleAuthorizationRedirectURIs.PLAYSTATION_STAGING : (require(9364) /* metro dependency 9364: ConsoleAuthorizationRedirectURIs */).ConsoleAuthorizationRedirectURIs.PLAYSTATION;
const TwoWayLinkDiscordConsent = (TwoWayLinkDiscordConsentModule).TwoWayLinkDiscordConsent;
return (
<TwoWayLinkDiscordConsent
platformType={platformType}
callbackCode={callbackCode}
callbackState={callbackState}
clientId={r8}
scopes={PLAYSTATION_CLIENT_SCOPES}
onNext={value3}
onError={value4}
redirectUri={r4}
/>
);
function _fun73137() { // fn#73137, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9548:517, offset: 0x01d573e9, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const SUCCESS = PlayStationLinkModalScenes.SUCCESS;
Reflect.apply(push, binding, [SUCCESS]);
}
function _fun73138(a0) { // fn#73138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9548:564, offset: 0x01d6038c, size: 45 bytes, params: 2, frame: 14
const binding = env0_0;
const push = binding.push;
const ERROR = PlayStationLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR, {errorCode: a0}]);
}
}
}
function PlayStationLinkDiscordConsent({callbackCode, callbackState, platformType}) { // fn#73136, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9548:382, offset: 0x01d60222, size: 362 bytes, params: 2, frame: 22
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_2;
const value3 = binding.useCallback(_fun73137, [value2]);
const value4 = binding.useCallback(_fun73138, [value2]);
let PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
const r8 = platformType === PLAYSTATION_STAGING ? (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications.PLAYSTATION_STAGING_APPLICATION_ID : (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications.PLAYSTATION_APPLICATION_ID;
PLAYSTATION_STAGING = PlatformTypes.PLAYSTATION_STAGING;
const r4 = platformType === PLAYSTATION_STAGING ? (require(9364) /* metro dependency 9364: ConsoleAuthorizationRedirectURIs */).ConsoleAuthorizationRedirectURIs.PLAYSTATION_STAGING : (require(9364) /* metro dependency 9364: ConsoleAuthorizationRedirectURIs */).ConsoleAuthorizationRedirectURIs.PLAYSTATION;
const TwoWayLinkDiscordConsent = (require(9341) /* metro dependency 9341: TwoWayLinkDiscordConsent */).TwoWayLinkDiscordConsent;
return (
<TwoWayLinkDiscordConsent
platformType={platformType}
callbackCode={callbackCode}
callbackState={callbackState}
clientId={r8}
scopes={PLAYSTATION_CLIENT_SCOPES}
onNext={value3}
onError={value4}
redirectUri={r4}
/>
);
}
function _fun73138(a0) { // fn#73138, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9548:564, offset: 0x01d6038c, size: 45 bytes, params: 2, frame: 14
const binding = env0_0;
const push = binding.push;
const ERROR = PlayStationLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR, {errorCode: a0}]);
}
global.__d(_fun73135, 9362, [31, 9357, 661, 9340, 33, 1484, 9363, 9364, 9341,
2]) /* metro module 9362, dependencies: [31, 9357, 661, 9340, 33, 1484, 9363, 9364, 9341, 2] */;
@@ -1,33 +1,40 @@
/* Metro module 9367; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkError.tsx; dependencies: [31, 9357, 661, 33, 1484, 9368, 1244, 9369, 2] */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as PlayStationLinkConstantsModule from './PlayStationLinkConstants.tsx'; /* Metro dependency 9357 */
import * as UseConnectRetryModule from '../useConnectRetry.tsx'; /* Metro dependency 9368 */
import * as TwoWayLinkErrorModule from '../TwoWayLinkError.tsx'; /* Metro dependency 9369 */
function _fun73145(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9553:6, offset: 0x01d608b0, size: 175 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(9357) /* metro dependency 9357: PlayStationLinkConstants */).PlayStationLinkModalScenes;
const env0_3 = (require(661) /* metro dependency 661: Constants */).AbortCodes;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkError.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkError.tsx');
exports.PlayStationLinkError = PlayStationLinkError;
function PlayStationLinkError({onClose, errorCode}) { // fn#73146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9553:323, offset: 0x01d6095f, size: 321 bytes, params: 2, frame: 21
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = (UseNavigationNativeModule).useNavigation();
const useConnectRetry = UseConnectRetryModule.useConnectRetry;
const PRE_CONNECT = PlayStationLinkModalScenes.PRE_CONNECT;
const value3 = Reflect.apply(useConnectRetry, UseConnectRetryModule, [value2, PRE_CONNECT]);
const UNDER_MINIMUM_AGE = AbortCodes.UNDER_MINIMUM_AGE;
const r6 = errorCode === UNDER_MINIMUM_AGE ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3dIn2A']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qE9nqE);
const TwoWayLinkError = (TwoWayLinkErrorModule).TwoWayLinkError;
return (
<TwoWayLinkError
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eY3qHd)}
body={r6}
onClose={onClose}
onRetry={value3}
/>
);
}
}
function PlayStationLinkError({onClose, errorCode}) { // fn#73146, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9553:323, offset: 0x01d6095f, size: 321 bytes, params: 2, frame: 21
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const useConnectRetryModule = require(9368) /* metro dependency 9368: useConnectRetry */;
const useConnectRetry = useConnectRetryModule.useConnectRetry;
const PRE_CONNECT = PlayStationLinkModalScenes.PRE_CONNECT;
const value3 = Reflect.apply(useConnectRetry, useConnectRetryModule, [value2, PRE_CONNECT]);
const UNDER_MINIMUM_AGE = AbortCodes.UNDER_MINIMUM_AGE;
const r6 = errorCode === UNDER_MINIMUM_AGE ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3dIn2A']) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qE9nqE);
const TwoWayLinkError = (require(9369) /* metro dependency 9369: TwoWayLinkError */).TwoWayLinkError;
return (
<TwoWayLinkError
title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eY3qHd)}
body={r6}
onClose={onClose}
onRetry={value3}
/>
);
}
global.__d(_fun73145, 9367, [31, 9357, 661, 33, 1484, 9368, 1244, 9369,
2]) /* metro module 9367, dependencies: [31, 9357, 661, 33, 1484, 9368, 1244, 9369, 2] */;
@@ -1,68 +1,85 @@
/* Metro module 9358; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkLanding.tsx; dependencies: [31, 9357, 661, 33, 4501, 1244, 6711, 8658, 1484, 1948, 9359, 9332, 2] */
import HelpdeskUtils from '../../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as VoiceNormalIconModule from '../../../../../../design/components/Icon/native/redesign/generated/VoiceNormalIcon.tsx'; /* Metro dependency 6711 */
import * as GameControllerIconModule from '../../../../../../design/components/Icon/native/redesign/generated/GameControllerIcon.tsx'; /* Metro dependency 8658 */
import * as TwoWayLinkLandingModule from '../TwoWayLinkLanding.tsx'; /* Metro dependency 9332 */
import * as PlayStationLinkConstantsModule from './PlayStationLinkConstants.tsx'; /* Metro dependency 9357 */
function _fun73123(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73123, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9544:6, offset: 0x01d5faca, size: 233 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9357) /* metro dependency 9357: PlayStationLinkConstants */).PlayStationLinkModalScenes;
const env0_5 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 230,
const env0_7 = (CreateStylesModule).createStyles({image: {'width': 230,
'height': 160}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkLanding.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkLanding.tsx');
exports.PlayStationLinkLanding = PlayStationLinkLanding;
function PlayStationLinkLanding({platformType}) { // fn#73124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9544:391, offset: 0x01d5fbb3, size: 395 bytes, params: 2, frame: 23
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const PS_CONNECTION = HelpdeskArticles.PS_CONNECTION;
const value3 = Reflect.apply(getArticleURL, defaultImport, [PS_CONNECTION]);
const intl = (IndexNativeModule).intl;
const value4 = intl.format((IndexNativeModule).t.kqZQNe,
{helpdeskArticleUrl: value3});
const value5 = ReactModule.useMemo(_fun73125, []);
const value6 = ReactModule.useCallback(_fun73126, [value2]);
const value7 = ReactModule.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[10]);
return object;
}, []);
const TwoWayLinkLanding = (TwoWayLinkLandingModule).TwoWayLinkLanding;
return (
<TwoWayLinkLanding
platformType={platformType}
img={value7}
imgStyle={styles.image}
headerConnect={intl.string((IndexNativeModule).t.xAWHOy)}
headerReconnect={intl.string((IndexNativeModule).t['ZJ/vBh'])}
body={value4}
onNext={value6}
valueProps={value5}
/>
);
function _fun73125() { // fn#73125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9544:594, offset: 0x01d5fd3e, size: 229 bytes, params: 1, frame: 16
let object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.label = Reflect.apply(string, intl, [t['+eJP7o']]);
object.subLabel = intl.string(t['+0VIUh']);
const VoiceNormalIcon = (VoiceNormalIconModule).VoiceNormalIcon;
object.icon = VoiceNormalIcon;
const items2 = [object];
object = {};
string = intl.string;
const ZH4QFa = t.ZH4QFa;
object.label = Reflect.apply(string, intl, [ZH4QFa]);
const GameControllerIcon = (GameControllerIconModule).GameControllerIcon;
object.icon = GameControllerIcon;
items2[1] = object;
return items2;
}
function _fun73126() { // fn#73126, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9544:873, offset: 0x01d55ee2, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const PRE_CONNECT = PlayStationLinkModalScenes.PRE_CONNECT;
Reflect.apply(push, binding, [PRE_CONNECT]);
}
}
}
function PlayStationLinkLanding({platformType}) { // fn#73124, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9544:391, offset: 0x01d5fbb3, size: 395 bytes, params: 2, frame: 23
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const PS_CONNECTION = HelpdeskArticles.PS_CONNECTION;
const value3 = Reflect.apply(getArticleURL, defaultImport, [PS_CONNECTION]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value4 = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.kqZQNe,
{helpdeskArticleUrl: value3});
const binding = env0_3;
const value5 = binding.useMemo(_fun73125, []);
const value6 = binding.useCallback(_fun73126, [value2]);
const value7 = binding.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[10]);
return object;
}, []);
const TwoWayLinkLanding = (require(9332) /* metro dependency 9332: TwoWayLinkLanding */).TwoWayLinkLanding;
return (
<TwoWayLinkLanding
platformType={platformType}
img={value7}
imgStyle={styles.image}
headerConnect={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.xAWHOy)}
headerReconnect={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ZJ/vBh'])}
body={value4}
onNext={value6}
valueProps={value5}
/>
);
}
function _fun73125() { // fn#73125, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9544:594, offset: 0x01d5fd3e, size: 229 bytes, params: 1, frame: 16
let object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.label = Reflect.apply(string, intl, [t['+eJP7o']]);
object2.subLabel = intl.string(t['+0VIUh']);
const VoiceNormalIcon = (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
object2.icon = VoiceNormalIcon;
const items2 = [object2];
object2 = {};
string = intl.string;
const ZH4QFa = t.ZH4QFa;
object2.label = Reflect.apply(string, intl, [ZH4QFa]);
const GameControllerIcon = (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
object2.icon = GameControllerIcon;
items2[1] = object2;
return items2;
}
global.__d(_fun73123, 9358, [31, 9357, 661, 33, 4501, 1244, 6711, 8658, 1484, 1948, 9359, 9332,
2]) /* metro module 9358, dependencies: [31, 9357, 661, 33, 4501, 1244, 6711, 8658, 1484, 1948, 9359, 9332, 2] */;
@@ -1,113 +1,131 @@
/* Metro module 9356; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkModal.tsx; dependencies: [31, 9357, 33, 5277, 8160, 9355, 1244, 9358, 9334, 9360, 9362, 9365, 9367, 9333, 9371, 5280, 2] */
import Module08160 from '../../../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import PlayStationLinkModalActionCreators from './PlayStationLinkModalActionCreators.tsx'; /* Metro dependency 9355 */
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 IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as HeaderActionButtonNativeModule from '../../../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
import * as TwoWayLinkStepHeaderModule from '../TwoWayLinkStepHeader.tsx'; /* Metro dependency 9334 */
import * as PlayStationLinkConstantsModule from './PlayStationLinkConstants.tsx'; /* Metro dependency 9357 */
import * as PlayStationLinkLandingModule from './PlayStationLinkLanding.tsx'; /* Metro dependency 9358 */
import * as PlayStationLinkPreConnectModule from './PlayStationLinkPreConnect.tsx'; /* Metro dependency 9360 */
import * as PlayStationLinkDiscordConsentModule from './PlayStationLinkDiscordConsent.tsx'; /* Metro dependency 9362 */
import * as PlayStationLinkSuccessModule from './PlayStationLinkSuccess.tsx'; /* Metro dependency 9365 */
import * as PlayStationLinkErrorModule from './PlayStationLinkError.tsx'; /* Metro dependency 9367 */
import * as UseAccountLinkStepTrackingModule from '../useAccountLinkStepTracking.tsx'; /* Metro dependency 9371 */
function _fun73107(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:6, offset: 0x01d5f4d7, size: 175 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9357) /* metro dependency 9357: PlayStationLinkConstants */).PlayStationLinkModalScenes;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkModal.tsx');
exports.default = PlayStationLinkModal;
function CloseButton_73108() { // fn#73108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:157, offset: 0x01d5f586, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160, onPress: onPress_73109};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
function CloseButton_73108OnPress() { // fn#73109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:240, owner: CloseButton_73108.onPress, offset: 0x01d5f607, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (PlayStationLinkModalActionCreators).hideModal();
}
}
function PlayStationLinkModal({locationStack, platformType}) { // fn#73110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:458, offset: 0x01d5f62c, size: 227 bytes, params: 2, frame: 21
const value3 = ReactModule.useMemo(_fun73111, [platformType,
(TwoWayLinkStylesModule).useTwoWayLinkStyles()]);
const value4 = (UseAccountLinkStepTrackingModule).useAccountLinkStepTracking(platformType,
locationStack);
const Navigator = (NavigatorNativeModule).Navigator;
const LANDING = PlayStationLinkModalScenes.LANDING;
const intl = (IndexNativeModule).intl;
return (
<Navigator
onStateChange={value4}
screens={value3}
initialRouteName={LANDING}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun73111() { // fn#73111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:572, offset: 0x01d5f70f, size: 30 bytes, params: 1, frame: 13
return getScreens_73112(platformType, env0_1);
function getScreens_73112(a0, a1) { // fn#73112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:576, offset: 0x01d5f72d, size: 314 bytes, params: 3, frame: 9
const env0_0 = a0;
const closure = function() {
return null;
};
const LANDING = PlayStationLinkModalScenes.LANDING;
const PRE_CONNECT = PlayStationLinkModalScenes.PRE_CONNECT;
const DISCORD_CONSENT = PlayStationLinkModalScenes.DISCORD_CONSENT;
const SUCCESS = PlayStationLinkModalScenes.SUCCESS;
const ERROR = PlayStationLinkModalScenes.ERROR;
return {[LANDING]: {headerLeft: closure, headerRight: CloseButton_73108, headerTitle: closure,
headerStyle: a1.navHeader, render: render_73115}, [PRE_CONNECT]: {headerLeft: closure,
headerRight: CloseButton_73108, headerStyle: a1.navHeader, headerTitle: headerTitle_73116,
render: render_73117}, [DISCORD_CONSENT]: {headerLeft: closure, headerRight: CloseButton_73108,
headerStyle: a1.navHeader, headerTitle: headerTitle_73118, render: render_73119},
[SUCCESS]: {headerLeft: closure, headerRight: CloseButton_73108, headerTitle: closure,
headerStyle: a1.navHeader, render: render_73120}, [ERROR]: {headerLeft: closure, headerRight: CloseButton_73108,
headerTitle: closure, headerStyle: a1.navHeader, render: render_73121}};
function getScreens_73112OnClose() { // fn#73113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:613, owner: getScreens_73112.onClose, offset: 0x01d5f867, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (PlayStationLinkModalActionCreators).hideModal();
}
function getScreens_73112Render() { // fn#73115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:762, owner: getScreens_73112.render, offset: 0x01d5f88c, size: 57 bytes, params: 1, frame: 14
const PlayStationLinkLanding = (PlayStationLinkLandingModule).PlayStationLinkLanding;
return <PlayStationLinkLanding platformType={env0_0} />;
}
function getScreens_73112HeaderTitle() { // fn#73116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:912, owner: getScreens_73112.headerTitle, offset: 0x01d5f8c5, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (TwoWayLinkStepHeaderModule).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={1} total={2} />;
}
function getScreens_73112Render_73117() { // fn#73117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:971, owner: getScreens_73112.render, offset: 0x01d5f8fe, size: 57 bytes, params: 1, frame: 14
const PlayStationLinkPreConnect = (PlayStationLinkPreConnectModule).PlayStationLinkPreConnect;
return <PlayStationLinkPreConnect platformType={env0_0} />;
}
function getScreens_73112HeaderTitle_73118() { // fn#73118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1128, owner: getScreens_73112.headerTitle, offset: 0x01d5f937, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (TwoWayLinkStepHeaderModule).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={2} total={2} />;
}
function getScreens_73112Render_73119({callbackCode, callbackState}) { // fn#73119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1187, owner: getScreens_73112.render, offset: 0x01d5f970, size: 82 bytes, params: 2, frame: 16
const PlayStationLinkDiscordConsent = (PlayStationLinkDiscordConsentModule).PlayStationLinkDiscordConsent;
return (
<PlayStationLinkDiscordConsent
platformType={env0_0}
callbackCode={callbackCode}
callbackState={callbackState}
/>
);
}
function getScreens_73112Render_73120() { // fn#73120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1417, owner: getScreens_73112.render, offset: 0x01d5f9c2, size: 57 bytes, params: 1, frame: 14
const PlayStationLinkSuccess = (PlayStationLinkSuccessModule).PlayStationLinkSuccess;
return <PlayStationLinkSuccess onClose={getScreens_73112OnClose} />;
}
function getScreens_73112Render_73121({errorCode}) { // fn#73121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1576, owner: getScreens_73112.render, offset: 0x01d5f9fb, size: 71 bytes, params: 2, frame: 15
const PlayStationLinkError = (PlayStationLinkErrorModule).PlayStationLinkError;
return <PlayStationLinkError onClose={getScreens_73112OnClose} errorCode={errorCode} />;
}
}
}
}
}
function CloseButton_73108() { // fn#73108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:157, offset: 0x01d5f586, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: onPress_73109};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function PlayStationLinkModal({locationStack, platformType}) { // fn#73110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:458, offset: 0x01d5f62c, size: 227 bytes, params: 2, frame: 21
const value3 = env0_3.useMemo(_fun73111, [platformType,
(require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles()]);
const value4 = (require(9371) /* metro dependency 9371: useAccountLinkStepTracking */).useAccountLinkStepTracking(platformType,
locationStack);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const LANDING = PlayStationLinkModalScenes.LANDING;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
onStateChange={value4}
screens={value3}
initialRouteName={LANDING}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function CloseButton_73108OnPress() { // fn#73109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:240, owner: CloseButton_73108.onPress, offset: 0x01d5f607, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(9355) /* metro dependency 9355: PlayStationLinkModalActionCreators */).hideModal();
}
function _fun73111() { // fn#73111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:572, offset: 0x01d5f70f, size: 30 bytes, params: 1, frame: 13
return getScreens_73112(platformType, env0_1);
}
function getScreens_73112(a0, a1) { // fn#73112, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:576, offset: 0x01d5f72d, size: 314 bytes, params: 3, frame: 9
const env0_0 = a0;
const closure = function() {
return null;
};
const LANDING = PlayStationLinkModalScenes.LANDING;
const PRE_CONNECT = PlayStationLinkModalScenes.PRE_CONNECT;
const DISCORD_CONSENT = PlayStationLinkModalScenes.DISCORD_CONSENT;
const SUCCESS = PlayStationLinkModalScenes.SUCCESS;
const ERROR = PlayStationLinkModalScenes.ERROR;
return {[LANDING]: {headerLeft: closure, headerRight: CloseButton_73108, headerTitle: closure,
headerStyle: a1.navHeader, render: render_73115}, [PRE_CONNECT]: {headerLeft: closure,
headerRight: CloseButton_73108, headerStyle: a1.navHeader, headerTitle: headerTitle_73116,
render: render_73117}, [DISCORD_CONSENT]: {headerLeft: closure, headerRight: CloseButton_73108,
headerStyle: a1.navHeader, headerTitle: headerTitle_73118, render: render_73119},
[SUCCESS]: {headerLeft: closure, headerRight: CloseButton_73108, headerTitle: closure,
headerStyle: a1.navHeader, render: render_73120}, [ERROR]: {headerLeft: closure, headerRight: CloseButton_73108,
headerTitle: closure, headerStyle: a1.navHeader, render: render_73121}};
}
function getScreens_73112OnClose() { // fn#73113, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:613, owner: getScreens_73112.onClose, offset: 0x01d5f867, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (importDefault(9355) /* metro dependency 9355: PlayStationLinkModalActionCreators */).hideModal();
}
function getScreens_73112Render() { // fn#73115, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:762, owner: getScreens_73112.render, offset: 0x01d5f88c, size: 57 bytes, params: 1, frame: 14
const PlayStationLinkLanding = (require(9358) /* metro dependency 9358: PlayStationLinkLanding */).PlayStationLinkLanding;
return <PlayStationLinkLanding platformType={env0_0} />;
}
function getScreens_73112HeaderTitle() { // fn#73116, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:912, owner: getScreens_73112.headerTitle, offset: 0x01d5f8c5, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (require(9334) /* metro dependency 9334: TwoWayLinkStepHeader */).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={1} total={2} />;
}
function getScreens_73112Render_73117() { // fn#73117, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:971, owner: getScreens_73112.render, offset: 0x01d5f8fe, size: 57 bytes, params: 1, frame: 14
const PlayStationLinkPreConnect = (require(9360) /* metro dependency 9360: PlayStationLinkPreConnect */).PlayStationLinkPreConnect;
return <PlayStationLinkPreConnect platformType={env0_0} />;
}
function getScreens_73112HeaderTitle_73118() { // fn#73118, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1128, owner: getScreens_73112.headerTitle, offset: 0x01d5f937, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (require(9334) /* metro dependency 9334: TwoWayLinkStepHeader */).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={2} total={2} />;
}
function getScreens_73112Render_73119({callbackCode, callbackState}) { // fn#73119, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1187, owner: getScreens_73112.render, offset: 0x01d5f970, size: 82 bytes, params: 2, frame: 16
const PlayStationLinkDiscordConsent = (require(9362) /* metro dependency 9362: PlayStationLinkDiscordConsent */).PlayStationLinkDiscordConsent;
return (
<PlayStationLinkDiscordConsent
platformType={env0_0}
callbackCode={callbackCode}
callbackState={callbackState}
/>
);
}
function getScreens_73112Render_73120() { // fn#73120, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1417, owner: getScreens_73112.render, offset: 0x01d5f9c2, size: 57 bytes, params: 1, frame: 14
const PlayStationLinkSuccess = (require(9365) /* metro dependency 9365: PlayStationLinkSuccess */).PlayStationLinkSuccess;
return <PlayStationLinkSuccess onClose={getScreens_73112OnClose} />;
}
function getScreens_73112Render_73121({errorCode}) { // fn#73121, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9542:1576, owner: getScreens_73112.render, offset: 0x01d5f9fb, size: 71 bytes, params: 2, frame: 15
const PlayStationLinkError = (require(9367) /* metro dependency 9367: PlayStationLinkError */).PlayStationLinkError;
return <PlayStationLinkError onClose={getScreens_73112OnClose} errorCode={errorCode} />;
}
global.__d(_fun73107, 9356, [31, 9357, 33, 5277, 8160, 9355, 1244, 9358, 9334, 9360, 9362, 9365, 9367, 9333, 9371,
5280,
2]) /* metro module 9356, dependencies: [31, 9357, 33, 5277, 8160, 9355, 1244, 9358, 9334, 9360, 9362, 9365, 9367, 9333, 9371, 5280, 2] */;
@@ -1,24 +1,27 @@
/* Metro module 9355; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkModalActionCreators.tsx; dependencies: [5080, 9356, 1962, 2] */
import ModalActionCreators from '../../../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun73104(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9541:6, offset: 0x01d5f3d1, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {showModal: showModal_73105, hideModal: hideModal_73106};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkModalActionCreators.tsx');
exports.default = object2;
}
object = {showModal: showModal_73105, hideModal: hideModal_73106};
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkModalActionCreators.tsx');
exports.default = object;
function showModal_73105(a0, a1) { // fn#73105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9541:147, offset: 0x01d5f44b, size: 97 bytes, params: 3, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {locationStack: a0, platformType: a1},
'USER_SETTINGS_CONNECTIONS_PS_LINK_MODAL_KEY']);
}
function showModal_73105(a0, a1) { // fn#73105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9541:147, offset: 0x01d5f44b, size: 97 bytes, params: 3, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {locationStack: a0, platformType: a1},
'USER_SETTINGS_CONNECTIONS_PS_LINK_MODAL_KEY']);
}
function hideModal_73106() { // fn#73106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9541:238, offset: 0x01d5f4ac, size: 43 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('USER_SETTINGS_CONNECTIONS_PS_LINK_MODAL_KEY');
}
function hideModal_73106() { // fn#73106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9541:238, offset: 0x01d5f4ac, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('USER_SETTINGS_CONNECTIONS_PS_LINK_MODAL_KEY');
}
global.__d(_fun73104, 9355, [5080, 9356, 1962, 2]) /* metro module 9355, dependencies: [5080, 9356, 1962, 2] */;
@@ -1,45 +1,58 @@
/* Metro module 9360; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkPreConnect.tsx; dependencies: [31, 9357, 33, 4501, 1484, 9361, 9337, 1244, 2] */
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 UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TwoWayLinkPreConnectModule from '../TwoWayLinkPreConnect.tsx'; /* Metro dependency 9337 */
import * as PlayStationLinkConstantsModule from './PlayStationLinkConstants.tsx'; /* Metro dependency 9357 */
function _fun73129(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73129, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9546:6, offset: 0x01d5feab, size: 211 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9357) /* metro dependency 9357: PlayStationLinkConstants */).PlayStationLinkModalScenes;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 231,
const env0_6 = (CreateStylesModule).createStyles({image: {'width': 231,
'height': 160}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkPreConnect.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkPreConnect.tsx');
exports.PlayStationLinkPreConnect = PlayStationLinkPreConnect;
function PlayStationLinkPreConnect({platformType}) { // fn#73130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9546:369, offset: 0x01d5ff7e, size: 302 bytes, params: 2, frame: 21
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useCallback(_fun73131, [value2]);
const value4 = ReactModule.useCallback(_fun73132, [value2]);
const value5 = ReactModule.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[5]);
return object;
}, []);
const TwoWayLinkPreConnect = (TwoWayLinkPreConnectModule).TwoWayLinkPreConnect;
const twoWayLinkPreConnectProps = {platformType: platformType, onError: value4, onNext: value3, img: value5,
imgStyle: styles.image};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
twoWayLinkPreConnectProps.title = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['6n+UPR']]);
string = intl.string;
const JaaqIf = (require(1244) /* metro dependency 1244: indexNative */).t.JaaqIf;
twoWayLinkPreConnectProps.body = Reflect.apply(string, intl, [JaaqIf]);
return <TwoWayLinkPreConnect {...twoWayLinkPreConnectProps} />;
function _fun73131(a0) { // fn#73131, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9546:475, offset: 0x01d56989, size: 38 bytes, params: 2, frame: 13
const binding = env0_0;
const push = binding.push;
const DISCORD_CONSENT = PlayStationLinkModalScenes.DISCORD_CONSENT;
Reflect.apply(push, binding, [DISCORD_CONSENT, a0]);
}
function _fun73132() { // fn#73132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9546:531, offset: 0x01d600ac, size: 37 bytes, params: 1, frame: 13
const binding = env0_0;
const push = binding.push;
const ERROR = PlayStationLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR, {}]);
}
}
}
function PlayStationLinkPreConnect({platformType}) { // fn#73130, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9546:369, offset: 0x01d5ff7e, size: 302 bytes, params: 2, frame: 21
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_3;
const value3 = binding.useCallback(_fun73131, [value2]);
const value4 = binding.useCallback(_fun73132, [value2]);
const value5 = binding.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[5]);
return object;
}, []);
const TwoWayLinkPreConnect = (require(9337) /* metro dependency 9337: TwoWayLinkPreConnect */).TwoWayLinkPreConnect;
const twoWayLinkPreConnectProps = {platformType: platformType, onError: value4, onNext: value3, img: value5,
imgStyle: styles.image};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
twoWayLinkPreConnectProps.title = Reflect.apply(string, intl,
[(require(1244) /* metro dependency 1244: indexNative */).t['6n+UPR']]);
string = intl.string;
const JaaqIf = (require(1244) /* metro dependency 1244: indexNative */).t.JaaqIf;
twoWayLinkPreConnectProps.body = Reflect.apply(string, intl, [JaaqIf]);
return <TwoWayLinkPreConnect {...twoWayLinkPreConnectProps} />;
}
function _fun73132() { // fn#73132, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9546:531, offset: 0x01d600ac, size: 37 bytes, params: 1, frame: 13
const binding = env0_0;
const push = binding.push;
const ERROR = PlayStationLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR, {}]);
}
global.__d(_fun73129, 9360, [31, 9357, 33, 4501, 1484, 9361, 9337, 1244,
2]) /* metro module 9360, dependencies: [31, 9357, 33, 4501, 1484, 9361, 9337, 1244, 2] */;
@@ -1,61 +1,91 @@
/* Metro module 9365; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkSuccess.tsx; dependencies: [31, 27, 33, 4501, 9333, 9366, 4573, 1244, 6618, 4578, 2] */
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 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 ButtonNativeModule from '../../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun73141(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9551:6, offset: 0x01d6054d, size: 229 bytes, params: 8, frame: 19
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 */;
let value = ReactNativeModule;
const env0_4 = value.Image;
const env0_5 = value.View;
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({image: {'width': 124,
const env0_8 = (CreateStylesModule).createStyles({image: {'width': 124,
'height': 160, 'marginBottom': 24}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkSuccess.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationLinkSuccess.tsx');
exports.PlayStationLinkSuccess = PlayStationLinkSuccess;
function PlayStationLinkSuccess({onClose}) { // fn#73142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9551:385, offset: 0x01d60632, size: 535 bytes, params: 2, frame: 27
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const value3 = ReactModule.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[5]);
return object;
}, []);
const container = value2.container;
const content = value2.content;
const items2 = [
<Image source={value3} style={styles.image} />,
];
const Text = (TextModule).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = (
<Text
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
style={title}
>
{Reflect.apply(string, intl, [(require(1244) /* metro dependency 1244: indexNative */).t.e6SOl0])}
</Text>
);
const body = value2.body;
string = intl.string;
const QjAZAQ = (require(1244) /* metro dependency 1244: indexNative */).t.QjAZAQ;
items2[2] = (
<Text
variant="text-md/normal"
color="text-default"
style={body}
>
{Reflect.apply(string, intl, [QjAZAQ])}
</Text>
);
const view = (
<View style={content}>
{items2}
</View>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
onPress={onClose}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
}
function PlayStationLinkSuccess({onClose}) { // fn#73142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9551:385, offset: 0x01d60632, size: 535 bytes, params: 2, frame: 27
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const value3 = env0_3.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[5]);
return object;
}, []);
const container = value2.container;
const content = value2.content;
const items2 = [<Image source={value3} style={styles.image} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
items2[1] = <Text variant="heading-xl/extrabold" color="mobile-text-heading-primary" style={title}>{Reflect.apply(string,
intl, [(require(1244) /* metro dependency 1244: indexNative */).t.e6SOl0])}</Text>;
const body = value2.body;
string = intl.string;
const QjAZAQ = (require(1244) /* metro dependency 1244: indexNative */).t.QjAZAQ;
items2[2] = <Text variant="text-md/normal" color="text-default" style={body}>{Reflect.apply(string, intl,
[QjAZAQ])}</Text>;
const view = <View style={content}>{items2}</View>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="md"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
onPress={onClose}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
global.__d(_fun73141, 9365, [31, 27, 33, 4501, 9333, 9366, 4573, 1244, 6618, 4578,
2]) /* metro module 9365, dependencies: [31, 27, 33, 4501, 9333, 9366, 4573, 1244, 6618, 4578, 2] */;
@@ -1,41 +1,46 @@
/* Metro module 13481; source: modules/user_settings/connections/native/two_way_link/playstation/PlayStationTwoWayLinkUpsell.tsx; dependencies: [31, 661, 33, 4501, 1948, 13479, 1244, 5475, 13482, 1365, 9355, 2] */
import HelpdeskUtils from '../../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as Dismissible_contentModule from '../../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as OneWayToTwoWayLinkUpsellModule from '../OneWayToTwoWayLinkUpsell.tsx'; /* Metro dependency 13479 */
function _fun102495(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102495, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13671:6, offset: 0x0223e9c3, size: 227 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.HelpdeskArticles;
const env0_4 = constantsModule.AnalyticsLocations;
const env0_5 = constantsModule.PlatformTypes;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({upsellImage: {'alignSelf': 'center',
ReactModule;
const env0_7 = (CreateStylesModule).createStyles({upsellImage: {'alignSelf': 'center',
'width': 84, 'marginLeft': 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationTwoWayLinkUpsell.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/playstation/PlayStationTwoWayLinkUpsell.tsx');
exports.PlayStationTwoWayLinkUpsell = PlayStationTwoWayLinkUpsell;
function PlayStationTwoWayLinkUpsell() { // fn#102496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13671:434, offset: 0x0223eaa6, size: 302 bytes, params: 1, frame: 22
const styles = useStyles();
let defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const PS_CONNECTION = HelpdeskArticles.PS_CONNECTION;
const value2 = Reflect.apply(getArticleURL, defaultImport, [PS_CONNECTION]);
const OneWayToTwoWayLinkUpsell = (OneWayToTwoWayLinkUpsellModule).OneWayToTwoWayLinkUpsell;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v20wwm);
object.body = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.lTZBit, {help_article: value2});
object.img = ((Component) => <Component style={styles.upsellImage} source={importDefault(13482) /* metro dependency 13482 */} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const PS_ONE_WAY_RECONNECT = DismissibleContent.PS_ONE_WAY_RECONNECT;
object.newIndicatorDismissibleContent = PS_ONE_WAY_RECONNECT;
object.onPress = function() {
var defaultImport = importDefault(dependencyMap[10]);
var RELINK_UPSELL = AnalyticsLocations.RELINK_UPSELL;
return defaultImport.showModal([RELINK_UPSELL], PlatformTypes.PLAYSTATION);
};
return <OneWayToTwoWayLinkUpsell {...object} />;
}
}
function PlayStationTwoWayLinkUpsell() { // fn#102496, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13671:434, offset: 0x0223eaa6, size: 302 bytes, params: 1, frame: 22
const styles = useStyles();
let defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const PS_CONNECTION = HelpdeskArticles.PS_CONNECTION;
const value2 = Reflect.apply(getArticleURL, defaultImport, [PS_CONNECTION]);
const OneWayToTwoWayLinkUpsell = (require(13479) /* metro dependency 13479: OneWayToTwoWayLinkUpsell */).OneWayToTwoWayLinkUpsell;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.v20wwm);
object2.body = intl.format((require(1244) /* metro dependency 1244: indexNative */).t.lTZBit,
{help_article: value2});
object2.img = ((Component) => <Component style={styles.upsellImage} source={importDefault(13482) /* metro dependency 13482 */} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const PS_ONE_WAY_RECONNECT = DismissibleContent.PS_ONE_WAY_RECONNECT;
object2.newIndicatorDismissibleContent = PS_ONE_WAY_RECONNECT;
object2.onPress = function() {
var defaultImport = importDefault(dependencyMap[10]);
var RELINK_UPSELL = AnalyticsLocations.RELINK_UPSELL;
return defaultImport.showModal([RELINK_UPSELL], PlatformTypes.PLAYSTATION);
};
return <OneWayToTwoWayLinkUpsell {...object2} />;
}
global.__d(_fun102495, 13481, [31, 661, 33, 4501, 1948, 13479, 1244, 5475, 13482, 1365, 9355,
2]) /* metro module 13481, dependencies: [31, 661, 33, 4501, 1948, 13479, 1244, 5475, 13482, 1365, 9355, 2] */;
@@ -1,43 +1,46 @@
/* Metro module 9371; source: modules/user_settings/connections/native/two_way_link/useAccountLinkStepTracking.tsx; dependencies: [31, 661, 683, 2] */
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 ConstantsModule from '../../../../../Constants.tsx'; /* Metro dependency 661 */
function _fun73154(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:6, offset: 0x01d60f24, size: 150 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/useAccountLinkStepTracking.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/useAccountLinkStepTracking.tsx');
exports.useAccountLinkStepTracking = useAccountLinkStepTracking;
}
function _handleStateChange(a0, a1, a2, a3) { // fn#73155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:131, offset: 0x01d60fba, size: 141 bytes, params: 5, frame: 19
var index;
var value2;
var defaultImport;
if (a0 != null) {
index = a0.index;
value2 = undefined;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACCOUNT_LINK_STEP, {location_stack: a3,
previous_step: a1.current != null ? a0.routeNames[a1.current] : value2, current_step: a0.routeNames[index],
platform_type: a2});
a1.current = index;
function _handleStateChange(a0, a1, a2, a3) { // fn#73155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:131, offset: 0x01d60fba, size: 141 bytes, params: 5, frame: 19
var index;
var value2;
var defaultImport;
if (a0 != null) {
index = a0.index;
value2 = undefined;
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACCOUNT_LINK_STEP, {location_stack: a3,
previous_step: a1.current != null ? a0.routeNames[a1.current] : value2, current_step: a0.routeNames[index],
platform_type: a2});
a1.current = index;
}
}
function useAccountLinkStepTracking(a0, a1) { // fn#73156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:514, offset: 0x01d61047, size: 101 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_2;
var env0_2 = binding.useRef(null);
const value = binding.useCallback(_fun73157, [a1, a0]);
binding.useEffect(_fun73158, [a1, a0]);
return value;
function _fun73157(a0) { // fn#73157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:593, offset: 0x01d610ac, size: 35 bytes, params: 2, frame: 17
_handleStateChange(a0, env0_2, env0_0, require);
}
function _fun73158() { // fn#73158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:652, offset: 0x01d610cf, size: 58 bytes, params: 1, frame: 17
_handleStateChange({index: 0, routeNames: ['landing']}, env0_2, env0_0, require);
}
}
}
function useAccountLinkStepTracking(a0, a1) { // fn#73156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:514, offset: 0x01d61047, size: 101 bytes, params: 3, frame: 16
const env0_0 = a0;
const env0_1 = a1;
const binding = env0_2;
var env0_2 = binding.useRef(null);
const value = binding.useCallback(_fun73157, [a1, a0]);
binding.useEffect(_fun73158, [a1, a0]);
return value;
}
function _fun73157(a0) { // fn#73157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:593, offset: 0x01d610ac, size: 35 bytes, params: 2, frame: 17
_handleStateChange(a0, env0_2, env0_0, require);
}
function _fun73158() { // fn#73158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9557:652, offset: 0x01d610cf, size: 58 bytes, params: 1, frame: 17
_handleStateChange({index: 0, routeNames: ['landing']}, env0_2, env0_0, require);
}
global.__d(_fun73154, 9371, [31, 661, 683, 2]) /* metro module 9371, dependencies: [31, 661, 683, 2] */;
@@ -1,30 +1,33 @@
/* Metro module 9368; source: modules/user_settings/connections/native/two_way_link/useConnectRetry.tsx; dependencies: [31, 2] */
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 */
function _fun73147(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9554:6, offset: 0x01d60aa0, size: 106 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importAll(31) /* metro dependency 31 */;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/useConnectRetry.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/useConnectRetry.tsx');
exports.useConnectRetry = useConnectRetry;
}
function useConnectRetry(a0, a1) { // fn#73148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9554:231, offset: 0x01d60b0a, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_0.useCallback(_fun73149, [a0, a1]);
function _fun73149() { // fn#73149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9554:283, offset: 0x01d60b41, size: 100 bytes, params: 1, frame: 13
let binding = env0_0;
const getState = binding.getState;
const routes = Reflect.apply(getState, binding, []).routes;
const index = routes.findIndex(function({name}) {
return name === require;
});
if (index >= 0) {
binding = env0_0;
binding.pop(routes.length - index - 1);
} else {
env0_0.popToTop();
}
}
function useConnectRetry(a0, a1) { // fn#73148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9554:231, offset: 0x01d60b0a, size: 55 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_0.useCallback(_fun73149, [a0, a1]);
}
function _fun73149() { // fn#73149, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9554:283, offset: 0x01d60b41, size: 100 bytes, params: 1, frame: 13
let binding = env0_0;
const getState = binding.getState;
const routes = Reflect.apply(getState, binding, []).routes;
const index = routes.findIndex(function({name}) {
return name === require;
});
if (index >= 0) {
binding = env0_0;
binding.pop(routes.length - index - 1);
} else {
env0_0.popToTop();
}
}
global.__d(_fun73147, 9368, [31, 2]) /* metro module 9368, dependencies: [31, 2] */;
@@ -1,9 +1,12 @@
/* Metro module 9329; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun72852(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9515:6, offset: 0x01d55a81, size: 148 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkConstants.tsx');
exports.XboxLinkModalScenes = {LANDING: 'landing', PRE_CONNECT: 'pre-connect', DISCORD_CONSENT: 'discord-consent',
SUCCESS: 'success', EDUCATION: 'education', ERROR: 'error'};
}
global.__d(_fun72852, 9329, [2]) /* metro module 9329, dependencies: [2] */;
@@ -1,36 +1,56 @@
/* Metro module 9339; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkDiscordConsent.tsx; dependencies: [31, 9329, 661, 9340, 33, 1484, 9341, 9363, 2] */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as XboxLinkConstantsModule from './XboxLinkConstants.tsx'; /* Metro dependency 9329 */
import * as GameConsoleConstantsModule from '../../../../../game_console/GameConsoleConstants.tsx'; /* Metro dependency 9340 */
import * as TwoWayLinkDiscordConsentModule from '../TwoWayLinkDiscordConsent.tsx'; /* Metro dependency 9341 */
import * as ConsoleOAuthApplicationsModule from '../../../../../../external/discord_common/js/shared/shared-constants/ConsoleOAuthApplications.tsx'; /* Metro dependency 9363 */
function _fun72884(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9525:6, offset: 0x01d57247, size: 201 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(9329) /* metro dependency 9329: XboxLinkConstants */).XboxLinkModalScenes;
const env0_4 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_5 = (require(9340) /* metro dependency 9340: GameConsoleConstants */).XBOX_CLIENT_SCOPES;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkDiscordConsent.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkDiscordConsent.tsx');
exports.default = XboxLinkDiscordConsent;
function XboxLinkDiscordConsent({callbackCode, callbackState}) { // fn#72885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9525:332, offset: 0x01d57310, size: 217 bytes, params: 2, frame: 21
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useCallback(_fun72886, [value2]);
const value4 = ReactModule.useCallback(_fun72887, [value2]);
const TwoWayLinkDiscordConsent = (TwoWayLinkDiscordConsentModule).TwoWayLinkDiscordConsent;
const XBOX = PlatformTypes.XBOX;
const ConsoleOAuthApplications = (ConsoleOAuthApplicationsModule).ConsoleOAuthApplications;
const XBOX_APPLICATION_ID = ConsoleOAuthApplications.XBOX_APPLICATION_ID;
return (
<TwoWayLinkDiscordConsent
platformType={XBOX}
callbackCode={callbackCode}
callbackState={callbackState}
clientId={XBOX_APPLICATION_ID}
scopes={XBOX_CLIENT_SCOPES}
onNext={value3}
onError={value4}
/>
);
function _fun72886() { // fn#72886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9525:445, offset: 0x01d573e9, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const SUCCESS = XboxLinkModalScenes.SUCCESS;
Reflect.apply(push, binding, [SUCCESS]);
}
function _fun72887() { // fn#72887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9525:492, offset: 0x01d5740b, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const ERROR = XboxLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR]);
}
}
}
function XboxLinkDiscordConsent({callbackCode, callbackState}) { // fn#72885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9525:332, offset: 0x01d57310, size: 217 bytes, params: 2, frame: 21
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_2;
const value3 = binding.useCallback(_fun72886, [value2]);
const value4 = binding.useCallback(_fun72887, [value2]);
const TwoWayLinkDiscordConsent = (require(9341) /* metro dependency 9341: TwoWayLinkDiscordConsent */).TwoWayLinkDiscordConsent;
const XBOX = PlatformTypes.XBOX;
const ConsoleOAuthApplications = (require(9363) /* metro dependency 9363: ConsoleOAuthApplications */).ConsoleOAuthApplications;
const XBOX_APPLICATION_ID = ConsoleOAuthApplications.XBOX_APPLICATION_ID;
return (
<TwoWayLinkDiscordConsent
platformType={XBOX}
callbackCode={callbackCode}
callbackState={callbackState}
clientId={XBOX_APPLICATION_ID}
scopes={XBOX_CLIENT_SCOPES}
onNext={value3}
onError={value4}
/>
);
}
global.__d(_fun72884, 9339, [31, 9329, 661, 9340, 33, 1484, 9341, 9363,
2]) /* metro module 9339, dependencies: [31, 9329, 661, 9340, 33, 1484, 9341, 9363, 2] */;
@@ -1,63 +1,97 @@
/* Metro module 9419; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkEducation.tsx; dependencies: [31, 27, 661, 33, 4501, 9333, 1948, 9366, 4573, 1244, 6766, 6618, 4578, 2] */
import HelpdeskUtils from '../../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
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 ButtonNativeModule from '../../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as TextWithIOSLinkWorkaroundModule from '../../../../../a11y/native/TextWithIOSLinkWorkaround.tsx'; /* Metro dependency 6766 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun73340(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9605:6, offset: 0x01d6960c, size: 251 bytes, params: 8, frame: 19
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 */;
let value = ReactNativeModule;
const env0_4 = value.Image;
const env0_5 = value.View;
const env0_6 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
const env0_9 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 124,
const env0_9 = (CreateStylesModule).createStyles({image: {'width': 124,
'height': 160, 'marginBottom': 24}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkEducation.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkEducation.tsx');
exports.default = XboxLinkEducation;
function XboxLinkEducation({onClose}) { // fn#73341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9605:385, offset: 0x01d69707, size: 588 bytes, params: 2, frame: 28
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const XBOX_CONNECTION = HelpdeskArticles.XBOX_CONNECTION;
const value3 = Reflect.apply(getArticleURL, defaultImport, [XBOX_CONNECTION]);
const value4 = ReactModule.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[7]);
return object;
}, []);
const container = value2.container;
const content = value2.content;
const items2 = [
<Image source={value4} style={styles.image} />,
];
const Text = (TextModule).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = (
<Text
variant="heading-xl/bold"
color="mobile-text-heading-primary"
style={title}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jHytat)}
</Text>
);
const TextWithIOSLinkWorkaround = (TextWithIOSLinkWorkaroundModule).TextWithIOSLinkWorkaround;
items2[2] = (
<TextWithIOSLinkWorkaround
variant="text-md/medium"
color="text-default"
style={value2.body}
>
{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.yhozpz,
{helpdeskArticleUrl: value3})}
</TextWithIOSLinkWorkaround>
);
const view = (
<View style={content}>
{items2}
</View>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="lg"
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
onPress={onClose}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
}
function XboxLinkEducation({onClose}) { // fn#73341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9605:385, offset: 0x01d69707, size: 588 bytes, params: 2, frame: 28
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const XBOX_CONNECTION = HelpdeskArticles.XBOX_CONNECTION;
const value3 = Reflect.apply(getArticleURL, defaultImport, [XBOX_CONNECTION]);
const value4 = env0_3.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[7]);
return object;
}, []);
const container = value2.container;
const content = value2.content;
const items2 = [<Image source={value4} style={styles.image} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
items2[1] = <Text variant="heading-xl/bold" color="mobile-text-heading-primary" style={title}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jHytat)}</Text>;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
items2[2] = <TextWithIOSLinkWorkaround variant="text-md/medium" color="text-default" style={value2.body}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.yhozpz,
{helpdeskArticleUrl: value3})}</TextWithIOSLinkWorkaround>;
const view = <View style={content}>{items2}</View>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="lg"
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.i4jeWR)}
onPress={onClose}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
global.__d(_fun73340, 9419, [31, 27, 661, 33, 4501, 9333, 1948, 9366, 4573, 1244, 6766, 6618, 4578,
2]) /* metro module 9419, dependencies: [31, 27, 661, 33, 4501, 9333, 1948, 9366, 4573, 1244, 6766, 6618, 4578, 2] */;
@@ -1,32 +1,40 @@
/* Metro module 9420; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkError.tsx; dependencies: [31, 9329, 33, 1484, 9368, 9369, 1244, 2] */
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 IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as XboxLinkConstantsModule from './XboxLinkConstants.tsx'; /* Metro dependency 9329 */
import * as UseConnectRetryModule from '../useConnectRetry.tsx'; /* Metro dependency 9368 */
import * as TwoWayLinkErrorModule from '../TwoWayLinkError.tsx'; /* Metro dependency 9369 */
function _fun73343(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73343, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9606:6, offset: 0x01d69974, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_2 = (require(9329) /* metro dependency 9329: XboxLinkConstants */).XboxLinkModalScenes;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkError.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkError.tsx');
exports.default = XboxLinkDiscordError;
function XboxLinkDiscordError({onClose}) { // fn#73344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9606:268, offset: 0x01d69a0d, size: 223 bytes, params: 2, frame: 21
const value2 = (UseNavigationNativeModule).useNavigation();
const useConnectRetry = UseConnectRetryModule.useConnectRetry;
const PRE_CONNECT = XboxLinkModalScenes.PRE_CONNECT;
const value3 = Reflect.apply(useConnectRetry, UseConnectRetryModule, [value2, PRE_CONNECT]);
const TwoWayLinkError = (TwoWayLinkErrorModule).TwoWayLinkError;
const object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const INwPCV = (IndexNativeModule).t.INwPCV;
object.title = Reflect.apply(string, intl, [INwPCV]);
string = intl.string;
const GyXRRz = (IndexNativeModule).t.GyXRRz;
object.body = Reflect.apply(string, intl, [GyXRRz]);
object.onClose = onClose;
object.onRetry = value3;
return <TwoWayLinkError {...object} />;
}
}
function XboxLinkDiscordError({onClose}) { // fn#73344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9606:268, offset: 0x01d69a0d, size: 223 bytes, params: 2, frame: 21
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const useConnectRetryModule = require(9368) /* metro dependency 9368: useConnectRetry */;
const useConnectRetry = useConnectRetryModule.useConnectRetry;
const PRE_CONNECT = XboxLinkModalScenes.PRE_CONNECT;
const value3 = Reflect.apply(useConnectRetry, useConnectRetryModule, [value2, PRE_CONNECT]);
const TwoWayLinkError = (require(9369) /* metro dependency 9369: TwoWayLinkError */).TwoWayLinkError;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const INwPCV = (require(1244) /* metro dependency 1244: indexNative */).t.INwPCV;
object2.title = Reflect.apply(string, intl, [INwPCV]);
string = intl.string;
const GyXRRz = (require(1244) /* metro dependency 1244: indexNative */).t.GyXRRz;
object2.body = Reflect.apply(string, intl, [GyXRRz]);
object2.onClose = onClose;
object2.onRetry = value3;
return <TwoWayLinkError {...object2} />;
}
global.__d(_fun73343, 9420, [31, 9329, 33, 1484, 9368, 9369, 1244,
2]) /* metro module 9420, dependencies: [31, 9329, 33, 1484, 9368, 9369, 1244, 2] */;
@@ -1,81 +1,98 @@
/* Metro module 9330; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkLanding.tsx; dependencies: [31, 9329, 661, 33, 4501, 1244, 6711, 7956, 6699, 8658, 1484, 1948, 9331, 9332, 2] */
import HelpdeskUtils from '../../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as GroupIconModule from '../../../../../../design/components/Icon/native/redesign/generated/GroupIcon.tsx'; /* Metro dependency 6699 */
import * as VoiceNormalIconModule from '../../../../../../design/components/Icon/native/redesign/generated/VoiceNormalIcon.tsx'; /* Metro dependency 6711 */
import * as ScreenStreamIconModule from '../../../../../../design/components/Icon/native/redesign/generated/ScreenStreamIcon.tsx'; /* Metro dependency 7956 */
import * as GameControllerIconModule from '../../../../../../design/components/Icon/native/redesign/generated/GameControllerIcon.tsx'; /* Metro dependency 8658 */
import * as XboxLinkConstantsModule from './XboxLinkConstants.tsx'; /* Metro dependency 9329 */
import * as TwoWayLinkLandingModule from '../TwoWayLinkLanding.tsx'; /* Metro dependency 9332 */
function _fun72853(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9516:6, offset: 0x01d55b15, size: 243 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9329) /* metro dependency 9329: XboxLinkConstants */).XboxLinkModalScenes;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_5 = constantsModule.HelpdeskArticles;
const env0_6 = constantsModule.PlatformTypes;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
const env0_8 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 230,
const env0_8 = (CreateStylesModule).createStyles({image: {'width': 230,
'height': 160}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkLanding.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkLanding.tsx');
exports.default = XboxLinkLanding;
function XboxLinkLanding() { // fn#72854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9516:377, offset: 0x01d55c08, size: 396 bytes, params: 1, frame: 22
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const XBOX_CONNECTION = HelpdeskArticles.XBOX_CONNECTION;
const value3 = Reflect.apply(getArticleURL, defaultImport, [XBOX_CONNECTION]);
const intl = (IndexNativeModule).intl;
const format = intl.format;
const CIc3IN = (IndexNativeModule).t.CIc3IN;
const value4 = Reflect.apply(format, intl, [CIc3IN, {helpdeskArticleUrl: value3}]);
const value5 = ReactModule.useMemo(_fun72855, []);
const value6 = ReactModule.useCallback(_fun72856, [value2]);
const value7 = ReactModule.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[12]);
return object;
}, []);
const TwoWayLinkLanding = (TwoWayLinkLandingModule).TwoWayLinkLanding;
const XBOX = PlatformTypes.XBOX;
return (
<TwoWayLinkLanding
platformType={XBOX}
img={value7}
imgStyle={styles.image}
headerConnect={intl.string((IndexNativeModule).t.m8aahn)}
headerReconnect={intl.string((IndexNativeModule).t.z3rAhq)}
body={value4}
onNext={value6}
valueProps={value5}
/>
);
function _fun72855() { // fn#72855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9516:561, offset: 0x01d55d94, size: 334 bytes, params: 1, frame: 17
let object = {};
const intl = (IndexNativeModule).intl;
let string = intl.string;
const t = (IndexNativeModule).t;
object.label = Reflect.apply(string, intl, [t.ihQXsb]);
const VoiceNormalIcon = (VoiceNormalIconModule).VoiceNormalIcon;
object.icon = VoiceNormalIcon;
const items2 = [object];
object = {};
string = intl.string;
const Xt1n4P = t.Xt1n4P;
object.label = Reflect.apply(string, intl, [Xt1n4P]);
const ScreenStreamIcon = (ScreenStreamIconModule).ScreenStreamIcon;
object.icon = ScreenStreamIcon;
items2[1] = object;
object = {};
object.label = intl.string(t.xqVY3p);
const GroupIcon = (GroupIconModule).GroupIcon;
object.icon = GroupIcon;
items2[2] = object;
object = {};
object.label = intl.string(t.iQsKVW);
const GameControllerIcon = (GameControllerIconModule).GameControllerIcon;
object.icon = GameControllerIcon;
items2[3] = object;
return items2;
}
function _fun72856() { // fn#72856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9516:925, offset: 0x01d55ee2, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const PRE_CONNECT = XboxLinkModalScenes.PRE_CONNECT;
Reflect.apply(push, binding, [PRE_CONNECT]);
}
}
}
function XboxLinkLanding() { // fn#72854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9516:377, offset: 0x01d55c08, size: 396 bytes, params: 1, frame: 22
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const XBOX_CONNECTION = HelpdeskArticles.XBOX_CONNECTION;
const value3 = Reflect.apply(getArticleURL, defaultImport, [XBOX_CONNECTION]);
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const format = intl.format;
const CIc3IN = (require(1244) /* metro dependency 1244: indexNative */).t.CIc3IN;
const value4 = Reflect.apply(format, intl, [CIc3IN, {helpdeskArticleUrl: value3}]);
const binding = env0_3;
const value5 = binding.useMemo(_fun72855, []);
const value6 = binding.useCallback(_fun72856, [value2]);
const value7 = binding.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[12]);
return object;
}, []);
const TwoWayLinkLanding = (require(9332) /* metro dependency 9332: TwoWayLinkLanding */).TwoWayLinkLanding;
const XBOX = PlatformTypes.XBOX;
return (
<TwoWayLinkLanding
platformType={XBOX}
img={value7}
imgStyle={styles.image}
headerConnect={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m8aahn)}
headerReconnect={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.z3rAhq)}
body={value4}
onNext={value6}
valueProps={value5}
/>
);
}
function _fun72855() { // fn#72855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9516:561, offset: 0x01d55d94, size: 334 bytes, params: 1, frame: 17
let object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
object2.label = Reflect.apply(string, intl, [t.ihQXsb]);
const VoiceNormalIcon = (require(6711) /* metro dependency 6711: VoiceNormalIcon */).VoiceNormalIcon;
object2.icon = VoiceNormalIcon;
const items2 = [object2];
object2 = {};
string = intl.string;
const Xt1n4P = t.Xt1n4P;
object2.label = Reflect.apply(string, intl, [Xt1n4P]);
const ScreenStreamIcon = (require(7956) /* metro dependency 7956: ScreenStreamIcon */).ScreenStreamIcon;
object2.icon = ScreenStreamIcon;
items2[1] = object2;
object2 = {};
object2.label = intl.string(t.xqVY3p);
const GroupIcon = (require(6699) /* metro dependency 6699: GroupIcon */).GroupIcon;
object2.icon = GroupIcon;
items2[2] = object2;
object2 = {};
object2.label = intl.string(t.iQsKVW);
const GameControllerIcon = (require(8658) /* metro dependency 8658: GameControllerIcon */).GameControllerIcon;
object2.icon = GameControllerIcon;
items2[3] = object2;
return items2;
}
global.__d(_fun72853, 9330, [31, 9329, 661, 33, 4501, 1244, 6711, 7956, 6699, 8658, 1484, 1948, 9331, 9332,
2]) /* metro module 9330, dependencies: [31, 9329, 661, 33, 4501, 1244, 6711, 7956, 6699, 8658, 1484, 1948, 9331, 9332, 2] */;
@@ -1,77 +1,135 @@
/* Metro module 9328; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkModal.tsx; dependencies: [31, 9329, 661, 33, 5277, 8160, 9327, 1244, 9330, 9334, 9335, 9339, 9414, 9419, 9420, 9333, 9371, 5280, 2] */
import Module08160 from '../../../../../../by-id/module-08160.js'; /* Metro dependency 8160 */
import XboxLinkModalActionCreators from './XboxLinkModalActionCreators.tsx'; /* Metro dependency 9327 */
import XboxLinkLanding from './XboxLinkLanding.tsx'; /* Metro dependency 9330 */
import XboxLinkPreConnect from './XboxLinkPreConnect.tsx'; /* Metro dependency 9335 */
import XboxLinkDiscordConsent from './XboxLinkDiscordConsent.tsx'; /* Metro dependency 9339 */
import XboxLinkSuccess from './XboxLinkSuccess.tsx'; /* Metro dependency 9414 */
import XboxLinkEducation from './XboxLinkEducation.tsx'; /* Metro dependency 9419 */
import XboxLinkError from './XboxLinkError.tsx'; /* Metro dependency 9420 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as HeaderActionButtonNativeModule from '../../../../../../design/components/Navigator/native/HeaderActionButton.native.tsx'; /* Metro dependency 5277 */
import * as NavigatorNativeModule from '../../../../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
import * as XboxLinkConstantsModule from './XboxLinkConstants.tsx'; /* Metro dependency 9329 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
import * as TwoWayLinkStepHeaderModule from '../TwoWayLinkStepHeader.tsx'; /* Metro dependency 9334 */
import * as UseAccountLinkStepTrackingModule from '../useAccountLinkStepTracking.tsx'; /* Metro dependency 9371 */
function _fun72836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:6, offset: 0x01d55506, size: 197 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9329) /* metro dependency 9329: XboxLinkConstants */).XboxLinkModalScenes;
const env0_5 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkModal.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkModal.tsx');
exports.default = XboxLinkModal;
function CloseButton_72837() { // fn#72837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:174, offset: 0x01d555cb, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (HeaderActionButtonNativeModule).HeaderActionButton;
const headerActionButtonProps = {source: Module08160, onPress: onPress_72838};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
function CloseButton_72837OnPress() { // fn#72838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:257, owner: CloseButton_72837.onPress, offset: 0x01d5564c, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (XboxLinkModalActionCreators).hideModal();
}
}
function XboxLinkModal({locationStack}) { // fn#72839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:461, offset: 0x01d55671, size: 223 bytes, params: 2, frame: 19
const value3 = ReactModule.useMemo(_fun72840,
[(TwoWayLinkStylesModule).useTwoWayLinkStyles()]);
const useAccountLinkStepTracking = UseAccountLinkStepTrackingModule.useAccountLinkStepTracking;
const XBOX = PlatformTypes.XBOX;
const value4 = Reflect.apply(useAccountLinkStepTracking, UseAccountLinkStepTrackingModule, [XBOX, locationStack]);
const Navigator = (NavigatorNativeModule).Navigator;
const LANDING = XboxLinkModalScenes.LANDING;
const intl = (IndexNativeModule).intl;
return (
<Navigator
onStateChange={value4}
screens={value3}
initialRouteName={LANDING}
headerBackTitle={intl.string((IndexNativeModule).t['13/7kX'])}
/>
);
function _fun72840() { // fn#72840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:553, offset: 0x01d55750, size: 25 bytes, params: 1, frame: 11
return getScreens_72841(env0_0);
function getScreens_72841(a0) { // fn#72841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:557, offset: 0x01d55769, size: 358 bytes, params: 2, frame: 9
const closure = function() {
return null;
};
const LANDING = XboxLinkModalScenes.LANDING;
const PRE_CONNECT = XboxLinkModalScenes.PRE_CONNECT;
const DISCORD_CONSENT = XboxLinkModalScenes.DISCORD_CONSENT;
const SUCCESS = XboxLinkModalScenes.SUCCESS;
const EDUCATION = XboxLinkModalScenes.EDUCATION;
const ERROR = XboxLinkModalScenes.ERROR;
return {[LANDING]: {headerLeft: closure, headerRight: CloseButton_72837, headerTitle: closure,
headerStyle: a0.navHeader, render: render_72844}, [PRE_CONNECT]: {headerLeft: closure,
headerRight: CloseButton_72837, headerStyle: a0.navHeader, headerTitle: headerTitle_72845,
render: render_72846}, [DISCORD_CONSENT]: {headerLeft: closure, headerRight: CloseButton_72837,
headerStyle: a0.navHeader, headerTitle: headerTitle_72847, render: render_72848},
[SUCCESS]: {headerLeft: closure, headerRight: CloseButton_72837, headerTitle: closure,
headerStyle: a0.navHeader, render: render_72849}, [EDUCATION]: {headerLeft: closure,
headerRight: CloseButton_72837, headerTitle: closure, headerStyle: a0.navHeader, render: render_72850},
[ERROR]: {headerLeft: closure, headerRight: CloseButton_72837, headerTitle: closure, headerStyle: a0.navHeader,
render: render_72851}};
function getScreens_72841OnClose() { // fn#72842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:592, owner: getScreens_72841.onClose, offset: 0x01d558cf, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__.__proto__.__proto__;
return (XboxLinkModalActionCreators).hideModal();
}
function getScreens_72841Render() { // fn#72844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:741, owner: getScreens_72841.render, offset: 0x01d558f4, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(XboxLinkLanding);
}
function getScreens_72841HeaderTitle() { // fn#72845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:854, owner: getScreens_72841.headerTitle, offset: 0x01d5591b, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (TwoWayLinkStepHeaderModule).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={1} total={2} />;
}
function getScreens_72841Render_72846() { // fn#72846, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:913, owner: getScreens_72841.render, offset: 0x01d55954, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(XboxLinkPreConnect);
}
function getScreens_72841HeaderTitle_72847() { // fn#72847, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1031, owner: getScreens_72841.headerTitle, offset: 0x01d5597b, size: 57 bytes, params: 1, frame: 13
const TwoWayLinkStepHeader = (TwoWayLinkStepHeaderModule).TwoWayLinkStepHeader;
return <TwoWayLinkStepHeader idx={2} total={2} />;
}
function getScreens_72841Render_72848({callbackCode, callbackState}) { // fn#72848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1090, owner: getScreens_72841.render, offset: 0x01d559b4, size: 64 bytes, params: 2, frame: 15
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component callbackCode={callbackCode} callbackState={callbackState} />)(XboxLinkDiscordConsent);
}
function getScreens_72841Render_72849() { // fn#72849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1275, owner: getScreens_72841.render, offset: 0x01d559f4, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(XboxLinkSuccess);
}
function getScreens_72841Render_72850() { // fn#72850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1400, owner: getScreens_72841.render, offset: 0x01d55a1b, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_72841OnClose} />)(XboxLinkEducation);
}
function getScreens_72841Render_72851() { // fn#72851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1536, owner: getScreens_72841.render, offset: 0x01d55a4e, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_72841OnClose} />)(XboxLinkError);
}
}
}
}
}
function CloseButton_72837() { // fn#72837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:174, offset: 0x01d555cb, size: 129 bytes, params: 1, frame: 18
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
const headerActionButtonProps = {source: importDefault(8160) /* metro dependency 8160 */, onPress: onPress_72838};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.cpT0Cq);
return <HeaderActionButton {...headerActionButtonProps} />;
}
function XboxLinkModal({locationStack}) { // fn#72839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:461, offset: 0x01d55671, size: 223 bytes, params: 2, frame: 19
const value3 = env0_3.useMemo(_fun72840,
[(require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles()]);
const useAccountLinkStepTrackingModule = require(9371) /* metro dependency 9371: useAccountLinkStepTracking */;
const useAccountLinkStepTracking = useAccountLinkStepTrackingModule.useAccountLinkStepTracking;
const XBOX = PlatformTypes.XBOX;
const value4 = Reflect.apply(useAccountLinkStepTracking, useAccountLinkStepTrackingModule, [XBOX, locationStack]);
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const LANDING = XboxLinkModalScenes.LANDING;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
return (
<Navigator
onStateChange={value4}
screens={value3}
initialRouteName={LANDING}
headerBackTitle={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['13/7kX'])}
/>
);
}
function _fun72840() { // fn#72840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:553, offset: 0x01d55750, size: 25 bytes, params: 1, frame: 11
return getScreens_72841(env0_0);
}
function getScreens_72841(a0) { // fn#72841, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:557, offset: 0x01d55769, size: 358 bytes, params: 2, frame: 9
const closure = function() {
return null;
};
const LANDING = XboxLinkModalScenes.LANDING;
const PRE_CONNECT = XboxLinkModalScenes.PRE_CONNECT;
const DISCORD_CONSENT = XboxLinkModalScenes.DISCORD_CONSENT;
const SUCCESS = XboxLinkModalScenes.SUCCESS;
const EDUCATION = XboxLinkModalScenes.EDUCATION;
const ERROR = XboxLinkModalScenes.ERROR;
return {[LANDING]: {headerLeft: closure, headerRight: CloseButton_72837, headerTitle: closure,
headerStyle: a0.navHeader, render: render_72844}, [PRE_CONNECT]: {headerLeft: closure,
headerRight: CloseButton_72837, headerStyle: a0.navHeader, headerTitle: headerTitle_72845,
render: render_72846}, [DISCORD_CONSENT]: {headerLeft: closure, headerRight: CloseButton_72837,
headerStyle: a0.navHeader, headerTitle: headerTitle_72847, render: render_72848},
[SUCCESS]: {headerLeft: closure, headerRight: CloseButton_72837, headerTitle: closure,
headerStyle: a0.navHeader, render: render_72849}, [EDUCATION]: {headerLeft: closure,
headerRight: CloseButton_72837, headerTitle: closure, headerStyle: a0.navHeader, render: render_72850},
[ERROR]: {headerLeft: closure, headerRight: CloseButton_72837, headerTitle: closure, headerStyle: a0.navHeader,
render: render_72851}};
}
function getScreens_72841Render_72849() { // fn#72849, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1275, owner: getScreens_72841.render, offset: 0x01d559f4, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component />)(importDefault(9414) /* metro dependency 9414: XboxLinkSuccess */);
}
function getScreens_72841Render_72851() { // fn#72851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9514:1536, owner: getScreens_72841.render, offset: 0x01d55a4e, size: 51 bytes, params: 1, frame: 14
const value = environment.__proto__.__proto__.__proto__;
return ((Component) => <Component onClose={getScreens_72841OnClose} />)(importDefault(9420) /* metro dependency 9420: XboxLinkError */);
}
global.__d(_fun72836, 9328, [31, 9329, 661, 33, 5277, 8160, 9327, 1244, 9330, 9334, 9335, 9339, 9414, 9419, 9420,
9333, 9371, 5280,
2]) /* metro module 9328, dependencies: [31, 9329, 661, 33, 5277, 8160, 9327, 1244, 9330, 9334, 9335, 9339, 9414, 9419, 9420, 9333, 9371, 5280, 2] */;
@@ -1,24 +1,27 @@
/* Metro module 9327; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkModalActionCreators.tsx; dependencies: [5080, 9328, 1962, 2] */
import ModalActionCreators from '../../../../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun72833(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72833, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9513:6, offset: 0x01d55408, size: 122 bytes, params: 8, frame: 18
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {showModal: showModal, hideModal: hideModal};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkModalActionCreators.tsx');
exports.default = object2;
}
object = {showModal: showModal, hideModal: hideModal};
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkModalActionCreators.tsx');
exports.default = object;
function showModal(a0) { // fn#72834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9513:149, offset: 0x01d55482, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {locationStack: a0},
'USER_SETTINGS_CONNECTIONS_XBOX_LINK_MODAL_KEY']);
}
function showModal(a0) { // fn#72834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9513:149, offset: 0x01d55482, size: 89 bytes, params: 2, frame: 16
const defaultImport = importDefault(dependencyMap[0]);
const pushLazy = defaultImport.pushLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(pushLazy, defaultImport, [value, {locationStack: a0},
'USER_SETTINGS_CONNECTIONS_XBOX_LINK_MODAL_KEY']);
}
function hideModal() { // fn#72835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9513:223, offset: 0x01d554db, size: 43 bytes, params: 1, frame: 12
(ModalActionCreators).popWithKey('USER_SETTINGS_CONNECTIONS_XBOX_LINK_MODAL_KEY');
}
function hideModal() { // fn#72835, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9513:223, offset: 0x01d554db, size: 43 bytes, params: 1, frame: 12
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).popWithKey('USER_SETTINGS_CONNECTIONS_XBOX_LINK_MODAL_KEY');
}
global.__d(_fun72833, 9327, [5080, 9328, 1962, 2]) /* metro module 9327, dependencies: [5080, 9328, 1962, 2] */;
@@ -1,41 +1,60 @@
/* Metro module 9335; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkPreConnect.tsx; dependencies: [31, 9329, 661, 33, 4501, 1484, 9336, 9337, 1244, 2] */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as XboxLinkConstantsModule from './XboxLinkConstants.tsx'; /* Metro dependency 9329 */
import * as TwoWayLinkPreConnectModule from '../TwoWayLinkPreConnect.tsx'; /* Metro dependency 9337 */
function _fun72866(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#72866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9521:6, offset: 0x01d56771, size: 233 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(9329) /* metro dependency 9329: XboxLinkConstants */).XboxLinkModalScenes;
const env0_5 = (require(661) /* metro dependency 661: Constants */).PlatformTypes;
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
const env0_7 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({image: {'width': 231,
const env0_7 = (CreateStylesModule).createStyles({image: {'width': 231,
'height': 160}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkPreConnect.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkPreConnect.tsx');
exports.default = XboxLinkPreConnect;
function XboxLinkPreConnect() { // fn#72867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9521:354, offset: 0x01d5685a, size: 303 bytes, params: 1, frame: 20
const styles = useStyles();
const value2 = (UseNavigationNativeModule).useNavigation();
const value3 = ReactModule.useCallback(_fun72868, [value2]);
const value4 = ReactModule.useCallback(_fun72869, [value2]);
const value5 = ReactModule.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[6]);
return object;
}, []);
const TwoWayLinkPreConnect = (TwoWayLinkPreConnectModule).TwoWayLinkPreConnect;
object = {};
const XBOX = PlatformTypes.XBOX;
object.platformType = XBOX;
object.onError = value4;
object.onNext = value3;
object.img = value5;
object.imgStyle = styles.image;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['e/z3na']);
object.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7tXu0i']);
return <TwoWayLinkPreConnect {...object} />;
function _fun72868(a0) { // fn#72868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9521:437, offset: 0x01d56989, size: 38 bytes, params: 2, frame: 13
const binding = env0_0;
const push = binding.push;
const DISCORD_CONSENT = XboxLinkModalScenes.DISCORD_CONSENT;
Reflect.apply(push, binding, [DISCORD_CONSENT, a0]);
}
function _fun72869() { // fn#72869, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9521:493, offset: 0x01d569af, size: 34 bytes, params: 1, frame: 11
const binding = env0_0;
const push = binding.push;
const ERROR = XboxLinkModalScenes.ERROR;
Reflect.apply(push, binding, [ERROR]);
}
}
}
function XboxLinkPreConnect() { // fn#72867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9521:354, offset: 0x01d5685a, size: 303 bytes, params: 1, frame: 20
var object2;
const styles = useStyles();
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const binding = env0_3;
const value3 = binding.useCallback(_fun72868, [value2]);
const value4 = binding.useCallback(_fun72869, [value2]);
const value5 = binding.useMemo(function() {
var object = {};
object.uri = importDefault(dependencyMap[6]);
return object;
}, []);
const TwoWayLinkPreConnect = (require(9337) /* metro dependency 9337: TwoWayLinkPreConnect */).TwoWayLinkPreConnect;
object2 = {};
const XBOX = PlatformTypes.XBOX;
object2.platformType = XBOX;
object2.onError = value4;
object2.onNext = value3;
object2.img = value5;
object2.imgStyle = styles.image;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['e/z3na']);
object2.body = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7tXu0i']);
return <TwoWayLinkPreConnect {...object2} />;
}
global.__d(_fun72866, 9335, [31, 9329, 661, 33, 4501, 1484, 9336, 9337, 1244,
2]) /* metro module 9335, dependencies: [31, 9329, 661, 33, 4501, 1484, 9336, 9337, 1244, 2] */;
@@ -1,17 +1,26 @@
/* Metro module 9414; source: modules/user_settings/connections/native/two_way_link/xbox/XboxLinkSuccess.tsx; dependencies: [57, 31, 27, 9329, 9340, 33, 4501, 697, 9333, 477, 1484, 9415, 4573, 1244, 9416, 9417, 1305, 9418, 6618, 4578, 2] */
import Module00057 from '../../../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import Module09415 from '../../../../../../by-id/module-09415.js'; /* Metro dependency 9415 */
import Module09416 from '../../../../../../by-id/module-09416.js'; /* Metro dependency 9416 */
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 UseNavigationNativeModule from '../../../../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as TextModule from '../../../../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as ButtonNativeModule from '../../../../../../design/components/Button/native/Button.native.tsx'; /* Metro dependency 4578 */
import * as SafeAreaViewModule from '../../../../../../components_native/common/SafeAreaView.tsx'; /* Metro dependency 6618 */
import * as XboxLinkConstantsModule from './XboxLinkConstants.tsx'; /* Metro dependency 9329 */
import * as TwoWayLinkStylesModule from '../TwoWayLinkStyles.tsx'; /* Metro dependency 9333 */
function _fun73331(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:6, offset: 0x01d68e05, size: 545 bytes, params: 8, frame: 23
var object4;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
let value = ReactNativeModule;
const env0_5 = value.Image;
const env0_6 = value.View;
const env0_7 = value.Linking;
const env0_8 = value.Pressable;
const env0_9 = (require(9329) /* metro dependency 9329: XboxLinkConstants */).XboxLinkModalScenes;
value = require(9340) /* metro dependency 9340: GameConsoleConstants */;
const env0_10 = value.XBOX_ANDROID_APP_LINK;
const env0_11 = value.XBOX_IOS_APP_LINK;
@@ -21,100 +30,144 @@ function _fun73331(global, require, importDefault, importAll, module, exports, d
const env0_14 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object4 = {image: {'width': 58, 'height': 85, 'marginBottom': 24}};
const object5 = {'alignItems': 'center', 'alignSelf': 'stretch', 'backgroundColor': null, 'marginTop': 24,
object = {image: {'width': 58, 'height': 85, 'marginBottom': 24}};
const object2 = {'alignItems': 'center', 'alignSelf': 'stretch', 'backgroundColor': null, 'marginTop': 24,
'padding': 16, 'borderRadius': null, 'flexDirection': 'row'};
const BACKGROUND_BASE_LOWEST = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWEST;
object5.backgroundColor = BACKGROUND_BASE_LOWEST;
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object4.getApp = object5;
const object6 = {'marginRight': 12, 'width': 40, 'height': 40, 'alignItems': 'center', 'justifyContent': 'center'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
object2.backgroundColor = BACKGROUND_BASE_LOWEST;
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.sm;
object.getApp = object2;
const object3 = {'marginRight': 12, 'width': 40, 'height': 40, 'alignItems': 'center', 'justifyContent': 'center'};
object3.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const PLATFORM_XBOX = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.PLATFORM_XBOX;
object6.backgroundColor = PLATFORM_XBOX;
object4.appLogoBox = object6;
object4.appLogo = {'width': 32, 'height': 32};
object4.getAppTitle = {flex: 1};
object4.icon = {marginLeft: 8};
object3.backgroundColor = PLATFORM_XBOX;
object.appLogoBox = object3;
object.appLogo = {'width': 32, 'height': 32};
object.getAppTitle = {flex: 1};
object.icon = {marginLeft: 8};
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
object4.externalLinkIcon = {color: INTERACTIVE_TEXT_ACTIVE};
const env0_15 = Reflect.apply(createStyles, value, [object4]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkSuccess.tsx');
object.externalLinkIcon = {color: INTERACTIVE_TEXT_ACTIVE};
const env0_15 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxLinkSuccess.tsx');
exports.default = XboxLinkDiscordSuccess;
}
function XboxLinkDiscordSuccess() { // fn#73332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:983, offset: 0x01d69026, size: 1071 bytes, params: 1, frame: 34
const styles = useStyles();
const value2 = (require(9333) /* metro dependency 9333: TwoWayLinkStyles */).useTwoWayLinkStyles();
const binding = env0_4;
const [property, env0_1] = env0_3(binding.useState(true), 2);
binding.useEffect(_fun73333, []);
const value5 = binding.useCallback(_fun73334, [property]);
const value7 = binding.useCallback(_fun73335,
[(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
const container = value2.container;
const content = value2.content;
const items3 = [<Image source={importDefault(9415) /* metro dependency 9415 */} style={styles.image} />];
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
items3[1] = <Text variant="heading-xl/extrabold" color="mobile-text-heading-primary" style={title}>{Reflect.apply(string,
intl, [t.aGRPVq])}</Text>;
items3[2] = <Text variant="text-md/normal" color="text-default" style={value2.body}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m3mBYE)}</Text>;
const items2 = [<View style={styles.appLogoBox}><Image source={importDefault(9416) /* metro dependency 9416 */} style={styles.appLogo} /></View>];
string = intl.string;
items2[1] = <Text style={styles.getAppTitle} variant="heading-md/semibold" color="mobile-text-heading-primary">{property ? Reflect.apply(string,
intl, [t.zcKE8W]) : Reflect.apply(string, intl, [t['12Kx2v']])}</Text>;
items2[2] = property ? <Image source={importDefault(9417) /* metro dependency 9417 */} style={styles.icon} /> : ((Icon) => <Icon source={importDefault(9418) /* metro dependency 9418 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} color={styles.externalLinkIcon.color} style={styles.icon} />)((require(1305) /* metro dependency 1305: native */).Icon);
items3[3] = <Pressable onPress={value5} style={styles.getApp}>{items2}</Pressable>;
const view = <View style={content}>{items3}</View>;
const SafeAreaPaddingView = (require(6618) /* metro dependency 6618: SafeAreaView */).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="lg"
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz'])}
onPress={value7}
/>
</View>
</SafeAreaPaddingView>
</View>
);
}
function _fun73333() { // fn#73333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:1112, offset: 0x01d69455, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
Linking.canOpenURL(XBOX_URL_BASE).then(env0_1);
}
function _fun73334() { // fn#73334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:1168, offset: 0x01d69480, size: 82 bytes, params: 1, frame: 12
var isAndroid2;
var openURL;
if (!env0_0) {
value = environment.__proto__;
isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
openURL = Linking.openURL;
if (isAndroid2) {
Reflect.apply(openURL, Linking, [XBOX_ANDROID_APP_LINK]);
} else {
Reflect.apply(openURL, Linking, [XBOX_IOS_APP_LINK]);
function XboxLinkDiscordSuccess() { // fn#73332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:983, offset: 0x01d69026, size: 1071 bytes, params: 1, frame: 34
const styles = useStyles();
const value2 = (TwoWayLinkStylesModule).useTwoWayLinkStyles();
const [property, env0_1] = Module00057(ReactModule.useState(true), 2);
ReactModule.useEffect(_fun73333, []);
const value5 = ReactModule.useCallback(_fun73334, [property]);
const value7 = ReactModule.useCallback(_fun73335,
[(UseNavigationNativeModule).useNavigation()]);
const container = value2.container;
const content = value2.content;
const items3 = [
<Image source={Module09415} style={styles.image} />,
];
const Text = (TextModule).Text;
const title = value2.title;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
let string = intl.string;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
items3[1] = (
<Text
variant="heading-xl/extrabold"
color="mobile-text-heading-primary"
style={title}
>
{Reflect.apply(string, intl, [t.aGRPVq])}
</Text>
);
items3[2] = (
<Text
variant="text-md/normal"
color="text-default"
style={value2.body}
>
{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.m3mBYE)}
</Text>
);
const items2 = [
<View style={styles.appLogoBox}>
<Image source={Module09416} style={styles.appLogo} />
</View>,
];
string = intl.string;
items2[1] = (
<Text
style={styles.getAppTitle}
variant="heading-md/semibold"
color="mobile-text-heading-primary"
>
{property ? Reflect.apply(string, intl, [t.zcKE8W]) : Reflect.apply(string, intl, [t['12Kx2v']])}
</Text>
);
items2[2] = (
property
? (
<Image source={importDefault(9417) /* metro dependency 9417 */} style={styles.icon} />
)
: ((Icon) => <Icon source={importDefault(9418) /* metro dependency 9418 */} size={(require(1305) /* metro dependency 1305: native */).Icon.Sizes.SMALL} color={styles.externalLinkIcon.color} style={styles.icon} />)((require(1305) /* metro dependency 1305: native */).Icon)
);
items3[3] = (
<Pressable onPress={value5} style={styles.getApp}>
{items2}
</Pressable>
);
const view = (
<View style={content}>
{items3}
</View>
);
const SafeAreaPaddingView = (SafeAreaViewModule).SafeAreaPaddingView;
const footerContainer = value2.footerContainer;
const footerButton = value2.footerButton;
const Button = (ButtonNativeModule).Button;
return (
<View style={container}>
{view}
<SafeAreaPaddingView bottom style={footerContainer}>
<View style={footerButton}>
<Button
size="lg"
variant="primary"
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3PatSz'])}
onPress={value7}
/>
</View>
</SafeAreaPaddingView>
</View>
);
function _fun73333() { // fn#73333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:1112, offset: 0x01d69455, size: 43 bytes, params: 1, frame: 11
const value = environment.__proto__;
Linking.canOpenURL(XBOX_URL_BASE).then(env0_1);
}
function _fun73334() { // fn#73334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:1168, offset: 0x01d69480, size: 82 bytes, params: 1, frame: 12
var isAndroid2;
var openURL;
if (!env0_0) {
value = environment.__proto__;
isAndroid2 = (require(477) /* metro dependency 477: PlatformUtils */).isAndroid();
openURL = Linking.openURL;
if (isAndroid2) {
Reflect.apply(openURL, Linking, [XBOX_ANDROID_APP_LINK]);
} else {
Reflect.apply(openURL, Linking, [XBOX_IOS_APP_LINK]);
}
}
}
function _fun73335() { // fn#73335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:1275, offset: 0x01d694d2, size: 34 bytes, params: 1, frame: 11
const binding = env0_2;
const push = binding.push;
const EDUCATION = XboxLinkModalScenes.EDUCATION;
Reflect.apply(push, binding, [EDUCATION]);
}
}
}
function _fun73335() { // fn#73335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9600:1275, offset: 0x01d694d2, size: 34 bytes, params: 1, frame: 11
const binding = env0_2;
const push = binding.push;
const EDUCATION = XboxLinkModalScenes.EDUCATION;
Reflect.apply(push, binding, [EDUCATION]);
}
global.__d(_fun73331, 9414, [57, 31, 27, 9329, 9340, 33, 4501, 697, 9333, 477, 1484, 9415, 4573, 1244, 9416, 9417,
1305, 9418, 6618, 4578,
2]) /* metro module 9414, dependencies: [57, 31, 27, 9329, 9340, 33, 4501, 697, 9333, 477, 1484, 9415, 4573, 1244, 9416, 9417, 1305, 9418, 6618, 4578, 2] */;
@@ -1,41 +1,48 @@
/* Metro module 13478; source: modules/user_settings/connections/native/two_way_link/xbox/XboxTwoWayLinkUpsell.tsx; dependencies: [31, 661, 33, 4501, 1948, 13479, 1244, 5475, 13480, 1365, 9327, 2] */
import HelpdeskUtils from '../../../../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
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 ConstantsModule from '../../../../../../Constants.tsx'; /* Metro dependency 661 */
import * as Dismissible_contentModule from '../../../../../../external/discord_common/js/packages/protos/discord_protos/discord_users/v1/dismissible_content.tsx'; /* Metro dependency 1365 */
import * as CreateStylesModule from '../../../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as OneWayToTwoWayLinkUpsellModule from '../OneWayToTwoWayLinkUpsell.tsx'; /* Metro dependency 13479 */
function _fun102486(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13668:6, offset: 0x0223e2d5, size: 217 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.HelpdeskArticles;
const env0_4 = constantsModule.AnalyticsLocations;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
const env0_6 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({upsellImage: {'alignSelf': 'center',
ReactModule;
const env0_6 = (CreateStylesModule).createStyles({upsellImage: {'alignSelf': 'center',
'width': 84, 'marginLeft': 16}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxTwoWayLinkUpsell.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/user_settings/connections/native/two_way_link/xbox/XboxTwoWayLinkUpsell.tsx');
exports.XboxTwoWayLinkUpsell = XboxTwoWayLinkUpsell;
function XboxTwoWayLinkUpsell() { // fn#102487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13668:395, offset: 0x0223e3ae, size: 302 bytes, params: 1, frame: 22
const styles = useStyles();
let defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const XBOX_CONNECTION = HelpdeskArticles.XBOX_CONNECTION;
const value2 = Reflect.apply(getArticleURL, defaultImport, [XBOX_CONNECTION]);
const OneWayToTwoWayLinkUpsell = (OneWayToTwoWayLinkUpsellModule).OneWayToTwoWayLinkUpsell;
const object = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2okkZV']);
const format = intl.format;
const OnERSS = (require(1244) /* metro dependency 1244: indexNative */).t.OnERSS;
object.body = Reflect.apply(format, intl, [OnERSS, {help_article: value2}]);
object.img = ((Component) => <Component style={styles.upsellImage} source={importDefault(13480) /* metro dependency 13480 */} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const DismissibleContent = (Dismissible_contentModule).DismissibleContent;
const XBOX_ONE_WAY_RECONNECT = DismissibleContent.XBOX_ONE_WAY_RECONNECT;
object.newIndicatorDismissibleContent = XBOX_ONE_WAY_RECONNECT;
object.onPress = function() {
var defaultImport = importDefault(dependencyMap[10]);
var RELINK_UPSELL = AnalyticsLocations.RELINK_UPSELL;
return defaultImport.showModal([RELINK_UPSELL]);
};
return <OneWayToTwoWayLinkUpsell {...object} />;
}
}
function XboxTwoWayLinkUpsell() { // fn#102487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13668:395, offset: 0x0223e3ae, size: 302 bytes, params: 1, frame: 22
const styles = useStyles();
let defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const XBOX_CONNECTION = HelpdeskArticles.XBOX_CONNECTION;
const value2 = Reflect.apply(getArticleURL, defaultImport, [XBOX_CONNECTION]);
const OneWayToTwoWayLinkUpsell = (require(13479) /* metro dependency 13479: OneWayToTwoWayLinkUpsell */).OneWayToTwoWayLinkUpsell;
const object2 = {};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2okkZV']);
const format = intl.format;
const OnERSS = (require(1244) /* metro dependency 1244: indexNative */).t.OnERSS;
object2.body = Reflect.apply(format, intl, [OnERSS, {help_article: value2}]);
object2.img = ((Component) => <Component style={styles.upsellImage} source={importDefault(13480) /* metro dependency 13480 */} resizeMode="contain" />)(importDefault(5475) /* metro dependency 5475: FastImage */);
const DismissibleContent = (require(1365) /* metro dependency 1365: dismissible_content */).DismissibleContent;
const XBOX_ONE_WAY_RECONNECT = DismissibleContent.XBOX_ONE_WAY_RECONNECT;
object2.newIndicatorDismissibleContent = XBOX_ONE_WAY_RECONNECT;
object2.onPress = function() {
var defaultImport = importDefault(dependencyMap[10]);
var RELINK_UPSELL = AnalyticsLocations.RELINK_UPSELL;
return defaultImport.showModal([RELINK_UPSELL]);
};
return <OneWayToTwoWayLinkUpsell {...object2} />;
}
global.__d(_fun102486, 13478, [31, 661, 33, 4501, 1948, 13479, 1244, 5475, 13480, 1365, 9327,
2]) /* metro module 13478, dependencies: [31, 661, 33, 4501, 1948, 13479, 1244, 5475, 13480, 1365, 9327, 2] */;