Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,120 @@
|
||||
/* Metro module 14768; source: modules/notification_center/native/NotificationCenterActionSheet.tsx; dependencies: [31, 5215, 661, 33, 566, 14769, 10929, 4080, 11177, 7890, 7892, 5080, 11179, 1962, 7007, 6805, 6758, 1244, 6807, 6700, 11003, 9216, 14770, 11190, 14771, 7002, 11944, 2] */
|
||||
function _fun111482(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#111482, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:6, offset: 0x023a4002, size: 189 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 recentMentionsStore = importDefault(5215) /* metro dependency 5215: RecentMentionsStore */;
|
||||
const env0_5 = (require(661) /* metro dependency 661: Constants */).UserSettingsSections;
|
||||
const value = require(33) /* metro dependency 33 */;
|
||||
const env0_6 = value.jsx;
|
||||
const env0_7 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/notification_center/native/NotificationCenterActionSheet.tsx');
|
||||
exports.default = _default_111483;
|
||||
}
|
||||
|
||||
function _default_111483() { // fn#111483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:183, offset: 0x023a40bf, size: 1168 bytes, params: 1, frame: 34
|
||||
var object3;
|
||||
var r9;
|
||||
const {roleFilter,
|
||||
everyoneFilter} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([RecentMentionsStore],
|
||||
function() {
|
||||
return {everyoneFilter: RecentMentionsStore.everyoneFilter, roleFilter: RecentMentionsStore.roleFilter};
|
||||
});
|
||||
const binding = env0_3;
|
||||
const env0_2 = binding.useCallback(_fun111485, [everyoneFilter, roleFilter]);
|
||||
const defaultImport = importDefault(10929) /* metro dependency 10929: ForLaterExperiment */;
|
||||
const useConfig = defaultImport.useConfig;
|
||||
const enabled = Reflect.apply(useConfig, defaultImport, [{location: 'NotificationCenterActionSheet'}]).enabled;
|
||||
const value3 = binding.useCallback(_fun111486, []);
|
||||
const value4 = binding.useCallback(function() {
|
||||
importDefault(dependencyMap[7]).hideActionSheet();
|
||||
require(dependencyMap[14]).openUserSettings({screen: UserSettingsSections.NOTIFICATIONS});
|
||||
}, []);
|
||||
const ActionSheet = (require(6805) /* metro dependency 6805: ActionSheetNative */).ActionSheet;
|
||||
object3 = {showGradient: true};
|
||||
const BottomSheetTitleHeader = (require(6758) /* metro dependency 6758: BottomSheetTitleHeaderNative */).BottomSheetTitleHeader;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
let string = intl.string;
|
||||
const HcoRu0 = (require(1244) /* metro dependency 1244: indexNative */).t.HcoRu0;
|
||||
object3.header = <BottomSheetTitleHeader title={Reflect.apply(string, intl, [HcoRu0])} />;
|
||||
const ActionSheetRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
let Group = ActionSheetRow.Group;
|
||||
const ActionSheetSwitchRow = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetSwitchRow;
|
||||
const actionSheetSwitchRowProps = {onValueChange: onValueChange_111488, value: roleFilter,
|
||||
label: intl.string((require(1244) /* metro dependency 1244: indexNative */).t.asInft)};
|
||||
let Icon = ActionSheetRow.Icon;
|
||||
const AtIcon = (require(6700) /* metro dependency 6700: AtIcon */).AtIcon;
|
||||
actionSheetSwitchRowProps.icon = <Icon IconComponent={AtIcon} source={importDefault(11003) /* metro dependency 11003 */} />;
|
||||
const actionSheetSwitchRow = <ActionSheetSwitchRow {...actionSheetSwitchRowProps} />;
|
||||
const object2 = {onValueChange: onValueChange_111489, value: everyoneFilter};
|
||||
string = intl.string;
|
||||
const S9GLtt = (require(1244) /* metro dependency 1244: indexNative */).t.S9GLtt;
|
||||
object2.label = Reflect.apply(string, intl, [S9GLtt]);
|
||||
object2.subLabel = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.jYgZa4);
|
||||
Icon = ActionSheetRow.Icon;
|
||||
const BellIcon = (require(9216) /* metro dependency 9216: BellIcon */).BellIcon;
|
||||
object2.icon = <Icon IconComponent={BellIcon} source={importDefault(14770) /* metro dependency 14770 */} />;
|
||||
const group = <Group hasIcons>{actionSheetSwitchRow}<ActionSheetSwitchRow {...object2} /></Group>;
|
||||
Group = ActionSheetRow.Group;
|
||||
if (enabled) {
|
||||
r9 = <ActionSheetRow icon={((Icon) => <Icon IconComponent={(require(11190) /* metro dependency 11190: BookmarkIcon */).BookmarkIcon} source={importDefault(14771) /* metro dependency 14771 */} />)((require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow.Icon)} label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2pAkDA'])} onPress={value3} arrow key="for-later" />;
|
||||
} else {
|
||||
r9 = null;
|
||||
}
|
||||
const ActionSheetRow3 = (require(6807) /* metro dependency 6807: ActionSheetRowNative */).ActionSheetRow;
|
||||
Icon = ActionSheetRow3.Icon;
|
||||
const SettingsIcon = (require(7002) /* metro dependency 7002: SettingsIcon */).SettingsIcon;
|
||||
return (
|
||||
<ActionSheet {...object3}>
|
||||
{group}
|
||||
<Group hasIcons>
|
||||
{r9}
|
||||
<ActionSheetRow
|
||||
icon={<Icon IconComponent={SettingsIcon} source={importDefault(11944) /* metro dependency 11944 */} />}
|
||||
label={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.h850Ss)}
|
||||
onPress={value4}
|
||||
arrow
|
||||
key="settings"
|
||||
/>
|
||||
</Group>
|
||||
</ActionSheet>
|
||||
);
|
||||
}
|
||||
|
||||
function _fun111485(a0) { // fn#111485, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:349, offset: 0x023a4570, size: 71 bytes, params: 2, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(14769) /* metro dependency 14769: MentionActionCreators */;
|
||||
const setGuildFilter = value.setGuildFilter;
|
||||
const object2 = {};
|
||||
const roleFilterBinding = roleFilter;
|
||||
object2.roleFilter = roleFilterBinding;
|
||||
object2.everyoneFilter = everyoneFilter;
|
||||
copyDataProperties(object2, a0, roleFilterBinding);
|
||||
Reflect.apply(setGuildFilter, value, [object2]);
|
||||
}
|
||||
|
||||
function _fun111486() { // fn#111486, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:512, offset: 0x023a45b7, size: 192 bytes, params: 1, frame: 18
|
||||
var defaultImport3;
|
||||
var pushLazy;
|
||||
let value = environment.__proto__;
|
||||
importDefault(dependencyMap[7]).hideActionSheet();
|
||||
if (importDefault(dependencyMap[8])()) {
|
||||
defaultImport3 = importDefault(dependencyMap[11]);
|
||||
pushLazy = defaultImport3.pushLazy;
|
||||
value = require(dependencyMap[13]);
|
||||
value = value(dependencyMap[12], dependencyMap.paths);
|
||||
Reflect.apply(pushLazy, defaultImport3, [value, {}, 'for-later-modal', {presentation: 'modal'}]);
|
||||
} else {
|
||||
importDefault(dependencyMap[9])(require(dependencyMap[10]).EntitlementFeatureNames.SAVED_MESSAGES);
|
||||
}
|
||||
}
|
||||
|
||||
function _default_111483OnValueChange() { // fn#111488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:1058, owner: _default_111483.onValueChange, offset: 0x023a46c8, size: 30 bytes, params: 1, frame: 11
|
||||
return env0_2({roleFilter: !roleFilter});
|
||||
}
|
||||
|
||||
function _default_111483OnValueChange_111489() { // fn#111489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14965:1269, owner: _default_111483.onValueChange, offset: 0x023a46e6, size: 30 bytes, params: 1, frame: 11
|
||||
return env0_2({everyoneFilter: !everyoneFilter});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user