Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,108 @@
|
||||
/* 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] */
|
||||
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;
|
||||
value = value.memo(FrameViewInner);
|
||||
(require(2) /* metro dependency 2 */).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
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/* Metro module 15399; source: modules/frames/native/FrameWebView.tsx; dependencies: [31, 33, 10709, 8069, 2] */
|
||||
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');
|
||||
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} = (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 _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();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,354 @@
|
||||
/* 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] */
|
||||
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;
|
||||
const postMessageToWebView = function() {
|
||||
return _postMessageToWebView.apply(this, arguments);
|
||||
};
|
||||
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');
|
||||
value = require(478) /* metro dependency 478: PlatformUtils */;
|
||||
value = value.isAndroid();
|
||||
if (value) {
|
||||
nativeEventEmitter = new NativeEventEmitter(importDefault(8070) /* metro dependency 8070: NativeAppLifecycleModule */);
|
||||
}
|
||||
value = importDefault(10655) /* metro dependency 10655: FramesManager */;
|
||||
value = _fun64061(value);
|
||||
value.displayName = 'FramesNativeManager';
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).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__;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/* Metro module 15398; source: modules/frames/native/getDefaultOrientationLockState.tsx; dependencies: [10703, 694, 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');
|
||||
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});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user