Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,116 @@
|
||||
/* Metro module 5088; source: modules/spoiler_channels/ChannelSpoilerAgreeStore.tsx; dependencies: [6, 7, 15, 17, 18, 1226, 566, 694, 2] */
|
||||
function _fun44178(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44178, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5266:6, offset: 0x01169d12, size: 308 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_2 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_3 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_4 = importDefault(18) /* metro dependency 18 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
object = {users: {}};
|
||||
const DeviceSettingsStore = (importDefault(566) /* metro dependency 566: flux */).DeviceSettingsStore;
|
||||
let value = _fun44182(DeviceSettingsStore);
|
||||
value.displayName = 'ChannelSpoilerAgreeStore';
|
||||
value.persistKey = 'ChannelSpoilerAgreeStore';
|
||||
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
|
||||
{CHANNEL_SPOILER_AGREE: CHANNEL_SPOILER_AGREE, CHANNEL_SPOILER_AGREE_CLEAR: CHANNEL_SPOILER_AGREE_CLEAR});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/spoiler_channels/ChannelSpoilerAgreeStore.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_44179() { // fn#44179, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5266:158, offset: 0x01169e46, size: 94 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_44179_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun44182(a0) { // fn#44182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5266:374, offset: 0x01169ea4, size: 137 bytes, params: 2, frame: 16
|
||||
const closure = ChannelSpoilerAgreeStore;
|
||||
env0_4(closure, a0);
|
||||
return env0_1(closure, [{key: 'initialize', value: function(a0) {
|
||||
this.waitFor(AuthenticationStore);
|
||||
env1_6 = a0 == null ? {users: {}} : a0.users != null ? {users: a0.users} : {users: {}};
|
||||
}}, {key: 'didAgree', value: value_44185}, {key: 'getState', value: value_44186}, {key: 'getUserAgnosticState',
|
||||
value: value_44187}]);
|
||||
}
|
||||
|
||||
function CHANNEL_SPOILER_AGREE({channelId}) { // fn#44188, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5266:1206, offset: 0x01169fc8, size: 106 bytes, params: 2, frame: 13
|
||||
const id = AuthenticationStore.getId();
|
||||
if (id == null) {
|
||||
return false;
|
||||
}
|
||||
let users = env0_6.users;
|
||||
if (users[id] == null) {
|
||||
env0_6.users[id] = {channels: {}};
|
||||
}
|
||||
users = env0_6.users;
|
||||
users[id].channels[channelId] = true;
|
||||
}
|
||||
|
||||
function CHANNEL_SPOILER_AGREE_CLEAR({channelId}) { // fn#44189, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5266:1392, offset: 0x0116a032, size: 86 bytes, params: 2, frame: 13
|
||||
var r1;
|
||||
var r0;
|
||||
var value4;
|
||||
const id = AuthenticationStore.getId();
|
||||
const value3 = id != null;
|
||||
if (value3) {
|
||||
value4 = env0_6.users[id] != null;
|
||||
if (value4) {
|
||||
delete env0_6.users[id].channels[channelId];
|
||||
r1 = undefined;
|
||||
} else {
|
||||
r1 = value4;
|
||||
}
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function value_44185(a0) { // fn#44185, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5266:828, offset: 0x01169f78, size: 80 bytes, params: 2, frame: 13
|
||||
var r1;
|
||||
var r0;
|
||||
var property;
|
||||
if (a0 == null) {
|
||||
return false;
|
||||
}
|
||||
const value = environment.__proto__;
|
||||
const id = AuthenticationStore.getId();
|
||||
const value3 = id != null;
|
||||
if (value3) {
|
||||
property = env1_6.users[id];
|
||||
r1 = property == null ? undefined : property.channels[a0];
|
||||
r1 = !!r1 && r1;
|
||||
r0 = r1;
|
||||
} else {
|
||||
r0 = value3;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,100 @@
|
||||
/* Metro module 5087; source: modules/spoiler_channels/SpoilerChannelUtils.tsx; dependencies: [1379, 5088, 566, 2] */
|
||||
function _fun44168(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:6, offset: 0x011699fc, size: 187 bytes, params: 8, frame: 19
|
||||
let env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const channelSpoilerAgreeStore = importDefault(5088) /* metro dependency 5088: ChannelSpoilerAgreeStore */;
|
||||
const closure = isChannelSpoilerGated;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/spoiler_channels/SpoilerChannelUtils.tsx');
|
||||
exports.useGetSpoilerGatingChannelId = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([ChannelSpoilerAgreeStore, ChannelStore], _fun44172, [a0]);
|
||||
};
|
||||
exports.isChannelSpoilerGated = closure;
|
||||
exports.useIsChannelSpoilerGated = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([ChannelSpoilerAgreeStore, ChannelStore], _fun44174, [a0]);
|
||||
};
|
||||
exports.useShouldShowSpoilerGateForChannelId = function(a0) {
|
||||
var env0_0 = a0;
|
||||
return require(dependencyMap[2]).useStateFromStores([ChannelStore, ChannelSpoilerAgreeStore], _fun44176, [a0]);
|
||||
};
|
||||
exports.shouldShowSpoilerGateForChannelId = function(a0) {
|
||||
if (a0 == null) {
|
||||
return false;
|
||||
}
|
||||
return isChannelSpoilerGated(ChannelStore.getChannel(a0));
|
||||
};
|
||||
}
|
||||
|
||||
function getSpoilerGatingChannelId(a0) { // fn#44169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:142, offset: 0x01169ab7, size: 153 bytes, params: 2, frame: 14
|
||||
var id;
|
||||
var didAgree;
|
||||
let value = a1;
|
||||
const value2 = a2;
|
||||
const r4 = value !== undefined ? value : ChannelSpoilerAgreeStore;
|
||||
const r5 = value2 !== undefined ? value2 : ChannelStore;
|
||||
value = null;
|
||||
if (value != a0) {
|
||||
if (a0.isSpoilerChannel()) {
|
||||
didAgree = r4.didAgree;
|
||||
id = a0.id;
|
||||
id = Reflect.apply(didAgree, r4, [id]) ? value : a0.id;
|
||||
return id;
|
||||
}
|
||||
if (value == a0.parent_id) {
|
||||
return value;
|
||||
}
|
||||
var channel = r5.getChannel(a0.parent_id);
|
||||
if (value == channel) {
|
||||
return value;
|
||||
}
|
||||
if (channel.isSpoilerChannel()) {
|
||||
if (r4.didAgree(channel.id)) {
|
||||
return value;
|
||||
}
|
||||
return channel.id;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function isChannelSpoilerGated(a0) { // fn#44170, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:394, offset: 0x01169b50, size: 55 bytes, params: 2, frame: 15
|
||||
let value = a1;
|
||||
const value2 = a2;
|
||||
value = getSpoilerGatingChannelId(a0, value !== undefined ? value : ChannelSpoilerAgreeStore,
|
||||
value2 !== undefined ? value2 : ChannelStore);
|
||||
return value != null;
|
||||
}
|
||||
|
||||
function useGetSpoilerGatingChannelId(a0) { // fn#44171, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:559, offset: 0x01169b87, size: 81 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelSpoilerAgreeStore, ChannelStore],
|
||||
_fun44172, [a0]);
|
||||
}
|
||||
|
||||
function useIsChannelSpoilerGated(a0) { // fn#44173, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:758, offset: 0x01169bf9, size: 81 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelSpoilerAgreeStore, ChannelStore],
|
||||
_fun44174, [a0]);
|
||||
}
|
||||
|
||||
function useShouldShowSpoilerGateForChannelId(a0) { // fn#44175, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:915, offset: 0x01169c6b, size: 81 bytes, params: 2, frame: 17
|
||||
const env0_0 = a0;
|
||||
return (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore, ChannelSpoilerAgreeStore],
|
||||
_fun44176, [a0]);
|
||||
}
|
||||
|
||||
function _fun44172() { // fn#44172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:641, offset: 0x01169bd8, size: 33 bytes, params: 1, frame: 15
|
||||
return getSpoilerGatingChannelId(env0_0, ChannelSpoilerAgreeStore, ChannelStore);
|
||||
}
|
||||
|
||||
function _fun44174() { // fn#44174, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:836, offset: 0x01169c4a, size: 33 bytes, params: 1, frame: 15
|
||||
return isChannelSpoilerGated(env0_0, ChannelSpoilerAgreeStore, ChannelStore);
|
||||
}
|
||||
|
||||
function _fun44176() { // fn#44176, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5265:1005, offset: 0x01169cbc, size: 43 bytes, params: 1, frame: 15
|
||||
return isChannelSpoilerGated(ChannelStore.getChannel(env0_0), ChannelSpoilerAgreeStore, ChannelStore);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
/* Metro module 9440; source: modules/spoiler_channels/maybeOpenSpoilerGateForVoiceChannel.native.tsx; dependencies: [1379, 33, 5087, 4497, 9441, 2] */
|
||||
function _fun73451(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9626:6, offset: 0x01d6d5a5, size: 139 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/spoiler_channels/maybeOpenSpoilerGateForVoiceChannel.native.tsx');
|
||||
exports.maybeOpenSpoilerGateForVoiceChannel = maybeOpenSpoilerGateForVoiceChannel;
|
||||
}
|
||||
|
||||
function maybeOpenSpoilerGateForVoiceChannel(a0) { // fn#73452, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9626:263, offset: 0x01d6d630, size: 161 bytes, params: 2, frame: 19
|
||||
var r1;
|
||||
var r0;
|
||||
var moduleValue;
|
||||
var moduleValue2;
|
||||
var openAlert;
|
||||
var VOICE_PANEL_SPOILER_KEY;
|
||||
var value;
|
||||
const channel = ChannelStore.getChannel(a0);
|
||||
const value3 = channel == null;
|
||||
if (value3) {
|
||||
r1 = value3;
|
||||
} else {
|
||||
moduleValue = require(5087) /* metro dependency 5087: SpoilerChannelUtils */;
|
||||
r1 = !moduleValue.shouldShowSpoilerGateForChannelId(a0);
|
||||
}
|
||||
if (r1) {
|
||||
r0 = !r1;
|
||||
} else {
|
||||
moduleValue2 = require(4497) /* metro dependency 4497: useAlertStoreNative */;
|
||||
openAlert = moduleValue2.openAlert;
|
||||
VOICE_PANEL_SPOILER_KEY = (require(9441) /* metro dependency 9441: VoicePanelSpoilerAlert */).VOICE_PANEL_SPOILER_KEY;
|
||||
value = importDefault(9441) /* metro dependency 9441: VoicePanelSpoilerAlert */;
|
||||
Reflect.apply(openAlert, moduleValue2, [VOICE_PANEL_SPOILER_KEY,
|
||||
((Component) => <Component channelId={channel.id} />)(value)]);
|
||||
value = true;
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,145 @@
|
||||
/* Metro module 11984; source: modules/spoiler_channels/native/ChannelSpoiler.tsx; dependencies: [57, 31, 27, 4606, 1379, 1867, 11793, 33, 4501, 697, 566, 4805, 11794, 7712, 6593, 4008, 6647, 4573, 1244, 4572, 6622, 5278, 11983, 5074, 2] */
|
||||
function _fun91983(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#91983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12170:6, offset: 0x02078e4e, size: 387 bytes, params: 8, frame: 21
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(57) /* metro dependency 57 */;
|
||||
const env0_4 = importAll(31) /* metro dependency 31 */;
|
||||
const env0_5 = (require(27) /* metro dependency 27 */).View;
|
||||
const channelRTCStore = importDefault(4606) /* metro dependency 4606: ChannelRTCStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
const guildStore = importDefault(1867) /* metro dependency 1867: GuildStore */;
|
||||
const env0_9 = (require(11793) /* metro dependency 11793: VoicePanelControlsConstants */).VoicePanelControlsModes;
|
||||
let 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 BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE;
|
||||
const env0_12 = Reflect.apply(createStyles, value, [{subtitle: {'textAlign': 'center', 'lineHeight': 22},
|
||||
subtitleContainer: {alignItems: 'center'}, divider: {'height': 1, 'width': '100%', 'backgroundColor': null,
|
||||
'marginVertical': 16, backgroundColor: BORDER_SUBTLE}, subtitleMeasure: {'position': 'absolute', 'opacity': 0,
|
||||
'left': 0, 'right': 0}}]);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/spoiler_channels/native/ChannelSpoiler.tsx');
|
||||
exports.default = ChannelSpoiler;
|
||||
}
|
||||
|
||||
function ChannelSpoiler(a0) { // fn#91984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12170:498, offset: 0x02078fd1, size: 1408 bytes, params: 2, frame: 41
|
||||
var object2;
|
||||
var r7;
|
||||
var id;
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
|
||||
var Stack;
|
||||
var defaultImport;
|
||||
var parseTopic;
|
||||
var items2;
|
||||
var defaultImport2;
|
||||
const env0_0 = a0;
|
||||
const value2 = undefined;
|
||||
const guild = (require(566) /* metro dependency 566: flux */).useStateFromStores([GuildStore], _fun91985);
|
||||
const channel = (require(566) /* metro dependency 566: flux */).useStateFromStores([ChannelStore], _fun91986);
|
||||
const styles = useStyles();
|
||||
let binding = env0_4;
|
||||
const [property, env0_1] = env0_3(binding.useState(false), 2);
|
||||
const value5 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel);
|
||||
const value6 = null;
|
||||
const r0 = value6 == channel ? value2 : channel.isVocal();
|
||||
binding = env0_4;
|
||||
const useContext = binding.useContext;
|
||||
const value7 = binding.useCallback(_fun91987, [a0.guildId, a0.channelId, Reflect.apply(useContext, binding,
|
||||
[importDefault(11794) /* metro dependency 11794: VoicePanelStateContext */]).setControlsMode, r0]);
|
||||
const value8 = binding.useCallback(_fun91988, []);
|
||||
const value9 = binding.useCallback(_fun91989, [a0.channelId]);
|
||||
const r11 = value6 != channel ? (require(6647) /* metro dependency 6647: ChannelUtils */).getChannelIconComponent(channel) : value6;
|
||||
const r8 = value6 != r11 ? <View style={{'flexDirection': 'row', 'alignItems': 'center', 'gap': 4,
|
||||
'flexShrink': 1}}>{((Component) => <Component size="lg" color="mobile-text-heading-primary" />)(r11)}<Text variant="heading-xxl/bold" color="mobile-text-heading-primary" lineClamp={1} style={{flexShrink: 1}}>{value5}</Text></View> : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['q38/ae']);
|
||||
let topic = value6 == channel ? value2 : channel.topic;
|
||||
if (value6 != topic) {
|
||||
topic = channel.topic;
|
||||
if (topic.trim() === '') {
|
||||
r7 = value6;
|
||||
} else {
|
||||
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
|
||||
var stackProps = {spacing: 4, style: styles.subtitleContainer};
|
||||
var viewBindingProps = {style: styles.subtitleMeasure, pointerEvents: 'none'};
|
||||
var textProps = {'variant': 'text-md/medium', 'maxFontSizeMultiplier': 2, onTextLayout: value8};
|
||||
defaultImport = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
parseTopic = defaultImport.parseTopic;
|
||||
topic = channel.topic;
|
||||
id = channel.id;
|
||||
items2 = [<View {...viewBindingProps}><Text {...textProps}>{Reflect.apply(parseTopic, defaultImport, [topic,
|
||||
true,
|
||||
{channelId: id}])}</Text></View>];
|
||||
var textProps2 = {'color': 'text-muted', 'variant': 'text-md/medium', 'style': null,
|
||||
'maxFontSizeMultiplier': 2,
|
||||
'lineClamp': 3, style: styles.subtitle};
|
||||
defaultImport2 = importDefault(6622) /* metro dependency 6622: MarkupUtils */;
|
||||
parseTopic = defaultImport2.parseTopic;
|
||||
topic = channel.topic;
|
||||
id = channel.id;
|
||||
items2[1] = <Text {...textProps2}>{Reflect.apply(parseTopic, defaultImport2, [topic, true,
|
||||
{channelId: id}])}</Text>;
|
||||
items2[2] = property ? ((PressableHighlight) => <PressableHighlight onPress={value9} accessibilityRole="button"><Text variant="text-sm/medium" color="text-brand" style={{textDecorationLine: 'underline'}}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/QvRak'])}</Text></PressableHighlight>)((require(5278) /* metro dependency 5278: Pressables */).PressableHighlight) : value6;
|
||||
items2[3] = <View style={styles.divider} />;
|
||||
r7 = <Stack {...stackProps}>{items2}</Stack>;
|
||||
}
|
||||
} else {
|
||||
r7 = value6;
|
||||
}
|
||||
const GatedContent = importDefault(11983) /* metro dependency 11983: GatedContent */;
|
||||
object2 = {};
|
||||
const NsfwSpaceWarningModalType = (require(5074) /* metro dependency 5074: AgeVerificationAnalyticsUtils */).NsfwSpaceWarningModalType;
|
||||
const SPOILER_CHANNEL = NsfwSpaceWarningModalType.SPOILER_CHANNEL;
|
||||
object2.modalType = SPOILER_CHANNEL;
|
||||
object2.onAgree = onAgree;
|
||||
object2.onDisagree = value7;
|
||||
object2.title = r8;
|
||||
object2.subtitle = r7;
|
||||
object2.description = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['08bm2Z']);
|
||||
const string = intl.string;
|
||||
const KmRwcW = (require(1244) /* metro dependency 1244: indexNative */).t.KmRwcW;
|
||||
object2.agreement = Reflect.apply(string, intl, [KmRwcW]);
|
||||
object2.disagreement = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/g10LC']);
|
||||
object2.guildId = value6 == guild ? value2 : guild.id;
|
||||
object2.channelId = a0.channelId;
|
||||
return <GatedContent {...object2} />;
|
||||
}
|
||||
|
||||
function _fun91987() { // fn#91987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12170:806, offset: 0x02079570, size: 161 bytes, params: 1, frame: 16
|
||||
var value2;
|
||||
var value3;
|
||||
var defaultImport2;
|
||||
if (env0_2) {
|
||||
value2 = environment.__proto__;
|
||||
if (ChannelRTCStore.getChatOpen(env0_0.channelId)) {
|
||||
defaultImport2 = importDefault(7712) /* metro dependency 7712: ChannelRTCActionCreators */;
|
||||
defaultImport2.updateChatOpen(env0_0.channelId, false);
|
||||
setControlsMode({mode: VoicePanelControlsModes.FLOATING_DEFAULT});
|
||||
return undefined;
|
||||
}
|
||||
value3 = environment.__proto__;
|
||||
}
|
||||
const defaultImport = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
defaultImport.nsfwReturnToSafety(env0_0.guildId);
|
||||
}
|
||||
|
||||
function _fun91988({nativeEvent}) { // fn#91988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12170:1012, offset: 0x02079611, size: 43 bytes, params: 2, frame: 11
|
||||
env0_1(nativeEvent.lines.length > 3);
|
||||
}
|
||||
|
||||
function _fun91989() { // fn#91989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12170:1071, offset: 0x0207963c, size: 86 bytes, params: 1, frame: 14
|
||||
let value = environment.__proto__;
|
||||
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
|
||||
value = value.getRootNavigationRef();
|
||||
if (value != null) {
|
||||
value.navigate('sidebar', {channelId: env0_0.channelId, expandTopic: true});
|
||||
}
|
||||
}
|
||||
|
||||
function ChannelSpoilerOnAgree() { // fn#91990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12170:2424, owner: ChannelSpoiler.onAgree, offset: 0x02079692, size: 50 bytes, params: 1, frame: 12
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
value.spoilerAgree(env0_0.channelId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/* Metro module 9441; source: modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx; dependencies: [31, 33, 4500, 4500, 1244, 6593, 4796, 2] */
|
||||
function _fun73453(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:6, offset: 0x01d6d6d1, size: 159 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 value = require(33) /* metro dependency 33 */;
|
||||
const env0_3 = value.jsx;
|
||||
const env0_4 = value.jsxs;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/spoiler_channels/native/VoicePanelSpoilerAlert.tsx');
|
||||
exports.default = VoicePanelSpoilerAlert;
|
||||
exports.VOICE_PANEL_SPOILER_KEY = 'voice-panel-spoiler';
|
||||
}
|
||||
|
||||
function VoicePanelSpoilerAlert({channelId}) { // fn#73454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:233, offset: 0x01d6d770, size: 424 bytes, params: 2, frame: 27
|
||||
const env0_1 = (require(4500) /* metro dependency 4500: AlertModalNative */).useDismissModalCallback();
|
||||
const AlertModal = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertModal;
|
||||
const object2 = {};
|
||||
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
||||
object2.title = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['q38/ae']);
|
||||
object2.content = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['2fDWXK']);
|
||||
const AlertActions = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActions;
|
||||
const AlertActionButton = (require(4500) /* metro dependency 4500: AlertModalNative */).AlertActionButton;
|
||||
const alertActionButton = <AlertActionButton variant="primary" onPress={onPress_73455} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t.p89ACt)} key="confirm" />;
|
||||
object2.actions = <AlertActions>{alertActionButton}<AlertActionButton variant="secondary" onPress={onPress_73456} text={intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/g10LC'])} key="cancel" /></AlertActions>;
|
||||
return <AlertModal {...object2} />;
|
||||
}
|
||||
|
||||
function VoicePanelSpoilerAlertOnPress() { // fn#73455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9627:542, owner: VoicePanelSpoilerAlert.onPress, offset: 0x01d6d918, size: 76 bytes, params: 1, frame: 15
|
||||
let value = environment.__proto__;
|
||||
value = importDefault(6593) /* metro dependency 6593: GuildActionCreators */;
|
||||
const spoilerAgree = value.spoilerAgree;
|
||||
const channelIdBinding = channelId;
|
||||
Reflect.apply(spoilerAgree, value, [channelIdBinding]);
|
||||
(importDefault(4796) /* metro dependency 4796: SelectedChannelActionCreators */).selectVoiceChannel(channelIdBinding);
|
||||
env0_1();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user