53 lines
2.9 KiB
TypeScript
53 lines
2.9 KiB
TypeScript
/* Metro module 10721; source: modules/video_calls/native/useTrackActivityVideoPip.tsx; dependencies: [31, 7730, 661, 632, 6266, 10702, 683, 2] */
|
|
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});
|
|
const env0_3 = importAll(31) /* metro dependency 31 */;
|
|
const channelCallLifecycleStore = importDefault(7730) /* metro dependency 7730: ChannelCallLifecycleStore */;
|
|
const env0_5 = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
|
(require(2) /* metro dependency 2 */).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 = (importDefault(6266) /* metro dependency 6266: usePrevious */)(value2);
|
|
const value4 = (importDefault(10702) /* metro dependency 10702: 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 object2;
|
|
if (env0_3 != 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;
|
|
object2 = {};
|
|
binding = env0_0;
|
|
object2.channel_id = binding.id;
|
|
object2.guild_id = binding.guild_id;
|
|
binding = env0_3;
|
|
object2.application_id = binding.applicationId;
|
|
object2.activity_session_id = binding.compositeInstanceId;
|
|
Reflect.apply(track, defaultImport, [r3, object2]);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|