Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,149 @@
|
||||
/* Metro module 15212; source: modules/integration_settings/native/IntegrationsSettingsEditLinkedLobby.tsx; dependencies: [31, 27, 1878, 33, 4501, 697, 3860, 1484, 6771, 6789, 6777, 4805, 566, 12134, 8743, 1244, 4573, 7972, 4572, 1305, 1423, 6231, 6238, 2] */
|
||||
function _fun116355(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:6, offset: 0x02485f23, size: 321 bytes, params: 8, frame: 22
|
||||
var object2;
|
||||
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 userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.Fragment;
|
||||
const env0_8 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.screenContainer = {backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
object2.header = {'alignItems': 'center', 'marginTop': 8, 'marginBottom': 32, 'gap': 12};
|
||||
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
|
||||
object2.divider = {'height': 1, 'width': 48, backgroundColor: BORDER_STRONG};
|
||||
const env0_9 = Reflect.apply(createStyles, value, [object2]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/integration_settings/native/IntegrationsSettingsEditLinkedLobby.tsx');
|
||||
exports.default = EditLinkedLobby;
|
||||
}
|
||||
|
||||
function EditLinkedLobby({channel, numScreensToPop}) { // fn#116356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:525, offset: 0x02486064, size: 1206 bytes, params: 2, frame: 37
|
||||
var r0;
|
||||
var Form;
|
||||
var Stack;
|
||||
var object3;
|
||||
var Avatar;
|
||||
var defaultImport4;
|
||||
var items2;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var items3;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
|
||||
const useToken = useTokenModule.useToken;
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
const value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
|
||||
const styles = useStyles();
|
||||
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
|
||||
const EDIT_CHANNEL_SYNCING = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).EDIT_CHANNEL_SYNCING;
|
||||
const analyticsLocations = defaultImport(EDIT_CHANNEL_SYNCING).analyticsLocations;
|
||||
const env0_3 = analyticsLocations;
|
||||
const value6 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(channel.linkedLobby?.application_id);
|
||||
const value7 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, true);
|
||||
const linked_at = channel.linkedLobby?.linked_at;
|
||||
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun116357);
|
||||
let binding = env0_3;
|
||||
let useCallback = binding.useCallback;
|
||||
const value10 = (importDefault(12134) /* metro dependency 12134: useShowUnlinkChannelAlert */)(channel.id,
|
||||
value6?.name ?? '', Reflect.apply(useCallback, binding, [_fun116358, [value4, numScreensToPop]]));
|
||||
binding = env0_3;
|
||||
useCallback = binding.useCallback;
|
||||
const value12 = binding.useMemo(_fun116360, [linked_at, user, Reflect.apply(useCallback, binding, [_fun116359,
|
||||
[user, analyticsLocations, channel.id]])]);
|
||||
if (value6 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
var formProps = {style: styles.screenContainer, contentContainerStyle: {paddingTop: 16}};
|
||||
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
var stackProps = {spacing: (importDefault(697) /* metro dependency 697: native */).space.PX_24,
|
||||
style: {paddingHorizontal: value3}};
|
||||
var viewBindingProps = {style: styles.header};
|
||||
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
defaultImport4 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
|
||||
items2 = [<Avatar source={defaultImport4.getApplicationIconSource({id: value6.id,
|
||||
icon: value6.icon})} size={(require(1305) /* metro dependency 1305: native */).AvatarSizes.XXLARGE} />];
|
||||
items2[1] = <Text variant="text-md/medium" color="mobile-text-heading-primary">{value6.name}</Text>;
|
||||
items2[2] = value12 != null && <><View style={styles.divider} /><Text variant="text-sm/medium" color="text-subtle">{value12}</Text></>;
|
||||
items3 = [<View {...viewBindingProps}>{items2}</View>];
|
||||
items3[1] = <Text variant="text-sm/normal" color="text-default">{intl.format(t.DA9v5F,
|
||||
{channelName: value7})}</Text>;
|
||||
items3[2] = ((TableRowGroup) => <TableRowGroup hasIcons={false}>{((TableRow) => <TableRow label={intl.string(t.LLWaxQ)} variant="danger" onPress={value10} />)((require(6238) /* metro dependency 6238: TableRowNative */).TableRow)}</TableRowGroup>)((require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup);
|
||||
r0 = <Form {...formProps}><Stack {...stackProps}>{items3}</Stack></Form>;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun116357() { // fn#116357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:925, offset: 0x0248651a, size: 50 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
return UserStore.getUser(channel.linkedLobby?.linked_by);
|
||||
}
|
||||
|
||||
function _fun116358() { // fn#116358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:1017, offset: 0x0248654c, size: 26 bytes, params: 1, frame: 11
|
||||
const binding = env0_2;
|
||||
binding.pop(numScreensToPop);
|
||||
}
|
||||
|
||||
function _fun116359() { // fn#116359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:1113, offset: 0x02486566, size: 84 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var defaultImport;
|
||||
var object2;
|
||||
var id;
|
||||
if (user != null) {
|
||||
value2 = environment.__proto__;
|
||||
defaultImport = importDefault(8743) /* metro dependency 8743: showUserProfileActionSheet */;
|
||||
object2 = {};
|
||||
id = user.id;
|
||||
object2.userId = id;
|
||||
id = channel.id;
|
||||
object2.channelId = id;
|
||||
object2.sourceAnalyticsLocations = analyticsLocations;
|
||||
defaultImport(object2);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116360() { // fn#116360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:1220, offset: 0x024865ba, size: 231 bytes, params: 1, frame: 19
|
||||
var environment;
|
||||
var r1;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var value4;
|
||||
var value;
|
||||
if (linked_at == null) {
|
||||
return null;
|
||||
}
|
||||
const Date = global.Date;
|
||||
const date = new Date(linked_at);
|
||||
if (user != null) {
|
||||
value4 = environment.__proto__;
|
||||
r1 = intl.format(t.uV2AkA, {username: user.username, usernameHook: usernameHook_116361, linkedAtDate: date});
|
||||
} else {
|
||||
value = environment.__proto__;
|
||||
value = intl.formatToPlainString(t.EyygeM, {linkedAtDate: date});
|
||||
r1 = value;
|
||||
}
|
||||
return r1;
|
||||
}
|
||||
|
||||
function usernameHook_116361(a0, a1) { // fn#116361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:1354, offset: 0x024866a1, size: 80 bytes, params: 3, frame: 15
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
return (
|
||||
<Text
|
||||
onPress={env1_6}
|
||||
variant="text-sm/semibold"
|
||||
color="text-strong"
|
||||
key={a1}
|
||||
>
|
||||
{a0}
|
||||
</Text>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,412 @@
|
||||
/* Metro module 15210; source: modules/integration_settings/native/IntegrationsSettingsEditWebhook.tsx; dependencies: [6, 7, 15, 17, 18, 31, 1935, 3784, 3793, 1878, 661, 33, 4501, 697, 15205, 11265, 507, 6797, 4496, 1244, 4596, 5282, 5277, 4573, 7972, 4572, 15211, 1423, 7981, 6231, 6238, 4805, 1305, 6647, 3868, 1484, 5462, 2] */
|
||||
function _fun116316(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:6, offset: 0x0248476b, size: 536 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const env0_8 = (require(1935) /* metro dependency 1935: GuildChannelStore */).GUILD_SELECTABLE_CHANNELS_KEY;
|
||||
const permissionStore = importDefault(3784) /* metro dependency 3784: PermissionStore */;
|
||||
const relationshipStore = importDefault(3793) /* metro dependency 3793: RelationshipStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_12 = constantsModule.Endpoints;
|
||||
const env0_13 = constantsModule.NON_USER_BOT_DISCRIMINATOR;
|
||||
const env0_14 = constantsModule.Permissions;
|
||||
const env0_15 = constantsModule.WebhookTypes;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_16 = value3.jsx;
|
||||
const env0_17 = value3.jsxs;
|
||||
const env0_18 = value3.Fragment;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.form = {backgroundColor: BACKGROUND_BASE_LOWER};
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
object2.row = {padding: TABLE_ROW_PADDING};
|
||||
object2.channelIcon = {'height': 16, 'width': 16, 'opacity': 0.6};
|
||||
const env0_19 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object2]);
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun116320(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/integration_settings/native/IntegrationsSettingsEditWebhook.tsx');
|
||||
exports.default = ConnectedEditWebhook;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_116317() { // fn#116317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:358, offset: 0x02484983, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_116317_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun116320(a0) { // fn#116320, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:765, offset: 0x024849e5, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = EditWebhook;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'componentDidUpdate', value: value_116337}, {key: 'render', value: value_116342}]);
|
||||
}
|
||||
|
||||
function ConnectedEditWebhook(a0) { // fn#116344, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:5341, offset: 0x0248586b, size: 126 bytes, params: 2, frame: 19
|
||||
const value2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const jsxRuntimeEnv0_18Binding = jsxRuntimeEnv0_18;
|
||||
const env0_202 = ((Component) => <Component navigation={value2} {...a0} />)(env0_20);
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{env0_202}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function EditWebhook(a0) { // fn#116321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:777, offset: 0x02484a46, size: 301 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_3;
|
||||
binding(this, EditWebhook);
|
||||
const items = [];
|
||||
arraySpread(items, value, 0, items);
|
||||
value = env1_6(EditWebhook);
|
||||
binding = env1_5;
|
||||
if (_isNativeReflectConstruct_116317()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items, env1_6(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value.state = {'avatar': null, 'name': null, 'channel': null, 'hasChanges': false, 'submitting': false,
|
||||
'copied': false, avatar: value.props.avatar, name: value.props.name, channel: value.props.channel};
|
||||
value.handleSave = handleSave;
|
||||
value.handleGuildIconUpload = handleGuildIconUpload;
|
||||
value.handleNameChange = handleNameChange;
|
||||
value.handleChannelChange = handleChannelChange;
|
||||
value.handleCopyUrl = handleCopyUrl;
|
||||
value.handleConfirmDeleteWebhook = handleConfirmDeleteWebhook;
|
||||
value.handleDeleteWebhook = handleDeleteWebhook;
|
||||
value.handleCancelChanges = handleCancelChanges;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_116337(a0, a1) { // fn#116337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:2964, offset: 0x02485152, size: 157 bytes, params: 3, frame: 14
|
||||
var setOptions;
|
||||
var object2;
|
||||
const navigation = this.props.navigation;
|
||||
const {submitting, hasChanges} = this.state;
|
||||
if (submitting !== true) {
|
||||
setOptions = navigation.setOptions;
|
||||
object2 = {};
|
||||
if (hasChanges) {
|
||||
object2.headerRight = headerRight_116338;
|
||||
object2.headerLeft = headerLeft_116339;
|
||||
Reflect.apply(setOptions, navigation, [object2]);
|
||||
} else {
|
||||
object2.headerRight = undefined;
|
||||
object2.headerLeft = undefined;
|
||||
Reflect.apply(setOptions, navigation, [object2]);
|
||||
}
|
||||
} else if (a1.submitting) {
|
||||
setOptions = navigation.setOptions;
|
||||
object2 = {};
|
||||
if (hasChanges) {
|
||||
object2.headerRight = headerRight_116338;
|
||||
object2.headerLeft = headerLeft_116339;
|
||||
Reflect.apply(setOptions, navigation, [object2]);
|
||||
} else {
|
||||
object2.headerRight = undefined;
|
||||
object2.headerLeft = undefined;
|
||||
Reflect.apply(setOptions, navigation, [object2]);
|
||||
}
|
||||
} else {
|
||||
navigation.setOptions({headerRight: headerRight_116340, headerLeft: function() {
|
||||
return null;
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
||||
function value_116342() { // fn#116342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:3506, offset: 0x024852fe, size: 1321 bytes, params: 1, frame: 42
|
||||
var r8;
|
||||
var IconLabelBlock;
|
||||
var object5;
|
||||
const binding = env1_19;
|
||||
const context = this.context;
|
||||
const value2 = undefined;
|
||||
const value3 = binding(context);
|
||||
const {webhookId, webhookType, token} = this.props;
|
||||
const {avatar, name, channel, copied, errors} = this.state;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const text = <Text variant="text-sm/medium" color="text-link">{copied ? Reflect.apply(string, intl,
|
||||
[t.t5VZ88]) : Reflect.apply(string, intl, [t.OpuAlK])}</Text>;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const form = value3.form;
|
||||
const items3 = [{paddingTop: 16}];
|
||||
items3[1] = this.props.contentContainerStyle;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const object = {};
|
||||
object.paddingHorizontal = value3.row.padding;
|
||||
const CHANNEL_FOLLOWER = WebhookTypes.CHANNEL_FOLLOWER;
|
||||
const value7 = null;
|
||||
if (webhookType === CHANNEL_FOLLOWER) {
|
||||
r8 = value7;
|
||||
} else {
|
||||
IconLabelBlock = importDefault(15211) /* metro dependency 15211: IconLabelBlock */;
|
||||
r8 = <IconLabelBlock iconProps={{onUpload: this.handleGuildIconUpload, type: 'avatar', icon: avatar, name: name,
|
||||
makeURL: function(a0) {
|
||||
return require(dependencyMap[27]).getUserAvatarURL({id: webhookId, avatar: a0,
|
||||
discriminator: NON_USER_BOT_DISCRIMINATOR});
|
||||
},
|
||||
disabled: false}} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['7+5GQa'])} />;
|
||||
}
|
||||
const items2 = [r8];
|
||||
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
|
||||
items2[1] = <TextInput label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ukdxuo)} value={name} onChange={this.handleNameChange} errorMessage={value2 === errors || value2 === errors.name ? value2 : errors.name[0]} />;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
string = intl.string;
|
||||
const GK18KJ = (require(1244) /* metro dependency 1244: indexNative */).t.GK18KJ;
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
const useChannelNameModule = require(4805) /* metro dependency 4805: useChannelName */;
|
||||
const computeChannelName = useChannelNameModule.computeChannelName;
|
||||
const handleChannelChange = this.handleChannelChange;
|
||||
const Icon = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Icon2 = (require(1305) /* metro dependency 1305: native */).Icon;
|
||||
const Sizes = Icon2.Sizes;
|
||||
const CUSTOM = Sizes.CUSTOM;
|
||||
items2[2] = <TableRowGroup title={Reflect.apply(string, intl,
|
||||
[GK18KJ])} hasIcons><TableRow label={Reflect.apply(computeChannelName, useChannelNameModule, [channel,
|
||||
UserStore,
|
||||
RelationshipStore])} arrow onPress={handleChannelChange} icon={<Icon size={CUSTOM} source={(require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIcon(channel)} style={value3.channelIcon} />} /></TableRowGroup>;
|
||||
items2[3] = value7 != token ? <TableRowGroup title={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.SFdvF1)} hasIcons={false}><TableRow label={'' + (require(507) /* metro dependency 507: HTTPUtils */).getAPIBaseURL(false) + Endpoints.WEBHOOK_INTEGRATION(webhookId,
|
||||
token)} onPress={this.handleCopyUrl} trailing={text} /></TableRowGroup> : value7;
|
||||
items2[4] = <TableRowGroup hasIcons={false}><TableRow variant="danger" onPress={this.handleDeleteWebhook} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.oyYWHE)} /></TableRowGroup>;
|
||||
return (
|
||||
<Form style={form} contentContainerStyle={items3}>
|
||||
<Stack spacing={PX_24} style={object}>
|
||||
{items2}
|
||||
</Stack>
|
||||
</Form>
|
||||
);
|
||||
}
|
||||
|
||||
function EditWebhookHandleSave() { // fn#116322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1121, owner: EditWebhook.handleSave, offset: 0x02484b73, size: 194 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var binding;
|
||||
var avatar;
|
||||
var name;
|
||||
var channel;
|
||||
var props;
|
||||
var guildId;
|
||||
var webhookId;
|
||||
var navigation;
|
||||
var object2;
|
||||
var value;
|
||||
let state = env0_0.state;
|
||||
if (state.hasChanges) {
|
||||
binding = env0_0;
|
||||
state = binding.state;
|
||||
avatar = state.avatar;
|
||||
name = state.name;
|
||||
channel = state.channel;
|
||||
props = binding.props;
|
||||
guildId = props.guildId;
|
||||
webhookId = props.webhookId;
|
||||
navigation = props.navigation;
|
||||
object2 = {name: name};
|
||||
object2.channel_id = channel.id;
|
||||
object2.avatar = avatar;
|
||||
binding.setState({submitting: true});
|
||||
value = environment.__proto__.__proto__;
|
||||
value = importDefault(15205) /* metro dependency 15205: WebhooksActionCreators */;
|
||||
value = value.update(guildId, webhookId, object2);
|
||||
value = value.then(function() {
|
||||
navigation.pop();
|
||||
});
|
||||
value.catch(_fun116324);
|
||||
}
|
||||
}
|
||||
|
||||
function handleGuildIconUpload(a0) { // fn#116325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1441, owner: EditWebhook.handleGuildIconUpload, offset: 0x02484c76, size: 89 bytes, params: 2, frame: 15
|
||||
var binding;
|
||||
const avatar = env0_0.props.avatar;
|
||||
if (a0 !== avatar) {
|
||||
env0_0.setState({hasChanges: true, avatar: a0});
|
||||
} else {
|
||||
binding = env0_0;
|
||||
binding.setState({hasChanges: false, avatar: avatar});
|
||||
}
|
||||
}
|
||||
|
||||
function EditWebhookHandleNameChange(a0) { // fn#116326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1566, owner: EditWebhook.handleNameChange, offset: 0x02484ccf, size: 86 bytes, params: 2, frame: 15
|
||||
var binding;
|
||||
const name = env0_0.props.name;
|
||||
if (a0 !== name) {
|
||||
env0_0.setState({hasChanges: true, name: a0});
|
||||
} else {
|
||||
binding = env0_0;
|
||||
binding.setState({hasChanges: false, name: name});
|
||||
}
|
||||
}
|
||||
|
||||
function handleChannelChange() { // fn#116327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1688, owner: EditWebhook.handleChannelChange, offset: 0x02484d25, size: 109 bytes, params: 1, frame: 15
|
||||
const binding = env0_0;
|
||||
(importDefault(11265) /* metro dependency 11265: openChannelPicker */)({guildId: binding.props.guildId,
|
||||
channelType: GUILD_SELECTABLE_CHANNELS_KEY, filterFn: function({channel}) {
|
||||
return PermissionStore.can(Permissions.MANAGE_WEBHOOKS, channel);
|
||||
}, selectedChannel: binding.props.channel, onSelect: onSelect_116329});
|
||||
}
|
||||
|
||||
function handleCopyUrl() { // fn#116330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1953, owner: EditWebhook.handleCopyUrl, offset: 0x02484e19, size: 144 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var aPIBaseURL;
|
||||
var value;
|
||||
const props = env0_0.props;
|
||||
const token = props.token;
|
||||
if (token != null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
aPIBaseURL = (require(507) /* metro dependency 507: HTTPUtils */).getAPIBaseURL(false);
|
||||
value = Endpoints.WEBHOOK_INTEGRATION(props.webhookId, token);
|
||||
value = '' + aPIBaseURL + value;
|
||||
(require(6797) /* metro dependency 6797: ClipboardUtilsNative */).copy(value, _fun116331);
|
||||
}
|
||||
}
|
||||
|
||||
function handleConfirmDeleteWebhook() { // fn#116332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:2153, owner: EditWebhook.handleConfirmDeleteWebhook, offset: 0x02484ec6, size: 108 bytes, params: 1, frame: 15
|
||||
var environment;
|
||||
const props = env0_0.props;
|
||||
const guildId = props.guildId;
|
||||
const webhookId = props.webhookId;
|
||||
var env0_0 = props.navigation;
|
||||
let value = environment.__proto__.__proto__;
|
||||
value = importDefault(15205) /* metro dependency 15205: WebhooksActionCreators */;
|
||||
value = value.delete(guildId, webhookId);
|
||||
value = value.then(function() {
|
||||
navigation.pop();
|
||||
});
|
||||
value.catch(_fun116334);
|
||||
}
|
||||
|
||||
function handleDeleteWebhook() { // fn#116335, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:2405, owner: EditWebhook.handleDeleteWebhook, offset: 0x02484fc5, size: 316 bytes, params: 1, frame: 24
|
||||
const binding = env0_0;
|
||||
const name = binding.props.name;
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const QVFjHh = t.QVFjHh;
|
||||
object2.title = Reflect.apply(formatToPlainString, intl, [QVFjHh, {name: name}]);
|
||||
object2.body = intl.format(t['rIWe+5'], {name: name});
|
||||
object2.cancelText = intl.string(t.gm1Vej);
|
||||
object2.confirmText = intl.string(t.p89ACt);
|
||||
object2.onConfirm = binding.handleConfirmDeleteWebhook;
|
||||
const Colors = (importDefault(4596) /* metro dependency 4596: Alert */).Colors;
|
||||
const RED = Colors.RED;
|
||||
object2.confirmColor = RED;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
function handleCancelChanges() { // fn#116336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:2769, owner: EditWebhook.handleCancelChanges, offset: 0x02485101, size: 81 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
binding.setState({'avatar': null, 'name': null, 'channel': null, 'hasChanges': false, 'submitting': false,
|
||||
'copied': false, avatar: binding.props.avatar, name: binding.props.name, channel: binding.props.channel});
|
||||
}
|
||||
|
||||
function value_116337HeaderRight() { // fn#116338, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:3098, owner: value_116337.headerRight, offset: 0x024851ef, size: 113 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const handleSave = env0_0.handleSave;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
onPress={handleSave}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['R3BPH+'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_116337HeaderLeft() { // fn#116339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:3218, owner: value_116337.headerLeft, offset: 0x02485260, size: 113 bytes, params: 1, frame: 18
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const handleCancelChanges = env0_0.handleCancelChanges;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
return (
|
||||
<HeaderActionButton
|
||||
onPress={handleCancelChanges}
|
||||
text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC'])}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function value_116337HeaderRight_116340() { // fn#116340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:3417, owner: value_116337.headerRight, offset: 0x024852d1, size: 45 bytes, params: 1, frame: 13
|
||||
const HeaderSubmittingIndicator = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).HeaderSubmittingIndicator;
|
||||
return <HeaderSubmittingIndicator />;
|
||||
}
|
||||
|
||||
function _fun116324({body}) { // fn#116324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1362, offset: 0x02484c4a, size: 44 bytes, params: 2, frame: 12
|
||||
const binding = env1_0;
|
||||
binding.setState({errors: body, submitting: false});
|
||||
}
|
||||
|
||||
function handleChannelChangeOnSelect(a0) { // fn#116329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:1841, owner: EditWebhook.handleChannelChange.onSelect, offset: 0x02484db9, size: 96 bytes, params: 2, frame: 14
|
||||
var value2;
|
||||
if (a0.id !== channel.id) {
|
||||
value = environment.__proto__;
|
||||
env1_0.setState({hasChanges: true, channel: a0});
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
env1_0.setState({hasChanges: false, channel: channel});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116331() { // fn#116331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:2092, offset: 0x02484ea9, size: 29 bytes, params: 1, frame: 12
|
||||
return env1_0.setState({copied: true});
|
||||
}
|
||||
|
||||
function _fun116334() { // fn#116334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15407:2263, offset: 0x02484f32, size: 147 bytes, params: 1, frame: 18
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const N5riYn = t.N5riYn;
|
||||
object2.title = Reflect.apply(string, intl, [N5riYn]);
|
||||
object2.body = intl.string(t['/4TwKf']);
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,304 @@
|
||||
/* Metro module 15203; source: modules/integration_settings/native/IntegrationsSettingsWebhooksOverview.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 1379, 1867, 1878, 15204, 661, 33, 4501, 697, 1484, 1423, 6238, 1305, 1244, 21, 3995, 566, 1948, 4573, 15206, 6231, 7972, 4572, 5462, 3868, 15205, 2] */
|
||||
function _fun116252(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116252, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:6, offset: 0x02482d6f, size: 590 bytes, params: 8, frame: 23
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_4 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_5 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_6 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_7 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
(require(27) /* metro dependency 27 */).Platform;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const webhooksStore = importDefault(15204) /* metro dependency 15204: WebhooksStore */;
|
||||
const constantsModule = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_13 = constantsModule.HelpdeskArticles;
|
||||
const env0_14 = constantsModule.ChannelSettingsSections;
|
||||
const env0_15 = constantsModule.NON_USER_BOT_DISCRIMINATOR;
|
||||
const env0_16 = constantsModule.WebhookTypes;
|
||||
const value3 = require(33) /* metro dependency 33 */;
|
||||
const env0_17 = value3.jsx;
|
||||
const env0_18 = value3.Fragment;
|
||||
const env0_19 = value3.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
object2.form = {backgroundColor: BACKGROUND_BASE_LOWER, paddingTop: 16};
|
||||
object2.hint = {'paddingHorizontal': 16, 'marginBottom': 16};
|
||||
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
|
||||
object2.row = {padding: TABLE_ROW_PADDING};
|
||||
const env0_20 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object2]);
|
||||
const PureComponent = value.PureComponent;
|
||||
value = _fun116262(PureComponent);
|
||||
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
|
||||
value.contextType = ThemeContext;
|
||||
const env0_22 = [];
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/integration_settings/native/IntegrationsSettingsWebhooksOverview.tsx');
|
||||
exports.default = ConnectedWebhooksOverview;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_116253() { // fn#116253, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:367, offset: 0x02482fbd, size: 98 bytes, params: 1, frame: 18
|
||||
var Boolean;
|
||||
var prototype;
|
||||
var valueOf;
|
||||
var call;
|
||||
var Reflect;
|
||||
var construct;
|
||||
var closure;
|
||||
var value;
|
||||
var error;
|
||||
try {
|
||||
Boolean = global.Boolean;
|
||||
prototype = Boolean.prototype;
|
||||
valueOf = prototype.valueOf;
|
||||
call = valueOf.call;
|
||||
Reflect = global.Reflect;
|
||||
construct = Reflect.construct;
|
||||
Boolean = global.Boolean;
|
||||
closure = function() {
|
||||
};
|
||||
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
|
||||
value = Reflect.apply(call, valueOf, [value]);
|
||||
var result = !value;
|
||||
} catch (error) {
|
||||
}
|
||||
return (_isNativeReflectConstruct_116253_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function WebhookItem({avatar, channel, guildId, name, token, user, webhookId, webhookType}) { // fn#116256, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:786, offset: 0x0248301f, size: 517 bytes, params: 2, frame: 27
|
||||
var object6;
|
||||
var r5;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var formatToPlainString;
|
||||
var property;
|
||||
var object2;
|
||||
var object5;
|
||||
var value;
|
||||
const value3 = env0_8.useCallback(_fun116257, [webhookId, webhookType, avatar, channel, guildId, name, token,
|
||||
(require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation()]);
|
||||
const value4 = env0_8.useMemo(function() {
|
||||
return require(dependencyMap[16]).makeSource(require(dependencyMap[16]).getUserAvatarURL({id: webhookId,
|
||||
avatar: avatar, discriminator: NON_USER_BOT_DISCRIMINATOR}));
|
||||
}, [webhookId, avatar]);
|
||||
const TableRow = (require(6238) /* metro dependency 6238: TableRowNative */).TableRow;
|
||||
object6 = {};
|
||||
const Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
|
||||
object6.icon = <Avatar source={value4} />;
|
||||
object6.arrow = true;
|
||||
object6.label = name;
|
||||
if (user != null) {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['7EcUbr'];
|
||||
object5 = {};
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
object5.timestamp = value.extractTimestamp(webhookId);
|
||||
value = importDefault(3995) /* metro dependency 3995: UserUtils */;
|
||||
object5.user = value.getUserTag(user);
|
||||
value = Reflect.apply(formatToPlainString, intl, [property, object5]);
|
||||
r5 = value;
|
||||
} else {
|
||||
formatToPlainString = intl.formatToPlainString;
|
||||
property = (require(1244) /* metro dependency 1244: indexNative */).t['7mv59O'];
|
||||
object2 = {};
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
object2.timestamp = value.extractTimestamp(webhookId);
|
||||
value = Reflect.apply(formatToPlainString, intl, [property, object2]);
|
||||
r5 = value;
|
||||
}
|
||||
object6.subLabel = r5;
|
||||
object6.onPress = value3;
|
||||
return <TableRow {...object6} />;
|
||||
}
|
||||
|
||||
function ConnectedWebhookItem(a0) { // fn#116259, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:1492, offset: 0x024832de, size: 190 bytes, params: 2, frame: 21
|
||||
const env0_0 = a0.channelId;
|
||||
let user = a0.user;
|
||||
const value = Object.create(null);
|
||||
value.channelId = 0;
|
||||
value.user = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], function() {
|
||||
return UserStore.getUser(user?.id);
|
||||
});
|
||||
return (
|
||||
<WebhookItem
|
||||
{...value2}
|
||||
{...{['user']: user}}
|
||||
{...{['channel']: (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore],
|
||||
function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
})}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun116262(a0) { // fn#116262, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:1734, offset: 0x024833cb, size: 126 bytes, params: 2, frame: 16
|
||||
const closure = WebhooksOverview;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'getHelpText', value: value_116264}, {key: 'renderWebhooks', value: value_116265},
|
||||
{key: 'render', value: value_116268}]);
|
||||
}
|
||||
|
||||
function ConnectedWebhooksOverview({channelId, guildId, contentContainerStyle, webhookType}) { // fn#116269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:3596, offset: 0x024838af, size: 325 bytes, params: 2, frame: 23
|
||||
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], function() {
|
||||
return ChannelStore.getChannel(channelId);
|
||||
});
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], function() {
|
||||
var r0;
|
||||
var getGuild = GuildStore.getGuild;
|
||||
r0 = channel?.guild_id;
|
||||
r0 = r0 ?? guildId;
|
||||
return Reflect.apply(getGuild, GuildStore, [r0]);
|
||||
});
|
||||
const r13 = guild?.id ?? guildId;
|
||||
const r12 = channel?.id ?? channelId;
|
||||
const value4 = (require(566) /* metro dependency 566: flux */).useStateFromStoresArray([WebhooksStore], _fun116272);
|
||||
env0_8.useEffect(_fun116273, [r13, r12]);
|
||||
return guild != null ? ((Component) => <Component guild={guild} channel={channel} webhooks={value4} contentContainerStyle={contentContainerStyle} webhookType={webhookType} />)(env0_21) : null;
|
||||
}
|
||||
|
||||
function _fun116257() { // fn#116257, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:935, offset: 0x02483224, size: 97 bytes, params: 1, frame: 15
|
||||
const binding = env0_7;
|
||||
const push = binding.push;
|
||||
const EDIT_WEBHOOK = ChannelSettingsSections.EDIT_WEBHOOK;
|
||||
Reflect.apply(push, binding, [EDIT_WEBHOOK, {webhookId: webhookId, webhookType: webhookType, avatar: avatar,
|
||||
name: name, channel: channel, guildId: guildId, token: token}]);
|
||||
}
|
||||
|
||||
function value_116264() { // fn#116264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:2045, offset: 0x02483449, size: 243 bytes, params: 1, frame: 19
|
||||
var r0;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
var format;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
var property;
|
||||
var defaultImport;
|
||||
var defaultImport2;
|
||||
const webhookType = this.props.webhookType;
|
||||
const value = environment.__proto__;
|
||||
const CHANNEL_FOLLOWER = WebhookTypes.CHANNEL_FOLLOWER;
|
||||
if (webhookType === CHANNEL_FOLLOWER) {
|
||||
format = intl.format;
|
||||
property = t['5u+aV1'];
|
||||
defaultImport2 = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r0 = Reflect.apply(format, intl, [property,
|
||||
{helpdeskArticle: defaultImport2.getArticleURL(HelpdeskArticles.CHANNEL_FOLLOWING)}]);
|
||||
} else {
|
||||
format = intl.format;
|
||||
property = t['3hX7G+'];
|
||||
defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
|
||||
r0 = Reflect.apply(format, intl, [property,
|
||||
{articleURL: defaultImport.getArticleURL(HelpdeskArticles.WEBHOOKS_INTRODUCTION)}]);
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_116265() { // fn#116265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:2346, offset: 0x0248353c, size: 511 bytes, params: 1, frame: 26
|
||||
var environment;
|
||||
var r9;
|
||||
var r0;
|
||||
var value2;
|
||||
var value3;
|
||||
var jsxRuntimeEnv1_18Binding;
|
||||
var value4;
|
||||
var items2;
|
||||
var EmptyState;
|
||||
var CHANNEL_FOLLOWER;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const {webhooks, webhookType} = this.props;
|
||||
const r6 = webhookType == null ? webhooks : webhooks.filter(function({type}) {
|
||||
return type === webhookType;
|
||||
});
|
||||
let value = this.getHelpText();
|
||||
if (r6.length === 0) {
|
||||
value3 = environment.__proto__;
|
||||
jsxRuntimeEnv1_18Binding = jsxRuntimeEnv1_18;
|
||||
value4 = undefined;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
value = <Text variant="text-sm/medium" color="text-muted">{value}</Text>;
|
||||
items2 = [value];
|
||||
EmptyState = (require(1305) /* metro dependency 1305: native */).EmptyState;
|
||||
var emptyStateProps = {Illustration: (require(15206) /* metro dependency 15206: WebhookEmpty */).WebhookEmpty};
|
||||
CHANNEL_FOLLOWER = WebhookTypes.CHANNEL_FOLLOWER;
|
||||
r9 = webhookType === CHANNEL_FOLLOWER ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.dkHRkE) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4JAVI+']);
|
||||
emptyStateProps.title = r9;
|
||||
CHANNEL_FOLLOWER = WebhookTypes.CHANNEL_FOLLOWER;
|
||||
r9 = webhookType === CHANNEL_FOLLOWER ? value4 : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Gg3fUf);
|
||||
emptyStateProps.body = r9;
|
||||
items2[1] = <EmptyState {...emptyStateProps} />;
|
||||
value = <>{items2}</>;
|
||||
r0 = value;
|
||||
} else {
|
||||
value2 = environment.__proto__;
|
||||
const TableRowGroup = (require(6231) /* metro dependency 6231: TableRowGroupNative */).TableRowGroup;
|
||||
value = <TableRowGroup description={value} hasIcons>{r6.map(_fun116267)}</TableRowGroup>;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_116268() { // fn#116268, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:3109, offset: 0x024837b2, size: 253 bytes, params: 1, frame: 26
|
||||
const value2 = env1_20(this.context);
|
||||
const jsxRuntimeEnv1_18Binding = jsxRuntimeEnv1_18;
|
||||
const Form = (require(7972) /* metro dependency 7972: native */).Form;
|
||||
const form = value2.form;
|
||||
const contentContainerStyle = this.props.contentContainerStyle;
|
||||
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
const PX_24 = (importDefault(697) /* metro dependency 697: native */).space.PX_24;
|
||||
const form2 = <Form style={form} contentContainerStyle={contentContainerStyle}><Stack spacing={PX_24} style={{paddingHorizontal: value2.row.padding}}>{this.renderWebhooks()}</Stack></Form>;
|
||||
const NavScrim = (require(5462) /* metro dependency 5462: NavScrimAndroid */).NavScrim;
|
||||
return (
|
||||
<>
|
||||
{form2}
|
||||
<NavScrim />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun116272() { // fn#116272, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:3979, offset: 0x02483a2b, size: 95 bytes, params: 1, frame: 14
|
||||
return env0_3 == null ? env0_3 != null ? WebhooksStore.getWebhooksForGuild(env0_3) : env1_22 : env0_4 != null ? WebhooksStore.getWebhooksForChannel(env0_3,
|
||||
env0_4) : env0_3 != null ? WebhooksStore.getWebhooksForGuild(env0_3) : env1_22;
|
||||
}
|
||||
|
||||
function _fun116273() { // fn#116273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:4086, offset: 0x02483a8a, size: 120 bytes, params: 1, frame: 13
|
||||
var value2;
|
||||
var value3;
|
||||
var defaultImport2;
|
||||
if (env0_3 == null) {
|
||||
if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(15205) /* metro dependency 15205: WebhooksActionCreators */).fetchForGuild(env0_3);
|
||||
}
|
||||
} else if (env0_4 != null) {
|
||||
value3 = environment.__proto__;
|
||||
defaultImport2 = importDefault(15205) /* metro dependency 15205: WebhooksActionCreators */;
|
||||
defaultImport2.fetchForChannel(env0_3, env0_4);
|
||||
} else if (env0_3 != null) {
|
||||
value2 = environment.__proto__;
|
||||
(importDefault(15205) /* metro dependency 15205: WebhooksActionCreators */).fetchForGuild(env0_3);
|
||||
}
|
||||
}
|
||||
|
||||
function _fun116267({id, type, avatar, name, user, token, guild_id, channel_id}) { // fn#116267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15400:2889, offset: 0x0248373b, size: 119 bytes, params: 2, frame: 23
|
||||
const value = environment.__proto__.__proto__;
|
||||
return (
|
||||
<ConnectedWebhookItem
|
||||
webhookId={id}
|
||||
webhookType={type}
|
||||
avatar={avatar ?? undefined}
|
||||
name={name}
|
||||
user={user}
|
||||
channelId={channel_id}
|
||||
token={token}
|
||||
guildId={guild_id}
|
||||
key={id}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,158 @@
|
||||
/* Metro module 12134; source: modules/integration_settings/native/useShowUnlinkChannelAlert.tsx; dependencies: [5, 31, 8148, 4496, 1244, 4596, 2] */
|
||||
function _fun93165(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:6, offset: 0x020a956e, size: 137 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 = importAll(31) /* metro dependency 31 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/integration_settings/native/useShowUnlinkChannelAlert.tsx');
|
||||
exports.default = useShowUnlinkChannelAlert;
|
||||
}
|
||||
|
||||
function useShowUnlinkChannelAlert(a0, a1, a2) { // fn#93166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:228, offset: 0x020a95f7, size: 107 bytes, params: 4, frame: 18
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const binding = env0_4;
|
||||
const useCallback = binding.useCallback;
|
||||
let value = env0_3(_fun93168);
|
||||
value = Reflect.apply(useCallback, binding, [value, [a0, a2]]);
|
||||
return binding.useCallback(_fun93169, [a1, value]);
|
||||
}
|
||||
|
||||
function* _fun93168() { // fn#93168, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:293, offset: 0x020a966d, size: 244 bytes, params: 1, frame: 19
|
||||
var binding;
|
||||
var binding2;
|
||||
var property;
|
||||
var value3;
|
||||
var removeLinkedLobby;
|
||||
var value5;
|
||||
var value6;
|
||||
var value7;
|
||||
var value8;
|
||||
var error;
|
||||
var binding3;
|
||||
var value9;
|
||||
var show;
|
||||
var object2;
|
||||
var intl;
|
||||
var string;
|
||||
var t;
|
||||
var vFzPFj;
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__;
|
||||
reducibleJoin3: while (true) {
|
||||
reduciblePort22: while (true) {
|
||||
exceptionLanding21: while (true) {
|
||||
try {
|
||||
binding = env2_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
break reducibleJoin3;
|
||||
}
|
||||
binding = env2_1;
|
||||
binding3 = env2_2;
|
||||
value9 = binding(binding3[3]);
|
||||
show = value9.show;
|
||||
object2 = {};
|
||||
binding = env2_0;
|
||||
intl = binding(binding3[4]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[4]).t;
|
||||
vFzPFj = t.vFzPFj;
|
||||
object2.title = Reflect.apply(string, intl, [vFzPFj]);
|
||||
intl = binding(binding3[4]).intl;
|
||||
string = intl.string;
|
||||
t = binding(binding3[4]).t;
|
||||
object2.body = Reflect.apply(string, intl, [t['6D5WVg']]);
|
||||
Reflect.apply(show, value9, [object2]);
|
||||
break reduciblePort22;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
property = binding2[2];
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
value3 = binding(property);
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
removeLinkedLobby = value3.removeLinkedLobby;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
value5 = Reflect.apply(removeLinkedLobby, value3, [require]);
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
yield value5;
|
||||
try {
|
||||
value6 = undefined;
|
||||
value7 = false;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
if (value7) {
|
||||
return value6;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
value8 = dependencyMap == null;
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
reducibleJoin22: while (true) {
|
||||
if (value8) {
|
||||
break reducibleJoin22;
|
||||
}
|
||||
try {
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
try {
|
||||
dependencyMap();
|
||||
} catch (error) {
|
||||
break exceptionLanding21;
|
||||
}
|
||||
break reducibleJoin22;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _fun93169() { // fn#93169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12320:505, offset: 0x020a9761, size: 296 bytes, params: 1, frame: 23
|
||||
const defaultImport = importDefault(4496) /* metro dependency 4496: AlertActionCreators */;
|
||||
const show = defaultImport.show;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
|
||||
const JmUENg = t.JmUENg;
|
||||
object2.title = Reflect.apply(string, intl, [JmUENg]);
|
||||
object2.body = intl.format(t['6l2osp'], {applicationName: require});
|
||||
object2.cancelText = intl.string(t['ETE/oC']);
|
||||
object2.confirmText = intl.string(t['cY+Oob']);
|
||||
object2.onConfirm = env0_3;
|
||||
const Colors = (importDefault(4596) /* metro dependency 4596: Alert */).Colors;
|
||||
const RED = Colors.RED;
|
||||
object2.confirmColor = RED;
|
||||
Reflect.apply(show, defaultImport, [object2]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user