Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,100 @@
|
||||
/* Metro module 8185; source: modules/media_channel/MediaPostSharePromptStore.tsx; dependencies: [6, 7, 15, 17, 18, 1936, 1226, 1379, 8186, 21, 566, 694, 2] */
|
||||
function _fun65654(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#65654, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8370:6, offset: 0x01bd8a72, size: 393 bytes, params: 8, frame: 20
|
||||
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 */;
|
||||
const gatedChannelStore = importDefault(1936) /* metro dependency 1936: GatedChannelStore */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const channelStore = importDefault(1379) /* metro dependency 1379: ChannelStore */;
|
||||
let Set = global.Set;
|
||||
let set = new Set();
|
||||
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
|
||||
_fun65658(Store).displayName = 'MediaPostSharePromptStore';
|
||||
set = new set(importDefault(694) /* metro dependency 694: Dispatcher */, {CONNECTION_OPEN: function() {
|
||||
var Set = global.Set;
|
||||
env0_11 = new Set();
|
||||
}, MESSAGE_CREATE: MESSAGE_CREATE_65663, DISMISS_MEDIA_POST_SHARE_PROMPT: DISMISS_MEDIA_POST_SHARE_PROMPT,
|
||||
LOGOUT: LOGOUT_65665});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/media_channel/MediaPostSharePromptStore.tsx');
|
||||
exports.default = set;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_65655() { // fn#65655, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8370:178, offset: 0x01bd8bfb, 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_65655_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun65658(a0) { // fn#65658, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8370:391, offset: 0x01bd8c5d, size: 97 bytes, params: 2, frame: 16
|
||||
const closure = MediaPostSharePromptStore;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'initialize', value: function() {
|
||||
this.waitFor(AuthenticationStore, ChannelStore, GatedChannelStore);
|
||||
}}, {key: 'shouldDisplayPrompt', value: value_65661}]);
|
||||
}
|
||||
|
||||
function MESSAGE_CREATE_65663(a0) { // fn#65663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8370:999, offset: 0x01bd8ce5, size: 235 bytes, params: 2, frame: 18
|
||||
var message;
|
||||
var value;
|
||||
var moduleValue;
|
||||
var value4;
|
||||
var binding;
|
||||
var add;
|
||||
if (!a0.isPushNotification) {
|
||||
message = a0.message;
|
||||
if (AuthenticationStore.getId() === message.author?.id) {
|
||||
moduleValue = require(8186) /* metro dependency 8186: useIsFirstMessageInMediaPost */;
|
||||
if (moduleValue.isFirstMessageIdInMediaPost(message.id, message.channel_id)) {
|
||||
value4 = ChannelStore.getChannel(message.channel_id);
|
||||
if (value4 != null) {
|
||||
if (value4.parent_id != null) {
|
||||
if (GatedChannelStore.isChannelGated(value4.guild_id, value4.parent_id)) {
|
||||
binding = env0_11;
|
||||
add = binding.add;
|
||||
value = importDefault(21) /* metro dependency 21: SnowflakeUtils */;
|
||||
Reflect.apply(add, binding, [value.castMessageIdAsChannelId(a0.message.id)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function DISMISS_MEDIA_POST_SHARE_PROMPT({threadId}) { // fn#65664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8370:1378, offset: 0x01bd8dd0, size: 30 bytes, params: 2, frame: 11
|
||||
env0_11.delete(threadId);
|
||||
}
|
||||
|
||||
function LOGOUT_65665() { // fn#65665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8370:1455, offset: 0x01bd8dee, size: 21 bytes, params: 1, frame: 9
|
||||
env0_11.clear();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user