Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,166 @@
|
||||
/* Metro module 9089; source: actions/ChannelSettingsPermissionsActionCreators.tsx; dependencies: [5, 9090, 694, 4603, 2] */
|
||||
function _fun71064(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#71064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:6, offset: 0x01d13ab2, size: 202 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const closure = saveAndClearPermissionUpdates;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ChannelSettingsPermissionsActionCreators.tsx');
|
||||
exports.updatePermission = function() {
|
||||
return _updatePermission.apply(this, arguments);
|
||||
};
|
||||
exports.selectPermission = selectPermission;
|
||||
exports.setAdvancedMode = setAdvancedMode;
|
||||
exports.init = init_71075;
|
||||
exports.savePermissionUpdates = function(a0, a1, a2) {
|
||||
return saveAndClearPermissionUpdates(a0, a1, [], a2);
|
||||
};
|
||||
exports.saveAndClearPermissionUpdates = closure;
|
||||
}
|
||||
|
||||
function _updatePermission() { // fn#71065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:106, offset: 0x01d13b7c, size: 50 bytes, params: 1, frame: 14
|
||||
return env0_3(_fun71067).apply(this, arguments);
|
||||
}
|
||||
|
||||
function saveAndClearPermissionUpdates(a0, a1, a2, a3) { // fn#71068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:435, offset: 0x01d13c61, size: 131 bytes, params: 5, frame: 13
|
||||
let env0_0 = a0;
|
||||
let env0_1 = a1;
|
||||
const env0_2 = a2;
|
||||
const env0_3 = a3;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SUBMITTING'});
|
||||
const Promise = global.Promise;
|
||||
return new Promise(function(a0) {
|
||||
var env0_0 = a0;
|
||||
var closure = _fun71070;
|
||||
var env0_1 = closure;
|
||||
closure();
|
||||
}).then(_fun71071);
|
||||
}
|
||||
|
||||
function selectPermission(a0) { // fn#71073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1145, offset: 0x01d13e40, size: 56 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SELECT_PERMISSION',
|
||||
id: a0});
|
||||
}
|
||||
|
||||
function setAdvancedMode(a0) { // fn#71074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1272, offset: 0x01d13e78, size: 57 bytes, params: 2, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SET_ADVANCED_MODE',
|
||||
advancedMode: a0});
|
||||
}
|
||||
|
||||
function init_71075() { // fn#71075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:1397, offset: 0x01d13eb1, size: 49 bytes, params: 1, frame: 13
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_INIT'});
|
||||
}
|
||||
|
||||
function* _fun71067(a0, a1, a2, a3) { // fn#71067, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:163, offset: 0x01d13bb9, size: 168 bytes, params: 5, frame: 20
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
value = a0.getGuildId();
|
||||
if (value == null) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = env2_1(env2_2[2]);
|
||||
value.dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_UPDATE_PERMISSION', id: a1, allow: a2, deny: a3});
|
||||
return undefined;
|
||||
}
|
||||
if (a1 !== value) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = env2_1(env2_2[2]);
|
||||
value.dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_UPDATE_PERMISSION', id: a1, allow: a2, deny: a3});
|
||||
return undefined;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
value = env2_0(env2_2[1]);
|
||||
yield value.checkChattableChannelThresholdMetAfterChannelPermissionDeny(a0, a3, a2);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (value) {
|
||||
value = environment.__proto__.__proto__;
|
||||
value = env2_1(env2_2[2]);
|
||||
value.dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_UPDATE_PERMISSION', id: a1, allow: a2, deny: a3});
|
||||
return undefined;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function _fun71069(a0) { // fn#71069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:570, offset: 0x01d13ce4, size: 31 bytes, params: 2, frame: 9
|
||||
const env0_0 = a0;
|
||||
chain_71070();
|
||||
}
|
||||
|
||||
function _fun71071() { // fn#71071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:859, offset: 0x01d13e03, size: 61 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__;
|
||||
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CHANNEL_SETTINGS_PERMISSIONS_SAVE_SUCCESS',
|
||||
silent: importAll});
|
||||
}
|
||||
|
||||
function chain_71070() { // fn#71070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9274:575, offset: 0x01d13d03, size: 256 bytes, params: 1, frame: 14
|
||||
var value2;
|
||||
var value3;
|
||||
var then;
|
||||
var chain_71070Binding;
|
||||
var value5;
|
||||
var value6;
|
||||
let value = environment.__proto__;
|
||||
let length = require.length;
|
||||
if (length !== 0) {
|
||||
if (require.length > 0) {
|
||||
value5 = require.pop();
|
||||
if (value5 == null) {
|
||||
return chain_71070();
|
||||
}
|
||||
value6 = environment.__proto__.__proto__;
|
||||
value = (importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).updatePermissionOverwrite(env1_0,
|
||||
|
||||
|
||||
value5);
|
||||
then = value.then;
|
||||
chain_71070Binding = chain_71070;
|
||||
Reflect.apply(then, value, [chain_71070Binding, chain_71070Binding]);
|
||||
return undefined;
|
||||
}
|
||||
value2 = importDefault.pop();
|
||||
if (value2 == null) {
|
||||
return chain_71070();
|
||||
}
|
||||
value3 = environment.__proto__.__proto__;
|
||||
value = (importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).clearPermissionOverwrite(env1_0,
|
||||
|
||||
value2);
|
||||
then = value.then;
|
||||
chain_71070Binding = chain_71070;
|
||||
Reflect.apply(then, value, [chain_71070Binding, chain_71070Binding]);
|
||||
} else {
|
||||
length = importDefault.length;
|
||||
if (length === 0) {
|
||||
return env0_0();
|
||||
}
|
||||
length = require.length;
|
||||
if (length > 0) {
|
||||
value5 = require.pop();
|
||||
if (value5 == null) {
|
||||
return chain_71070();
|
||||
}
|
||||
value6 = environment.__proto__.__proto__;
|
||||
value = (importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).updatePermissionOverwrite(env1_0,
|
||||
|
||||
|
||||
value5);
|
||||
then = value.then;
|
||||
chain_71070Binding = chain_71070;
|
||||
Reflect.apply(then, value, [chain_71070Binding, chain_71070Binding]);
|
||||
return undefined;
|
||||
}
|
||||
value2 = importDefault.pop();
|
||||
if (value2 == null) {
|
||||
return chain_71070();
|
||||
}
|
||||
value = (importDefault(4603) /* metro dependency 4603: ChannelActionCreators */).clearPermissionOverwrite(env1_0,
|
||||
|
||||
value2);
|
||||
then = value.then;
|
||||
chain_71070Binding = chain_71070;
|
||||
Reflect.apply(then, value, [chain_71070Binding, chain_71070Binding]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user