Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,166 @@
|
||||
/* Metro module 10301; source: modules/guild_communication_disabled/native/GuildDisableCommunication.tsx; dependencies: [5, 57, 31, 27, 1947, 661, 33, 1244, 4501, 697, 5463, 10302, 4594, 683, 10304, 3857, 4617, 8096, 6766, 7988, 7987, 7681, 4578, 2] */
|
||||
function _fun79936(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10487:6, offset: 0x01e67343, size: 592 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(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
||||
let value = importAll(31) /* metro dependency 31 */;
|
||||
const value2 = require(27) /* metro dependency 27 */;
|
||||
const env0_6 = value2.View;
|
||||
const env0_7 = value2.ScrollView;
|
||||
const guildDisableCommunicationConstantsModule = require(1947) /* metro dependency 1947: GuildDisableCommunicationConstants */;
|
||||
const DisableCommunicationDuration = guildDisableCommunicationConstantsModule.DisableCommunicationDuration;
|
||||
const env0_8 = guildDisableCommunicationConstantsModule.GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK;
|
||||
const env0_9 = guildDisableCommunicationConstantsModule.SET_COMMUNICATION_DISABLED_MODAL_NAME;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
const value4 = require(33) /* metro dependency 33 */;
|
||||
const env0_11 = value4.jsx;
|
||||
const env0_12 = value4.Fragment;
|
||||
const env0_13 = value4.jsxs;
|
||||
const DURATION_60_SEC = DisableCommunicationDuration.DURATION_60_SEC;
|
||||
const items2 = [{value: DURATION_60_SEC, getLabel: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.iruf5E, {minutes: 1});
|
||||
}}];
|
||||
const DURATION_5_MIN = DisableCommunicationDuration.DURATION_5_MIN;
|
||||
items2[1] = {value: DURATION_5_MIN, getLabel: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.iruf5E, {minutes: 5});
|
||||
}};
|
||||
const DURATION_10_MIN = DisableCommunicationDuration.DURATION_10_MIN;
|
||||
items2[2] = {value: DURATION_10_MIN, getLabel: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.iruf5E, {minutes: 10});
|
||||
}};
|
||||
const DURATION_1_HOUR = DisableCommunicationDuration.DURATION_1_HOUR;
|
||||
items2[3] = {value: DURATION_1_HOUR, getLabel: function() {
|
||||
var intl = require(dependencyMap[7]).intl;
|
||||
var LnvrA3 = require(dependencyMap[7]).t.LnvrA3;
|
||||
return intl.formatToPlainString(LnvrA3, {hours: 1});
|
||||
}};
|
||||
const DURATION_1_DAY = DisableCommunicationDuration.DURATION_1_DAY;
|
||||
items2[4] = {value: DURATION_1_DAY, getLabel: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.jzH70Z, {days: 1});
|
||||
}};
|
||||
const DURATION_1_WEEK = DisableCommunicationDuration.DURATION_1_WEEK;
|
||||
items2[5] = {value: DURATION_1_WEEK, getLabel: function() {
|
||||
return require(dependencyMap[7]).intl.formatToPlainString(require(dependencyMap[7]).t.iVZYyl, {weeks: 1});
|
||||
}};
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
object2 = {};
|
||||
const BACKGROUND_BASE_LOW = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOW;
|
||||
object2.container = {backgroundColor: BACKGROUND_BASE_LOW};
|
||||
let PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.reasonTextArea = {marginVertical: PX_16};
|
||||
PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.buttonContainer = {marginBottom: PX_16};
|
||||
const env0_15 = Reflect.apply(createStyles, createStylesModule, [object2]);
|
||||
value = value.memo(GuildDisableCommunication);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_communication_disabled/native/GuildDisableCommunication.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function GuildDisableCommunication({user, guildId, onClose}) { // fn#79943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10487:1177, offset: 0x01e6774b, size: 931 bytes, params: 2, frame: 32
|
||||
const styles = useStyles();
|
||||
const binding = env0_5;
|
||||
const [env0_3, env0_4] = env0_4Binding(binding.useState(0), 2);
|
||||
var env0_5 = binding.useRef('');
|
||||
const value4 = binding.useRef(null);
|
||||
const value5 = binding.useRef(null);
|
||||
const insets = (importDefault(5463) /* metro dependency 5463: useSafeAreaInsetsKeyboardAwareNative */)({includeKeyboardHeight: true}).insets;
|
||||
(importDefault(10302) /* metro dependency 10302: useSafeAreaAvoidingInputsNative */)({insets: insets,
|
||||
inputs: [{ref: value5, offset: {type: 'toBottom'}}], scrollViewRef: value4});
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
|
||||
var defaultImport = importDefault(dependencyMap[13]);
|
||||
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
defaultImport.track(OPEN_MODAL, {type: SET_COMMUNICATION_DISABLED_MODAL_NAME, guild_id: guildId,
|
||||
other_user_id: user.id});
|
||||
});
|
||||
const value6 = _fun79945();
|
||||
const object = {};
|
||||
const PX_12 = (importDefault(697) /* metro dependency 697: native */).space.PX_12;
|
||||
object.paddingHorizontal = PX_12;
|
||||
object.paddingBottom = insets.bottom;
|
||||
const jsxRuntimeEnv0_12Binding = jsxRuntimeEnv0_12;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const object2 = {};
|
||||
const PX_16 = (importDefault(697) /* metro dependency 697: native */).space.PX_16;
|
||||
object2.marginVertical = PX_16;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const format = intl.format;
|
||||
const Ns83GT = (require(1244) /* metro dependency 1244: indexNative */).t.Ns83GT;
|
||||
const items2 = [<TextWithIOSLinkWorkaround style={object2} variant="heading-md/semibold">{Reflect.apply(format,
|
||||
intl, [Ns83GT, {helpdeskArticle: GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK}])}</TextWithIOSLinkWorkaround>];
|
||||
const TableRadioGroup = (require(7988) /* metro dependency 7988: TableRadioGroupNative */).TableRadioGroup;
|
||||
let string = intl.string;
|
||||
items2[1] = <TableRadioGroup title={Reflect.apply(string, intl,
|
||||
[(require(1244) /* metro dependency 1244: indexNative */).t['9XsExm']])} defaultValue={0} onChange={onChange_79949} hasIcons={false}>{env0_14.map(_fun79950)}</TableRadioGroup>;
|
||||
const TextArea = (require(7681) /* metro dependency 7681: TextAreaNative */).TextArea;
|
||||
const textAreaProps = {ref: value5, containerStyle: styles.reasonTextArea};
|
||||
string = intl.string;
|
||||
const GakiH1 = (require(1244) /* metro dependency 1244: indexNative */).t.GakiH1;
|
||||
textAreaProps.placeholder = Reflect.apply(string, intl, [GakiH1]);
|
||||
textAreaProps.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ewHW15);
|
||||
textAreaProps.maxLength = 512;
|
||||
textAreaProps.onChange = onChange_79951;
|
||||
items2[2] = <TextArea {...textAreaProps} />;
|
||||
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
|
||||
string = intl.string;
|
||||
const MlPTIi = (require(1244) /* metro dependency 1244: indexNative */).t.MlPTIi;
|
||||
items2[3] = <View style={styles.buttonContainer}><Button variant="primary" text={Reflect.apply(string, intl,
|
||||
[MlPTIi])} onPress={value6} /></View>;
|
||||
return (
|
||||
<ScrollView
|
||||
style={styles.container}
|
||||
ref={value4}
|
||||
contentContainerStyle={object}
|
||||
>
|
||||
<>
|
||||
{items2}
|
||||
</>
|
||||
</ScrollView>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun79945() { // fn#79945, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10487:1561, offset: 0x01e67b41, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun79947);
|
||||
return _fun79948;
|
||||
}
|
||||
|
||||
function _fun79950(a0, a1) { // fn#79950, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10487:2386, offset: 0x01e67caf, size: 70 bytes, params: 3, frame: 17
|
||||
const TableRadioRow = (require(7987) /* metro dependency 7987: TableRadioRowNative */).TableRadioRow;
|
||||
return (
|
||||
<TableRadioRow
|
||||
value={a1}
|
||||
label={a0.getLabel()}
|
||||
key={a1}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function* _fun79947() { // fn#79947, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10487:1581, offset: 0x01e67b70, size: 300 bytes, params: 1, frame: 28
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_1;
|
||||
var value3 = binding(env3_2[14]);
|
||||
yield value3.setCommunicationDisabledDuration(importDefault, require.id, env3_14[env2_3].value, env2_5.current);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_1;
|
||||
var binding2 = env3_2;
|
||||
var value8 = binding(binding2[15]);
|
||||
var open = value8.open;
|
||||
var object2 = {key: 'GUILD_COMMUNICATION_DISABLED_SUCCESS'};
|
||||
var binding3 = env3_0;
|
||||
var intl = binding3(binding2[7]).intl;
|
||||
var formatToPlainString = intl.formatToPlainString;
|
||||
var O9C3Nt = binding3(binding2[7]).t.O9C3Nt;
|
||||
object2.content = Reflect.apply(formatToPlainString, intl, [O9C3Nt,
|
||||
{user: binding(binding2[16]).getName(importDefault, null, require) ?? ''}]);
|
||||
object2.icon = env3_1(env3_2[17]);
|
||||
Reflect.apply(open, value8, [object2]);
|
||||
dependencyMap();
|
||||
}
|
||||
}
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/* Metro module 10300; source: modules/guild_communication_disabled/native/GuildDisableCommunicationModal.tsx; dependencies: [31, 33, 9882, 9883, 1244, 4617, 10301, 2] */
|
||||
function _fun79933(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10486:6, offset: 0x01e671a0, size: 138 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_3 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_communication_disabled/native/GuildDisableCommunicationModal.tsx');
|
||||
exports.default = GuildDisableCommunicationModal;
|
||||
}
|
||||
|
||||
function GuildDisableCommunicationModal({guildId, user, cancelButtonCallback}) { // fn#79934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10486:240, offset: 0x01e6722a, size: 214 bytes, params: 2, frame: 24
|
||||
const env0_2 = (importDefault(9882) /* metro dependency 9882: useNavigatorBackHandlerNative */)({onBeforeGoBack: cancelButtonCallback}).onGoBack;
|
||||
const ModalStackNavigator = importDefault(9883) /* metro dependency 9883: ModalStackNavigator */;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const formatToPlainString = intl.formatToPlainString;
|
||||
const FN7NIS = (require(1244) /* metro dependency 1244: indexNative */).t.FN7NIS;
|
||||
const object = {};
|
||||
object.user = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(guildId, null, user);
|
||||
return (
|
||||
<ModalStackNavigator
|
||||
screenKey="disableCommunication"
|
||||
title={Reflect.apply(formatToPlainString, intl, [FN7NIS, object])}
|
||||
render={render_79935}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function GuildDisableCommunicationModalRender() { // fn#79935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10486:514, owner: GuildDisableCommunicationModal.render, offset: 0x01e67300, size: 67 bytes, params: 1, frame: 15
|
||||
const value = environment.__proto__;
|
||||
return ((Component) => <Component user={user} guildId={guildId} onClose={onGoBack} />)(importDefault(10301) /* metro dependency 10301: GuildDisableCommunication */);
|
||||
}
|
||||
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/* Metro module 10305; source: modules/guild_communication_disabled/native/GuildEnableCommunicationAlert.tsx; dependencies: [5, 57, 31, 27, 1878, 1947, 661, 33, 4501, 8229, 4594, 683, 10304, 3857, 1244, 8096, 4596, 4573, 4617, 9898, 6766, 2] */
|
||||
function _fun79982(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#79982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10491:6, offset: 0x01e68718, size: 373 bytes, params: 8, frame: 23
|
||||
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 */;
|
||||
importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
let value = require(1947) /* metro dependency 1947: GuildDisableCommunicationConstants */;
|
||||
const env0_7 = value.CLEAR_COMMUNICATION_DISABLED_MODAL_NAME;
|
||||
const env0_8 = value.GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK;
|
||||
value = require(661) /* metro dependency 661: Constants */;
|
||||
const env0_9 = value.AnalyticEvents;
|
||||
const Fonts = value.Fonts;
|
||||
value = require(33) /* metro dependency 33 */;
|
||||
const env0_10 = value.jsx;
|
||||
const env0_11 = value.jsxs;
|
||||
value = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = value.createStyles;
|
||||
const PRIMARY_SEMIBOLD = Fonts.PRIMARY_SEMIBOLD;
|
||||
const env0_12 = Reflect.apply(createStyles, value, [{wrapper: {padding: 16}, body: {paddingTop: 16},
|
||||
description: {lineHeight: 18}, cta: {paddingTop: 8}, countdown: {fontFamily: PRIMARY_SEMIBOLD}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_communication_disabled/native/GuildEnableCommunicationAlert.tsx');
|
||||
exports.default = GuildEnableCommunicationAlert;
|
||||
}
|
||||
|
||||
function GuildEnableCommunicationAlert(a0) { // fn#79983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10491:597, offset: 0x01e6888d, size: 793 bytes, params: 2, frame: 35
|
||||
const guildId = a0.guildId;
|
||||
const userId = a0.userId;
|
||||
const onCancel = a0.onCancel;
|
||||
const object2 = {'guildId': 0, 'userId': 0, 'onCancel': 0};
|
||||
silentSetPrototypeOf(object2, null, undefined);
|
||||
let value = copyDataProperties({}, a0, object2, undefined);
|
||||
const value3 = undefined;
|
||||
const styles = useStyles();
|
||||
const env0_3 = env0_4((importDefault(8229) /* metro dependency 8229: useUserCommunicationDisabled */)(userId,
|
||||
guildId), 1)[0];
|
||||
(importDefault(4594) /* metro dependency 4594: useMountEffect */)(function() {
|
||||
var defaultImport = importDefault(dependencyMap[11]);
|
||||
var OPEN_MODAL = AnalyticEvents.OPEN_MODAL;
|
||||
defaultImport.track(OPEN_MODAL, {type: CLEAR_COMMUNICATION_DISABLED_MODAL_NAME, guild_id: guildId,
|
||||
other_user_id: userId});
|
||||
});
|
||||
const value5 = _fun79985();
|
||||
const Alert = importDefault(4596) /* metro dependency 4596: Alert */;
|
||||
const defaultImport2Props = {...value};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
defaultImport2Props['title'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['+ZD3ou']);
|
||||
defaultImport2Props['style'] = styles.wrapper;
|
||||
defaultImport2Props['cancelText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['ETE/oC']);
|
||||
defaultImport2Props['onClose'] = value == null ? value3 : value.onClose;
|
||||
defaultImport2Props['onCancel'] = onCancel;
|
||||
defaultImport2Props['confirmText'] = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.qXtNtS);
|
||||
defaultImport2Props['onConfirm'] = value5;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
let format = intl.format;
|
||||
const property = (require(1244) /* metro dependency 1244: indexNative */).t['t+abNU'];
|
||||
value = UserStore.getUser(userId);
|
||||
value = (importDefault(4617) /* metro dependency 4617: NicknameUtils */).getName(guildId, null, value);
|
||||
value = <Text style={styles.description} variant="text-sm/medium">{Reflect.apply(format, intl, [property,
|
||||
{username: value ?? '', countdown: countdown}])}</Text>;
|
||||
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
|
||||
const items2 = [styles.cta];
|
||||
items2[1] = styles.description;
|
||||
format = intl.format;
|
||||
const KtENkK = (require(1244) /* metro dependency 1244: indexNative */).t.KtENkK;
|
||||
value = <View style={styles.body}>{value}<TextWithIOSLinkWorkaround style={items2} variant="text-sm/medium">{Reflect.apply(format,
|
||||
intl, [KtENkK, {link: GUILD_COMMUNICATION_DISABLED_RESOURCE_LINK}])}</TextWithIOSLinkWorkaround></View>;
|
||||
return (
|
||||
<Alert {...defaultImport2Props}>
|
||||
{value}
|
||||
</Alert>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun79985() { // fn#79985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10491:804, offset: 0x01e68bf4, size: 36 bytes, params: 1, frame: 12
|
||||
const env0_0 = env1_3(_fun79987);
|
||||
return _fun79988;
|
||||
}
|
||||
|
||||
function countdown() { // fn#79989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10491:1548, owner: GuildEnableCommunicationAlert.countdown, offset: 0x01e68ce4, size: 115 bytes, params: 1, frame: 15
|
||||
var r4;
|
||||
var Date;
|
||||
var binding;
|
||||
var date;
|
||||
if (env0_3 != null) {
|
||||
Date = global.Date;
|
||||
binding = env0_3;
|
||||
date = new Date();
|
||||
} else {
|
||||
r4 = 0;
|
||||
}
|
||||
return ((Component) => <Component style={styles.countdown} deadline={r4} withUnits />)(importDefault(9898) /* metro dependency 9898: CountDown */);
|
||||
}
|
||||
|
||||
function* _fun79987() { // fn#79987, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10491:824, offset: 0x01e68c23, size: 193 bytes, params: 1, frame: 21
|
||||
if (true) {
|
||||
value = environment.__proto__.__proto__.__proto__;
|
||||
var binding = env3_1;
|
||||
var value3 = binding(env3_2[12]);
|
||||
yield value3.setCommunicationDisabledDuration(require, importDefault);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
binding = env3_1;
|
||||
var binding2 = env3_2;
|
||||
var value7 = binding(binding2[13]);
|
||||
var open = value7.open;
|
||||
var object2 = {key: 'GUILD_ENABLE_COMMUNICATION_SUCCESS'};
|
||||
var binding3 = env3_0;
|
||||
var intl = binding3(binding2[14]).intl;
|
||||
object2.content = intl.string(binding3(binding2[14]).t['/Mmbfv']);
|
||||
object2.icon = binding(binding2[15]);
|
||||
Reflect.apply(open, value7, [object2]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user