59 lines
4.3 KiB
TypeScript
59 lines
4.3 KiB
TypeScript
/* 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 = ReactModule;
|
|
value = value.memo(_fun117685);
|
|
(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>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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] */;
|