212 lines
10 KiB
TypeScript
212 lines
10 KiB
TypeScript
/* Metro module 8065; source: modules/frames/FramesStore.tsx; dependencies: [6, 7, 15, 17, 18, 8066, 8044, 8067, 566, 694, 2] */
|
|
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;
|
|
map = new Map();
|
|
Map = global.Map;
|
|
map = new Map();
|
|
Map = global.Map;
|
|
map = new Map();
|
|
const Store = (importDefault(566) /* metro dependency 566: 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,
|
|
FRAME_UPDATE_LAYOUT_MODE: FRAME_UPDATE_LAYOUT_MODE, FRAME_SET_PANEL_MODE: FRAME_SET_PANEL_MODE,
|
|
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');
|
|
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;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value2;
|
|
}
|
|
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 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_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);
|
|
}
|
|
|