Files
discord-decomp/sources/modules/frames/panel/native/FramePanelFocusedView.tsx
T
2026-07-28 01:06:53 +03:00

69 lines
5.1 KiB
TypeScript

/* 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 = ReactModule;
value = value.memo(_fun117706);
(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>
);
}
}
}
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] */;