2026-08-25 06:04:03 +00:00
|
|
|
// Module ID: 10736
|
|
|
|
|
// Function ID: 10737
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: transitionToActivity
|
2026-08-25 06:04:03 +00:00
|
|
|
// Dependencies: [9895, 1390, 9915, 9896, 4015, 4234, 10737, 10475, 11059, 4609, 10726, 4347, 10699, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-08-25 06:04:03 +00:00
|
|
|
// Module 10736 (transitionToActivity)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-08-25 06:04:03 +00:00
|
|
|
import getEmbeddedActivityLocationChannelId from "getEmbeddedActivityLocationChannelId" /* 4015 */;
|
|
|
|
|
import VoiceChatDrawerState2 from "VoiceChatDrawerState" /* 9895 */;
|
|
|
|
|
import BOX_MODE_ACTIONSHEET_WIDTH from "BOX_MODE_ACTIONSHEET_WIDTH" /* 9896 */;
|
|
|
|
|
import ActivityPanelModes2 from "ActivityPanelModes" /* 9915 */;
|
|
|
|
|
import ChannelCallCameraPreviewDefault from "ChannelCallCameraPreview" /* 10737 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_4 from "participantFromServer" /* 1390 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const setVoiceChatDrawerState = VoiceChatDrawerState2.setVoiceChatDrawerState;
|
|
|
|
|
const ActivityPanelModes = ActivityPanelModes2.ActivityPanelModes;
|
|
|
|
|
const VoiceChatDrawerState = BOX_MODE_ACTIONSHEET_WIDTH.VoiceChatDrawerState;
|
|
|
|
|
let result = set.fileFinishedImporting("modules/activities/utils/transitionToActivity.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function transitionToActivity(arg0, _location) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = getEmbeddedActivityLocationChannelId;
|
2026-07-20 16:05:17 +00:00
|
|
|
const embeddedActivityLocationChannelId = obj.getEmbeddedActivityLocationChannelId(_location);
|
|
|
|
|
if (null != embeddedActivityLocationChannelId) {
|
2026-08-25 06:04:03 +00:00
|
|
|
let tmpResult = tmp(4234);
|
2026-08-24 06:08:38 +00:00
|
|
|
const isModalOpenResult = tmpResult.isModalOpen(ChannelCallCameraPreviewDefault);
|
2026-07-29 08:29:29 +00:00
|
|
|
let tmp4 = !isModalOpenResult;
|
|
|
|
|
if (!isModalOpenResult) {
|
2026-08-25 06:04:03 +00:00
|
|
|
tmp4 = tmp15(10475)(embeddedActivityLocationChannelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp4) {
|
2026-08-25 06:04:03 +00:00
|
|
|
tmp15(11059)(embeddedActivityLocationChannelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
selfEmbeddedActivityForLocation = selfEmbeddedActivityForLocation.getSelfEmbeddedActivityForLocation(_location);
|
2026-07-20 16:05:17 +00:00
|
|
|
if (null != selfEmbeddedActivityForLocation) {
|
2026-08-25 06:04:03 +00:00
|
|
|
if (tmp15(10475)(embeddedActivityLocationChannelId)) {
|
|
|
|
|
let tmp15Result = tmp15(4609);
|
|
|
|
|
tmpResult = tmp(10726);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { applicationId: null, instanceId: null };
|
|
|
|
|
({ applicationId: obj5[0], compositeInstanceId: obj5[1] } = selfEmbeddedActivityForLocation);
|
|
|
|
|
const participant = tmp15Result.selectParticipant(embeddedActivityLocationChannelId, tmpResult.getEmbeddedActivityParticipantId(obj));
|
2026-08-25 06:04:03 +00:00
|
|
|
tmp15Result = tmp15(4347);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp15Result.hideActionSheet();
|
2026-07-20 16:05:17 +00:00
|
|
|
setVoiceChatDrawerState(embeddedActivityLocationChannelId, VoiceChatDrawerState.CLOSED);
|
|
|
|
|
} else {
|
2026-08-25 06:04:03 +00:00
|
|
|
const result = tmp(10699).updateActivityPanelMode(ActivityPanelModes.PANEL);
|
|
|
|
|
const tmpResult1 = tmp(10699);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|