59 lines
3.5 KiB
TypeScript
59 lines
3.5 KiB
TypeScript
/* Metro module 10721; source: modules/video_calls/native/useTrackActivityVideoPip.tsx; dependencies: [31, 7730, 661, 632, 6266, 10702, 683, 2] */
|
|
import UsePrevious from '../../../hooks/usePrevious.tsx'; /* Metro dependency 6266 */
|
|
import ChannelCallLifecycleStore from './ChannelCallLifecycleStore.tsx'; /* Metro dependency 7730 */
|
|
import UseCurrentEmbeddedActivity from '../../activities/utils/useCurrentEmbeddedActivity.tsx'; /* Metro dependency 10702 */
|
|
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 ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
|
|
|
|
function _fun82364(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10907:6, offset: 0x01ef4624, size: 159 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/video_calls/native/useTrackActivityVideoPip.tsx');
|
|
exports.default = useTrackActivityPip;
|
|
function useTrackActivityPip(a0) { // fn#82365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10907:240, offset: 0x01ef46c3, size: 157 bytes, params: 2, frame: 18
|
|
const env0_0 = a0;
|
|
const value2 = (require(632) /* metro dependency 632: useStateFromStores */).useStateFromStores([ChannelCallLifecycleStore],
|
|
function() {
|
|
return ChannelCallLifecycleStore.isPipEnabledWhileFocusedOnActivityOrStream();
|
|
});
|
|
const value3 = (UsePrevious)(value2);
|
|
const value4 = (UseCurrentEmbeddedActivity)();
|
|
value4.useEffect(_fun82367, [value2, value3, a0, value4]);
|
|
function _fun82367() { // fn#82367, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10907:401, offset: 0x01ef4773, size: 153 bytes, params: 1, frame: 16
|
|
var r3;
|
|
var binding;
|
|
var value2;
|
|
var defaultImport;
|
|
var track;
|
|
var object;
|
|
if (ReactModule != null) {
|
|
if (env0_2 != null) {
|
|
binding = env0_1;
|
|
if (binding !== env0_2) {
|
|
binding = env0_1;
|
|
value2 = environment.__proto__;
|
|
r3 = binding ? AnalyticEvents.ACTIVITY_VIDEO_PIP_SHOWN : AnalyticEvents.ACTIVITY_VIDEO_PIP_HIDDEN;
|
|
defaultImport = importDefault(683) /* metro dependency 683: AnalyticsUtils */;
|
|
track = defaultImport.track;
|
|
object = {};
|
|
binding = env0_0;
|
|
object.channel_id = binding.id;
|
|
object.guild_id = binding.guild_id;
|
|
binding = ReactModule;
|
|
object.application_id = binding.applicationId;
|
|
object.activity_session_id = binding.compositeInstanceId;
|
|
Reflect.apply(track, defaultImport, [r3, object]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun82364, 10721, [31, 7730, 661, 632, 6266, 10702, 683,
|
|
2]) /* metro module 10721, dependencies: [31, 7730, 661, 632, 6266, 10702, 683, 2] */;
|