Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,145 @@
|
||||
/* Metro module 14995; source: modules/guild_settings/native/GuildSettingsModalMembersWithTabs.tsx; dependencies: [31, 27, 1867, 33, 4501, 697, 1478, 14596, 1244, 14996, 14997, 15003, 3972, 1484, 8853, 8811, 14998, 5277, 9139, 8859, 8859, 8861, 2] */
|
||||
function _fun113329(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#113329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:6, offset: 0x023f46f7, size: 292 bytes, params: 8, frame: 23
|
||||
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(27) /* metro dependency 27 */).View;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const value2 = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value2.jsx;
|
||||
const env0_7 = value2.jsxs;
|
||||
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
|
||||
const createStyles = createStylesModule.createStyles;
|
||||
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
|
||||
const env0_8 = Reflect.apply(createStyles, createStylesModule, [{container: {flex: 1,
|
||||
backgroundColor: BACKGROUND_BASE_LOWER}, content: {flex: 1}, tabContainer: {'marginTop': 12, 'minHeight': 32}}]);
|
||||
value = value.memo(_fun113330);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_settings/native/GuildSettingsModalMembersWithTabs.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun113330({guildId}) { // fn#113330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:324, offset: 0x023f481b, size: 445 bytes, params: 2, frame: 23
|
||||
const width = (importDefault(1478) /* metro dependency 1478: useWindowDimensionsNative */)().width;
|
||||
const useSubmittedGuildJoinRequestTotalModule = require(14596) /* metro dependency 14596: useSubmittedGuildJoinRequestTotal */;
|
||||
const useSubmittedGuildJoinRequestTotal = useSubmittedGuildJoinRequestTotalModule.useSubmittedGuildJoinRequestTotal;
|
||||
const r8 = Reflect.apply(useSubmittedGuildJoinRequestTotal, useSubmittedGuildJoinRequestTotalModule,
|
||||
[{guildId: guildId}]) ?? 0;
|
||||
const styles = useStyles();
|
||||
const value4 = env0_3.useMemo(_fun113331, [guildId, r8]);
|
||||
const env0_2 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
|
||||
const value6 = (require(8853) /* metro dependency 8853: SegmentedControlStateNative */).useSegmentedControlState({pageWidth: width,
|
||||
items: value4, defaultIndex: r8 > 0 ? 1 : 0, onSetActiveIndex: onSetActiveIndex_113332});
|
||||
const value7 = env0_3.useCallback(_fun113336, []);
|
||||
const Tabs = (require(8859) /* metro dependency 8859: TabsNative */).Tabs;
|
||||
const view = <View style={styles.tabContainer}><Tabs state={value6} grow formatCount={value7} /></View>;
|
||||
const SegmentedControlPages = (require(8861) /* metro dependency 8861: SegmentedControlPagesNative */).SegmentedControlPages;
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
{view}
|
||||
<View style={styles.content}>
|
||||
<SegmentedControlPages state={value6} />
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun113331() { // fn#113331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:460, offset: 0x023f49d8, size: 594 bytes, params: 1, frame: 24
|
||||
let object2 = {};
|
||||
let value = environment.__proto__;
|
||||
const value2 = undefined;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const string = intl.string;
|
||||
const NOOm1Z = (require(1244) /* metro dependency 1244: indexNative */).t.NOOm1Z;
|
||||
object2.label = Reflect.apply(string, intl, [NOOm1Z]);
|
||||
const MemberSafetyPageTab = (require(14996) /* metro dependency 14996: MemberSafetyPageTypes */).MemberSafetyPageTab;
|
||||
const ALL_MEMBERS = MemberSafetyPageTab.ALL_MEMBERS;
|
||||
object2.id = ALL_MEMBERS;
|
||||
object2.page = ((Component) => <Component guildId={guildId} />)(importDefault(14997) /* metro dependency 14997: GuildSettingsModalMembers */);
|
||||
const items2 = [object2];
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['4eQVBO']);
|
||||
const PENDING = MemberSafetyPageTab.PENDING;
|
||||
object2.id = PENDING;
|
||||
object2.count = env0_1 > 0 ? env0_1 : value2;
|
||||
const GuildSettingsModalMemberApplications = importDefault(15003) /* metro dependency 15003: GuildSettingsModalMemberApplications */;
|
||||
guildIdBinding = guildId;
|
||||
const GuildJoinRequestApplicationStatuses = (require(3972) /* metro dependency 3972: MemberVerificationTypes */).GuildJoinRequestApplicationStatuses;
|
||||
const SUBMITTED = GuildJoinRequestApplicationStatuses.SUBMITTED;
|
||||
object2.page = <GuildSettingsModalMemberApplications guildId={guildIdBinding} applicationStatus={SUBMITTED} />;
|
||||
items2[1] = object2;
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.bSZkla);
|
||||
let REJECTED = MemberSafetyPageTab.REJECTED;
|
||||
object2.id = REJECTED;
|
||||
value = GuildSettingsModalMemberApplications;
|
||||
REJECTED = GuildJoinRequestApplicationStatuses.REJECTED;
|
||||
object2.page = ((Component) => <Component guildId={guildIdBinding} applicationStatus={REJECTED} />)(value);
|
||||
items2[2] = object2;
|
||||
object2 = {};
|
||||
object2.label = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.aURgY2);
|
||||
let APPROVED = MemberSafetyPageTab.APPROVED;
|
||||
object2.id = APPROVED;
|
||||
value = GuildSettingsModalMemberApplications;
|
||||
APPROVED = GuildJoinRequestApplicationStatuses.APPROVED;
|
||||
object2.page = ((Component) => <Component guildId={guildIdBinding} applicationStatus={APPROVED} />)(value);
|
||||
items2[3] = object2;
|
||||
return items2;
|
||||
}
|
||||
|
||||
function onSetActiveIndex_113332(a0) { // fn#113332, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1297, offset: 0x023f4c2a, size: 107 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var value;
|
||||
var binding;
|
||||
if (a0 === 0) {
|
||||
value = environment.__proto__;
|
||||
var env0_0 = GuildStore.getGuild(guildId);
|
||||
binding = env0_2;
|
||||
binding.setOptions({headerRight: headerRight_113333});
|
||||
} else {
|
||||
env0_2.setOptions({headerRight: function() {
|
||||
return null;
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
||||
function _fun113336(a0) { // fn#113336, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1658, offset: 0x023f4dae, size: 70 bytes, params: 2, frame: 13
|
||||
let value = environment.__proto__;
|
||||
value = require(8859) /* metro dependency 8859: TabsNative */;
|
||||
value = value.defaultCountFormatter(a0);
|
||||
return '(' + value + ')';
|
||||
}
|
||||
|
||||
function onSetActiveIndex_113332HeaderRight() { // fn#113333, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1357, owner: onSetActiveIndex_113332.headerRight, offset: 0x023f4c95, size: 123 bytes, params: 1, frame: 18
|
||||
var environment;
|
||||
var r4;
|
||||
let value = environment.__proto__.__proto__;
|
||||
const ContextMenu = (require(8811) /* metro dependency 8811: ContextMenuNative */).ContextMenu;
|
||||
if (env0_0 != null) {
|
||||
value = require(14998) /* metro dependency 14998: showMembersManagementActionSheet */;
|
||||
value = value.getMembersManagementActions({guild: env0_0});
|
||||
r4 = value;
|
||||
} else {
|
||||
r4 = [];
|
||||
}
|
||||
return (
|
||||
<ContextMenu items={r4}>
|
||||
{children_113334}
|
||||
</ContextMenu>
|
||||
);
|
||||
}
|
||||
|
||||
function headerRightChildren(a0) { // fn#113334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15192:1459, owner: onSetActiveIndex_113332.headerRight.children, offset: 0x023f4d10, size: 158 bytes, params: 2, frame: 21
|
||||
const ref = a0.ref;
|
||||
const value = Object.create(null);
|
||||
value.ref = 0;
|
||||
const value2 = copyDataProperties({}, a0, value, undefined);
|
||||
const HeaderActionButton = (require(5277) /* metro dependency 5277: HeaderActionButtonNative */).HeaderActionButton;
|
||||
const headerActionButtonProps = {source: importDefault(9139) /* metro dependency 9139 */};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
headerActionButtonProps.accessibilityLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.ogxXGq);
|
||||
headerActionButtonProps.ref = ref;
|
||||
copyDataProperties(headerActionButtonProps, value2, value);
|
||||
return <HeaderActionButton {...headerActionButtonProps} />;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user