This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,4 +1,10 @@
/* Metro module 15434; source: modules/voice_panel/native/controller/VoicePanelStreamOutputSinkStack.tsx; dependencies: [57, 6, 7, 31, 2] */
import ClassCallCheck from '../../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun118063(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:6, offset: 0x024cab6b, size: 196 bytes, params: 8, frame: 18
const _arrayLikeToArray_118066 = function(a0, a1) {
var r0;
@@ -45,149 +51,224 @@ function _fun118063(global, require, importDefault, importAll, module, exports,
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = importDefault(57) /* metro dependency 57 */;
const env0_1 = importDefault(6) /* metro dependency 6 */;
const env0_2 = importDefault(7) /* metro dependency 7 */;
const env0_3 = importAll(31) /* metro dependency 31 */;
let value = _fun118067();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/controller/VoicePanelStreamOutputSinkStack.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/controller/VoicePanelStreamOutputSinkStack.tsx');
exports.default = value;
exports.useSetHasActiveVideoOutputSink = useSetHasActiveVideoOutputSink;
}
function _createForOfIteratorHelperLoose_118064(a0, a1) { // fn#118064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:141, offset: 0x024cac2f, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
const Array = global.Array;
if (Array.isArray(a0)) {
exports.useSetHasActiveVideoOutputSink = useSetHasActiveVideoOutputSink_118077;
function _createForOfIteratorHelperLoose_118064(a0, a1) { // fn#118064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:141, offset: 0x024cac2f, size: 372 bytes, params: 3, frame: 20
var r6;
var r9;
var r5;
var value3;
var regexp;
const env0_0 = a0;
const Symbol = global.Symbol;
let value = typeof Symbol !== 'undefined';
let r1 = value && a0[global.Symbol.iterator];
r1 = !r1 ? a0['@@iterator'] : r1;
if (r1) {
value = r1.call(a0);
return value.next.bind(value);
}
return _fun118065;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_118066(a0, value);
r5 = value;
} else {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
const Array = global.Array;
if (Array.isArray(a0)) {
if (r1) {
}
return _fun118065;
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_118066(a0, value);
r6 = value;
r5 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value3 = ({}).toString.call(a0).slice(8, -1);
r6 = value3 === 'Object' && a0.constructor;
r9 = r6 ? a0.constructor.name : value3;
if (r9 === 'Map') {
r6 = global.Array.from(a0);
} else if (r9 === 'Set') {
r6 = global.Array.from(a0);
} else if (r9 === 'Arguments') {
value = _arrayLikeToArray_118066(a0, value);
r6 = value;
} else {
r6 = value;
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r9)) {
value = _arrayLikeToArray_118066(a0, value);
r6 = value;
} else {
r6 = value;
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun118065;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
function _fun118065() { // fn#118065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:712, offset: 0x00c39d73, size: 69 bytes, params: 1, frame: 5
return ClassCallCheck >= env0_0.length ? {done: true} : {done: false,
value: env0_0[typeof ClassCallCheck === 'bigint' ? ClassCallCheck : +ClassCallCheck]};
}
}
function _fun118067() { // fn#118067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1057, offset: 0x024cada3, size: 188 bytes, params: 1, frame: 15
return CreateClass(VoicePanelStreamOutputSinkStack, [{key: 'cleanUp', value: function() {
global.clearInterval(this.timer);
}}, {key: 'logSinks', value: value_118071}, {key: 'setHasActiveVideoOutputSink', value: value_118072},
{key: 'clearLock', value: value_118073}, {key: 'setActive', value: function(a0, a1, a2) {
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = a2;
this.mediaEngine.eachConnection(_fun118075);
}}, {key: 'sourceId', value: function(a0) {
return 'VoicePanelStreamOutputSinkStack-' + a0;
}}]);
function VoicePanelStreamOutputSinkStack(a0) { // fn#118068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1078, offset: 0x024cae5f, size: 131 bytes, params: 2, frame: 16
var environment;
let value = a1;
const r4 = value !== undefined ? value : false;
value = environment.__proto__;
env1_1(this, VoicePanelStreamOutputSinkStack);
this.mediaEngine = a0;
const Map = global.Map;
this.activeSinks = new Map();
this.timer = -1;
if (r4) {
this.timer = global.setInterval(_fun118069, 2000);
}
function _fun118069() { // fn#118069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1253, offset: 0x024caee2, size: 21 bytes, params: 1, frame: 9
return Module00057.logSinks();
}
}
function value_118071() { // fn#118071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1365, offset: 0x024caf11, size: 174 bytes, params: 1, frame: 29
var r2;
var value4;
var value5;
var property;
var property2;
var push;
var Array;
var value6;
var value7;
var value8;
const items2 = [];
const value2 = _createForOfIteratorHelperLoose_118064(this.activeSinks);
const value3 = value2();
let done = value3.done;
if (!done) {
for (r2 = value3; true; r2 = value8) {
value4 = r2.value;
value5 = env1_0(value4, 2);
property = value5[0];
property2 = value5[1];
push = items2.push;
Array = global.Array;
value6 = Array.from(property2);
value7 = value6.join(',');
Reflect.apply(push, items2, ['[Stream:' + property + ', Locks:[' + value7 + ']]']);
value8 = value2();
done = value8.done;
if (done) {
break;
}
}
}
r5 = r6;
}
} else {
r5 = value;
}
if (r5) {
if (r5) {
}
return _fun118065;
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function _fun118067() { // fn#118067, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1057, offset: 0x024cada3, size: 188 bytes, params: 1, frame: 15
return env0_2(VoicePanelStreamOutputSinkStack, [{key: 'cleanUp', value: function() {
global.clearInterval(this.timer);
}}, {key: 'logSinks', value: value_118071}, {key: 'setHasActiveVideoOutputSink', value: value_118072},
{key: 'clearLock', value: value_118073}, {key: 'setActive', value: function(a0, a1, a2) {
var env0_0 = a0;
var env0_1 = a1;
var env0_2 = a2;
this.mediaEngine.eachConnection(_fun118075);
}}, {key: 'sourceId', value: function(a0) {
return 'VoicePanelStreamOutputSinkStack-' + a0;
}}]);
}
function useSetHasActiveVideoOutputSink(a0) { // fn#118077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2512, offset: 0x024cb1b2, size: 96 bytes, params: 2, frame: 16
const env0_0 = a0;
const binding = env0_3;
const value = binding.useId();
const value2 = binding.useCallback(_fun118078, [value, a0]);
binding.useEffect(function() {
return _fun118080;
}, [value, value2, a0]);
return value2;
}
function VoicePanelStreamOutputSinkStack(a0) { // fn#118068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1078, offset: 0x024cae5f, size: 131 bytes, params: 2, frame: 16
var environment;
let value = a1;
const r4 = value !== undefined ? value : false;
value = environment.__proto__;
env1_1(this, VoicePanelStreamOutputSinkStack);
this.mediaEngine = a0;
const Map = global.Map;
this.activeSinks = new Map();
this.timer = -1;
if (r4) {
this.timer = global.setInterval(_fun118069, 2000);
}
}
function value_118071() { // fn#118071, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1365, offset: 0x024caf11, size: 174 bytes, params: 1, frame: 29
var r2;
var value4;
var value5;
var property;
var property2;
var push;
var Array;
var value6;
var value7;
var value8;
const items2 = [];
const value2 = _createForOfIteratorHelperLoose_118064(this.activeSinks);
const value3 = value2();
let done = value3.done;
if (!done) {
for (r2 = value3; true; r2 = value8) {
value4 = r2.value;
value5 = env1_0(value4, 2);
property = value5[0];
property2 = value5[1];
push = items2.push;
Array = global.Array;
value6 = Array.from(property2);
value7 = value6.join(',');
Reflect.apply(push, items2, ['[Stream:' + property + ', Locks:[' + value7 + ']]']);
value8 = value2();
done = value8.done;
if (done) {
break;
function value_118073(a0) { // fn#118073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1922, offset: 0x024cb09e, size: 160 bytes, params: 2, frame: 23
var r2;
var value4;
var value5;
var property;
var property2;
var has;
var size;
var setActive;
var sourceId;
var value6;
const _createForOfIteratorHelperLoose_118064Binding = _createForOfIteratorHelperLoose_118064;
let activeSinks = this.activeSinks;
const value2 = _createForOfIteratorHelperLoose_118064Binding(activeSinks);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
while (true) {
value4 = r2.value;
value5 = env1_0(value4, 2);
property = value5[0];
property2 = value5[1];
has = property2.has;
if (Reflect.apply(has, property2, [a0])) {
property2.delete(a0);
size = property2.size;
if (size !== 0) {
break;
}
setActive = this.setActive;
sourceId = this.sourceId;
Reflect.apply(setActive, this, [property, false, Reflect.apply(sourceId, this, [a0])]);
activeSinks = this.activeSinks;
activeSinks.delete(property);
break;
}
value6 = value2();
done = value6.done;
if (done) {
break;
}
r2 = value6;
continue;
}
}
}
function value_118074(a0, a1, a2) { // fn#118074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2178, offset: 0x024cb13e, size: 54 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
this.mediaEngine.eachConnection(_fun118075);
function _fun118075(a0) { // fn#118075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2227, offset: 0x024cb174, size: 33 bytes, params: 2, frame: 15
return a0.setHasActiveVideoOutputSink(env0_0, require, importDefault);
}
}
}
function useSetHasActiveVideoOutputSink_118077(a0) { // fn#118077, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2512, offset: 0x024cb1b2, size: 96 bytes, params: 2, frame: 16
const env0_0 = a0;
const value = ReactModule.useId();
const value2 = ReactModule.useCallback(_fun118078, [value, a0]);
ReactModule.useEffect(function() {
return _fun118080;
}, [value, value2, a0]);
return value2;
function _fun118078(a0, a1) { // fn#118078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2588, offset: 0x024cb212, size: 34 bytes, params: 3, frame: 15
env0_0.setHasActiveVideoOutputSink(ClassCallCheck, a0, a1);
}
function _fun118079() { // fn#118079, offset: 0x024cb234, size: 11 bytes, params: 1, frame: 1
return _fun118080;
function _fun118080() { // fn#118080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2666, offset: 0x024cb23f, size: 26 bytes, params: 1, frame: 11
return env1_0.clearLock(env1_1);
}
}
}
}
function value_118072(a0, a1, a2) { // fn#118072, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1600, offset: 0x024cafbf, size: 223 bytes, params: 4, frame: 18
@@ -212,78 +293,4 @@ function value_118072(a0, a1, a2) { // fn#118072, source: /ci/build/discord/disc
}
}
function value_118073(a0) { // fn#118073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1922, offset: 0x024cb09e, size: 160 bytes, params: 2, frame: 23
var r2;
var value4;
var value5;
var property;
var property2;
var has;
var size;
var setActive;
var sourceId;
var value6;
const _createForOfIteratorHelperLoose_118064Binding = _createForOfIteratorHelperLoose_118064;
let activeSinks = this.activeSinks;
const value2 = _createForOfIteratorHelperLoose_118064Binding(activeSinks);
const value3 = value2();
let done = value3.done;
if (!done) {
r2 = value3;
while (true) {
value4 = r2.value;
value5 = env1_0(value4, 2);
property = value5[0];
property2 = value5[1];
has = property2.has;
if (Reflect.apply(has, property2, [a0])) {
property2.delete(a0);
size = property2.size;
if (size !== 0) {
break;
}
setActive = this.setActive;
sourceId = this.sourceId;
Reflect.apply(setActive, this, [property, false, Reflect.apply(sourceId, this, [a0])]);
activeSinks = this.activeSinks;
activeSinks.delete(property);
break;
}
value6 = value2();
done = value6.done;
if (done) {
break;
}
r2 = value6;
continue;
}
}
}
function value_118074(a0, a1, a2) { // fn#118074, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2178, offset: 0x024cb13e, size: 54 bytes, params: 4, frame: 11
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
this.mediaEngine.eachConnection(_fun118075);
}
function _fun118078(a0, a1) { // fn#118078, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2588, offset: 0x024cb212, size: 34 bytes, params: 3, frame: 15
env0_0.setHasActiveVideoOutputSink(env0_1, a0, a1);
}
function _fun118079() { // fn#118079, offset: 0x024cb234, size: 11 bytes, params: 1, frame: 1
return _fun118080;
}
function _fun118069() { // fn#118069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:1253, offset: 0x024caee2, size: 21 bytes, params: 1, frame: 9
return env0_0.logSinks();
}
function _fun118075(a0) { // fn#118075, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2227, offset: 0x024cb174, size: 33 bytes, params: 2, frame: 15
return a0.setHasActiveVideoOutputSink(env0_0, require, importDefault);
}
function _fun118080() { // fn#118080, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15631:2666, offset: 0x024cb23f, size: 26 bytes, params: 1, frame: 11
return env1_0.clearLock(env1_1);
}
global.__d(_fun118063, 15434, [57, 6, 7, 31, 2]) /* metro module 15434, dependencies: [57, 6, 7, 31, 2] */;
@@ -1,166 +1,183 @@
/* Metro module 15443; source: modules/voice_panel/native/controller/usePanelOpenState.tsx; dependencies: [57, 31, 7710, 11795, 661, 4017, 1239, 12080, 3974, 3987, 12073, 8088, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import VoicePanelStore from '../../VoicePanelStore.tsx'; /* Metro dependency 7710 */
import RouteManager from '../../../routing/RouteManager.tsx'; /* Metro dependency 12080 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
import * as ComponentDispatchUtilsModule from '../../../../utils/ComponentDispatchUtils.tsx'; /* Metro dependency 1239 */
import * as RouteUtilsModule from '../../../routing/RouteUtils.tsx'; /* Metro dependency 3987 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as VoicePanelConstantsModule from '../../VoicePanelConstants.tsx'; /* Metro dependency 11795 */
function _fun118156(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#118156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:6, offset: 0x024ce238, size: 239 bytes, params: 8, frame: 19
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 voicePanelStore = importDefault(7710) /* metro dependency 7710: VoicePanelStore */;
const env0_6 = (require(11795) /* metro dependency 11795: VoicePanelConstants */).VoicePanelModes;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_7 = constantsModule.ComponentActions;
const env0_8 = constantsModule.Routes;
object = {code: 'function usePanelOpenStateTsx1(){const{connected}=this.__closure;return{connected:connected.get()};}'};
object = {code: 'function usePanelOpenStateTsx2(props,previous){const{runOnJS,doCloseChannel}=this.__closure;const isConnected=props.connected;const wasConnected=(previous===null||previous===void 0?void 0:previous.connected)===true;if(wasConnected&&!isConnected){runOnJS(doCloseChannel)();}}'};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/voice_panel/native/controller/usePanelOpenState.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/voice_panel/native/controller/usePanelOpenState.tsx');
exports.default = usePanelOpenState;
}
function usePanelOpenState(a0, a1, a2, a3) { // fn#118157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:696, offset: 0x024ce327, size: 315 bytes, params: 5, frame: 25
var object2;
let env0_0 = a0;
let env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
let closure = doCloseChannel;
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedReaction = reanimatedRexportModule.useAnimatedReaction;
let closure2 = function() {
var object = {};
object.connected = importAll.get();
return object;
};
closure2.__closure = {connected: a3};
closure2.__workletHash = 8350408810765;
closure2.__initData = env0_9;
const closure3 = usePanelOpenStateO;
object2 = {};
object2.runOnJS = reanimatedRexportModule.runOnJS;
object2.doCloseChannel = closure;
closure3.__closure = object2;
closure3.__workletHash = 9166012598595;
closure3.__initData = env0_10;
Reflect.apply(useAnimatedReaction, reanimatedRexportModule, [closure2, closure3]);
const binding = env0_4;
binding.useEffect(function() {
var closure = _fun118162;
var env0_0 = closure;
var closure2 = _fun118163;
var env0_1 = closure2;
var ComponentDispatch = require(dependencyMap[6]).ComponentDispatch;
ComponentDispatch.subscribe(ComponentActions.VOICE_PANEL_OPEN, closure);
ComponentDispatch.subscribe(ComponentActions.VOICE_PANEL_CLOSE, closure2);
return _fun118164;
}, [a0, a1, a2, a3]);
const value = env0_3(binding.useState(_fun118165), 2);
const property = value[0];
const env0_6 = value[1];
binding.useEffect(_fun118166, [a0, property]);
}
function doCloseChannel() { // fn#118158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:755, owner: usePanelOpenState.doCloseChannel, offset: 0x024ce462, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return VoicePanelStore.getState().closeChannel(env0_0);
}
function usePanelOpenStateO({connected}, a1) { // fn#118160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:923, owner: usePanelOpenState.O, offset: 0x024ce4a0, size: 92 bytes, params: 3, frame: 13
var value4;
var moduleValue;
const connected = a1?.connected;
if (connected === true && !connected) {
value4 = environment.__proto__;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
moduleValue.runOnJS(doCloseChannel)();
}
}
function _fun118161() { // fn#118161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1158, offset: 0x024ce4fc, size: 119 bytes, params: 1, frame: 20
const closure = componentActionOpen;
const closure2 = componentActionClose;
let ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
let subscribe = ComponentDispatch.subscribe;
let VOICE_PANEL_OPEN = ComponentActions.VOICE_PANEL_OPEN;
Reflect.apply(subscribe, ComponentDispatch, [VOICE_PANEL_OPEN, closure]);
subscribe = ComponentDispatch.subscribe;
let VOICE_PANEL_CLOSE = ComponentActions.VOICE_PANEL_CLOSE;
Reflect.apply(subscribe, ComponentDispatch, [VOICE_PANEL_CLOSE, closure2]);
return function() {
var ComponentDispatch = require(dependencyMap[6]).ComponentDispatch;
var VOICE_PANEL_OPEN = ComponentActions.VOICE_PANEL_OPEN;
ComponentDispatch.unsubscribe(VOICE_PANEL_OPEN, componentActionOpen);
var VOICE_PANEL_CLOSE = ComponentActions.VOICE_PANEL_CLOSE;
ComponentDispatch.unsubscribe(VOICE_PANEL_CLOSE, componentActionClose);
};
}
function _fun118165() { // fn#118165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1693, offset: 0x024ce692, size: 48 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = importDefault(12080) /* metro dependency 12080: RouteManager */;
const getHistory = value.getHistory;
return Reflect.apply(getHistory, value, []).location.pathname;
}
function _fun118166() { // fn#118166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1774, offset: 0x024ce6c2, size: 58 bytes, params: 1, frame: 12
var environment;
const value = environment.__proto__;
const env0_0 = (importDefault(12080) /* metro dependency 12080: RouteManager */).addRouteChangeListener(_fun118167);
return _fun118168;
}
function componentActionOpen({channelId}) { // fn#118162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1163, offset: 0x024ce573, size: 83 bytes, params: 2, frame: 12
var r1;
var value3;
var value4;
const value2 = env1_0 === channelId;
if (value2) {
value3 = require.get();
value4 = environment.__proto__.__proto__;
r1 = value3 !== VoicePanelModes.PANEL;
} else {
r1 = value2;
}
if (r1) {
value = environment.__proto__.__proto__;
importDefault(VoicePanelModes.PANEL);
}
}
function componentActionClose() { // fn#118163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1242, offset: 0x024ce5c6, size: 105 bytes, params: 1, frame: 13
if (importAll.get()) {
if (require.get() !== VoicePanelModes.PIP) {
importDefault(VoicePanelModes.PIP);
function usePanelOpenState(a0, a1, a2, a3) { // fn#118157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:696, offset: 0x024ce327, size: 315 bytes, params: 5, frame: 25
let env0_0 = a0;
let env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const doCloseChannel2 = doCloseChannel;
const useAnimatedReaction = ReanimatedRexportModule.useAnimatedReaction;
let closure2 = function() {
var object = {};
object.connected = importAll.get();
return object;
};
closure2.__closure = {connected: a3};
closure2.__workletHash = 8350408810765;
closure2.__initData = env0_9;
const usePanelOpenStateO2 = usePanelOpenStateO;
object = {};
object.runOnJS = ReanimatedRexportModule.runOnJS;
object.doCloseChannel = doCloseChannel2;
usePanelOpenStateO2.__closure = object;
usePanelOpenStateO2.__workletHash = 9166012598595;
usePanelOpenStateO2.__initData = env0_10;
Reflect.apply(useAnimatedReaction, ReanimatedRexportModule, [closure2, usePanelOpenStateO2]);
ReactModule.useEffect(function() {
var closure = _fun118162;
var env0_0 = closure;
var closure2 = _fun118163;
var env0_1 = closure2;
var ComponentDispatch = require(dependencyMap[6]).ComponentDispatch;
ComponentDispatch.subscribe(ComponentActions.VOICE_PANEL_OPEN, closure);
ComponentDispatch.subscribe(ComponentActions.VOICE_PANEL_CLOSE, closure2);
return _fun118164;
}, [a0, a1, a2, a3]);
const value = env0_3(ReactModule.useState(_fun118165), 2);
const property = value[0];
const env0_6 = value[1];
ReactModule.useEffect(_fun118166, [a0, property]);
function doCloseChannel() { // fn#118158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:755, owner: usePanelOpenState.doCloseChannel, offset: 0x024ce462, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return VoicePanelStore.getState().closeChannel(env0_0);
}
} else {
VoicePanelStore.getState().closeChannel(env1_0);
}
}
function _fun118167(a0) { // fn#118167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1817, offset: 0x024ce6fc, size: 245 bytes, params: 2, frame: 24
var value2;
var moduleValue;
var matchPath;
var object2;
const RouteParam = (require(3987) /* metro dependency 3987: RouteUtils */).RouteParam;
var value4;
var moduleValue2;
const value = environment.__proto__;
const binding = env1_5;
let pathname = a0.pathname;
if (binding !== pathname) {
env1_6(env1_5);
value2 = environment.__proto__.__proto__;
moduleValue = require(3974) /* metro dependency 3974: matchPathCompat */;
matchPath = moduleValue.matchPath;
pathname = a0.pathname;
object2 = {};
object2.path = Routes.CHANNEL(RouteParam.guildId(), RouteParam.channelId());
value4 = Reflect.apply(matchPath, moduleValue, [pathname, object2]);
moduleValue2 = require(12073) /* metro dependency 12073: RouteManagerUtils */;
if (moduleValue2.extractParamsFromVoiceModalRoute(a0).voiceChannelId == null) {
if (!(value4 != null && value4.params.channelId === env1_0)) {
(importDefault(8088) /* metro dependency 8088: closeVoicePanels */)();
function usePanelOpenStateO({connected}, a1) { // fn#118160, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:923, owner: usePanelOpenState.O, offset: 0x024ce4a0, size: 92 bytes, params: 3, frame: 13
var value4;
var moduleValue;
const connected = a1?.connected;
if (connected === true && !connected) {
value4 = environment.__proto__;
moduleValue = require(4017) /* metro dependency 4017: ReanimatedRexport */;
moduleValue.runOnJS(doCloseChannel)();
}
}
function _fun118161() { // fn#118161, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1158, offset: 0x024ce4fc, size: 119 bytes, params: 1, frame: 20
const componentActionOpen2 = componentActionOpen;
const componentActionClose2 = componentActionClose;
let ComponentDispatch = (ComponentDispatchUtilsModule).ComponentDispatch;
let subscribe = ComponentDispatch.subscribe;
let VOICE_PANEL_OPEN = ComponentActions.VOICE_PANEL_OPEN;
Reflect.apply(subscribe, ComponentDispatch, [VOICE_PANEL_OPEN, componentActionOpen2]);
subscribe = ComponentDispatch.subscribe;
let VOICE_PANEL_CLOSE = ComponentActions.VOICE_PANEL_CLOSE;
Reflect.apply(subscribe, ComponentDispatch, [VOICE_PANEL_CLOSE, componentActionClose2]);
return function() {
var ComponentDispatch = require(dependencyMap[6]).ComponentDispatch;
var VOICE_PANEL_OPEN = ComponentActions.VOICE_PANEL_OPEN;
ComponentDispatch.unsubscribe(VOICE_PANEL_OPEN, componentActionOpen);
var VOICE_PANEL_CLOSE = ComponentActions.VOICE_PANEL_CLOSE;
ComponentDispatch.unsubscribe(VOICE_PANEL_CLOSE, componentActionClose);
};
function componentActionOpen({channelId}) { // fn#118162, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1163, offset: 0x024ce573, size: 83 bytes, params: 2, frame: 12
var r1;
var value3;
var value4;
const value2 = env1_0 === channelId;
if (value2) {
value3 = require.get();
value4 = environment.__proto__.__proto__;
r1 = value3 !== VoicePanelModes.PANEL;
} else {
r1 = value2;
}
if (r1) {
value = environment.__proto__.__proto__;
importDefault(VoicePanelModes.PANEL);
}
}
function componentActionClose() { // fn#118163, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1242, offset: 0x024ce5c6, size: 105 bytes, params: 1, frame: 13
if (importAll.get()) {
if (require.get() !== VoicePanelModes.PIP) {
importDefault(VoicePanelModes.PIP);
}
} else {
VoicePanelStore.getState().closeChannel(env1_0);
}
}
function _fun118164() { // fn#118164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1498, offset: 0x024ce62f, size: 99 bytes, params: 1, frame: 19
const ComponentDispatch = (ComponentDispatchUtilsModule).ComponentDispatch;
let unsubscribe = ComponentDispatch.unsubscribe;
const VOICE_PANEL_OPEN = ComponentActions.VOICE_PANEL_OPEN;
Reflect.apply(unsubscribe, ComponentDispatch, [VOICE_PANEL_OPEN, componentActionOpen]);
unsubscribe = ComponentDispatch.unsubscribe;
const VOICE_PANEL_CLOSE = ComponentActions.VOICE_PANEL_CLOSE;
Reflect.apply(unsubscribe, ComponentDispatch, [VOICE_PANEL_CLOSE, componentActionClose]);
}
}
function _fun118165() { // fn#118165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1693, offset: 0x024ce692, size: 48 bytes, params: 1, frame: 11
let value = environment.__proto__;
value = importDefault(12080) /* metro dependency 12080: RouteManager */;
const getHistory = value.getHistory;
return Reflect.apply(getHistory, value, []).location.pathname;
}
function _fun118166() { // fn#118166, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1774, offset: 0x024ce6c2, size: 58 bytes, params: 1, frame: 12
var environment;
const value = environment.__proto__;
const env0_0 = (RouteManager).addRouteChangeListener(_fun118167);
return _fun118168;
function _fun118167(a0) { // fn#118167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:1817, offset: 0x024ce6fc, size: 245 bytes, params: 2, frame: 24
var value2;
var moduleValue;
var matchPath;
var object;
const RouteParam = (RouteUtilsModule).RouteParam;
var value4;
var moduleValue2;
const value = environment.__proto__;
const binding = env1_5;
let pathname = a0.pathname;
if (binding !== pathname) {
env1_6(env1_5);
value2 = environment.__proto__.__proto__;
moduleValue = require(3974) /* metro dependency 3974: matchPathCompat */;
matchPath = moduleValue.matchPath;
pathname = a0.pathname;
object = {};
object.path = Routes.CHANNEL(RouteParam.guildId(), RouteParam.channelId());
value4 = Reflect.apply(matchPath, moduleValue, [pathname, object]);
moduleValue2 = require(12073) /* metro dependency 12073: RouteManagerUtils */;
if (moduleValue2.extractParamsFromVoiceModalRoute(a0).voiceChannelId == null) {
if (!(value4 != null && value4.params.channelId === env1_0)) {
(importDefault(8088) /* metro dependency 8088: closeVoicePanels */)();
}
}
}
}
function _fun118168() { // fn#118168, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15640:2082, offset: 0x00da750c, size: 15 bytes, params: 1, frame: 9
env0_0();
}
}
}
}
global.__d(_fun118156, 15443, [57, 31, 7710, 11795, 661, 4017, 1239, 12080, 3974, 3987, 12073, 8088,
2]) /* metro module 15443, dependencies: [57, 31, 7710, 11795, 661, 4017, 1239, 12080, 3974, 3987, 12073, 8088, 2] */;