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,36 +1,40 @@
/* Metro module 8087; source: modules/frames/FramesActionCreators.native.tsx; dependencies: [5, 4297, 8088, 8089, 2] */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import VoiceStateStore from '../../stores/VoiceStateStore.tsx'; /* Metro dependency 4297 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as FramesActionCreatorsSharedModule from './FramesActionCreators.shared.tsx'; /* Metro dependency 8089 */
function _fun64821(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8272:6, offset: 0x01bb6440, size: 174 bytes, params: 8, frame: 19
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(5) /* metro dependency 5 */;
const voiceStateStore = importDefault(4297) /* metro dependency 4297: VoiceStateStore */;
object2 = {};
copyDataProperties(object2, importAll(8089) /* metro dependency 8089: FramesActionCreatorsShared */, undefined);
object2['launchFrame'] = function() {
object = {};
copyDataProperties(object, FramesActionCreatorsSharedModule, undefined);
object['launchFrame'] = function() {
return _launchFrameOnNative.apply(this, arguments);
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/FramesActionCreators.native.tsx');
exports.default = object2;
}
function _launchFrameOnNative() { // fn#64822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8272:116, offset: 0x01bb64ee, size: 48 bytes, params: 1, frame: 14
return env0_3(_fun64824).apply(this, arguments);
}
function* _fun64824(a0) { // fn#64824, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8272:179, offset: 0x01bb6527, size: 106 bytes, params: 2, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[3]);
yield value3.launchFrame(a0);
if (false) {
return undefined;
}
binding = env2_4;
if (binding.isCurrentClientInVoiceChannel()) {
env2_0(env2_2[2])();
(FileImportTrackerModule).fileFinishedImporting('modules/frames/FramesActionCreators.native.tsx');
exports.default = object;
function _launchFrameOnNative() { // fn#64822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8272:116, offset: 0x01bb64ee, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun64824).apply(this, arguments);
function* _fun64824(a0) { // fn#64824, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8272:179, offset: 0x01bb6527, size: 106 bytes, params: 2, frame: 14
if (true) {
value = environment.__proto__.__proto__;
var binding = env2_1;
var value3 = binding(env2_2[3]);
yield value3.launchFrame(a0);
if (false) {
return undefined;
}
binding = env2_4;
if (binding.isCurrentClientInVoiceChannel()) {
env2_0(env2_2[2])();
}
}
}
}
}
global.__d(_fun64821, 8087, [5, 4297, 8088, 8089,
2]) /* metro module 8087, dependencies: [5, 4297, 8088, 8089, 2] */;
File diff suppressed because it is too large. Load diff
+9 -7
View File
@@ -1,13 +1,15 @@
/* Metro module 8066; source: modules/frames/FramesConstants.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64044(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8244:6, offset: 0x01b99dd5, size: 111 bytes, params: 8, frame: 16
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
object2 = {FOCUSED: 0};
object2[0] = 'FOCUSED';
object2.PIP = 1;
object2[1] = 'PIP';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/FramesConstants.tsx');
exports.FrameLayoutModes = object2;
object = {FOCUSED: 0};
object[0] = 'FOCUSED';
object.PIP = 1;
object[1] = 'PIP';
(FileImportTrackerModule).fileFinishedImporting('modules/frames/FramesConstants.tsx');
exports.FrameLayoutModes = object;
}
global.__d(_fun64044, 8066, [2]) /* metro module 8066, dependencies: [2] */;
+105 -98
View File
@@ -1,121 +1,128 @@
/* Metro module 10655; source: modules/frames/FramesManager.tsx; dependencies: [7, 6, 15, 17, 18, 8065, 661, 8097, 8101, 683, 4860, 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 PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import FramesStore from './FramesStore.tsx'; /* Metro dependency 8065 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as EmbeddedActivitiesManagerModule from '../activities/EmbeddedActivitiesManager.tsx'; /* Metro dependency 8097 */
import * as PendingFrameLaunchModule from '../activities/utils/pendingFrameLaunch.tsx'; /* Metro dependency 8101 */
function _fun81954(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#81954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:6, offset: 0x01ee56da, size: 270 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(6) /* metro dependency 6 */;
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 framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
let value = require(661) /* metro dependency 661: Constants */;
let value = ConstantsModule;
const env0_9 = value.AnalyticEvents;
const env0_10 = value.RPCCloseCodes;
value = importDefault(4860) /* metro dependency 4860: AutomaticLifecycleManager */;
value = _fun81958(value);
value.displayName = 'FramesManager';
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/FramesManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/FramesManager.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_81955() { // fn#81955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:205, offset: 0x01ee57e8, 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) {
function _isNativeReflectConstruct_81955() { // fn#81955, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:205, offset: 0x01ee57e8, 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_81955_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_81955_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun81958(a0) { // fn#81958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:404, offset: 0x01ee584a, size: 42 bytes, params: 2, frame: 14
const closure = FramesManager;
env0_7(closure, a0);
return env0_3(closure);
}
function _fun81958(a0) { // fn#81958, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:404, offset: 0x01ee584a, size: 42 bytes, params: 2, frame: 14
const FramesManager2 = FramesManager;
Inherits(FramesManager2, a0);
return CreateClass(FramesManager2);
function FramesManager(a0) { // fn#81959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:416, offset: 0x01ee5874, size: 201 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, FramesManager);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(FramesManager);
binding = env1_5;
if (_isNativeReflectConstruct_81955()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.actions = {RPC_APP_DISCONNECTED: RPC_APP_DISCONNECTED_81960, FRAME_LAUNCH: FRAME_LAUNCH_81961,
FRAME_LAUNCH_FAIL: FRAME_LAUNCH_FAIL_81962, FRAME_STOP: FRAME_STOP_81963};
value.handleRPCDisconnect = handleRPCDisconnect_81964;
return value;
function FramesManagerRPC_APP_DISCONNECTED(a0) { // fn#81960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:673, owner: FramesManager.RPC_APP_DISCONNECTED, offset: 0x01ee593d, size: 25 bytes, params: 2, frame: 11
env0_0.handleRPCDisconnect(a0);
}
function FramesManager(a0) { // fn#81959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:416, offset: 0x01ee5874, size: 201 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_4;
binding(this, FramesManager);
const items = [];
arraySpread(items, value, 0, items);
value = env1_6(FramesManager);
binding = env1_5;
if (_isNativeReflectConstruct_81955()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items);
r0 = value;
}
value = binding(this, r0);
value.actions = {RPC_APP_DISCONNECTED: RPC_APP_DISCONNECTED_81960, FRAME_LAUNCH: FRAME_LAUNCH_81961,
FRAME_LAUNCH_FAIL: FRAME_LAUNCH_FAIL_81962, FRAME_STOP: FRAME_STOP_81963};
value.handleRPCDisconnect = handleRPCDisconnect;
return value;
}
function FramesManagerFRAME_LAUNCH({applicationId}) { // fn#81961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:716, owner: FramesManager.FRAME_LAUNCH, offset: 0x01ee5956, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
(EmbeddedActivitiesManagerModule).trackFrameSessionStart(applicationId);
}
function FramesManagerRPC_APP_DISCONNECTED(a0) { // fn#81960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:673, owner: FramesManager.RPC_APP_DISCONNECTED, offset: 0x01ee593d, size: 25 bytes, params: 2, frame: 11
env0_0.handleRPCDisconnect(a0);
}
function FramesManagerFRAME_LAUNCH_FAIL({applicationId}) { // fn#81962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:791, owner: FramesManager.FRAME_LAUNCH_FAIL, offset: 0x01ee5984, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
(PendingFrameLaunchModule).discardPendingFrameLaunch(applicationId);
}
function FramesManagerFRAME_LAUNCH({applicationId}) { // fn#81961, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:716, owner: FramesManager.FRAME_LAUNCH, offset: 0x01ee5956, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
(require(8097) /* metro dependency 8097: EmbeddedActivitiesManager */).trackFrameSessionStart(applicationId);
}
function FramesManagerFRAME_STOP({applicationId}) { // fn#81963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:862, owner: FramesManager.FRAME_STOP, offset: 0x01ee59b2, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
(EmbeddedActivitiesManagerModule).trackFrameSessionEnd(applicationId);
}
function FramesManagerFRAME_LAUNCH_FAIL({applicationId}) { // fn#81962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:791, owner: FramesManager.FRAME_LAUNCH_FAIL, offset: 0x01ee5984, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
(require(8101) /* metro dependency 8101: pendingFrameLaunch */).discardPendingFrameLaunch(applicationId);
}
function FramesManagerFRAME_STOP({applicationId}) { // fn#81963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:862, owner: FramesManager.FRAME_STOP, offset: 0x01ee59b2, size: 46 bytes, params: 2, frame: 12
const value = environment.__proto__.__proto__;
(require(8097) /* metro dependency 8097: EmbeddedActivitiesManager */).trackFrameSessionEnd(applicationId);
}
function FramesManagerHandleRPCDisconnect({reason, application}) { // fn#81964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:940, owner: FramesManager.handleRPCDisconnect, offset: 0x01ee59e0, size: 207 bytes, params: 2, frame: 18
var value;
var defaultImport;
const id = application.id;
if (id != null) {
if (reason != null) {
value = environment.__proto__.__proto__;
if (FramesStore.getConnectedFrame()?.applicationId === id) {
env0_0.leaveFrame({applicationId: id});
if (reason.code !== RPCCloseCodes.CLOSE_NORMAL) {
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACTIVITY_CLOSED_RPC_ERROR, {rpc_close_code: reason.code,
rpc_message: reason.message, application_id: id});
env0_0.showRPCDisconnectErrorUI(reason);
function FramesManagerHandleRPCDisconnect({reason, application}) { // fn#81964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10841:940, owner: FramesManager.handleRPCDisconnect, offset: 0x01ee59e0, size: 207 bytes, params: 2, frame: 18
var value;
var defaultImport;
const id = application.id;
if (id != null) {
if (reason != null) {
value = environment.__proto__.__proto__;
if (FramesStore.getConnectedFrame()?.applicationId === id) {
env0_0.leaveFrame({applicationId: id});
if (reason.code !== RPCCloseCodes.CLOSE_NORMAL) {
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
defaultImport.track(AnalyticEvents.ACTIVITY_CLOSED_RPC_ERROR, {rpc_close_code: reason.code,
rpc_message: reason.message, application_id: id});
env0_0.showRPCDisconnectErrorUI(reason);
}
}
}
}
}
}
}
}
global.__d(_fun81954, 10655, [7, 6, 15, 17, 18, 8065, 661, 8097, 8101, 683, 4860,
2]) /* metro module 10655, dependencies: [7, 6, 15, 17, 18, 8065, 661, 8097, 8101, 683, 4860, 2] */;
+207 -181
View File
@@ -1,14 +1,18 @@
/* Metro module 8065; source: modules/frames/FramesStore.tsx; dependencies: [6, 7, 15, 17, 18, 8066, 8044, 8067, 566, 694, 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 PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import GetURLForApplication from '../activities/getURLForApplication.tsx'; /* Metro dependency 8067 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ActivityPanelConstantsModule from '../activities/panel/ActivityPanelConstants.tsx'; /* Metro dependency 8044 */
import * as FramesConstantsModule from './FramesConstants.tsx'; /* Metro dependency 8066 */
function _fun64020(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:6, offset: 0x01b996f7, size: 539 bytes, params: 8, frame: 20
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(6) /* metro dependency 6 */;
const env0_3 = importDefault(7) /* metro dependency 7 */;
const env0_4 = importDefault(15) /* metro dependency 15 */;
const env0_5 = importDefault(17) /* metro dependency 17 */;
const env0_6 = importDefault(18) /* metro dependency 18 */;
const env0_7 = (require(8066) /* metro dependency 8066: FramesConstants */).FrameLayoutModes;
const env0_8 = (require(8044) /* metro dependency 8044: ActivityPanelConstants */).ActivityPanelModes;
let Map = global.Map;
let map = new Map();
Map = global.Map;
@@ -17,7 +21,7 @@ function _fun64020(global, require, importDefault, importAll, module, exports, d
map = new Map();
Map = global.Map;
map = new Map();
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun64024(Store).displayName = 'FramesStore';
map = new map(importDefault(694) /* metro dependency 694: Dispatcher */, {FRAME_LAUNCH_START: FRAME_LAUNCH_START,
FRAME_LAUNCH: FRAME_LAUNCH, FRAME_LAUNCH_FAIL: FRAME_LAUNCH_FAIL, FRAME_STOP: FRAME_STOP,
@@ -25,187 +29,209 @@ function _fun64020(global, require, importDefault, importAll, module, exports, d
FRAME_SET_ORIENTATION_LOCK_STATE: FRAME_SET_ORIENTATION_LOCK_STATE,
FRAME_SET_PROXY_TICKET_REFRESHING: FRAME_SET_PROXY_TICKET_REFRESHING,
FRAME_UPDATE_PROXY_TICKET: FRAME_UPDATE_PROXY_TICKET, CHANNEL_SELECT: CHANNEL_SELECT_64043});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/FramesStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/FramesStore.tsx');
exports.default = map;
}
function _isNativeReflectConstruct_64021() { // fn#64021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:204, offset: 0x01b99912, 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_64021_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun64024(a0) { // fn#64024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:454, offset: 0x01b99970, size: 237 bytes, params: 2, frame: 16
const closure = FramesStoreClass;
env0_6(closure, a0);
return env0_3(closure, [{key: 'getConnectedFrame', value: value_64026}, {key: 'getFrameLayoutMode',
value: value_64027}, {key: 'getActivityPanelMode', value: value_64028}, {key: 'isFrameActive',
value: value_64029}, {key: 'isLaunchingFrame', value: value_64030}, {key: 'isProxyTicketRefreshing',
value: value_64031}, {key: 'getOrientationLockStateForApp', value: value_64032},
{key: 'getPipOrientationLockStateForApp', value: value_64033}]);
}
function FRAME_LAUNCH_START({applicationId}) { // fn#64034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1520, offset: 0x01b99b15, size: 32 bytes, params: 2, frame: 13
env0_10.set(applicationId, true);
}
function FRAME_LAUNCH({applicationId, proxyTicket}) { // fn#64035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1597, offset: 0x01b99b35, size: 153 bytes, params: 2, frame: 15
var object2;
const value2 = (importDefault(8067) /* metro dependency 8067: getURLForApplication */)(applicationId);
if (value2 != null) {
env0_10.delete(applicationId);
object2 = {applicationId: applicationId, url: value2};
object2.connectedSince = global.Date.now();
object2.layoutMode = FrameLayoutModes.FOCUSED;
object2.activityPanelMode = ActivityPanelModes.PANEL;
object2.proxyTicket = proxyTicket;
} else {
env0_10.delete(applicationId);
}
}
function FRAME_LAUNCH_FAIL({applicationId}) { // fn#64036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1840, offset: 0x01b99bce, size: 29 bytes, params: 2, frame: 11
env0_10.delete(applicationId);
}
function FRAME_STOP({applicationId}) { // fn#64037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1914, offset: 0x01b99beb, size: 43 bytes, params: 2, frame: 7
const applicationId = env0_9?.applicationId;
if (applicationId !== applicationId) {
}
}
function FRAME_UPDATE_LAYOUT_MODE({applicationId, layoutMode}) { // fn#64038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2041, offset: 0x01b99c16, size: 71 bytes, params: 2, frame: 16
var object2;
const binding = env0_9;
const value2 = binding == null;
const applicationId = value2 ? undefined : binding.applicationId;
if (applicationId === applicationId) {
object2 = {};
copyDataProperties(object2, env0_9, value2);
object2['layoutMode'] = layoutMode;
}
}
function FRAME_SET_PANEL_MODE({activityPanelMode}) { // fn#64039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2204, offset: 0x01b99c5d, size: 52 bytes, params: 2, frame: 13
var object2;
if (env0_9 != null) {
object2 = {};
copyDataProperties(object2, env0_9, activityPanelMode);
object2['activityPanelMode'] = activityPanelMode;
}
}
function FRAME_SET_ORIENTATION_LOCK_STATE({applicationId, lockState, pictureInPictureLockState}) { // fn#64040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2329, offset: 0x01b99c91, size: 114 bytes, params: 2, frame: 15
if (lockState == null) {
env0_12.delete(applicationId);
} else {
env0_12.set(applicationId, lockState);
}
if (pictureInPictureLockState === null) {
env0_13.delete(applicationId);
} else if (pictureInPictureLockState !== undefined) {
env0_13.set(applicationId, pictureInPictureLockState);
}
}
function FRAME_SET_PROXY_TICKET_REFRESHING({applicationId, refreshing}) { // fn#64041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2534, offset: 0x01b99d03, size: 53 bytes, params: 2, frame: 13
const binding = env0_11;
if (refreshing) {
binding.set(applicationId, true);
} else {
binding.delete(applicationId);
}
}
function FRAME_UPDATE_PROXY_TICKET({applicationId, proxyTicket}) { // fn#64042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2659, offset: 0x01b99d38, size: 71 bytes, params: 2, frame: 16
var object2;
const binding = env0_9;
const value2 = binding == null;
const applicationId = value2 ? undefined : binding.applicationId;
if (applicationId === applicationId) {
object2 = {};
copyDataProperties(object2, env0_9, value2);
object2['proxyTicket'] = proxyTicket;
}
}
function CHANNEL_SELECT_64043() { // fn#64043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2814, offset: 0x01b99d7f, size: 86 bytes, params: 1, frame: 15
var r1;
var r0;
var value3;
var object2;
const value2 = env0_9 != null;
if (value2) {
value3 = env0_9.layoutMode !== FrameLayoutModes.PIP;
if (value3) {
object2 = {};
copyDataProperties(object2, env0_9, undefined);
object2['layoutMode'] = FrameLayoutModes.PIP;
r1 = true;
} else {
r1 = value3;
function _isNativeReflectConstruct_64021() { // fn#64021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:204, offset: 0x01b99912, 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) {
}
r0 = r1;
} else {
r0 = value2;
return (_isNativeReflectConstruct_64021_isNativeReflectConstruct = function() {
return !!result;
})();
}
return r0;
}
function value_64027() { // fn#64027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:825, offset: 0x01b99a5d, size: 26 bytes, params: 1, frame: 3
const value = environment.__proto__;
return env1_9?.layoutMode;
}
function _fun64024(a0) { // fn#64024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:454, offset: 0x01b99970, size: 237 bytes, params: 2, frame: 16
const FramesStoreClass2 = FramesStoreClass;
Inherits(FramesStoreClass2, a0);
return CreateClass(FramesStoreClass2, [{key: 'getConnectedFrame', value: value_64026}, {key: 'getFrameLayoutMode',
value: value_64027}, {key: 'getActivityPanelMode', value: value_64028}, {key: 'isFrameActive',
value: value_64029}, {key: 'isLaunchingFrame', value: value_64030}, {key: 'isProxyTicketRefreshing',
value: value_64031}, {key: 'getOrientationLockStateForApp', value: value_64032},
{key: 'getPipOrientationLockStateForApp', value: value_64033}]);
function FramesStoreClass() { // fn#64025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:466, offset: 0x0118e06f, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_2(this, FramesStoreClass);
const value3 = env1_5(FramesStoreClass);
return env1_4(this, _isNativeReflectConstruct_64021() ? global.Reflect.construct(value3, arguments,
env1_5(this).constructor) : value3.apply(this, arguments));
}
function value_64028() { // fn#64028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:917, offset: 0x01b99a77, size: 40 bytes, params: 1, frame: 5
return env1_9?.activityPanelMode ?? ActivityPanelModes.DISCONNECTED;
}
function value_64026() { // fn#64026, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_64029() { // fn#64029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1038, offset: 0x01b99a9f, size: 15 bytes, params: 1, frame: 2
return env1_9 != null;
}
function value_64027() { // fn#64027, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:825, offset: 0x01b99a5d, size: 26 bytes, params: 1, frame: 3
const value = environment.__proto__;
return env1_9?.layoutMode;
}
function value_64028() { // fn#64028, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:917, offset: 0x01b99a77, size: 40 bytes, params: 1, frame: 5
return env1_9?.activityPanelMode ?? ActivityPanelModes.DISCONNECTED;
}
function value_64029() { // fn#64029, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1038, offset: 0x01b99a9f, size: 15 bytes, params: 1, frame: 2
return env1_9 != null;
}
function value_64030(a0) { // fn#64030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1096, offset: 0x01b99aae, size: 61 bytes, params: 2, frame: 13
var r0;
var value;
if (a0 != null) {
value = environment.__proto__;
value = env1_10.get(a0);
r0 = value != null && value;
} else {
value = environment.__proto__;
value = env1_10.size > 0;
r0 = value;
}
return r0;
}
function value_64031(a0) { // fn#64031, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1199, offset: 0x00f82460, size: 22 bytes, params: 2, frame: 11
return env1_11.has(a0);
}
function value_64032(a0) { // fn#64032, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1272, offset: 0x01087f0f, size: 22 bytes, params: 2, frame: 11
return env1_12.get(a0);
}
function value_64033(a0) { // fn#64033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1348, offset: 0x01b99aeb, size: 42 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_13.get(a0) ?? this.getOrientationLockStateForApp(a0);
}
function value_64030(a0) { // fn#64030, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1096, offset: 0x01b99aae, size: 61 bytes, params: 2, frame: 13
var r0;
var value;
if (a0 != null) {
value = environment.__proto__;
value = env1_10.get(a0);
r0 = value != null && value;
} else {
value = environment.__proto__;
value = env1_10.size > 0;
r0 = value;
}
return r0;
}
function value_64033(a0) { // fn#64033, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1348, offset: 0x01b99aeb, size: 42 bytes, params: 2, frame: 12
const value = environment.__proto__;
return env1_13.get(a0) ?? this.getOrientationLockStateForApp(a0);
function FRAME_LAUNCH_START({applicationId}) { // fn#64034, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1520, offset: 0x01b99b15, size: 32 bytes, params: 2, frame: 13
env0_10.set(applicationId, true);
}
function FRAME_LAUNCH({applicationId, proxyTicket}) { // fn#64035, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1597, offset: 0x01b99b35, size: 153 bytes, params: 2, frame: 15
var object;
const value2 = (GetURLForApplication)(applicationId);
if (value2 != null) {
env0_10.delete(applicationId);
object = {applicationId: applicationId, url: value2};
object.connectedSince = global.Date.now();
object.layoutMode = FrameLayoutModes.FOCUSED;
object.activityPanelMode = ActivityPanelModes.PANEL;
object.proxyTicket = proxyTicket;
} else {
env0_10.delete(applicationId);
}
}
function FRAME_LAUNCH_FAIL({applicationId}) { // fn#64036, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1840, offset: 0x01b99bce, size: 29 bytes, params: 2, frame: 11
env0_10.delete(applicationId);
}
function FRAME_STOP({applicationId}) { // fn#64037, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:1914, offset: 0x01b99beb, size: 43 bytes, params: 2, frame: 7
const applicationId = env0_9?.applicationId;
if (applicationId !== applicationId) {
}
}
function FRAME_UPDATE_LAYOUT_MODE({applicationId, layoutMode}) { // fn#64038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2041, offset: 0x01b99c16, size: 71 bytes, params: 2, frame: 16
var object;
const binding = env0_9;
const value2 = binding == null;
const applicationId = value2 ? undefined : binding.applicationId;
if (applicationId === applicationId) {
object = {};
copyDataProperties(object, env0_9, value2);
object['layoutMode'] = layoutMode;
}
}
function FRAME_SET_PANEL_MODE({activityPanelMode}) { // fn#64039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2204, offset: 0x01b99c5d, size: 52 bytes, params: 2, frame: 13
var object;
if (env0_9 != null) {
object = {};
copyDataProperties(object, env0_9, activityPanelMode);
object['activityPanelMode'] = activityPanelMode;
}
}
function FRAME_SET_ORIENTATION_LOCK_STATE({applicationId, lockState, pictureInPictureLockState}) { // fn#64040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2329, offset: 0x01b99c91, size: 114 bytes, params: 2, frame: 15
if (lockState == null) {
env0_12.delete(applicationId);
} else {
env0_12.set(applicationId, lockState);
}
if (pictureInPictureLockState === null) {
env0_13.delete(applicationId);
} else if (pictureInPictureLockState !== undefined) {
env0_13.set(applicationId, pictureInPictureLockState);
}
}
function FRAME_SET_PROXY_TICKET_REFRESHING({applicationId, refreshing}) { // fn#64041, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2534, offset: 0x01b99d03, size: 53 bytes, params: 2, frame: 13
const binding = env0_11;
if (refreshing) {
binding.set(applicationId, true);
} else {
binding.delete(applicationId);
}
}
function FRAME_UPDATE_PROXY_TICKET({applicationId, proxyTicket}) { // fn#64042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2659, offset: 0x01b99d38, size: 71 bytes, params: 2, frame: 16
var object;
const binding = env0_9;
const value2 = binding == null;
const applicationId = value2 ? undefined : binding.applicationId;
if (applicationId === applicationId) {
object = {};
copyDataProperties(object, env0_9, value2);
object['proxyTicket'] = proxyTicket;
}
}
function CHANNEL_SELECT_64043() { // fn#64043, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8243:2814, offset: 0x01b99d7f, size: 86 bytes, params: 1, frame: 15
var r1;
var r0;
var value3;
var object;
const value2 = env0_9 != null;
if (value2) {
value3 = env0_9.layoutMode !== FrameLayoutModes.PIP;
if (value3) {
object = {};
copyDataProperties(object, env0_9, undefined);
object['layoutMode'] = FrameLayoutModes.PIP;
r1 = true;
} else {
r1 = value3;
}
r0 = r1;
} else {
r0 = value2;
}
return r0;
}
}
global.__d(_fun64020, 8065, [6, 7, 15, 17, 18, 8066, 8044, 8067, 566, 694,
2]) /* metro module 8065, dependencies: [6, 7, 15, 17, 18, 8066, 8044, 8067, 566, 694, 2] */;
+104 -95
View File
@@ -1,108 +1,117 @@
/* Metro module 15397; source: modules/frames/native/FrameView.tsx; dependencies: [57, 31, 8065, 8066, 4237, 33, 566, 6772, 694, 8069, 10704, 15398, 15399, 10716, 2] */
import Module00057 from '../../../by-id/module-00057.js'; /* Metro dependency 57 */
import FramesStore from '../FramesStore.tsx'; /* Metro dependency 8065 */
import FrameWebView from './FrameWebView.tsx'; /* Metro dependency 15399 */
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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ConstantsModule from '../../activities/Constants.tsx'; /* Metro dependency 4237 */
import * as ApplicationActionCreatorsModule from '../../applications/ApplicationActionCreators.tsx'; /* Metro dependency 6772 */
import * as FramesConstantsModule from '../FramesConstants.tsx'; /* Metro dependency 8066 */
import * as FramesNativeManagerModule from './FramesNativeManager.tsx'; /* Metro dependency 8069 */
import * as EmbeddedActivityViewModule from '../../activities/native/EmbeddedActivityView.tsx'; /* Metro dependency 10704 */
function _fun117689(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117689, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:6, offset: 0x024bde7a, size: 236 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 */;
let value = importAll(31) /* metro dependency 31 */;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const env0_6 = (require(8066) /* metro dependency 8066: FramesConstants */).FrameLayoutModes;
const env0_7 = (require(4237) /* metro dependency 4237: Constants */).ActivityPlatform;
const env0_8 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(FrameViewInner);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/native/FrameView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/native/FrameView.tsx');
exports.default = value;
exports.FrameView = value;
}
function FrameViewInner({layoutMode, portraitSafeAreasConfig, landscapeSafeAreasConfig}) { // fn#117690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:208, offset: 0x024bdf66, size: 703 bytes, params: 2, frame: 31
let env0_3 = undefined;
const connectedFrame = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore],
function() {
return FramesStore.getConnectedFrame();
});
const useApplication = ApplicationActionCreatorsModule.useApplication;
let applicationId = connectedFrame?.applicationId;
const data = Reflect.apply(useApplication, ApplicationActionCreatorsModule, [applicationId]).data;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], _fun117692,
[connectedFrame]);
const binding = env0_4;
const [property, property2] = env0_3(binding.useState(true), 2);
binding.useLayoutEffect(_fun117693, [layoutMode]);
applicationId = connectedFrame?.applicationId;
const value6 = env0_4.useCallback(_fun117694, [applicationId]);
let r6 = connectedFrame == null || property;
r6 = !r6 ? applicationId == null : r6;
r6 = !r6 ? data == null : r6;
const useBaseActivityView = EmbeddedActivityViewModule.useBaseActivityView;
object = {orientationLockState: value3, showLoadingIndicator: r6,
setShowLoadingStateForLockingOrientation: property2, application: data};
object.setOrientationLockState = (require(15398) /* metro dependency 15398: getDefaultOrientationLockState */).setOrientationLockState;
const value10 = Reflect.apply(useBaseActivityView, EmbeddedActivityViewModule, [object]);
const isResetting = value10.isResetting;
env0_3 = value10.setIsResetting;
const isLandscape = value10.isLandscape;
if (connectedFrame == null) {
return null;
}
object = {instance_id: 'example-cl-instance'};
const MOBILE = ActivityPlatform.MOBILE;
object.platform = MOBILE;
if (connectedFrame.proxyTicket != null) {
object.discord_proxy_ticket = connectedFrame.proxyTicket;
}
const BaseActivityView = EmbeddedActivityViewModule.BaseActivityView;
const defaultImportProps = {onActivityCrash: function() {
setIsResetting(true);
global.setTimeout(_fun117696, 0);
}, applicationId: applicationId, activityUrl: connectedFrame.url, queryParams: object, onLoadError: value6,
allowPopups: (require(10716) /* metro dependency 10716: allowPopups */).allowPopups(data),
referrerPolicy: 'origin'};
const PIP = FrameLayoutModes.PIP;
defaultImportProps.isPipOrGridMode = layoutMode === PIP;
const FRAME_WEB_VIEW_KEY = (FramesNativeManagerModule).FRAME_WEB_VIEW_KEY;
defaultImportProps.webViewKey = FRAME_WEB_VIEW_KEY;
defaultImportProps.safeAreasConfig = isLandscape ? landscapeSafeAreasConfig : portraitSafeAreasConfig;
return (
<BaseActivityView
wakeLockKey="FrameActivities"
showLoadingIndicator={r6}
isResetting={isResetting}
>
<FrameWebView {...defaultImportProps} />
</BaseActivityView>
);
function _fun117692() { // fn#117692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:463, offset: 0x024be225, size: 47 bytes, params: 1, frame: 12
return connectedFrame != null ? FramesStore.getOrientationLockStateForApp(connectedFrame.applicationId) : undefined;
}
function _fun117693() { // fn#117693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:596, offset: 0x024be254, size: 86 bytes, params: 1, frame: 13
var value2;
if (connectedFrame != null) {
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRAME_UPDATE_LAYOUT_MODE',
layoutMode: layoutMode, applicationId: connectedFrame.applicationId});
}
}
function _fun117694() { // fn#117694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:766, offset: 0x024be2aa, size: 63 bytes, params: 1, frame: 12
var value2;
if (applicationId != null) {
value2 = environment.__proto__;
(importDefault(8069) /* metro dependency 8069: FramesNativeManager */).leaveFrame({applicationId: applicationId});
}
}
function FrameViewInnerOnActivityCrash() { // fn#117695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:1384, owner: FrameViewInner.onActivityCrash, offset: 0x024be2e9, size: 43 bytes, params: 1, frame: 13
setIsResetting(true);
global.setTimeout(function() {
return setIsResetting(false);
}, 0);
function _fun117696() { // fn#117696, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:1407, offset: 0x01ef13d1, size: 18 bytes, params: 1, frame: 11
return setIsResetting(false);
}
}
function FrameViewInner({layoutMode, portraitSafeAreasConfig, landscapeSafeAreasConfig}) { // fn#117690, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:208, offset: 0x024bdf66, size: 703 bytes, params: 2, frame: 31
var object2;
let env0_3 = undefined;
const connectedFrame = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore],
function() {
return FramesStore.getConnectedFrame();
});
const applicationActionCreatorsModule = require(6772) /* metro dependency 6772: ApplicationActionCreators */;
const useApplication = applicationActionCreatorsModule.useApplication;
let applicationId = connectedFrame?.applicationId;
const data = Reflect.apply(useApplication, applicationActionCreatorsModule, [applicationId]).data;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], _fun117692,
[connectedFrame]);
const binding = env0_4;
const [property, property2] = env0_3(binding.useState(true), 2);
binding.useLayoutEffect(_fun117693, [layoutMode]);
applicationId = connectedFrame?.applicationId;
const value6 = env0_4.useCallback(_fun117694, [applicationId]);
let r6 = connectedFrame == null || property;
r6 = !r6 ? applicationId == null : r6;
r6 = !r6 ? data == null : r6;
const embeddedActivityViewModule = require(10704) /* metro dependency 10704: EmbeddedActivityView */;
const useBaseActivityView = embeddedActivityViewModule.useBaseActivityView;
object2 = {orientationLockState: value3, showLoadingIndicator: r6,
setShowLoadingStateForLockingOrientation: property2, application: data};
object2.setOrientationLockState = (require(15398) /* metro dependency 15398: getDefaultOrientationLockState */).setOrientationLockState;
const value10 = Reflect.apply(useBaseActivityView, embeddedActivityViewModule, [object2]);
const isResetting = value10.isResetting;
env0_3 = value10.setIsResetting;
const isLandscape = value10.isLandscape;
if (connectedFrame == null) {
return null;
}
object2 = {instance_id: 'example-cl-instance'};
const MOBILE = ActivityPlatform.MOBILE;
object2.platform = MOBILE;
if (connectedFrame.proxyTicket != null) {
object2.discord_proxy_ticket = connectedFrame.proxyTicket;
}
const BaseActivityView = embeddedActivityViewModule.BaseActivityView;
const FrameWebView = importDefault(15399) /* metro dependency 15399: FrameWebView */;
const defaultImportProps = {onActivityCrash: function() {
setIsResetting(true);
global.setTimeout(_fun117696, 0);
}, applicationId: applicationId, activityUrl: connectedFrame.url, queryParams: object2, onLoadError: value6,
allowPopups: (require(10716) /* metro dependency 10716: allowPopups */).allowPopups(data),
referrerPolicy: 'origin'};
const PIP = FrameLayoutModes.PIP;
defaultImportProps.isPipOrGridMode = layoutMode === PIP;
const FRAME_WEB_VIEW_KEY = (require(8069) /* metro dependency 8069: FramesNativeManager */).FRAME_WEB_VIEW_KEY;
defaultImportProps.webViewKey = FRAME_WEB_VIEW_KEY;
defaultImportProps.safeAreasConfig = isLandscape ? landscapeSafeAreasConfig : portraitSafeAreasConfig;
return (
<BaseActivityView
wakeLockKey="FrameActivities"
showLoadingIndicator={r6}
isResetting={isResetting}
>
<FrameWebView {...defaultImportProps} />
</BaseActivityView>
);
}
function _fun117692() { // fn#117692, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:463, offset: 0x024be225, size: 47 bytes, params: 1, frame: 12
return connectedFrame != null ? FramesStore.getOrientationLockStateForApp(connectedFrame.applicationId) : undefined;
}
function _fun117693() { // fn#117693, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:596, offset: 0x024be254, size: 86 bytes, params: 1, frame: 13
var value2;
if (connectedFrame != null) {
value2 = environment.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRAME_UPDATE_LAYOUT_MODE',
layoutMode: layoutMode, applicationId: connectedFrame.applicationId});
}
}
function _fun117694() { // fn#117694, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:766, offset: 0x024be2aa, size: 63 bytes, params: 1, frame: 12
var value2;
if (applicationId != null) {
value2 = environment.__proto__;
(importDefault(8069) /* metro dependency 8069: FramesNativeManager */).leaveFrame({applicationId: applicationId});
}
}
function FrameViewInnerOnActivityCrash() { // fn#117695, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15594:1384, owner: FrameViewInner.onActivityCrash, offset: 0x024be2e9, size: 43 bytes, params: 1, frame: 13
setIsResetting(true);
global.setTimeout(function() {
return setIsResetting(false);
}, 0);
}
global.__d(_fun117689, 15397, [57, 31, 8065, 8066, 4237, 33, 566, 6772, 694, 8069, 10704, 15398, 15399, 10716,
2]) /* metro module 15397, dependencies: [57, 31, 8065, 8066, 4237, 33, 566, 6772, 694, 8069, 10704, 15398, 15399, 10716, 2] */;
+52 -46
View File
@@ -1,57 +1,63 @@
/* Metro module 15399; source: modules/frames/native/FrameWebView.tsx; dependencies: [31, 33, 10709, 8069, 2] */
import FramesNativeManager from './FramesNativeManager.tsx'; /* Metro dependency 8069 */
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 JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as EmbeddedActivityWebViewModule from '../../activities/native/EmbeddedActivityWebView.tsx'; /* Metro dependency 10709 */
function _fun117699(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117699, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:6, offset: 0x024be3ef, size: 142 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/native/FrameWebView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/native/FrameWebView.tsx');
exports.default = FrameWebView;
}
function FrameWebView(a0) { // fn#117700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:126, offset: 0x024be47d, size: 230 bytes, params: 2, frame: 25
const applicationId = a0.applicationId;
const value = Object.create(null);
value.applicationId = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const {hasInvalidUrlError, setHasInvalidUrlError,
hadInvalidUrlError} = (EmbeddedActivityWebViewModule).useHasInvalidUrlErrorState();
ReactModule.useEffect(_fun117701, [hasInvalidUrlError, hadInvalidUrlError, applicationId]);
const BaseActivityWebView = (EmbeddedActivityWebViewModule).BaseActivityWebView;
return (
<BaseActivityWebView
hasFrameId={hasFrameId_117702}
getOrCreateFrameId={getOrCreateFrameId_117703}
releaseFrameId={releaseFrameId_117704}
hasInvalidUrlError={hasInvalidUrlError}
setHasInvalidUrlError={setHasInvalidUrlError}
hadInvalidUrlError={hadInvalidUrlError}
applicationId={applicationId}
{...value2}
/>
);
function _fun117701() { // fn#117701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:307, offset: 0x024be563, size: 83 bytes, params: 1, frame: 12
var value4;
if (!hadInvalidUrlError && hasInvalidUrlError && applicationId != null) {
value4 = environment.__proto__;
(importDefault(8069) /* metro dependency 8069: FramesNativeManager */).leaveFrame({applicationId: applicationId});
}
}
function FrameWebView(a0) { // fn#117700, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:126, offset: 0x024be47d, size: 230 bytes, params: 2, frame: 25
const applicationId = a0.applicationId;
const value = Object.create(null);
value.applicationId = 0;
const value2 = copyDataProperties({}, a0, value, undefined);
const {hasInvalidUrlError, setHasInvalidUrlError,
hadInvalidUrlError} = (require(10709) /* metro dependency 10709: EmbeddedActivityWebView */).useHasInvalidUrlErrorState();
env0_3.useEffect(_fun117701, [hasInvalidUrlError, hadInvalidUrlError, applicationId]);
const BaseActivityWebView = (require(10709) /* metro dependency 10709: EmbeddedActivityWebView */).BaseActivityWebView;
return (
<BaseActivityWebView
hasFrameId={hasFrameId}
getOrCreateFrameId={getOrCreateFrameId}
releaseFrameId={releaseFrameId}
hasInvalidUrlError={hasInvalidUrlError}
setHasInvalidUrlError={setHasInvalidUrlError}
hadInvalidUrlError={hadInvalidUrlError}
applicationId={applicationId}
{...value2}
/>
);
}
function FrameWebViewHasFrameId() { // fn#117702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:419, owner: FrameWebView.hasFrameId, offset: 0x024be5b6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (FramesNativeManager).hasFrameId();
}
function FrameWebViewGetOrCreateFrameId() { // fn#117703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:463, owner: FrameWebView.getOrCreateFrameId, offset: 0x024be5db, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (FramesNativeManager).getOrCreateFrameId();
}
function FrameWebViewReleaseFrameId() { // fn#117704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:511, owner: FrameWebView.releaseFrameId, offset: 0x024be600, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (FramesNativeManager).releaseFrameId();
}
function _fun117701() { // fn#117701, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:307, offset: 0x024be563, size: 83 bytes, params: 1, frame: 12
var value4;
if (!hadInvalidUrlError && hasInvalidUrlError && applicationId != null) {
value4 = environment.__proto__;
(importDefault(8069) /* metro dependency 8069: FramesNativeManager */).leaveFrame({applicationId: applicationId});
}
}
function FrameWebViewHasFrameId() { // fn#117702, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:419, owner: FrameWebView.hasFrameId, offset: 0x024be5b6, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8069) /* metro dependency 8069: FramesNativeManager */).hasFrameId();
}
function FrameWebViewGetOrCreateFrameId() { // fn#117703, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:463, owner: FrameWebView.getOrCreateFrameId, offset: 0x024be5db, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8069) /* metro dependency 8069: FramesNativeManager */).getOrCreateFrameId();
}
function FrameWebViewReleaseFrameId() { // fn#117704, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15596:511, owner: FrameWebView.releaseFrameId, offset: 0x024be600, size: 37 bytes, params: 1, frame: 11
const value = environment.__proto__;
return (importDefault(8069) /* metro dependency 8069: FramesNativeManager */).releaseFrameId();
}
global.__d(_fun117699, 15399, [31, 33, 10709, 8069,
2]) /* metro module 15399, dependencies: [31, 33, 10709, 8069, 2] */;
@@ -1,4 +1,20 @@
/* Metro module 8069; source: modules/frames/native/FramesNativeManager.tsx; dependencies: [6, 7, 15, 17, 102, 18, 5, 27, 8065, 661, 4237, 5269, 478, 8070, 8071, 1216, 8072, 4496, 1244, 1360, 8087, 694, 1239, 491, 10655, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
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 PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Module00102 from '../../../by-id/module-00102.js'; /* Metro dependency 102 */
import Dispatcher from '../../../Dispatcher.tsx'; /* Metro dependency 694 */
import FramesStore from '../FramesStore.tsx'; /* Metro dependency 8065 */
import FramesActionCreatorsNative from '../FramesActionCreators.native.tsx'; /* Metro dependency 8087 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as ConstantsModule2 from '../../activities/Constants.tsx'; /* Metro dependency 4237 */
import * as Module05269Module from '../../../by-id/module-05269.js'; /* Metro dependency 5269 */
function _fun64051(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64051, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:6, offset: 0x01b9a00a, size: 475 bytes, params: 8, frame: 21
var nativeEventEmitter;
const env0_0 = require;
@@ -7,18 +23,8 @@ function _fun64051(global, require, importDefault, importAll, module, exports, d
};
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(102) /* metro dependency 102 */;
const env0_8 = importDefault(18) /* metro dependency 18 */;
const env0_9 = importDefault(5) /* metro dependency 5 */;
const NativeEventEmitter = (require(27) /* metro dependency 27 */).NativeEventEmitter;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const env0_11 = (require(661) /* metro dependency 661: Constants */).ComponentActions;
const env0_12 = (require(4237) /* metro dependency 4237: Constants */).DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY;
const env0_13 = (require(5269) /* metro dependency 5269 */).getWebViewProxy('FRAME_WEB_VIEW_KEY');
const NativeEventEmitter = (ReactNativeModule).NativeEventEmitter;
const env0_13 = (Module05269Module).getWebViewProxy('FRAME_WEB_VIEW_KEY');
value = require(478) /* metro dependency 478: PlatformUtils */;
value = value.isAndroid();
if (value) {
@@ -28,327 +34,341 @@ function _fun64051(global, require, importDefault, importAll, module, exports, d
value = _fun64061(value);
value.displayName = 'FramesNativeManager';
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/native/FramesNativeManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/native/FramesNativeManager.tsx');
exports.default = value;
exports.FRAME_WEB_VIEW_KEY = 'FRAME_WEB_VIEW_KEY';
}
function _isNativeReflectConstruct_64052() { // fn#64052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:292, offset: 0x01b9a1e5, 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_64052_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _superPropGet_64055(a0, a1, a2, a3) { // fn#64055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:485, offset: 0x01b9a243, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
const binding = env0_7;
value = env0_6(1 & 3 ? value.prototype : value);
value = binding(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun64056 : value;
}
function _postMessageToWebView() { // fn#64058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:805, offset: 0x01b9a2a6, size: 48 bytes, params: 1, frame: 14
return env0_9(_fun64060).apply(this, arguments);
}
function _fun64061(a0) { // fn#64061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:996, offset: 0x01b9a353, size: 256 bytes, params: 2, frame: 16
const closure = FramesNativeManager;
env0_8(closure, a0);
return env0_4(closure, [{key: '_initialize', value: value_64063}, {key: '_terminate', value: value_64066},
{key: 'showRPCDisconnectErrorUI', value: function({code, message}) {
var defaultImport = importDefault(dependencyMap[17]);
var object = {};
object.title = require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.hbiAO6,
{code: code});
object.body = message;
defaultImport.show(object);
}}, {key: 'leaveFrame', value: value_64068}, {key: 'clearFrameState', value: value_64069}, {key: 'releaseWebView',
value: value_64070}, {key: 'releaseFrameId', value: function() {
var frameId = this.frameId;
this.frameId = undefined;
return frameId;
}}, {key: 'hasFrameId', value: function() {
return this.frameId != null;
}}, {key: 'getOrCreateFrameId', value: value_64073}]);
}
function* _fun64060(a0) { // fn#64060, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:870, offset: 0x01b9a2df, size: 116 bytes, params: 2, frame: 15
var binding;
var injectJavaScript;
var binding2;
var binding3;
var property;
var value3;
var value4;
var value5;
var value6;
var value7;
var error;
if (true) {
value = environment.__proto__.__proto__;
function _isNativeReflectConstruct_64052() { // fn#64052, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:292, offset: 0x01b9a1e5, 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 {
binding = env2_13;
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) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
injectJavaScript = binding.injectJavaScript;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
binding2 = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
property = binding3[14];
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
value3 = binding2(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
value4 = value3(a0);
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
value5 = Reflect.apply(injectJavaScript, binding, [value4]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
if (value7) {
return value6;
}
return (_isNativeReflectConstruct_64052_isNativeReflectConstruct = function() {
return !!result;
})();
}
}
function value_64063() { // fn#64063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1322, offset: 0x01b9a453, size: 166 bytes, params: 1, frame: 21
const _superPropGet_64055Binding = _superPropGet_64055;
const value3 = undefined;
_superPropGet_64055Binding(FramesNativeManager, '_initialize', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
this.lifecycleSubscription = env1_14 == null ? value3 : env1_14.addListener('onHostDestroy', _fun64064);
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const binding = env1_13;
this.scriptMessageSubscription = binding.addOnMessageListener(_fun64065);
return value3;
}
function value_64066() { // fn#64066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2202, offset: 0x01b9a6c1, size: 88 bytes, params: 1, frame: 17
const value = environment.__proto__;
_superPropGet_64055(FramesNativeManager, '_terminate', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
}
function value_64068({applicationId}) { // fn#64068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2571, offset: 0x01b9a790, size: 81 bytes, params: 2, frame: 13
this.releaseWebView();
let value = environment.__proto__;
value = require(1360) /* metro dependency 1360: GlobalUtils */;
if (value.isNotNullish(applicationId)) {
this.clearFrameState({applicationId: applicationId});
}
}
function value_64069({applicationId}) { // fn#64069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2719, offset: 0x01b9a7e1, size: 94 bytes, params: 2, frame: 16
const value = environment.__proto__;
(importDefault(8087) /* metro dependency 8087: FramesActionCreatorsNative */).stopFrame({applicationId: applicationId});
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({'type': 'FRAME_SET_ORIENTATION_LOCK_STATE',
'applicationId': null, 'lockState': null, 'pictureInPictureLockState': null, applicationId: applicationId});
}
function value_64070() { // fn#64070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2938, offset: 0x01b9a83f, size: 93 bytes, params: 1, frame: 16
var value2;
var ComponentDispatch;
const value = this.releaseFrameId();
if (value != null) {
value2 = environment.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: value});
env1_13.releaseWebView();
}
return value;
}
function value_64073() { // fn#64073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:3264, offset: 0x01b9a8c0, size: 60 bytes, params: 1, frame: 13
const frameId = this.frameId;
if (frameId != null) {
return frameId;
}
let value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
value = value.v4();
this.frameId = value;
return value;
}
function _fun64064() { // fn#64064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1523, offset: 0x01b9a4f9, size: 56 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = FramesStore.getConnectedFrame();
if (value != null) {
env0_0.leaveFrame({applicationId: value.applicationId});
}
}
function _fun64065(a0) { // fn#64065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1725, offset: 0x01b9a531, size: 400 bytes, params: 2, frame: 22
var url;
var r8;
var applicationId;
var JSON;
var parse;
var data;
var value2;
var value3;
var connectedFrame;
var value5;
var value6;
var value7;
var property;
var defaultImport;
var error;
var SyntaxError;
var value8;
var connectedFrame2;
var value10;
var binding;
var object2;
var defaultImport2;
var show;
const intl = require(dependencyMap[18]).intl;
var string;
const t = require(dependencyMap[18]).t;
var tYBBWz;
var BddRzS;
const value = undefined;
try {
JSON = global.JSON;
parse = JSON.parse;
data = a0.data;
value2 = Reflect.apply(parse, JSON, [data]);
value3 = environment.__proto__.__proto__;
connectedFrame = FramesStore.getConnectedFrame();
value5 = connectedFrame == null;
url = value5 ? value : connectedFrame.url;
value6 = typeof value2 === 'object';
if (value6) {
value7 = url != null;
r8 = value7;
} else {
r8 = value6;
function _superPropGet_64055(a0, a1, a2, a3) { // fn#64055, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:485, offset: 0x01b9a243, size: 99 bytes, params: 5, frame: 18
let value = a0;
const env0_0 = a2;
value = Module00017(1 & 3 ? value.prototype : value);
value = Module00102(value, a1, a2);
return 2 & 3 ? typeof value !== 'function' ? value : _fun64056 : value;
function _fun64056(a0) { // fn#64056, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:584, offset: 0x00c62408, size: 27 bytes, params: 2, frame: 13
return env0_1.apply(importDefault, a0);
}
if (r8) {
property = dependencyMap[16];
defaultImport = importDefault(property);
defaultImport.handleMessage(value2, url, postMessageToWebView);
}
} catch (error) {
SyntaxError = global.SyntaxError;
if (!(error instanceof SyntaxError)) {
throw error;
}
data = a0.data;
value8 = environment.__proto__.__proto__;
if (data === DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY) {
connectedFrame2 = FramesStore.getConnectedFrame();
applicationId = connectedFrame2 == null ? value : connectedFrame2.applicationId;
if (applicationId != null) {
value10 = environment;
binding = env0_0;
binding.leaveFrame({applicationId: applicationId});
defaultImport2 = importDefault(dependencyMap[17]);
show = defaultImport2.show;
object2 = {};
string = intl.string;
tYBBWz = t.tYBBWz;
object2.body = Reflect.apply(string, intl, [tYBBWz]);
string = intl.string;
BddRzS = t.BddRzS;
object2.confirmText = Reflect.apply(string, intl, [BddRzS]);
Reflect.apply(show, defaultImport2, [object2]);
}
function _postMessageToWebView() { // fn#64058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:805, offset: 0x01b9a2a6, size: 48 bytes, params: 1, frame: 14
return Module00005(_fun64060).apply(this, arguments);
function* _fun64060(a0) { // fn#64060, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:870, offset: 0x01b9a2df, size: 116 bytes, params: 2, frame: 15
var binding;
var injectJavaScript;
var binding2;
var binding3;
var property;
var value3;
var value4;
var value5;
var value6;
var value7;
var error;
if (true) {
value = environment.__proto__.__proto__;
try {
binding = env2_13;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
injectJavaScript = binding.injectJavaScript;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
binding2 = env2_1;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
binding3 = env2_2;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
property = binding3[14];
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
value3 = binding2(property);
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
value4 = value3(a0);
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
try {
value5 = Reflect.apply(injectJavaScript, binding, [value4]);
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
yield value5;
try {
value6 = undefined;
value7 = false;
} catch (error) {
binding = env2_1;
value = binding(env2_2[15]);
value.captureException(error);
return undefined;
}
if (value7) {
return value6;
}
}
}
}
return value;
function _fun64061(a0) { // fn#64061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:996, offset: 0x01b9a353, size: 256 bytes, params: 2, frame: 16
const FramesNativeManager2 = FramesNativeManager;
Inherits(FramesNativeManager2, a0);
return CreateClass(FramesNativeManager2, [{key: '_initialize', value: value_64063}, {key: '_terminate',
value: value_64066}, {key: 'showRPCDisconnectErrorUI', value: function({code, message}) {
var defaultImport = importDefault(dependencyMap[17]);
var object = {};
object.title = require(dependencyMap[18]).intl.formatToPlainString(require(dependencyMap[18]).t.hbiAO6,
{code: code});
object.body = message;
defaultImport.show(object);
}}, {key: 'leaveFrame', value: value_64068}, {key: 'clearFrameState', value: value_64069}, {key: 'releaseWebView',
value: value_64070}, {key: 'releaseFrameId', value: function() {
var frameId = this.frameId;
this.frameId = undefined;
return frameId;
}}, {key: 'hasFrameId', value: function() {
return this.frameId != null;
}}, {key: 'getOrCreateFrameId', value: value_64073}]);
function FramesNativeManager() { // fn#64062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1008, offset: 0x010e918b, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, FramesNativeManager);
const value3 = env1_6(FramesNativeManager);
return env1_5(this, _isNativeReflectConstruct_64052() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_64063() { // fn#64063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1322, offset: 0x01b9a453, size: 166 bytes, params: 1, frame: 21
const _superPropGet_64055Binding = _superPropGet_64055;
const value3 = undefined;
_superPropGet_64055Binding(FramesNativeManager, '_initialize', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
this.lifecycleSubscription = env1_14 == null ? value3 : env1_14.addListener('onHostDestroy', _fun64064);
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
const binding = env1_13;
this.scriptMessageSubscription = binding.addOnMessageListener(_fun64065);
return value3;
function _fun64064() { // fn#64064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1523, offset: 0x01b9a4f9, size: 56 bytes, params: 1, frame: 12
let value = environment.__proto__.__proto__;
value = FramesStore.getConnectedFrame();
if (value != null) {
env0_0.leaveFrame({applicationId: value.applicationId});
}
}
function _fun64065(a0) { // fn#64065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:1725, offset: 0x01b9a531, size: 400 bytes, params: 2, frame: 22
var url;
var r8;
var applicationId;
var JSON;
var parse;
var data;
var value2;
var value3;
var connectedFrame;
var value5;
var value6;
var value7;
var property;
var defaultImport;
var error;
var SyntaxError;
var value8;
var connectedFrame2;
var value10;
var binding;
var object;
var defaultImport2;
var show;
const intl = require(dependencyMap[18]).intl;
var string;
const t = require(dependencyMap[18]).t;
var tYBBWz;
var BddRzS;
const value = undefined;
try {
JSON = global.JSON;
parse = JSON.parse;
data = a0.data;
value2 = Reflect.apply(parse, JSON, [data]);
value3 = environment.__proto__.__proto__;
connectedFrame = FramesStore.getConnectedFrame();
value5 = connectedFrame == null;
url = value5 ? value : connectedFrame.url;
value6 = typeof value2 === 'object';
if (value6) {
value7 = url != null;
r8 = value7;
} else {
r8 = value6;
}
if (r8) {
property = dependencyMap[16];
defaultImport = importDefault(property);
defaultImport.handleMessage(value2, url, postMessageToWebView);
}
} catch (error) {
SyntaxError = global.SyntaxError;
if (!(error instanceof SyntaxError)) {
throw error;
}
data = a0.data;
value8 = environment.__proto__.__proto__;
if (data === DISALLOWED_NAVIGATION_ERROR_CLOSE_ACTIVITY) {
connectedFrame2 = FramesStore.getConnectedFrame();
applicationId = connectedFrame2 == null ? value : connectedFrame2.applicationId;
if (applicationId != null) {
value10 = environment;
binding = env0_0;
binding.leaveFrame({applicationId: applicationId});
defaultImport2 = importDefault(dependencyMap[17]);
show = defaultImport2.show;
object = {};
string = intl.string;
tYBBWz = t.tYBBWz;
object.body = Reflect.apply(string, intl, [tYBBWz]);
string = intl.string;
BddRzS = t.BddRzS;
object.confirmText = Reflect.apply(string, intl, [BddRzS]);
Reflect.apply(show, defaultImport2, [object]);
}
}
}
return value;
}
}
function value_64066() { // fn#64066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2202, offset: 0x01b9a6c1, size: 88 bytes, params: 1, frame: 17
const value = environment.__proto__;
_superPropGet_64055(FramesNativeManager, '_terminate', this, 3)([]);
const lifecycleSubscription = this.lifecycleSubscription;
if (lifecycleSubscription != null) {
lifecycleSubscription.remove();
}
const scriptMessageSubscription = this.scriptMessageSubscription;
if (scriptMessageSubscription != null) {
scriptMessageSubscription.remove();
}
}
function value_64068({applicationId}) { // fn#64068, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2571, offset: 0x01b9a790, size: 81 bytes, params: 2, frame: 13
this.releaseWebView();
let value = environment.__proto__;
value = require(1360) /* metro dependency 1360: GlobalUtils */;
if (value.isNotNullish(applicationId)) {
this.clearFrameState({applicationId: applicationId});
}
}
function value_64069({applicationId}) { // fn#64069, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2719, offset: 0x01b9a7e1, size: 94 bytes, params: 2, frame: 16
const value = environment.__proto__;
(FramesActionCreatorsNative).stopFrame({applicationId: applicationId});
(Dispatcher).dispatch({'type': 'FRAME_SET_ORIENTATION_LOCK_STATE',
'applicationId': null, 'lockState': null, 'pictureInPictureLockState': null, applicationId: applicationId});
}
function value_64070() { // fn#64070, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:2938, offset: 0x01b9a83f, size: 93 bytes, params: 1, frame: 16
var value2;
var ComponentDispatch;
const value = this.releaseFrameId();
if (value != null) {
value2 = environment.__proto__;
ComponentDispatch = (require(1239) /* metro dependency 1239: ComponentDispatchUtils */).ComponentDispatch;
ComponentDispatch.dispatch(ComponentActions.IFRAME_UNMOUNT, {id: value});
env1_13.releaseWebView();
}
return value;
}
function value_64073() { // fn#64073, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8247:3264, offset: 0x01b9a8c0, size: 60 bytes, params: 1, frame: 13
const frameId = this.frameId;
if (frameId != null) {
return frameId;
}
let value = environment.__proto__;
value = require(491) /* metro dependency 491 */;
value = value.v4();
this.frameId = value;
return value;
}
}
}
global.__d(_fun64051, 8069, [6, 7, 15, 17, 102, 18, 5, 27, 8065, 661, 4237, 5269, 478, 8070, 8071, 1216, 8072, 4496,
1244, 1360, 8087, 694, 1239, 491, 10655,
2]) /* metro module 8069, dependencies: [6, 7, 15, 17, 102, 18, 5, 27, 8065, 661, 4237, 5269, 478, 8070, 8071, 1216, 8072, 4496, 1244, 1360, 8087, 694, 1239, 491, 10655, 2] */;
@@ -1,25 +1,28 @@
/* Metro module 15398; source: modules/frames/native/getDefaultOrientationLockState.tsx; dependencies: [10703, 694, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun117697(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117697, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15595:6, offset: 0x024be314, size: 103 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/native/getDefaultOrientationLockState.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/native/getDefaultOrientationLockState.tsx');
exports.setOrientationLockState = setOrientationLockState_117698;
function setOrientationLockState_117698(a0, a1) { // fn#117698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15595:208, offset: 0x024be37b, size: 116 bytes, params: 3, frame: 14
var r3;
let value = a1;
if (value != null) {
r3 = value;
} else {
value = require(10703) /* metro dependency 10703: getDefaultOrientationLockState */;
value = value.getDefaultOrientationLockState(a0);
r3 = value;
}
if (r3 != null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRAME_SET_ORIENTATION_LOCK_STATE',
applicationId: a0.id, lockState: r3});
}
}
}
function setOrientationLockState_117698(a0, a1) { // fn#117698, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15595:208, offset: 0x024be37b, size: 116 bytes, params: 3, frame: 14
var r3;
let value = a1;
if (value != null) {
r3 = value;
} else {
value = require(10703) /* metro dependency 10703: getDefaultOrientationLockState */;
value = value.getDefaultOrientationLockState(a0);
r3 = value;
}
if (r3 != null) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'FRAME_SET_ORIENTATION_LOCK_STATE',
applicationId: a0.id, lockState: r3});
}
}
global.__d(_fun117697, 15398, [10703, 694, 2]) /* metro module 15398, dependencies: [10703, 694, 2] */;
@@ -1,33 +1,38 @@
/* Metro module 15392; source: modules/frames/panel/native/FramePanelContainer.tsx; dependencies: [31, 8065, 33, 566, 15393, 15395, 2] */
import FramesStore from '../../FramesStore.tsx'; /* Metro dependency 8065 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
function _fun117672(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117672, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15589:6, offset: 0x024bd6a3, size: 164 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(FramePanelContainer);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelContainer.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelContainer.tsx');
exports.default = value;
}
function FramePanelContainer() { // fn#117673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15589:144, offset: 0x024bd747, size: 120 bytes, params: 1, frame: 17
var r0;
var value;
const useStateFromStores = FluxModule.useStateFromStores;
if (Reflect.apply(useStateFromStores, FluxModule, [[FramesStore], _fun117674])) {
value = importDefault(15393) /* metro dependency 15393: FramePanelController */;
value = ((Component) => <Component>{((Component) => <Component />)(importDefault(15395) /* metro dependency 15395: FramePanelUI */)}</Component>)(value);
r0 = value;
} else {
r0 = null;
}
return r0;
function _fun117674() { // fn#117674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15589:214, offset: 0x024bd7bf, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return FramesStore.getConnectedFrame() != null;
}
function FramePanelContainer() { // fn#117673, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15589:144, offset: 0x024bd747, size: 120 bytes, params: 1, frame: 17
var r0;
var value;
const fluxModule = require(566) /* metro dependency 566: flux */;
const useStateFromStores = fluxModule.useStateFromStores;
if (Reflect.apply(useStateFromStores, fluxModule, [[FramesStore], _fun117674])) {
value = importDefault(15393) /* metro dependency 15393: FramePanelController */;
value = ((Component) => <Component>{((Component) => <Component />)(importDefault(15395) /* metro dependency 15395: FramePanelUI */)}</Component>)(value);
r0 = value;
} else {
r0 = null;
}
return r0;
}
function _fun117674() { // fn#117674, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15589:214, offset: 0x024bd7bf, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return FramesStore.getConnectedFrame() != null;
}
global.__d(_fun117672, 15392, [31, 8065, 33, 566, 15393, 15395,
2]) /* metro module 15392, dependencies: [31, 8065, 33, 566, 15393, 15395, 2] */;
@@ -1,46 +1,56 @@
/* Metro module 15393; source: modules/frames/panel/native/FramePanelController.tsx; dependencies: [31, 4234, 8065, 33, 566, 15360, 15394, 8087, 2] */
import ApplicationStore from '../../../applications/ApplicationStore.tsx'; /* Metro dependency 4234 */
import FramesStore from '../../FramesStore.tsx'; /* Metro dependency 8065 */
import FramesActionCreatorsNative from '../../FramesActionCreators.native.tsx'; /* Metro dependency 8087 */
import FramePanelStateContext from './FramePanelStateContext.tsx'; /* Metro dependency 15394 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ActivityPanelControllerModule from '../../../activities/panel/native/ActivityPanelController.tsx'; /* Metro dependency 15360 */
function _fun117675(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117675, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15590:6, offset: 0x024bd7d8, size: 170 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const applicationStore = importDefault(4234) /* metro dependency 4234: ApplicationStore */;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const env0_5 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelController.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelController.tsx');
exports.default = FramePanelController;
function FramePanelController({children}) { // fn#117676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15590:234, offset: 0x024bd882, size: 211 bytes, params: 2, frame: 23
const {mode, hasConnectedActivity, connectedActivityAppId, currentApp,
orientationLockStateForApp} = (FluxModule).useStateFromStoresObject([FramesStore,
ApplicationStore], _fun117677, []);
const BaseActivityPanelController = (ActivityPanelControllerModule).BaseActivityPanelController;
return (
<BaseActivityPanelController
context={FramePanelStateContext}
orientationLockStateForApp={orientationLockStateForApp}
mode={mode}
hasConnectedActivity={hasConnectedActivity}
connectedActivityAppId={connectedActivityAppId}
currentApp={currentApp}
updateActivityPanelMode={(FramesActionCreatorsNative).updateFramePanelMode}
>
{children}
</BaseActivityPanelController>
);
function _fun117677() { // fn#117677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15590:324, offset: 0x024bd955, size: 123 bytes, params: 1, frame: 16
const value = environment.__proto__;
const framesStoreBinding = FramesStore;
const activityPanelMode = framesStoreBinding.getActivityPanelMode();
const connectedFrame = framesStoreBinding.getConnectedFrame();
const value4 = undefined;
const applicationId = connectedFrame == null ? value4 : connectedFrame.applicationId;
const object = {mode: activityPanelMode, hasConnectedActivity: connectedFrame != null,
connectedActivityAppId: applicationId};
object.currentApp = applicationId != null ? ApplicationStore.getApplication(applicationId) : value4;
object.orientationLockStateForApp = applicationId == null ? value4 : FramesStore.getOrientationLockStateForApp(applicationId);
return object;
}
}
}
function FramePanelController({children}) { // fn#117676, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15590:234, offset: 0x024bd882, size: 211 bytes, params: 2, frame: 23
const {mode, hasConnectedActivity, connectedActivityAppId, currentApp,
orientationLockStateForApp} = (require(566) /* metro dependency 566: flux */).useStateFromStoresObject([FramesStore,
ApplicationStore], _fun117677, []);
const BaseActivityPanelController = (require(15360) /* metro dependency 15360: ActivityPanelController */).BaseActivityPanelController;
return (
<BaseActivityPanelController
context={importDefault(15394) /* metro dependency 15394: FramePanelStateContext */}
orientationLockStateForApp={orientationLockStateForApp}
mode={mode}
hasConnectedActivity={hasConnectedActivity}
connectedActivityAppId={connectedActivityAppId}
currentApp={currentApp}
updateActivityPanelMode={(importDefault(8087) /* metro dependency 8087: FramesActionCreatorsNative */).updateFramePanelMode}
>
{children}
</BaseActivityPanelController>
);
}
function _fun117677() { // fn#117677, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15590:324, offset: 0x024bd955, size: 123 bytes, params: 1, frame: 16
const value = environment.__proto__;
const activityPanelMode = FramesStore.getActivityPanelMode();
const connectedFrame = FramesStore.getConnectedFrame();
const value4 = undefined;
const applicationId = connectedFrame == null ? value4 : connectedFrame.applicationId;
const object2 = {mode: activityPanelMode, hasConnectedActivity: connectedFrame != null,
connectedActivityAppId: applicationId};
object2.currentApp = applicationId != null ? ApplicationStore.getApplication(applicationId) : value4;
object2.orientationLockStateForApp = applicationId == null ? value4 : FramesStore.getOrientationLockStateForApp(applicationId);
return object2;
}
global.__d(_fun117675, 15393, [31, 4234, 8065, 33, 566, 15360, 15394, 8087,
2]) /* metro module 15393, dependencies: [31, 4234, 8065, 33, 566, 15360, 15394, 8087, 2] */;
@@ -1,61 +1,68 @@
/* Metro module 15400; source: modules/frames/panel/native/FramePanelFocusedView.tsx; dependencies: [31, 8065, 8066, 8044, 33, 566, 15376, 15394, 15401, 8087, 15397, 2] */
import FramesStore from '../../FramesStore.tsx'; /* Metro dependency 8065 */
import FramePanelStateContext from './FramePanelStateContext.tsx'; /* Metro dependency 15394 */
import FrameView from '../../native/FrameView.tsx'; /* Metro dependency 15397 */
import FramePanelHeader from './FramePanelHeader.tsx'; /* Metro dependency 15401 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as ActivityPanelConstantsModule from '../../../activities/panel/ActivityPanelConstants.tsx'; /* Metro dependency 8044 */
import * as FramesConstantsModule from '../../FramesConstants.tsx'; /* Metro dependency 8066 */
import * as ActivityPanelFocusedViewModule from '../../../activities/panel/native/ActivityPanelFocusedView.tsx'; /* Metro dependency 15376 */
function _fun117705(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117705, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:6, offset: 0x024be625, size: 212 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const env0_5 = (require(8066) /* metro dependency 8066: FramesConstants */).FrameLayoutModes;
const env0_6 = (require(8044) /* metro dependency 8044: ActivityPanelConstants */).ActivityPanelModes;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(_fun117706);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelFocusedView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelFocusedView.tsx');
exports.default = value;
function _fun117706({transitionState, transitionCleanUp}) { // fn#117706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:196, offset: 0x024be6f9, size: 257 bytes, params: 2, frame: 21
const value2 = (FluxModule).useStateFromStores([FramesStore], _fun117707);
const useBaseActivityPanelFocusedView = ActivityPanelFocusedViewModule.useBaseActivityPanelFocusedView;
object = {};
object.context = importDefault(15394) /* metro dependency 15394: FramePanelStateContext */;
const value3 = Reflect.apply(useBaseActivityPanelFocusedView, ActivityPanelFocusedViewModule, [object]);
const portraitSafeAreasConfig = value3.portraitSafeAreasConfig;
const portraitSafeAreasConfig2 = portraitSafeAreasConfig;
const landscapeSafeAreasConfig = value3.landscapeSafeAreasConfig;
const binding = portraitSafeAreasConfig2;
return binding.useMemo(_fun117710, [value2, binding.useMemo(_fun117708, []), landscapeSafeAreasConfig,
portraitSafeAreasConfig, transitionCleanUp, transitionState, binding.useCallback(function() {
importDefault(dependencyMap[9]).updateFramePanelMode(ActivityPanelModes.PIP);
}, [])]);
function _fun117707() { // fn#117707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:284, offset: 0x024be7fa, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return FramesStore.getConnectedFrame() != null;
}
function _fun117708() { // fn#117708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:449, offset: 0x024be813, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(FramePanelHeader);
}
function _fun117710() { // fn#117710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:554, offset: 0x024be86a, size: 169 bytes, params: 1, frame: 18
const BaseActivityPanelFocusedView = (ActivityPanelFocusedViewModule).BaseActivityPanelFocusedView;
const baseActivityPanelFocusedViewProps2 = {transitionState: transitionState, transitionCleanUp: transitionCleanUp,
updateActivityPanelModeToPIP: ActivityPanelConstantsModule.ActivityPanelModes, hasActivity: env0_2,
context: FramePanelStateContext, header: FramesConstantsModule.FrameLayoutModes};
const FOCUSED = FrameLayoutModes.FOCUSED;
return (
<BaseActivityPanelFocusedView {...baseActivityPanelFocusedViewProps2}>
<FrameView
layoutMode={FOCUSED}
portraitSafeAreasConfig={portraitSafeAreasConfig}
landscapeSafeAreasConfig={landscapeSafeAreasConfig}
/>
</BaseActivityPanelFocusedView>
);
}
}
}
function _fun117706({transitionState, transitionCleanUp}) { // fn#117706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:196, offset: 0x024be6f9, size: 257 bytes, params: 2, frame: 21
var object2;
const value2 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], _fun117707);
const activityPanelFocusedViewModule = require(15376) /* metro dependency 15376: ActivityPanelFocusedView */;
const useBaseActivityPanelFocusedView = activityPanelFocusedViewModule.useBaseActivityPanelFocusedView;
object2 = {};
object2.context = importDefault(15394) /* metro dependency 15394: FramePanelStateContext */;
const value3 = Reflect.apply(useBaseActivityPanelFocusedView, activityPanelFocusedViewModule, [object2]);
const portraitSafeAreasConfig = value3.portraitSafeAreasConfig;
const env0_3 = portraitSafeAreasConfig;
const landscapeSafeAreasConfig = value3.landscapeSafeAreasConfig;
const binding = env0_3;
return binding.useMemo(_fun117710, [value2, binding.useMemo(_fun117708, []), landscapeSafeAreasConfig,
portraitSafeAreasConfig, transitionCleanUp, transitionState, binding.useCallback(function() {
importDefault(dependencyMap[9]).updateFramePanelMode(ActivityPanelModes.PIP);
}, [])]);
}
function _fun117707() { // fn#117707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:284, offset: 0x024be7fa, size: 25 bytes, params: 1, frame: 9
const value = environment.__proto__;
return FramesStore.getConnectedFrame() != null;
}
function _fun117708() { // fn#117708, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:449, offset: 0x024be813, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(importDefault(15401) /* metro dependency 15401: FramePanelHeader */);
}
function _fun117710() { // fn#117710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15597:554, offset: 0x024be86a, size: 169 bytes, params: 1, frame: 18
const BaseActivityPanelFocusedView = (require(15376) /* metro dependency 15376: ActivityPanelFocusedView */).BaseActivityPanelFocusedView;
const baseActivityPanelFocusedViewProps2 = {transitionState: transitionState, transitionCleanUp: transitionCleanUp,
updateActivityPanelModeToPIP: env0_6, hasActivity: env0_2,
context: importDefault(15394) /* metro dependency 15394: FramePanelStateContext */, header: env0_5};
const FrameView = importDefault(15397) /* metro dependency 15397: FrameView */;
const FOCUSED = FrameLayoutModes.FOCUSED;
return (
<BaseActivityPanelFocusedView {...baseActivityPanelFocusedViewProps2}>
<FrameView
layoutMode={FOCUSED}
portraitSafeAreasConfig={portraitSafeAreasConfig}
landscapeSafeAreasConfig={landscapeSafeAreasConfig}
/>
</BaseActivityPanelFocusedView>
);
}
global.__d(_fun117705, 15400, [31, 8065, 8066, 8044, 33, 566, 15376, 15394, 15401, 8087, 15397,
2]) /* metro module 15400, dependencies: [31, 8065, 8066, 8044, 33, 566, 15376, 15394, 15401, 8087, 15397, 2] */;
@@ -1,70 +1,77 @@
/* Metro module 15401; source: modules/frames/panel/native/FramePanelHeader.tsx; dependencies: [57, 31, 27, 8065, 33, 566, 6777, 15377, 15379, 15383, 15384, 15402, 15394, 2] */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import UseGetOrFetchApplications from '../../../applications/useGetOrFetchApplications.tsx'; /* Metro dependency 6777 */
import FramesStore from '../../FramesStore.tsx'; /* Metro dependency 8065 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ActivityPanelHeaderModule from '../../../activities/panel/native/ActivityPanelHeader.tsx'; /* Metro dependency 15377 */
function _fun117711(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15598:6, offset: 0x024be913, size: 231 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 */;
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const value2 = require(33) /* metro dependency 33 */;
const env0_6 = value2.jsx;
const env0_7 = value2.jsxs;
let value = ReactModule;
const env0_8 = value.memo(FramePanelHeaderContentInner);
value = value.memo(_fun117714);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelHeader.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelHeader.tsx');
exports.default = value;
}
function FramePanelHeaderContentInner({landscape, setMode, pipState, wrapperOffset}) { // fn#117712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15598:182, offset: 0x024be9fa, size: 615 bytes, params: 2, frame: 29
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], function() {
return FramesStore.getConnectedFrame();
}, []);
const applicationId = value3?.applicationId;
const property = env0_3((importDefault(6777) /* metro dependency 6777: useGetOrFetchApplications */)([applicationId]),
1)[0];
const {gesture, headerWrapperStyles,
headerStyles} = (require(15377) /* metro dependency 15377: ActivityPanelHeader */).useBaseActivityPanelHeaderContent({landscape: landscape,
setMode: setMode, wrapperOffset: wrapperOffset, pipState: pipState});
const value8 = (require(15377) /* metro dependency 15377: ActivityPanelHeader */).useMinimizeAndQuestButtonContainerStyles();
if (value3 == null) {
return null;
function FramePanelHeaderContentInner({landscape, setMode, pipState, wrapperOffset}) { // fn#117712, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15598:182, offset: 0x024be9fa, size: 615 bytes, params: 2, frame: 29
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], function() {
return FramesStore.getConnectedFrame();
}, []);
const applicationId = value3?.applicationId;
const property = Module00057((UseGetOrFetchApplications)([applicationId]),
1)[0];
const {gesture, headerWrapperStyles,
headerStyles} = (ActivityPanelHeaderModule).useBaseActivityPanelHeaderContent({landscape: landscape,
setMode: setMode, wrapperOffset: wrapperOffset, pipState: pipState});
const value8 = (ActivityPanelHeaderModule).useMinimizeAndQuestButtonContainerStyles();
if (value3 == null) {
return null;
}
const value9 = ((Component) => <Component applicationId={property?.id} />)(importDefault(15379) /* metro dependency 15379: InviteActivityButton */);
const BaseActivityPanelContent = (ActivityPanelHeaderModule).BaseActivityPanelContent;
const items3 = [value8.buttonContainer];
items3[1] = landscape ? value8.buttonContainerLandscape : undefined;
const items2 = [
((Component) => <Component activityName={landscape || property == null ? undefined : property.name} setMode={setMode} />)(importDefault(15383) /* metro dependency 15383: MinimizeActivityButton */),
];
items2[1] = applicationId != null && ((Component) => <Component applicationId={applicationId} />)(importDefault(15384) /* metro dependency 15384: QuestActivityButton */);
items2[2] = landscape ? value9 : null;
return (
<BaseActivityPanelContent
hasConnectedActivity={value3 != null}
gesture={gesture}
headerWrapperStyles={headerWrapperStyles}
headerStyles={headerStyles}
landscape={landscape}
>
<View style={items3}>
{items2}
</View>
{landscape ? null : value9}
{((Component) => <Component frame={value3} setMode={setMode} />)(importDefault(15402) /* metro dependency 15402: LeaveActivityButton */)}
</BaseActivityPanelContent>
);
}
const value9 = ((Component) => <Component applicationId={property?.id} />)(importDefault(15379) /* metro dependency 15379: InviteActivityButton */);
const BaseActivityPanelContent = (require(15377) /* metro dependency 15377: ActivityPanelHeader */).BaseActivityPanelContent;
const items3 = [value8.buttonContainer];
items3[1] = landscape ? value8.buttonContainerLandscape : undefined;
const items2 = [((Component) => <Component activityName={landscape || property == null ? undefined : property.name} setMode={setMode} />)(importDefault(15383) /* metro dependency 15383: MinimizeActivityButton */)];
items2[1] = applicationId != null && ((Component) => <Component applicationId={applicationId} />)(importDefault(15384) /* metro dependency 15384: QuestActivityButton */);
items2[2] = landscape ? value9 : null;
return (
<BaseActivityPanelContent
hasConnectedActivity={value3 != null}
gesture={gesture}
headerWrapperStyles={headerWrapperStyles}
headerStyles={headerStyles}
landscape={landscape}
>
<View style={items3}>
{items2}
function _fun117714() { // fn#117714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15598:1066, offset: 0x024bec61, size: 152 bytes, params: 1, frame: 19
const useBaseActivityPanelHeader = ActivityPanelHeaderModule.useBaseActivityPanelHeader;
const object = {};
object.context = importDefault(15394) /* metro dependency 15394: FramePanelStateContext */;
const {headerStyles, wrapperDimensions, setMode, wrapperOffset,
pipState} = Reflect.apply(useBaseActivityPanelHeader, ActivityPanelHeaderModule, [object]);
return (
<View style={headerStyles}>
{((Component) => <Component landscape={wrapperDimensions.isWindowLandscape} setMode={setMode} wrapperOffset={wrapperOffset} pipState={pipState} />)(env0_8)}
</View>
{landscape ? null : value9}
{((Component) => <Component frame={value3} setMode={setMode} />)(importDefault(15402) /* metro dependency 15402: LeaveActivityButton */)}
</BaseActivityPanelContent>
);
}
);
}
function _fun117714() { // fn#117714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15598:1066, offset: 0x024bec61, size: 152 bytes, params: 1, frame: 19
const activityPanelHeaderModule = require(15377) /* metro dependency 15377: ActivityPanelHeader */;
const useBaseActivityPanelHeader = activityPanelHeaderModule.useBaseActivityPanelHeader;
const object2 = {};
object2.context = importDefault(15394) /* metro dependency 15394: FramePanelStateContext */;
const {headerStyles, wrapperDimensions, setMode, wrapperOffset,
pipState} = Reflect.apply(useBaseActivityPanelHeader, activityPanelHeaderModule, [object2]);
return (
<View style={headerStyles}>
{((Component) => <Component landscape={wrapperDimensions.isWindowLandscape} setMode={setMode} wrapperOffset={wrapperOffset} pipState={pipState} />)(env0_8)}
</View>
);
}
global.__d(_fun117711, 15401, [57, 31, 27, 8065, 33, 566, 6777, 15377, 15379, 15383, 15384, 15402, 15394,
2]) /* metro module 15401, dependencies: [57, 31, 27, 8065, 33, 566, 6777, 15377, 15379, 15383, 15384, 15402, 15394, 2] */;
@@ -1,51 +1,58 @@
/* Metro module 15396; source: modules/frames/panel/native/FramePanelPIPView.tsx; dependencies: [31, 8065, 8066, 15371, 33, 566, 15370, 15394, 15397, 2] */
import FramesStore from '../../FramesStore.tsx'; /* Metro dependency 8065 */
import FramePanelStateContext from './FramePanelStateContext.tsx'; /* Metro dependency 15394 */
import FrameView from '../../native/FrameView.tsx'; /* Metro dependency 15397 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FramesConstantsModule from '../../FramesConstants.tsx'; /* Metro dependency 8066 */
import * as ActivityPanelPIPViewModule from '../../../activities/panel/native/ActivityPanelPIPView.tsx'; /* Metro dependency 15370 */
import * as ActivityPanelNativeConstantsModule from '../../../activities/panel/native/ActivityPanelNativeConstants.tsx'; /* Metro dependency 15371 */
function _fun117684(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:6, offset: 0x024bdbcb, size: 212 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const framesStore = importDefault(8065) /* metro dependency 8065: FramesStore */;
const env0_5 = (require(8066) /* metro dependency 8066: FramesConstants */).FrameLayoutModes;
const env0_6 = (require(15371) /* metro dependency 15371: ActivityPanelNativeConstants */).DEFAULT_PORTRAIT_LETTERBOX_CONFIG;
const env0_7 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(_fun117685);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelPIPView.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelPIPView.tsx');
exports.default = value;
function _fun117685({transitionState, transitionCleanUp}) { // fn#117685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:211, offset: 0x024bdc9f, size: 247 bytes, params: 2, frame: 21
let value = undefined;
const connectedFrame = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore],
function() {
return FramesStore.getConnectedFrame();
});
const env0_3 = connectedFrame == null ? value : connectedFrame.applicationId;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], _fun117687);
value = require(15370) /* metro dependency 15370: ActivityPanelPIPView */;
const useBaseActivityPanelPIPView = value.useBaseActivityPanelPIPView;
return env0_3.useMemo(_fun117688, [connectedFrame, Reflect.apply(useBaseActivityPanelPIPView, value,
[]).landscapeSafeAreasConfig, value3, transitionCleanUp, transitionState]);
function _fun117687() { // fn#117687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:394, offset: 0x024bdda9, size: 42 bytes, params: 1, frame: 12
return applicationId == null ? undefined : FramesStore.getPipOrientationLockStateForApp(applicationId);
}
function _fun117688() { // fn#117688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:536, offset: 0x024bddd3, size: 167 bytes, params: 1, frame: 18
const BaseActivityPanelPIPView = (ActivityPanelPIPViewModule).BaseActivityPanelPIPView;
const baseActivityPanelPIPViewProps2 = {transitionState: transitionState, transitionCleanUp: transitionCleanUp,
pipOrientationLockState: env0_4, hasActivity: connectedFrame != null,
context: FramePanelStateContext};
const PIP = FrameLayoutModes.PIP;
return (
<BaseActivityPanelPIPView {...baseActivityPanelPIPViewProps2}>
<FrameView
layoutMode={PIP}
portraitSafeAreasConfig={DEFAULT_PORTRAIT_LETTERBOX_CONFIG}
landscapeSafeAreasConfig={landscapeSafeAreasConfig}
/>
</BaseActivityPanelPIPView>
);
}
}
}
function _fun117685({transitionState, transitionCleanUp}) { // fn#117685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:211, offset: 0x024bdc9f, size: 247 bytes, params: 2, frame: 21
let value = undefined;
const connectedFrame = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore],
function() {
return FramesStore.getConnectedFrame();
});
const env0_3 = connectedFrame == null ? value : connectedFrame.applicationId;
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([FramesStore], _fun117687);
value = require(15370) /* metro dependency 15370: ActivityPanelPIPView */;
const useBaseActivityPanelPIPView = value.useBaseActivityPanelPIPView;
return env0_3.useMemo(_fun117688, [connectedFrame, Reflect.apply(useBaseActivityPanelPIPView, value,
[]).landscapeSafeAreasConfig, value3, transitionCleanUp, transitionState]);
}
function _fun117687() { // fn#117687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:394, offset: 0x024bdda9, size: 42 bytes, params: 1, frame: 12
return applicationId == null ? undefined : FramesStore.getPipOrientationLockStateForApp(applicationId);
}
function _fun117688() { // fn#117688, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15593:536, offset: 0x024bddd3, size: 167 bytes, params: 1, frame: 18
const BaseActivityPanelPIPView = (require(15370) /* metro dependency 15370: ActivityPanelPIPView */).BaseActivityPanelPIPView;
const baseActivityPanelPIPViewProps2 = {transitionState: transitionState, transitionCleanUp: transitionCleanUp,
pipOrientationLockState: env0_4, hasActivity: connectedFrame != null,
context: importDefault(15394) /* metro dependency 15394: FramePanelStateContext */};
const FrameView = importDefault(15397) /* metro dependency 15397: FrameView */;
const PIP = FrameLayoutModes.PIP;
return (
<BaseActivityPanelPIPView {...baseActivityPanelPIPViewProps2}>
<FrameView
layoutMode={PIP}
portraitSafeAreasConfig={DEFAULT_PORTRAIT_LETTERBOX_CONFIG}
landscapeSafeAreasConfig={landscapeSafeAreasConfig}
/>
</BaseActivityPanelPIPView>
);
}
global.__d(_fun117684, 15396, [31, 8065, 8066, 15371, 33, 566, 15370, 15394, 15397,
2]) /* metro module 15396, dependencies: [31, 8065, 8066, 15371, 33, 566, 15370, 15394, 15397, 2] */;
@@ -1,10 +1,14 @@
/* Metro module 15394; source: modules/frames/panel/native/FramePanelStateContext.tsx; dependencies: [31, 15368, 2] */
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 _fun117678(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15591:6, offset: 0x024bd9d0, size: 122 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
let value = ReactModule;
value = value.createContext((require(15368) /* metro dependency 15368: ActivityPanelStateContext */).activityPanelStateContextDefault);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelStateContext.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelStateContext.tsx');
exports.default = value;
}
global.__d(_fun117678, 15394, [31, 15368, 2]) /* metro module 15394, dependencies: [31, 15368, 2] */;
@@ -1,19 +1,26 @@
/* Metro module 15403; source: modules/frames/panel/native/FramePanelSystemUIManager.tsx; dependencies: [31, 33, 15394, 15391, 2] */
import FramePanelStateContext from './FramePanelStateContext.tsx'; /* Metro dependency 15394 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ActivityPanelSystemUIManagerModule from '../../../activities/panel/native/ActivityPanelSystemUIManager.tsx'; /* Metro dependency 15391 */
function _fun117719(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117719, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15600:6, offset: 0x024bee66, size: 152 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(_fun117720);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelSystemUIManager.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelSystemUIManager.tsx');
exports.default = value;
function _fun117720() { // fn#117720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15600:130, offset: 0x024beefe, size: 102 bytes, params: 1, frame: 16
const {mode,
wrapperDimensions} = env0_3.useContext(FramePanelStateContext);
const BaseActivityPanelSystemUIManager = (ActivityPanelSystemUIManagerModule).BaseActivityPanelSystemUIManager;
return <BaseActivityPanelSystemUIManager mode={mode} isWindowLandscape={wrapperDimensions.isWindowLandscape} />;
}
}
function _fun117720() { // fn#117720, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15600:130, offset: 0x024beefe, size: 102 bytes, params: 1, frame: 16
const {mode,
wrapperDimensions} = env0_3.useContext(importDefault(15394) /* metro dependency 15394: FramePanelStateContext */);
const BaseActivityPanelSystemUIManager = (require(15391) /* metro dependency 15391: ActivityPanelSystemUIManager */).BaseActivityPanelSystemUIManager;
return <BaseActivityPanelSystemUIManager mode={mode} isWindowLandscape={wrapperDimensions.isWindowLandscape} />;
}
global.__d(_fun117719, 15403, [31, 33, 15394, 15391,
2]) /* metro module 15403, dependencies: [31, 33, 15394, 15391, 2] */;
@@ -1,31 +1,42 @@
/* Metro module 15395; source: modules/frames/panel/native/FramePanelUI.tsx; dependencies: [31, 33, 15396, 15400, 15403, 15369, 15394, 2] */
import FramePanelStateContext from './FramePanelStateContext.tsx'; /* Metro dependency 15394 */
import FramePanelSystemUIManager from './FramePanelSystemUIManager.tsx'; /* Metro dependency 15403 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ActivityPanelUIModule from '../../../activities/panel/native/ActivityPanelUI.tsx'; /* Metro dependency 15369 */
function _fun117679(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:6, offset: 0x024bda4a, size: 153 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/FramePanelUI.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/FramePanelUI.tsx');
exports.default = FramePanelUI;
function renderActivityOrPIP_117680(a0, a1, a2, a3) { // fn#117680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:120, offset: 0x024bdae3, size: 83 bytes, params: 5, frame: 15
return ((Component) => <Component transitionState={a2} transitionCleanUp={a3} key={a0} />)(importDefault(a1 === 'pip' ? dependencyMap[2] : dependencyMap[3]));
}
function FramePanelUI() { // fn#117681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:321, offset: 0x024bdb36, size: 63 bytes, params: 1, frame: 14
return ReactModule.useMemo(_fun117683, [ReactModule.useCallback(_fun117682, [])]);
function _fun117682() { // fn#117682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:366, offset: 0x02205636, size: 39 bytes, params: 1, frame: 13
const value = environment.__proto__;
return ((Component) => <Component />)(FramePanelSystemUIManager);
}
function _fun117683() { // fn#117683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:407, offset: 0x024bdb75, size: 86 bytes, params: 1, frame: 16
const BaseActivityPanelUI = (ActivityPanelUIModule).BaseActivityPanelUI;
return (
<BaseActivityPanelUI
renderActivityOrPIP={renderActivityOrPIP_117680}
context={FramePanelStateContext}
renderActivityPanelSystemUIManager={env0_0}
/>
);
}
}
}
function renderActivityOrPIP_117680(a0, a1, a2, a3) { // fn#117680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:120, offset: 0x024bdae3, size: 83 bytes, params: 5, frame: 15
return ((Component) => <Component transitionState={a2} transitionCleanUp={a3} key={a0} />)(importDefault(a1 === 'pip' ? dependencyMap[2] : dependencyMap[3]));
}
function FramePanelUI() { // fn#117681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:321, offset: 0x024bdb36, size: 63 bytes, params: 1, frame: 14
const binding = env0_3;
return binding.useMemo(_fun117683, [binding.useCallback(_fun117682, [])]);
}
function _fun117683() { // fn#117683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15592:407, offset: 0x024bdb75, size: 86 bytes, params: 1, frame: 16
const BaseActivityPanelUI = (require(15369) /* metro dependency 15369: ActivityPanelUI */).BaseActivityPanelUI;
return (
<BaseActivityPanelUI
renderActivityOrPIP={renderActivityOrPIP_117680}
context={importDefault(15394) /* metro dependency 15394: FramePanelStateContext */}
renderActivityPanelSystemUIManager={env0_0}
/>
);
}
global.__d(_fun117679, 15395, [31, 33, 15396, 15400, 15403, 15369, 15394,
2]) /* metro module 15395, dependencies: [31, 33, 15396, 15400, 15403, 15369, 15394, 2] */;
@@ -1,37 +1,44 @@
/* Metro module 15402; source: modules/frames/panel/native/LeaveActivityButton.tsx; dependencies: [31, 8044, 33, 15389, 8069, 2] */
import FramesNativeManager from '../../native/FramesNativeManager.tsx'; /* Metro dependency 8069 */
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 JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as ActivityPanelConstantsModule from '../../../activities/panel/ActivityPanelConstants.tsx'; /* Metro dependency 8044 */
import * as LeaveActivityButtonModule from '../../../activities/panel/native/LeaveActivityButton.tsx'; /* Metro dependency 15389 */
function _fun117715(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117715, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:6, offset: 0x024becf9, size: 170 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(8044) /* metro dependency 8044: ActivityPanelConstants */).ActivityPanelModes;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
let value = ReactModule;
value = value.memo(LeaveActivityButton_117716);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/LeaveActivityButton.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/LeaveActivityButton.tsx');
exports.default = value;
function LeaveActivityButton_117716({frame, setMode}) { // fn#117716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:163, offset: 0x024beda3, size: 81 bytes, params: 2, frame: 14
const BaseLeaveActivityButton = (LeaveActivityButtonModule).BaseLeaveActivityButton;
return (
<BaseLeaveActivityButton
onPress={function() {
setMode(ActivityPanelModes.DISCONNECTED);
global.setTimeout(_fun117718, 400);
}}
/>
);
function LeaveActivityButton_117716OnPress() { // fn#117717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:263, owner: LeaveActivityButton_117716.onPress, offset: 0x024bedf4, size: 58 bytes, params: 1, frame: 13
const setModeBinding = setMode;
const DISCONNECTED = ActivityPanelModes.DISCONNECTED;
setModeBinding(DISCONNECTED);
global.setTimeout(_fun117718, 400);
function _fun117718() { // fn#117718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:298, offset: 0x024bee2e, size: 56 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
(FramesNativeManager).leaveFrame({applicationId: frame.applicationId});
}
}
}
}
function LeaveActivityButton_117716({frame, setMode}) { // fn#117716, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:163, offset: 0x024beda3, size: 81 bytes, params: 2, frame: 14
const BaseLeaveActivityButton = (require(15389) /* metro dependency 15389: LeaveActivityButton */).BaseLeaveActivityButton;
return (
<BaseLeaveActivityButton
onPress={function() {
setMode(ActivityPanelModes.DISCONNECTED);
global.setTimeout(_fun117718, 400);
}}
/>
);
}
function LeaveActivityButton_117716OnPress() { // fn#117717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:263, owner: LeaveActivityButton_117716.onPress, offset: 0x024bedf4, size: 58 bytes, params: 1, frame: 13
const setModeBinding = setMode;
const DISCONNECTED = ActivityPanelModes.DISCONNECTED;
setModeBinding(DISCONNECTED);
global.setTimeout(_fun117718, 400);
}
function _fun117718() { // fn#117718, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15599:298, offset: 0x024bee2e, size: 56 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(8069) /* metro dependency 8069: FramesNativeManager */).leaveFrame({applicationId: frame.applicationId});
}
global.__d(_fun117715, 15402, [31, 8044, 33, 15389, 8069,
2]) /* metro module 15402, dependencies: [31, 8044, 33, 15389, 8069, 2] */;
@@ -1,22 +1,36 @@
/* Metro module 15384; source: modules/frames/panel/native/QuestActivityButton.tsx; dependencies: [31, 27, 4502, 7093, 15385, 6528, 33, 4017, 7744, 4501, 9483, 566, 5080, 15386, 1962, 4080, 15387, 4504, 6760, 13621, 15388, 13508, 1244, 697, 9524, 2] */
import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import AccessibilityStore from '../../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import LottieAnimationView from '../../../../components_native/common/LottieAnimationView.tsx'; /* Metro dependency 6760 */
import QuestStore from '../../../quests/QuestStore.tsx'; /* Metro dependency 7093 */
import Module13508 from '../../../../by-id/module-13508.js'; /* Metro dependency 13508 */
import UnenrolledActivityQuestStore from '../../../quests/UnenrolledActivityQuestStore.tsx'; /* Metro dependency 15385 */
import VoicePanelIconButton from '../../../voice_panel/native/shared/VoicePanelIconButton.tsx'; /* Metro dependency 15388 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as FluxModule from '../../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */
import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */
import * as TimingModule from '../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */
import * as QuestConstantsModule from '../../../quests/QuestConstants.tsx'; /* Metro dependency 6528 */
import * as Module07744Module from '../../../../by-id/module-07744.js'; /* Metro dependency 7744 */
import * as QuestHooksModule from '../../../quests/hooks/QuestHooks.tsx'; /* Metro dependency 9483 */
import * as QuestMatchingUtilsModule from '../../../quests/utils/QuestMatchingUtils.tsx'; /* Metro dependency 9524 */
import * as Module13621Module from '../../../../by-id/module-13621.js'; /* Metro dependency 13621 */
function _fun117599(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#117599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:6, offset: 0x024ba1ec, size: 508 bytes, params: 8, frame: 23
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).View;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
const questStore = importDefault(7093) /* metro dependency 7093: QuestStore */;
const unenrolledActivityQuestStore = importDefault(15385) /* metro dependency 15385: UnenrolledActivityQuestStore */;
const env0_8 = (require(6528) /* metro dependency 6528: QuestConstants */).QuestVariants;
const value2 = require(33) /* metro dependency 33 */;
const env0_9 = value2.jsx;
const env0_10 = value2.jsxs;
const reanimatedRexport = importDefault(4017) /* metro dependency 4017: ReanimatedRexport */;
const createAnimatedComponent = reanimatedRexport.createAnimatedComponent;
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
const env0_12 = Reflect.apply(createAnimatedComponent, reanimatedRexport, [Circle]);
const env0_13 = (require(4501) /* metro dependency 4501: createStyles */).createStyles({container: {'position': 'relative',
let value = ReactModule;
const createAnimatedComponent = ReanimatedRexport.createAnimatedComponent;
const Circle = (Module07744Module).Circle;
const env0_12 = Reflect.apply(createAnimatedComponent, ReanimatedRexport, [Circle]);
const env0_13 = (CreateStylesModule).createStyles({container: {'position': 'relative',
'width': 32, 'height': 32, 'justifyContent': 'center', 'alignItems': 'center'},
completionGlow: {'shadowOffset': null, 'shadowRadius': 12, 'shadowOpacity': 0, 'elevation': 4,
'shadowColor': '#30C77399', shadowOffset: {'width': 0, 'height': 0}}, canvas: {position: 'absolute',
@@ -25,207 +39,245 @@ function _fun117599(global, require, importDefault, importAll, module, exports,
object = {code: 'function QuestActivityButtonTsx1(){const{glowOpacity}=this.__closure;return{shadowOpacity:glowOpacity.get()};}'};
object = {code: 'function QuestActivityButtonTsx2(){const{circumference,animatedProgress}=this.__closure;return{strokeDashoffset:circumference-circumference*animatedProgress.get()};}'};
value = value.memo(QuestActivityButton);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/panel/native/QuestActivityButton.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/panel/native/QuestActivityButton.tsx');
exports.default = value;
}
function QuestActivityButtonInner({quest}) { // fn#117600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:952, offset: 0x024ba3e8, size: 1323 bytes, params: 2, frame: 34
let env0_3 = undefined;
const questHooksModule = require(9483) /* metro dependency 9483: QuestHooks */;
const useQuestCompletionDetails = questHooksModule.useQuestCompletionDetails;
const completedRatio = Reflect.apply(useQuestCompletionDetails, questHooksModule, [quest]).completedRatio;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
let binding = env0_3;
const useCallback = binding.useCallback;
const userStatus = quest.userStatus;
const value3 = Reflect.apply(useCallback, binding, [_fun117602, [quest.id, userStatus?.enrolledAt]]);
const Math = global.Math;
const PI = Math.PI;
const value4 = 2 * PI * 14.3;
const r2 = (quest == null || quest.userStatus == null ? undefined : quest.userStatus.enrolledAt) != null ? completedRatio : 0;
env0_3 = r2;
const r12 = (quest == null || quest.userStatus == null ? undefined : quest.userStatus.enrolledAt) != null && (quest == null || quest.userStatus == null ? undefined : quest.userStatus.completedAt) != null;
const value8 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r2);
const value10 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r12 ? 1 : 0);
const value11 = env0_3.useRef(null);
const styles = useStyles();
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = QuestActivityButtonInnerE;
closure.__closure = {glowOpacity: value10};
closure.__workletHash = 4459043613798;
closure.__initData = env0_14;
const value12 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const value13 = env0_3.useMemo(_fun117604, [styles.confetti]);
const moduleValue6 = reanimatedRexportModule;
const useAnimatedProps = moduleValue6.useAnimatedProps;
closure = QuestActivityButtonInnerI;
closure.__closure = {circumference: value4, animatedProgress: value8};
closure.__workletHash = 3373122453897;
closure.__initData = env0_15;
const value14 = Reflect.apply(useAnimatedProps, moduleValue6, [closure]);
env0_3.useEffect(_fun117606, [value8, r2, useReducedMotion]);
env0_3.useEffect(_fun117608, [value10, r12, useReducedMotion]);
const View2 = (importDefault(4017) /* metro dependency 4017: ReanimatedRexport */).View;
const items3 = [styles.container];
items3[1] = styles.completionGlow;
items3[2] = value12;
const items2 = [<View style={value13} pointerEvents="none">{((Component) => <Component ref={value11} source={require(13621) /* metro dependency 13621 */} autoPlay={false} loop={false} />)(importDefault(6760) /* metro dependency 6760: LottieAnimationView */)}</View>];
const VoicePanelIconButton = importDefault(15388) /* metro dependency 15388: VoicePanelIconButton */;
const object = {icon: importDefault(13508) /* metro dependency 13508 */, onPress: value3};
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const JALI2K = (require(1244) /* metro dependency 1244: indexNative */).t.JALI2K;
object.accessibilityLabel = Reflect.apply(string, intl, [JALI2K]);
items2[1] = <View style={styles.buttonWrapper}><VoicePanelIconButton {...object} /></View>;
let canvas = styles.canvas;
const Svg = (require(7744) /* metro dependency 7744 */).Svg;
const object2 = {height: env0_11, width: env0_11};
const Circle = (require(7744) /* metro dependency 7744 */).Circle;
const OPACITY_32 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.OPACITY_32;
items2[2] = <View pointerEvents="none" style={canvas}><Svg {...object2}><Circle cx={16} cy={16} r={14.3} fill="none" stroke={OPACITY_32} strokeWidth={3.4} strokeDasharray={value4} /></Svg></View>;
canvas = styles.canvas;
const object3 = {height: env0_11, width: env0_11};
binding = env0_12;
const GREEN_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.GREEN_300;
items2[3] = <View pointerEvents="none" style={canvas}><Svg {...object3}>{((Component) => <Component cx={16} cy={16} r={14.3} fill="none" stroke={GREEN_300} strokeWidth={3.4} strokeDasharray={value4} animatedProps={value14} />)(binding)}</Svg></View>;
return (
<View2 style={items3} pointerEvents="box-none">
{items2}
</View2>
);
}
function QuestActivityButton({applicationId}) { // fn#117609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3203, offset: 0x024baba6, size: 263 bytes, params: 2, frame: 22
const quests = (require(566) /* metro dependency 566: flux */).useStateFromStores([QuestStore], function() {
return QuestStore.quests;
});
const autoEnroll = (require(566) /* metro dependency 566: flux */).useStateFromStores([UnenrolledActivityQuestStore],
function() {
return UnenrolledActivityQuestStore.getState().autoEnroll;
});
const value2 = env0_3.useMemo(_fun117612, [quests, applicationId]);
var env0_3 = value2;
env0_3.useEffect(_fun117615, [value2, autoEnroll,
(require(566) /* metro dependency 566: flux */).useStateFromStores([UnenrolledActivityQuestStore], _fun117614)]);
return value2 == null ? null : <QuestActivityButtonInner quest={value2} />;
}
function _fun117602() { // fn#117602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1145, offset: 0x024ba913, size: 222 bytes, params: 1, frame: 18
var value3;
var defaultImport;
var value5;
var defaultImport2;
const userStatus = quest.userStatus;
const value2 = undefined;
if ((userStatus == null ? value2 : userStatus.enrolledAt) == null) {
value5 = environment.__proto__;
defaultImport2 = importDefault(dependencyMap[12]);
defaultImport2.pushLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths), {questId: quest.id},
env1_16);
} else {
value3 = environment.__proto__;
defaultImport = importDefault(dependencyMap[15]);
defaultImport.openLazy(require(dependencyMap[14])(dependencyMap[16], dependencyMap.paths),
'QuestProgressBottomSheet', {questId: quest.id});
}
return value2;
}
function QuestActivityButtonInnerE() { // fn#117603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1730, owner: QuestActivityButtonInner.E, offset: 0x024ba9f1, size: 25 bytes, params: 1, frame: 10
const object2 = {};
object2.shadowOpacity = env0_6.get();
return object2;
}
function _fun117604() { // fn#117604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1849, offset: 0x024baa0a, size: 87 bytes, params: 1, frame: 13
const object2 = {};
copyDataProperties(object2, styles.confetti, undefined);
object2['width'] = env1_11;
object2['height'] = env1_11;
object2['transform'] = [{scale: 1.6}];
return object2;
}
function QuestActivityButtonInnerI() { // fn#117605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1958, owner: QuestActivityButtonInner.I, offset: 0x024baa61, size: 37 bytes, params: 1, frame: 11
const binding = env0_2;
const binding2 = env0_5;
const get = binding2.get;
return {strokeDashoffset: binding - binding * Reflect.apply(get, binding2, [])};
}
function _fun117606() { // fn#117606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:2112, offset: 0x024baa86, size: 89 bytes, params: 1, frame: 17
const binding = env0_5;
const set = binding.set;
const timingModule = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [timingModule.withTiming(env0_3, {duration: useReducedMotion ? 0 : 500})]);
return _fun117607;
}
function _fun117608() { // fn#117608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:2223, offset: 0x024bab0c, size: 154 bytes, params: 1, frame: 16
var binding;
var set;
var value2;
var moduleValue;
var current;
if (useReducedMotion) {
env0_6.set(0);
current = env0_7.current;
if (current != null) {
current.reset();
function QuestActivityButtonInner({quest}) { // fn#117600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:952, offset: 0x024ba3e8, size: 1323 bytes, params: 2, frame: 34
let env0_3 = undefined;
const useQuestCompletionDetails = QuestHooksModule.useQuestCompletionDetails;
const completedRatio = Reflect.apply(useQuestCompletionDetails, QuestHooksModule, [quest]).completedRatio;
const useReducedMotion = (require(566) /* metro dependency 566: flux */).useStateFromStores([AccessibilityStore],
function() {
return AccessibilityStore.useReducedMotion;
});
let binding = env0_3;
const useCallback = binding.useCallback;
const userStatus = quest.userStatus;
const value3 = Reflect.apply(useCallback, binding, [_fun117602, [quest.id, userStatus?.enrolledAt]]);
const Math = global.Math;
const PI = Math.PI;
const value4 = 2 * PI * 14.3;
const r2 = (quest == null || quest.userStatus == null ? undefined : quest.userStatus.enrolledAt) != null ? completedRatio : 0;
env0_3 = r2;
const r12 = (quest == null || quest.userStatus == null ? undefined : quest.userStatus.enrolledAt) != null && (quest == null || quest.userStatus == null ? undefined : quest.userStatus.completedAt) != null;
const value8 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r2);
const value10 = (require(4017) /* metro dependency 4017: ReanimatedRexport */).useSharedValue(r12 ? 1 : 0);
const value11 = env0_3.useRef(null);
const styles = useStyles();
const reanimatedRexportModule = require(4017) /* metro dependency 4017: ReanimatedRexport */;
const useAnimatedStyle = reanimatedRexportModule.useAnimatedStyle;
let closure = QuestActivityButtonInnerE;
closure.__closure = {glowOpacity: value10};
closure.__workletHash = 4459043613798;
closure.__initData = env0_14;
const value12 = Reflect.apply(useAnimatedStyle, reanimatedRexportModule, [closure]);
const value13 = env0_3.useMemo(_fun117604, [styles.confetti]);
const moduleValue6 = reanimatedRexportModule;
const useAnimatedProps = moduleValue6.useAnimatedProps;
closure = QuestActivityButtonInnerI;
closure.__closure = {circumference: value4, animatedProgress: value8};
closure.__workletHash = 3373122453897;
closure.__initData = env0_15;
const value14 = Reflect.apply(useAnimatedProps, moduleValue6, [closure]);
env0_3.useEffect(_fun117606, [value8, r2, useReducedMotion]);
env0_3.useEffect(_fun117608, [value10, r12, useReducedMotion]);
const View2 = (ReanimatedRexport).View;
const items3 = [styles.container];
items3[1] = styles.completionGlow;
items3[2] = value12;
const items2 = [
<View style={value13} pointerEvents="none">
{((Component) => <Component ref={value11} source={Module13621Module} autoPlay={false} loop={false} />)(LottieAnimationView)}
</View>,
];
const object4 = {icon: Module13508, onPress: value3};
const intl = (IndexNativeModule).intl;
const string = intl.string;
const JALI2K = (IndexNativeModule).t.JALI2K;
object4.accessibilityLabel = Reflect.apply(string, intl, [JALI2K]);
items2[1] = (
<View style={styles.buttonWrapper}>
<VoicePanelIconButton {...object4} />
</View>
);
let canvas = styles.canvas;
const Svg = (Module07744Module).Svg;
const object5 = {height: env0_11, width: env0_11};
const Circle = (Module07744Module).Circle;
const OPACITY_32 = (Native).unsafe_rawColors.OPACITY_32;
items2[2] = (
<View pointerEvents="none" style={canvas}>
<Svg {...object5}>
<Circle
cx={16}
cy={16}
r={14.3}
fill="none"
stroke={OPACITY_32}
strokeWidth={3.4}
strokeDasharray={value4}
/>
</Svg>
</View>
);
canvas = styles.canvas;
const object6 = {height: env0_11, width: env0_11};
binding = env0_12;
const GREEN_300 = (Native).unsafe_rawColors.GREEN_300;
items2[3] = (
<View pointerEvents="none" style={canvas}>
<Svg {...object6}>
{((Component) => <Component cx={16} cy={16} r={14.3} fill="none" stroke={GREEN_300} strokeWidth={3.4} strokeDasharray={value4} animatedProps={value14} />)(binding)}
</Svg>
</View>
);
return (
<View2 style={items3} pointerEvents="box-none">
{items2}
</View2>
);
function _fun117602() { // fn#117602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1145, offset: 0x024ba913, size: 222 bytes, params: 1, frame: 18
var value3;
var defaultImport;
var value5;
var defaultImport2;
const userStatus = quest.userStatus;
const value2 = undefined;
if ((userStatus == null ? value2 : userStatus.enrolledAt) == null) {
value5 = environment.__proto__;
defaultImport2 = importDefault(dependencyMap[12]);
defaultImport2.pushLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths), {questId: quest.id},
env1_16);
} else {
value3 = environment.__proto__;
defaultImport = importDefault(dependencyMap[15]);
defaultImport.openLazy(require(dependencyMap[14])(dependencyMap[16], dependencyMap.paths),
'QuestProgressBottomSheet', {questId: quest.id});
}
return value2;
}
} else if (env0_4) {
binding = env0_6;
set = binding.set;
value2 = environment.__proto__;
moduleValue = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [moduleValue.withTiming(1, {duration: 500})]);
current = env0_7.current;
if (current != null) {
current.play();
function QuestActivityButtonInnerE() { // fn#117603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1730, owner: QuestActivityButtonInner.E, offset: 0x024ba9f1, size: 25 bytes, params: 1, frame: 10
const object = {};
object.shadowOpacity = env0_6.get();
return object;
}
} else {
env0_6.set(0);
current = env0_7.current;
if (current != null) {
current.reset();
function _fun117604() { // fn#117604, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1849, offset: 0x024baa0a, size: 87 bytes, params: 1, frame: 13
const object = {};
copyDataProperties(object, styles.confetti, undefined);
object['width'] = env1_11;
object['height'] = env1_11;
object['transform'] = [{scale: 1.6}];
return object;
}
function QuestActivityButtonInnerI() { // fn#117605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:1958, owner: QuestActivityButtonInner.I, offset: 0x024baa61, size: 37 bytes, params: 1, frame: 11
const binding = env0_2;
const binding2 = env0_5;
const get = binding2.get;
return {strokeDashoffset: binding - binding * Reflect.apply(get, binding2, [])};
}
function _fun117606() { // fn#117606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:2112, offset: 0x024baa86, size: 89 bytes, params: 1, frame: 17
const binding = env0_5;
const set = binding.set;
Reflect.apply(set, binding, [TimingModule.withTiming(env0_3, {duration: useReducedMotion ? 0 : 500})]);
return _fun117607;
function _fun117607() { // fn#117607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:2166, offset: 0x024baadf, size: 45 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
(ReanimatedRexportModule).cancelAnimation(env1_5);
}
}
function _fun117608() { // fn#117608, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:2223, offset: 0x024bab0c, size: 154 bytes, params: 1, frame: 16
var binding;
var set;
var value2;
var moduleValue;
var current;
if (useReducedMotion) {
env0_6.set(0);
current = env0_7.current;
if (current != null) {
current.reset();
}
} else if (ReactNativeModule.View) {
binding = env0_6;
set = binding.set;
value2 = environment.__proto__;
moduleValue = require(4504) /* metro dependency 4504: timing */;
Reflect.apply(set, binding, [moduleValue.withTiming(1, {duration: 500})]);
current = env0_7.current;
if (current != null) {
current.play();
}
} else {
env0_6.set(0);
current = env0_7.current;
if (current != null) {
current.reset();
}
}
}
}
}
function _fun117612() { // fn#117612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3383, offset: 0x024bacd5, size: 73 bytes, params: 1, frame: 15
var environment;
let value = environment.__proto__;
const getEligibleQuestsForApplicationId = (require(9524) /* metro dependency 9524: QuestMatchingUtils */).getEligibleQuestsForApplicationId;
value = Reflect.apply(getEligibleQuestsForApplicationId, value, [quests, applicationId, true]);
return value.find(function(a0) {
return a0.config.features.includes(QuestVariants.MOBILE_ACTIVITY_QUEST);
});
}
function QuestActivityButton({applicationId}) { // fn#117609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3203, offset: 0x024baba6, size: 263 bytes, params: 2, frame: 22
let useStateFromStores = FluxModule.useStateFromStores;
const quests = Reflect.apply(useStateFromStores, FluxModule, [[QuestStore], function() {
return QuestStore.quests;
}]);
useStateFromStores = FluxModule.useStateFromStores;
const unenrolledActivityQuestStoreBinding = UnenrolledActivityQuestStore;
const autoEnroll = Reflect.apply(useStateFromStores, FluxModule, [[unenrolledActivityQuestStoreBinding],
function() {
return UnenrolledActivityQuestStore.getState().autoEnroll;
}]);
const value2 = env0_3.useMemo(_fun117612, [quests, applicationId]);
var env0_3 = value2;
env0_3.useEffect(_fun117615, [value2, autoEnroll,
FluxModule.useStateFromStores([unenrolledActivityQuestStoreBinding], _fun117614)]);
return (
value2 == null
? null
: (
<QuestActivityButtonInner quest={value2} />
)
);
function _fun117612() { // fn#117612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3383, offset: 0x024bacd5, size: 73 bytes, params: 1, frame: 15
var environment;
let value = environment.__proto__;
const getEligibleQuestsForApplicationId = (QuestMatchingUtilsModule).getEligibleQuestsForApplicationId;
value = Reflect.apply(getEligibleQuestsForApplicationId, value, [quests, applicationId, true]);
return value.find(function(a0) {
return a0.config.features.includes(QuestVariants.MOBILE_ACTIVITY_QUEST);
});
}
function _fun117614() { // fn#117614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3544, offset: 0x024bad46, size: 47 bytes, params: 1, frame: 13
return UnenrolledActivityQuestStore.isDismissed(env0_3?.id);
}
function _fun117614() { // fn#117614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3544, offset: 0x024bad46, size: 47 bytes, params: 1, frame: 13
const unenrolledActivityQuestStoreBinding = UnenrolledActivityQuestStore;
return unenrolledActivityQuestStoreBinding.isDismissed(env0_3?.id);
}
function _fun117615() { // fn#117615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3605, offset: 0x024bad75, size: 158 bytes, params: 1, frame: 18
var value5;
var defaultImport;
let r0 = env0_3 == null || env0_3.userStatus?.enrolledAt != null;
r0 = !r0 ? autoEnroll : r0;
r0 = !r0 ? ReactNativeModule.View : r0;
if (!r0) {
value5 = environment.__proto__;
defaultImport = importDefault(dependencyMap[12]);
defaultImport.pushLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths), {questId: env0_3.id},
env1_16);
}
}
function _fun117615() { // fn#117615, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:3605, offset: 0x024bad75, size: 158 bytes, params: 1, frame: 18
var value5;
var defaultImport;
let r0 = env0_3 == null || env0_3.userStatus?.enrolledAt != null;
r0 = !r0 ? autoEnroll : r0;
r0 = !r0 ? env0_4 : r0;
if (!r0) {
value5 = environment.__proto__;
defaultImport = importDefault(dependencyMap[12]);
defaultImport.pushLazy(require(dependencyMap[14])(dependencyMap[13], dependencyMap.paths), {questId: env0_3.id},
env1_16);
}
}
function _fun117607() { // fn#117607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15581:2166, offset: 0x024baadf, size: 45 bytes, params: 1, frame: 12
const value = environment.__proto__.__proto__;
(require(4017) /* metro dependency 4017: ReanimatedRexport */).cancelAnimation(env1_5);
}
global.__d(_fun117599, 15384, [31, 27, 4502, 7093, 15385, 6528, 33, 4017, 7744, 4501, 9483, 566, 5080, 15386, 1962,
4080, 15387, 4504, 6760, 13621, 15388, 13508, 1244, 697, 9524,
2]) /* metro module 15384, dependencies: [31, 27, 4502, 7093, 15385, 6528, 33, 4017, 7744, 4501, 9483, 566, 5080, 15386, 1962, 4080, 15387, 4504, 6760, 13621, 15388, 13508, 1244, 697, 9524, 2] */;
+19 -16
View File
@@ -1,26 +1,29 @@
/* Metro module 8045; source: modules/frames/utils/canLaunchFrame.tsx; dependencies: [661, 8046, 7504, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun63764(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8223:6, offset: 0x01b8f644, size: 115 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = (require(661) /* metro dependency 661: Constants */).ApplicationFlags;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/utils/canLaunchFrame.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/utils/canLaunchFrame.tsx');
exports.canLaunchFrame = canLaunchFrame;
}
function canLaunchFrame(a0) { // fn#63765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8223:213, offset: 0x01b8f6b7, size: 129 bytes, params: 2, frame: 18
var moduleValue3;
if (a0 != null) {
var hasApplicationFlag;
var moduleValue = require(8046) /* metro dependency 8046: AppLauncherUtils */;
if (moduleValue.isRealApplication(a0)) {
hasApplicationFlag = (require(7504) /* metro dependency 7504: ApplicationFlagUtils */).hasApplicationFlag(a0,
ApplicationFlags.EMBEDDED);
moduleValue3 = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
return hasApplicationFlag && moduleValue3.hasApplicationFlag(a0, ApplicationFlags.CONTEXTLESS_ACTIVITY);
function canLaunchFrame(a0) { // fn#63765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8223:213, offset: 0x01b8f6b7, size: 129 bytes, params: 2, frame: 18
var moduleValue3;
if (a0 != null) {
var hasApplicationFlag;
var moduleValue = require(8046) /* metro dependency 8046: AppLauncherUtils */;
if (moduleValue.isRealApplication(a0)) {
hasApplicationFlag = (require(7504) /* metro dependency 7504: ApplicationFlagUtils */).hasApplicationFlag(a0,
ApplicationFlags.EMBEDDED);
moduleValue3 = require(7504) /* metro dependency 7504: ApplicationFlagUtils */;
return hasApplicationFlag && moduleValue3.hasApplicationFlag(a0, ApplicationFlags.CONTEXTLESS_ACTIVITY);
}
}
return false;
}
return false;
}
global.__d(_fun63764, 8045, [661, 8046, 7504, 2]) /* metro module 8045, dependencies: [661, 8046, 7504, 2] */;
@@ -1,10 +1,13 @@
/* Metro module 8068; source: modules/frames/utils/getFramesManager.native.tsx; dependencies: [8069, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun64049(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#64049, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8246:6, offset: 0x01b99fa9, size: 97 bytes, params: 8, frame: 17
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/frames/utils/getFramesManager.native.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/frames/utils/getFramesManager.native.tsx');
exports.default = function() {
return importDefault(dependencyMap[0]);
};
}
global.__d(_fun64049, 8068, [8069, 2]) /* metro module 8068, dependencies: [8069, 2] */;