2026-09-04 17:41:35 +00:00
|
|
|
// Module ID: 9463
|
|
|
|
|
// Function ID: 9464
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: transitionToActivity
|
2026-09-04 17:41:35 +00:00
|
|
|
// Dependencies: [9396, 1385, 9434, 9397, 4110, 4335, 9395, 9454, 9464, 4729, 9405, 4448, 9433, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-04 17:41:35 +00:00
|
|
|
// Module 9463 (transitionToActivity)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import getEmbeddedActivityLocationChannelId from "getEmbeddedActivityLocationChannelId" /* 4110 */;
|
2026-09-04 17:41:35 +00:00
|
|
|
import ChannelCallCameraPreviewDefault from "ChannelCallCameraPreview" /* 9395 */;
|
|
|
|
|
import VoiceChatDrawerState2 from "VoiceChatDrawerState" /* 9396 */;
|
|
|
|
|
import BOX_MODE_ACTIONSHEET_WIDTH from "BOX_MODE_ACTIONSHEET_WIDTH" /* 9397 */;
|
|
|
|
|
import ActivityPanelModes2 from "ActivityPanelModes" /* 9434 */;
|
2026-09-02 09:53:35 +00:00
|
|
|
import closure_4 from "participantFromServer" /* 1385 */;
|
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-09-04 17:41:35 +00:00
|
|
|
let tmpResult = tmp(4335);
|
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-09-04 17:41:35 +00:00
|
|
|
tmp4 = tmp15(9454)(embeddedActivityLocationChannelId);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
if (tmp4) {
|
2026-09-04 17:41:35 +00:00
|
|
|
tmp15(9464)(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-09-04 17:41:35 +00:00
|
|
|
if (tmp15(9454)(embeddedActivityLocationChannelId)) {
|
|
|
|
|
let tmp15Result = tmp15(4729);
|
|
|
|
|
tmpResult = tmp(9405);
|
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-09-04 17:41:35 +00:00
|
|
|
tmp15Result = tmp15(4448);
|
2026-07-29 08:29:29 +00:00
|
|
|
tmp15Result.hideActionSheet();
|
2026-07-20 16:05:17 +00:00
|
|
|
setVoiceChatDrawerState(embeddedActivityLocationChannelId, VoiceChatDrawerState.CLOSED);
|
|
|
|
|
} else {
|
2026-09-04 17:41:35 +00:00
|
|
|
const result = tmp(9433).updateActivityPanelMode(ActivityPanelModes.PANEL);
|
|
|
|
|
const tmpResult1 = tmp(9433);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|