decord/source/modules/quests/native/VideoQuestModal/VideoQuestPlayer.tsx

1135 lines
41 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 14094
// Function ID: 107907
2026-07-20 16:05:17 +00:00
// Name: getSafeAreaInsetOrPadding
2026-07-27 11:26:19 +00:00
// Dependencies: [57, 31, 27, 6271, 5934, 4977, 653, 33, 689, 8081, 4131, 666, 14084, 10428, 9415, 3744, 3992, 4543, 4547, 4132, 4135, 14092, 5955, 14095, 1554, 477, 1207, 10438, 9401, 566, 1184, 1557, 1212, 14103, 4661, 13980, 13982, 13984, 13985, 9909, 8065, 8067, 13986, 13987, 2]
2026-07-23 10:11:24 +00:00
2026-07-27 11:26:19 +00:00
// Module 14094 (getSafeAreaInsetOrPadding)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
2026-07-25 08:10:48 +00:00
import importAllResult from "useSafeAreaInsets";
import get_ActivityIndicator from "sendVideoProgress";
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import _toPropertyKey from "_toPropertyKey";
import { QuestsExperimentLocations } from "QuestsExperimentLocations";
import ME from "ME";
2026-07-25 08:10:48 +00:00
import jsxProd from "VideoQuestCaptions";
2026-07-23 10:11:24 +00:00
import closure_16 from "_isNativeReflectConstruct";
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
import importDefaultResult from "t";
2026-07-20 16:05:17 +00:00
let StyleSheet;
2026-07-23 10:11:24 +00:00
let closure_11;
let closure_12;
let closure_13;
let closure_14;
let closure_5;
let closure_6;
let closure_7;
const require = arg1;
2026-07-20 16:05:17 +00:00
function getSafeAreaInsetOrPadding(arg0, arg1) {
return Math.max(arg0[arg1], obj[arg1]);
}
2026-07-23 10:11:24 +00:00
({ View: closure_5, StyleSheet, Pressable: closure_6, ActivityIndicator: closure_7 } = get_ActivityIndicator);
({ AppStates: closure_11, ComponentActions: closure_12 } = ME);
({ jsx: closure_13, jsxs: closure_14 } = jsxProd);
let obj = { left: require("_createForOfIteratorHelperLoose").space.PX_16, right: require("_createForOfIteratorHelperLoose").space.PX_16, top: require("_createForOfIteratorHelperLoose").space.PX_16, bottom: require("_createForOfIteratorHelperLoose").space.PX_16 };
2026-07-20 16:05:17 +00:00
let closure_17 = { code: "function hasVideoEnded_VideoQuestPlayerTsx1(currentTime,videoDuration){return currentTime>=videoDuration-1;}" };
2026-07-23 10:11:24 +00:00
let closure_18 = (() => {
2026-07-20 16:05:17 +00:00
function hasVideoEnded(arg0, arg1) {
return arg0 >= arg1 - 1;
}
hasVideoEnded.__closure = {};
hasVideoEnded.__workletHash = 3281537893520;
hasVideoEnded.__initData = closure_17;
return hasVideoEnded;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
let closure_19 = { code: "function canSeekForward_VideoQuestPlayerTsx2(currentTime,maxTimestamp,videoDuration,isQuestCompleted){const{hasVideoEnded}=this.__closure;return!hasVideoEnded(currentTime,videoDuration)&&(isQuestCompleted||currentTime<=maxTimestamp-1);}" };
2026-07-23 10:11:24 +00:00
let closure_20 = (() => {
2026-07-20 16:05:17 +00:00
function canSeekForward(arg0, arg1, arg2, arg3) {
let tmp = arg3;
2026-07-23 10:11:24 +00:00
let tmp2 = !outer1_18(arg0, arg2);
2026-07-20 16:05:17 +00:00
if (tmp2) {
if (!tmp) {
tmp = arg0 <= arg1 - 1;
}
tmp2 = tmp;
}
return tmp2;
}
canSeekForward.__closure = { hasVideoEnded: closure_18 };
canSeekForward.__workletHash = 741911733910;
canSeekForward.__initData = closure_19;
return canSeekForward;
2026-07-23 10:11:24 +00:00
})();
2026-07-20 16:05:17 +00:00
obj = {};
const merged = Object.assign(StyleSheet.absoluteFillObject);
obj.container = {};
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(StyleSheet.absoluteFillObject);
2026-07-23 10:11:24 +00:00
_createForOfIteratorHelperLoose["backgroundColor"] = require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BASE_LOWEST;
_createForOfIteratorHelperLoose["justifyContent"] = "center";
_createForOfIteratorHelperLoose["alignItems"] = "center";
obj.loadingContainer = _createForOfIteratorHelperLoose;
2026-07-20 16:05:17 +00:00
obj.bufferingSpinner = { position: "absolute" };
2026-07-23 10:11:24 +00:00
let obj3 = {};
2026-07-20 16:05:17 +00:00
const merged2 = Object.assign(StyleSheet.absoluteFillObject);
obj3["justifyContent"] = "center";
obj3["alignItems"] = "center";
obj.bufferingSpinnerCentered = obj3;
2026-07-23 10:11:24 +00:00
obj.video = { height: "100%", width: "100%" };
obj.videoContainer = { position: "relative", height: "100%", width: "100%" };
let obj4 = {};
2026-07-20 16:05:17 +00:00
const merged3 = Object.assign(StyleSheet.absoluteFillObject);
2026-07-23 10:11:24 +00:00
let obj1 = {};
const importDefaultResultResult = require("t")(require("_createForOfIteratorHelperLoose").unsafe_rawColors.BLACK);
obj4["backgroundColor"] = require("t")(require("_createForOfIteratorHelperLoose").unsafe_rawColors.BLACK).alpha(0.5).hex();
2026-07-20 16:05:17 +00:00
obj4["justifyContent"] = "center";
obj4["alignItems"] = "center";
obj4["flexDirection"] = "column";
obj.controls = obj4;
2026-07-23 10:11:24 +00:00
let obj5 = { flexDirection: "row", justifyContent: "flex-end", padding: require("_createForOfIteratorHelperLoose").space.PX_8, position: "absolute", left: 0, right: 0 };
2026-07-20 16:05:17 +00:00
obj.controlsTopBottom = obj5;
2026-07-23 10:11:24 +00:00
let obj6 = { justifyContent: "center", alignItems: "center", flexGrow: 1, flexDirection: "row", gap: require("_createForOfIteratorHelperLoose").space.PX_24, pointerEvents: "box-none" };
2026-07-22 07:54:56 +00:00
obj.controlsMiddle = obj6;
2026-07-20 16:05:17 +00:00
obj.controlsTop = { top: 0 };
obj.controlsBottom = { bottom: 0 };
2026-07-23 10:11:24 +00:00
let obj7 = { position: "absolute", bottom: 0, right: 0, left: 0, justifyContent: "flex-end", height: require("_createForOfIteratorHelperLoose").space.PX_16, overflow: "hidden" };
2026-07-21 22:01:30 +00:00
obj.progressContainer = obj7;
2026-07-23 10:11:24 +00:00
let obj8 = { height: 1, backgroundColor: require("_createForOfIteratorHelperLoose").colors.WHITE, shadowOffset: { width: 0, height: 0 }, shadowRadius: 6, shadowOpacity: 1, elevation: 5, shadowColor: "#FFFFFF" };
obj.progress = obj8;
const alphaResult = require("t")(require("_createForOfIteratorHelperLoose").unsafe_rawColors.BLACK).alpha(0.5);
obj.icon = { color: require("_createForOfIteratorHelperLoose").colors.TEXT_DEFAULT };
let obj9 = { color: require("_createForOfIteratorHelperLoose").colors.TEXT_DEFAULT };
obj.iconDisabled = { color: require("_createForOfIteratorHelperLoose").colors.TEXT_SUBTLE };
let obj10 = { color: require("_createForOfIteratorHelperLoose").colors.TEXT_SUBTLE };
obj.controlButton = { padding: require("_createForOfIteratorHelperLoose").space.PX_8 };
let closure_21 = _createForOfIteratorHelperLoose.createStyles(obj);
let obj12 = { PAUSED: "paused", PLAYING: "playing", ENDED: "ended", LOADING: "loading", ERRORED: "errored" };
2026-07-20 16:05:17 +00:00
let closure_23 = { code: "function shouldShowControls_VideoQuestPlayerTsx3(){const{hasLoaded,showControls,playerState,PlayerState,isVideoEnded,externallyPaused}=this.__closure;return hasLoaded&&(showControls.get()||playerState===PlayerState.PAUSED||playerState===PlayerState.ENDED||playerState===PlayerState.ERRORED||isVideoEnded||externallyPaused);}" };
let closure_24 = { code: "function VideoQuestPlayerTsx4(){const{shouldShowControls,withSpring,SUBTLE_SPRING}=this.__closure;const show=shouldShowControls();return{opacity:withSpring(show?1:0,SUBTLE_SPRING),pointerEvents:show?'auto':'none'};}" };
let closure_25 = { code: "function VideoQuestPlayerTsx5(){const{withTiming,progress,timingFast}=this.__closure;return{width:withTiming(progress.get()*100+\"%\",timingFast,'animate-always')};}" };
2026-07-23 10:11:24 +00:00
let obj11 = { padding: require("_createForOfIteratorHelperLoose").space.PX_8 };
2026-07-20 16:05:17 +00:00
const memoResult = importAllResult.memo((onLoad) => {
let contentInsets;
let externallyPaused;
let handleOpenTranscript;
let handleToggleCaptions;
let hasCaptionAsset;
let isBuffering;
let isFullscreen;
let sourceQuestContent;
let style;
let toggleBuffering;
onLoad = onLoad.onLoad;
const onEnd = onLoad.onEnd;
const onToggleFullscreen = onLoad.onToggleFullscreen;
const orientation = onLoad.orientation;
({ contentInsets, isFullscreen, externallyPaused } = onLoad);
let flag = onLoad.captionsEnabled;
({ style, handleToggleCaptions, handleOpenTranscript } = onLoad);
if (flag === undefined) {
flag = false;
}
({ hasCaptionAsset, sourceQuestContent } = onLoad);
if (hasCaptionAsset === undefined) {
hasCaptionAsset = true;
}
let flag2 = onLoad.hasTranscriptAsset;
if (flag2 === undefined) {
flag2 = true;
}
let ref;
let quest;
let questTaskDetails;
2026-07-23 10:11:24 +00:00
let c8;
let memo;
let memo1;
2026-07-20 16:05:17 +00:00
let first;
let closure_12;
let targetSeconds;
2026-07-23 10:11:24 +00:00
let c14;
let c15;
let first1;
2026-07-20 16:05:17 +00:00
let closure_17;
2026-07-23 10:11:24 +00:00
let callback;
let first2;
let callback2;
2026-07-20 16:05:17 +00:00
let callback3;
2026-07-23 10:11:24 +00:00
let obj12;
2026-07-20 16:05:17 +00:00
let closure_23;
let closure_24;
2026-07-23 10:11:24 +00:00
first2 = undefined;
let sharedValue;
let c27;
2026-07-20 16:05:17 +00:00
let sharedValue1;
let closure_29;
let handleEndAnalytics;
let handleErrorAnalytics;
let handleLoadAnalytics;
let handleLoadStartAnalytics;
let handlePausePlaybackAnalytics;
let handleProgressAnalytics;
let handleReadyForDisplayAnalytics;
let handleResumePlaybackAnalytics;
let handleSeekAnalytics;
let ref1;
let id;
let gameTitle;
let url1;
let videoTitle;
let str;
2026-07-25 08:10:48 +00:00
let closure_45;
2026-07-20 16:05:17 +00:00
callback2 = undefined;
2026-07-23 10:11:24 +00:00
let callback4;
2026-07-20 16:05:17 +00:00
let callback6;
let callback7;
2026-07-25 08:10:48 +00:00
let c50;
2026-07-20 16:05:17 +00:00
let ref2;
let ref3;
toggleBuffering = undefined;
2026-07-25 08:10:48 +00:00
let left1 = callback3();
2026-07-23 10:11:24 +00:00
ref = externallyPaused.useRef(null);
let obj = onLoad(onToggleFullscreen[12]);
2026-07-20 16:05:17 +00:00
const videoQuestModalContext = obj.useVideoQuestModalContext();
quest = videoQuestModalContext.quest;
2026-07-23 10:11:24 +00:00
let obj1 = onLoad(onToggleFullscreen[13]);
2026-07-20 16:05:17 +00:00
questTaskDetails = obj1.useQuestTaskDetails(quest);
const userStatus = quest.userStatus;
let completedAt;
if (null != userStatus) {
completedAt = userStatus.completedAt;
}
2026-07-23 10:11:24 +00:00
c8 = tmp6;
let items = [quest];
memo = externallyPaused.useMemo(() => onLoad(onToggleFullscreen[14]).getQuestAsset(quest, onLoad(onToggleFullscreen[14]).QuestAssetType.VIDEO_PLAYER_VIDEO, undefined, true), items);
let items1 = [quest];
memo1 = externallyPaused.useMemo(() => onLoad(onToggleFullscreen[14]).getQuestAsset(quest, onLoad(onToggleFullscreen[14]).QuestAssetType.VIDEO_PLAYER_VIDEO_HLS, undefined, true), items1);
2026-07-20 16:05:17 +00:00
let url;
if (null != memo1) {
url = memo1.url;
}
if (null != url) {
2026-07-23 10:11:24 +00:00
let VIDEO_PLAYER_VIDEO = onLoad(onToggleFullscreen[14]).QuestAssetType.VIDEO_PLAYER_VIDEO_HLS;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
VIDEO_PLAYER_VIDEO = onLoad(onToggleFullscreen[14]).QuestAssetType.VIDEO_PLAYER_VIDEO;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const tmp14 = orientation(externallyPaused.useState(questTaskDetails.targetSeconds), 2);
2026-07-20 16:05:17 +00:00
first = tmp14[0];
closure_12 = tmp14[1];
targetSeconds = questTaskDetails.targetSeconds;
2026-07-23 10:11:24 +00:00
const tmp16 = memo((setVideoProgress) => setVideoProgress.setVideoProgress);
c14 = tmp16;
const tmp17 = memo((arg0) => {
let tmp = arg0.videoProgress[quest.id];
2026-07-20 16:05:17 +00:00
if (null == tmp) {
const obj = { timestampSec: questTaskDetails.progressSeconds, duration: first, maxTimestampSec: questTaskDetails.progressSeconds };
tmp = obj;
}
return tmp;
2026-07-23 10:11:24 +00:00
}, onLoad(onToggleFullscreen[15]).shallow);
c15 = tmp17;
const tmp18 = orientation(externallyPaused.useState(obj12.LOADING), 2);
first1 = tmp18[0];
2026-07-20 16:05:17 +00:00
closure_17 = tmp18[1];
2026-07-23 10:11:24 +00:00
callback = externallyPaused.useRef(false);
const tmp20 = orientation(externallyPaused.useState(false), 2);
first2 = tmp20[0];
callback2 = tmp20[1];
callback3 = externallyPaused.useRef(questTaskDetails.progressSeconds);
obj12 = externallyPaused.useRef([]);
closure_23 = externallyPaused.useRef(null);
closure_24 = externallyPaused.useRef(0);
2026-07-20 16:05:17 +00:00
if (first2) {
2026-07-23 10:11:24 +00:00
first2 = first1 === obj12.ENDED;
2026-07-20 16:05:17 +00:00
}
if (first2) {
2026-07-23 10:11:24 +00:00
first2 = callback(tmp17.timestampSec, tmp17.duration);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let obj2 = onLoad(onToggleFullscreen[16]);
sharedValue = obj2.useSharedValue(false);
const tmp25 = (() => {
2026-07-20 16:05:17 +00:00
function shouldShowControls() {
2026-07-23 10:11:24 +00:00
let tmp = outer1_19;
if (outer1_19) {
let value = outer1_26.get();
2026-07-20 16:05:17 +00:00
if (!value) {
2026-07-23 10:11:24 +00:00
value = outer1_16 === constants.PAUSED;
2026-07-20 16:05:17 +00:00
}
if (!value) {
2026-07-23 10:11:24 +00:00
value = outer1_16 === constants.ENDED;
2026-07-20 16:05:17 +00:00
}
if (!value) {
2026-07-23 10:11:24 +00:00
value = outer1_16 === constants.ERRORED;
2026-07-20 16:05:17 +00:00
}
if (!value) {
2026-07-23 10:11:24 +00:00
value = outer1_25;
2026-07-20 16:05:17 +00:00
}
if (!value) {
2026-07-23 10:11:24 +00:00
value = outer1_4;
2026-07-20 16:05:17 +00:00
}
tmp = value;
}
return tmp;
}
shouldShowControls.__closure = { hasLoaded: first2, showControls: sharedValue, playerState: first1, PlayerState: closure_22, isVideoEnded: first2, externallyPaused };
shouldShowControls.__workletHash = 11602236169344;
shouldShowControls.__initData = closure_23;
return shouldShowControls;
2026-07-23 10:11:24 +00:00
})();
c27 = tmp25;
let obj3 = onLoad(onToggleFullscreen[16]);
2026-07-20 16:05:17 +00:00
class K {
constructor() {
2026-07-27 11:26:19 +00:00
tmp = f107918();
2026-07-20 16:05:17 +00:00
obj = {};
obj2 = onLoad(onToggleFullscreen[17]);
num = 0;
if (tmp) {
num = 1;
}
obj.opacity = obj2.withSpring(num, onLoad(onToggleFullscreen[18]).SUBTLE_SPRING);
str = "none";
if (tmp) {
str = "auto";
}
obj.pointerEvents = str;
return obj;
}
}
2026-07-23 10:11:24 +00:00
obj = { shouldShowControls: tmp25, withSpring: onLoad(onToggleFullscreen[17]).withSpring, SUBTLE_SPRING: onLoad(onToggleFullscreen[18]).SUBTLE_SPRING };
2026-07-20 16:05:17 +00:00
K.__closure = obj;
K.__workletHash = 6174625876255;
K.__initData = closure_24;
const animatedStyle = obj3.useAnimatedStyle(K);
2026-07-23 10:11:24 +00:00
let obj5 = onLoad(onToggleFullscreen[16]);
2026-07-20 16:05:17 +00:00
sharedValue1 = obj5.useSharedValue(0);
2026-07-23 10:11:24 +00:00
let obj6 = onLoad(onToggleFullscreen[16]);
2026-07-20 16:05:17 +00:00
class W {
constructor() {
obj = {};
obj2 = onLoad(onToggleFullscreen[19]);
2026-07-23 10:11:24 +00:00
result = 100 * c28.get();
2026-07-20 16:05:17 +00:00
obj.width = obj2.withTiming(`${tmp}%`, onLoad(onToggleFullscreen[20]).timingFast, "animate-always");
return obj;
}
}
2026-07-23 10:11:24 +00:00
obj = { withTiming: onLoad(onToggleFullscreen[19]).withTiming, progress: sharedValue1, timingFast: onLoad(onToggleFullscreen[20]).timingFast };
2026-07-20 16:05:17 +00:00
W.__closure = obj;
W.__workletHash = 4647711667921;
2026-07-23 10:11:24 +00:00
W.__initData = first2;
2026-07-20 16:05:17 +00:00
const animatedStyle1 = obj6.useAnimatedStyle(W);
2026-07-23 10:11:24 +00:00
closure_29 = externallyPaused.useRef(-1);
2026-07-20 16:05:17 +00:00
const items2 = [sharedValue];
2026-07-23 10:11:24 +00:00
callback = externallyPaused.useCallback((arg0) => {
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return (arg0) => {
const items = [...arguments];
2026-07-23 10:11:24 +00:00
clearTimeout(outer1_29.current);
let result = outer1_26.set(true);
outer1_29.current = setTimeout(() => {
const result = outer2_26.set(false);
2026-07-20 16:05:17 +00:00
}, 2000);
2026-07-23 10:11:24 +00:00
if (null != closure_0) {
2026-07-20 16:05:17 +00:00
const items1 = [];
HermesBuiltin.arraySpread(items, 0);
return HermesBuiltin.apply(items1, undefined);
}
};
}, items2);
obj1 = { duration: first, isQuestCompleted: tmp6, playerState: first1, questId: quest.id, videoSessionId: videoQuestModalContext.videoSessionId, videoAssetId: VIDEO_PLAYER_VIDEO, sourceQuestContent };
2026-07-23 10:11:24 +00:00
const tmp31 = onEnd(onToggleFullscreen[21])(obj1);
2026-07-20 16:05:17 +00:00
handleEndAnalytics = tmp31.handleEndAnalytics;
handleErrorAnalytics = tmp31.handleErrorAnalytics;
handleLoadAnalytics = tmp31.handleLoadAnalytics;
handleLoadStartAnalytics = tmp31.handleLoadStartAnalytics;
handlePausePlaybackAnalytics = tmp31.handlePausePlaybackAnalytics;
handleProgressAnalytics = tmp31.handleProgressAnalytics;
handleReadyForDisplayAnalytics = tmp31.handleReadyForDisplayAnalytics;
handleResumePlaybackAnalytics = tmp31.handleResumePlaybackAnalytics;
handleSeekAnalytics = tmp31.handleSeekAnalytics;
2026-07-23 10:11:24 +00:00
ref1 = externallyPaused.useRef(null);
2026-07-20 16:05:17 +00:00
id = quest.id;
gameTitle = quest.config.messages.gameTitle;
url1 = undefined;
if (null != memo1) {
url1 = memo1.url;
}
if (null == url1) {
let url2;
if (null != memo) {
url2 = memo.url;
}
url1 = url2;
}
2026-07-23 10:11:24 +00:00
let obj9 = onLoad(onToggleFullscreen[22]);
2026-07-20 16:05:17 +00:00
const defaultWatchVideoTask = obj9.getDefaultWatchVideoTask(quest.config);
videoTitle = undefined;
if (null != defaultWatchVideoTask) {
videoTitle = defaultWatchVideoTask.messages.videoTitle;
}
let url3;
if (null != memo1) {
url3 = memo1.url;
}
str = "mp4";
if (null != url3) {
str = "hls";
}
2026-07-25 08:10:48 +00:00
const items3 = [id, gameTitle, targetSeconds, url1, videoTitle, str];
2026-07-23 10:11:24 +00:00
const effect = externallyPaused.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (null != ref.current) {
if (null != url1) {
if (0 !== url1.length) {
2026-07-25 08:10:48 +00:00
let obj = onLoad(onToggleFullscreen[23]);
2026-07-20 16:05:17 +00:00
obj = { location: memo1.VIDEO_MODAL_MOBILE };
if (obj.getVideoQoEMetricsConfig(obj).externalAnalyticsEnabled) {
2026-07-25 08:10:48 +00:00
const constants = onLoad(onToggleFullscreen[24]).getConstants();
2026-07-20 16:05:17 +00:00
obj = { videoRef: ref.current, feature: "quests" };
2026-07-25 08:10:48 +00:00
({ Version: obj4.appVersion, ReleaseChannel: obj4.releaseChannel } = constants);
const obj1 = { contentId: url1, videoStreamType: "quests", contentType: "quests", durationMs: 1000 * targetSeconds, title: videoTitle, questId: id, gameName: gameTitle };
2026-07-20 16:05:17 +00:00
obj.contentMetadata = obj1;
2026-07-25 08:10:48 +00:00
const MobileMuxWrapper = onLoad(onToggleFullscreen[23]).MobileMuxWrapper;
2026-07-20 16:05:17 +00:00
const prototype = MobileMuxWrapper.prototype;
const mobileMuxWrapper = new MobileMuxWrapper(obj);
ref1.current = mobileMuxWrapper;
2026-07-23 10:11:24 +00:00
let current = ref1.current;
2026-07-20 16:05:17 +00:00
current.initialize();
return () => {
2026-07-23 10:11:24 +00:00
if (null != outer1_39.current) {
const current = outer1_39.current;
current.onProgress(outer1_21.current);
const current2 = outer1_39.current;
2026-07-20 16:05:17 +00:00
current2.destroy();
2026-07-23 10:11:24 +00:00
outer1_39.current = null;
2026-07-20 16:05:17 +00:00
}
};
}
}
}
}
}, items3);
2026-07-25 08:10:48 +00:00
const tmp39 = orientation(externallyPaused.useState(false), 2);
closure_45 = tmp39[1];
2026-07-20 16:05:17 +00:00
const items4 = [handleReadyForDisplayAnalytics];
const items5 = [tmp17.maxTimestampSec];
2026-07-23 10:11:24 +00:00
const callback1 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
handleReadyForDisplayAnalytics();
const current = ref1.current;
if (null != current) {
current.onReadyForDisplay();
}
callback3(true);
}, items4);
2026-07-23 10:11:24 +00:00
callback2 = externallyPaused.useCallback((arg0) => {
2026-07-20 16:05:17 +00:00
if (null != ref.current) {
const _Math = Math;
const _Math2 = Math;
2026-07-23 10:11:24 +00:00
const bound = Math.max(0, Math.min(arg0, _undefined3.maxTimestampSec));
2026-07-20 16:05:17 +00:00
if (obj.isAndroid()) {
ref3.current = (ref3.current + 1) % 100;
const current2 = ref.current;
current2.seek(bound + 0.0001 * ref3.current);
} else {
const current = ref.current;
current.seek(bound);
}
closure_23.current = bound;
2026-07-25 08:10:48 +00:00
obj = onLoad(onToggleFullscreen[25]);
2026-07-20 16:05:17 +00:00
}
}, items5);
const items6 = [null != completedAt, tmp17.timestampSec, handleLoadAnalytics, onLoad, callback2];
const items7 = [first1, handlePausePlaybackAnalytics, handleResumePlaybackAnalytics, first2, callback2];
2026-07-23 10:11:24 +00:00
callback3 = externallyPaused.useCallback((arg0) => {
2026-07-20 16:05:17 +00:00
let duration;
let naturalSize;
let trackId;
let videoTracks;
({ duration, videoTracks, trackId, naturalSize } = arg0);
lib(duration);
callback2(true);
handleLoadAnalytics();
const current = ref1.current;
if (null != current) {
current.onLoad(duration);
}
if (null != naturalSize) {
const current2 = ref1.current;
if (null != current2) {
const result = current2.updateVideoSourceDimensions(naturalSize.width, naturalSize.height);
}
}
let tmp7 = null != videoTracks;
if (tmp7) {
tmp7 = videoTracks.length > 0;
}
if (tmp7) {
tmp7 = null != trackId;
}
if (tmp7) {
tmp7 = trackId.length > 0;
}
if (tmp7) {
const current3 = ref1.current;
if (null != current3) {
current3.onVideoTrackChange(trackId, videoTracks);
}
}
if (null != ref.current) {
2026-07-23 10:11:24 +00:00
const timestampSec = _undefined3.timestampSec;
let tmp12 = !c8;
if (!c8) {
2026-07-20 16:05:17 +00:00
tmp12 = timestampSec > 5;
}
if (tmp12) {
tmp12 = timestampSec < duration - 3;
}
if (tmp12) {
callback2(timestampSec - 1);
}
2026-07-23 10:11:24 +00:00
callback(closure_22.PLAYING);
2026-07-20 16:05:17 +00:00
if (null != onLoad) {
onLoad(arg0);
}
}
}, items6);
2026-07-23 10:11:24 +00:00
callback4 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
let obj = arg0;
if (arg0 === undefined) {
obj = {};
}
let flag = obj.shouldRestartVideo;
if (flag === undefined) {
flag = true;
}
if (first1 !== closure_22.ERRORED) {
if (first1 !== closure_22.PAUSED) {
if (first1 !== closure_22.LOADING) {
if (first1 === closure_22.PLAYING) {
callback(closure_22.PAUSED);
handlePausePlaybackAnalytics();
const current3 = ref1.current;
if (null != current3) {
current3.onPause();
}
}
}
}
callback(closure_22.PLAYING);
handleResumePlaybackAnalytics();
const current = ref1.current;
if (null != current) {
current.onPlay();
}
}
callback2(0);
callback(closure_22.PLAYING);
handleResumePlaybackAnalytics();
const current2 = ref1.current;
if (null != current2) {
current2.onPlay();
}
}, items7);
const items8 = [callback4];
const items9 = [first1, handlePausePlaybackAnalytics];
2026-07-23 10:11:24 +00:00
const callback5 = externallyPaused.useCallback(() => callback4(), items8);
callback6 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
closure_18.current = false;
if (first1 === closure_22.PLAYING) {
closure_18.current = true;
callback(closure_22.PAUSED);
handlePausePlaybackAnalytics();
const current = ref1.current;
if (null != current) {
current.onPause();
}
}
}, items9);
const items10 = [first1, handleResumePlaybackAnalytics];
2026-07-23 10:11:24 +00:00
callback7 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (ref.current) {
ref.current = false;
if (first1 !== closure_22.ERRORED) {
callback(closure_22.PLAYING);
handleResumePlaybackAnalytics();
const current = ref1.current;
if (null != current) {
current.onPlay();
}
}
}
}, items10);
const items11 = [callback6, callback7];
2026-07-23 10:11:24 +00:00
const effect1 = externallyPaused.useEffect(() => {
2026-07-25 08:10:48 +00:00
let ComponentDispatch = onLoad(onToggleFullscreen[26]).ComponentDispatch;
2026-07-20 16:05:17 +00:00
const subscription = ComponentDispatch.subscribe(lib.QUEST_GAME_LINK_OPENED, callback6);
2026-07-25 08:10:48 +00:00
let ComponentDispatch2 = onLoad(onToggleFullscreen[26]).ComponentDispatch;
2026-07-20 16:05:17 +00:00
const subscription1 = ComponentDispatch2.subscribe(lib.QUEST_APP_STORE_OVERLAY_FINISHED, callback7);
return () => {
2026-07-25 08:10:48 +00:00
const ComponentDispatch = onLoad(onToggleFullscreen[26]).ComponentDispatch;
ComponentDispatch.unsubscribe(constants.QUEST_GAME_LINK_OPENED, outer1_48);
const ComponentDispatch2 = onLoad(onToggleFullscreen[26]).ComponentDispatch;
ComponentDispatch2.unsubscribe(constants.QUEST_APP_STORE_OVERLAY_FINISHED, outer1_49);
2026-07-20 16:05:17 +00:00
};
}, items11);
const items12 = [onToggleFullscreen, orientation];
const items13 = [sharedValue, callback4];
2026-07-23 10:11:24 +00:00
const callback8 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (null != onToggleFullscreen) {
const obj = { orientation };
onToggleFullscreen(obj);
}
}, items12);
const items14 = [first, sharedValue1, handleSeekAnalytics, quest.id, tmp16];
2026-07-23 10:11:24 +00:00
const callback9 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (sharedValue.get()) {
const result = sharedValue.set(false);
}
callback4({ shouldRestartVideo: false });
}, items13);
2026-07-25 08:10:48 +00:00
let tmp51 = first1 === obj12.ERRORED;
2026-07-23 10:11:24 +00:00
const callback10 = externallyPaused.useCallback((currentTime) => {
2026-07-20 16:05:17 +00:00
let current = closure_22.current;
const arr = current.shift();
let tmp2 = null;
if (null != arr) {
tmp2 = arr;
}
if (null != ref.current) {
closure_21.current = currentTime.currentTime;
closure_23.current = null;
if (first > 0) {
const result = sharedValue1.set(currentTime.currentTime / first);
2026-07-23 10:11:24 +00:00
_undefined2(quest.id, currentTime.currentTime, first);
2026-07-20 16:05:17 +00:00
}
handleSeekAnalytics(tmp2, currentTime.currentTime);
current = ref1.current;
if (null != current) {
current.updatePlayheadTime(currentTime.currentTime);
}
const current2 = ref1.current;
if (null != current2) {
current2.onSeek();
}
}
}, items14);
2026-07-25 08:10:48 +00:00
if (!tmp51) {
tmp51 = !callback2(tmp17.timestampSec, tmp17.maxTimestampSec, tmp17.duration, tmp6);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
c50 = tmp51;
const items15 = [callback2, first, sharedValue1, tmp51];
2026-07-20 16:05:17 +00:00
const items16 = [callback2, first, sharedValue1, first1];
2026-07-23 10:11:24 +00:00
const callback11 = externallyPaused.useCallback(() => {
2026-07-25 08:10:48 +00:00
if (!c50) {
2026-07-20 16:05:17 +00:00
let current = ref2.current;
if (null == current) {
current = sharedValue1.get() * first;
}
current = closure_22.current;
current.push(current);
callback2(current + 10);
}
}, items15);
const tmp25Result = tmp25();
2026-07-23 10:11:24 +00:00
const callbackResult = callback(externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
let current = ref2.current;
if (null == current) {
current = sharedValue1.get() * first;
}
current = closure_22.current;
current.push(current);
callback2(current - 10);
if (first1 === closure_22.ENDED) {
callback(closure_22.PLAYING);
}
}, items16));
2026-07-23 10:11:24 +00:00
ref2 = externallyPaused.useRef(0);
ref3 = externallyPaused.useRef(0);
2026-07-20 16:05:17 +00:00
const items17 = [sharedValue1, quest, ref2, ref3, questTaskDetails.taskType, tmp16, handleProgressAnalytics];
const items18 = [first, quest, handleEndAnalytics, onEnd];
2026-07-23 10:11:24 +00:00
const callback12 = externallyPaused.useCallback((seekableDuration) => {
2026-07-20 16:05:17 +00:00
let num = 0;
if (0 !== seekableDuration.seekableDuration) {
num = seekableDuration.currentTime / seekableDuration.seekableDuration;
}
closure_21.current = seekableDuration.currentTime;
if (seekableDuration.currentTime >= ref2.current) {
2026-07-25 08:10:48 +00:00
onLoad(onToggleFullscreen[27]).sendVideoProgress(quest, seekableDuration.currentTime);
2026-07-20 16:05:17 +00:00
handleProgressAnalytics(num, seekableDuration.seekableDuration, seekableDuration.currentTime);
const _Math = Math;
const sum = seekableDuration.currentTime + 6;
ref2.current = sum + 2 * Math.random();
2026-07-25 08:10:48 +00:00
const obj2 = onLoad(onToggleFullscreen[27]);
2026-07-20 16:05:17 +00:00
}
if (seekableDuration.currentTime >= ref3.current) {
2026-07-25 08:10:48 +00:00
const result = onLoad(onToggleFullscreen[28]).updateOptimisticProgress(quest.id, questTaskDetails.taskType, seekableDuration.currentTime);
2026-07-20 16:05:17 +00:00
ref3.current = seekableDuration.currentTime + 1;
2026-07-25 08:10:48 +00:00
const obj = onLoad(onToggleFullscreen[28]);
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
_undefined2(quest.id, seekableDuration.currentTime, seekableDuration.seekableDuration);
2026-07-20 16:05:17 +00:00
const result1 = sharedValue1.set(num);
const current = ref1.current;
if (null != current) {
current.onProgress(seekableDuration.currentTime);
}
}, items17);
const items19 = [handleLoadStartAnalytics];
2026-07-23 10:11:24 +00:00
const callback13 = externallyPaused.useCallback(() => {
2026-07-25 08:10:48 +00:00
onLoad(onToggleFullscreen[27]).sendVideoProgress(quest, first);
2026-07-20 16:05:17 +00:00
handleEndAnalytics();
callback(closure_22.ENDED);
const current = ref1.current;
if (null != current) {
current.onProgress(first);
}
const current2 = ref1.current;
if (null != current2) {
current2.onEnd();
}
if (null != onEnd) {
onEnd();
}
}, items18);
const items20 = [handleErrorAnalytics];
2026-07-23 10:11:24 +00:00
const callback14 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
callback(closure_22.LOADING);
handleLoadStartAnalytics();
const current = ref1.current;
if (null != current) {
current.onLoadStart();
}
const current2 = ref1.current;
if (null != current2) {
current2.onPlay();
}
}, items19);
2026-07-23 10:11:24 +00:00
const callback15 = externallyPaused.useCallback((arg0) => {
2026-07-20 16:05:17 +00:00
callback(closure_22.ERRORED);
handleErrorAnalytics(arg0);
const current = ref1.current;
if (null != current) {
current.onError(arg0);
}
}, items20);
2026-07-23 10:11:24 +00:00
const callback16 = externallyPaused.useCallback((videoTracks) => {
2026-07-20 16:05:17 +00:00
let tmp = null != videoTracks && null != videoTracks.videoTracks;
if (tmp) {
tmp = videoTracks.videoTracks.length > 0;
}
if (tmp) {
tmp = null != videoTracks.selectedVideoTrackId;
}
if (tmp) {
tmp = videoTracks.selectedVideoTrackId.length > 0;
}
if (tmp) {
const current = ref1.current;
if (null != current) {
current.onVideoTrackChange(videoTracks.selectedVideoTrackId, videoTracks.videoTracks);
}
}
}, []);
2026-07-23 10:11:24 +00:00
const callback17 = externallyPaused.useCallback((nativeEvent) => {
2026-07-20 16:05:17 +00:00
let height;
let width;
let layout;
if (null != nativeEvent) {
nativeEvent = nativeEvent.nativeEvent;
if (null != nativeEvent) {
layout = nativeEvent.layout;
}
}
if (null != layout) {
({ width, height } = nativeEvent.nativeEvent.layout);
if (width > 0) {
if (height > 0) {
const current = ref1.current;
if (null != current) {
const result = current.updateVideoDimensions(width, height);
}
}
}
}
}, []);
2026-07-25 08:10:48 +00:00
let obj10 = onLoad(onToggleFullscreen[29]);
2026-07-23 10:11:24 +00:00
const items21 = [c8];
2026-07-25 08:10:48 +00:00
const tmp65 = obj10.useStateFromStores(items21, () => _undefined.getState()) === first.ACTIVE;
2026-07-20 16:05:17 +00:00
const items22 = [memo1, memo];
2026-07-23 10:11:24 +00:00
const memo2 = externallyPaused.useMemo(() => {
2026-07-20 16:05:17 +00:00
let tmp = null;
if (null != memo) {
const obj = {};
let url;
if (null != memo1) {
url = memo1.url;
}
if (null == url) {
url = memo.url;
}
obj.uri = url;
tmp = obj;
}
return tmp;
}, items22);
2026-07-23 10:11:24 +00:00
const layoutEffect = externallyPaused.useLayoutEffect(() => {
2026-07-20 16:05:17 +00:00
if (obj.isAndroid()) {
2026-07-23 10:11:24 +00:00
const current = ref.current;
2026-07-20 16:05:17 +00:00
return () => {
let tmp2 = tmp;
if (null != current) {
tmp2 = null == current.setNativeProps;
}
if (!tmp2) {
let obj = { paused: true };
obj = { uri: null };
obj.src = obj;
current.setNativeProps(obj);
}
};
}
2026-07-25 08:10:48 +00:00
obj = onLoad(onToggleFullscreen[25]);
2026-07-20 16:05:17 +00:00
}, []);
2026-07-25 08:10:48 +00:00
let tmp68 = !tmp65;
if (tmp65) {
tmp68 = first1 === obj12.PAUSED;
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
if (!tmp68) {
tmp68 = first1 === obj12.LOADING;
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
if (!tmp68) {
tmp68 = externallyPaused;
2026-07-20 16:05:17 +00:00
}
const callbackResult1 = callback(callback11);
2026-07-23 10:11:24 +00:00
({ isBuffering, toggleBuffering } = (function useBufferingState(handleBufferAnalytics) {
2026-07-20 16:05:17 +00:00
handleBufferAnalytics = handleBufferAnalytics.handleBufferAnalytics;
const videoQoETracker = handleBufferAnalytics.videoQoETracker;
let closure_2 = externallyPaused.useRef(false);
const tmp = orientation(externallyPaused.useState(false), 2);
2026-07-23 10:11:24 +00:00
let _slicedToArray = tmp[1];
2026-07-20 16:05:17 +00:00
const items = [handleBufferAnalytics, videoQoETracker];
return {
isBuffering: tmp[0],
toggleBuffering: externallyPaused.useCallback((current) => {
callback(current);
if (current !== ref.current) {
ref.current = current;
handleBufferAnalytics(current);
current = videoQoETracker.current;
if (null != current) {
current.onBuffer(current);
}
}
}, items)
};
2026-07-23 10:11:24 +00:00
})({ handleBufferAnalytics: tmp31.handleBufferAnalytics, videoQoETracker: ref1 }));
2026-07-20 16:05:17 +00:00
const items23 = [toggleBuffering, first1];
const items24 = [toggleBuffering];
2026-07-23 10:11:24 +00:00
const callback18 = externallyPaused.useCallback((isBuffering) => {
2026-07-20 16:05:17 +00:00
isBuffering = isBuffering.isBuffering;
if (!isBuffering) {
if (!isBuffering) {
toggleBuffering(false);
}
} else {
if (first1 !== closure_22.LOADING) {
2026-07-25 08:10:48 +00:00
const obj = onLoad(onToggleFullscreen[25]);
2026-07-20 16:05:17 +00:00
}
toggleBuffering(true);
}
}, items23);
const items25 = [toggleBuffering];
2026-07-23 10:11:24 +00:00
const callback19 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (obj.isIOS()) {
toggleBuffering(true);
}
}, items24);
2026-07-23 10:11:24 +00:00
const callback20 = externallyPaused.useCallback(() => {
2026-07-20 16:05:17 +00:00
if (obj.isIOS()) {
toggleBuffering(false);
}
}, items25);
2026-07-25 08:10:48 +00:00
const tmp75 = onEnd(onToggleFullscreen[31])();
2026-07-20 16:05:17 +00:00
if (null == memo2) {
return null;
} else {
2026-07-25 08:10:48 +00:00
let tmp76 = isFullscreen;
2026-07-20 16:05:17 +00:00
if (isFullscreen) {
2026-07-25 08:10:48 +00:00
tmp76 = null != tmp75;
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
if (tmp76) {
obj2 = { paddingRight: sharedValue(tmp75, "right"), paddingLeft: sharedValue(tmp75, "left") };
tmp76 = obj2;
2026-07-20 16:05:17 +00:00
}
obj3 = {};
2026-07-25 08:10:48 +00:00
const items26 = [left1.container, style];
2026-07-20 16:05:17 +00:00
obj3.style = items26;
obj3.accessible = false;
2026-07-25 08:10:48 +00:00
const obj4 = {};
const items27 = [left1.videoContainer];
2026-07-20 16:05:17 +00:00
obj4.style = items27;
obj4.onPress = callback9;
obj4.accessible = !tmp25Result;
2026-07-25 08:10:48 +00:00
const intl = onLoad(onToggleFullscreen[32]).intl;
const t = onLoad(onToggleFullscreen[32]).t;
obj4.accessibilityLabel = intl.string(tmp68 ? t.R3aFPe : t.fTMEUi);
let tmp87 = first1 !== obj12.ERRORED;
if (tmp87) {
obj5 = { mixWithOthers: "inherit", ref, accessible: false, importantForAccessibility: "no-hide-descendants", accessibilityRole: "none", style: left1.video, paused: tmp68, source: memo2, onBuffer: callback18, onPlaybackStalled: callback19, onPlaybackResume: callback20, onLoad: callback3, onSeek: callback10, onProgress: callback12, onLoadStart: callback14, onEnd: callback13, onError: callback15, onReadyForDisplay: callback1, onVideoTracks: callback16, onLayout: callback17, resizeMode: "contain" };
tmp87 = targetSeconds(first1, obj5);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
const items28 = [tmp87, , , , , ];
2026-07-20 16:05:17 +00:00
obj6 = { quest, currentTime: tmp17.timestampSec, visible: flag };
const obj7 = {};
let top;
if (null != contentInsets) {
top = contentInsets.top;
}
let num5 = 0;
if (null != top) {
num5 = top;
}
obj7.top = num5;
let bottom;
if (null != contentInsets) {
bottom = contentInsets.bottom;
}
let num6 = 0;
if (null != bottom) {
num6 = bottom;
}
obj7.bottom = num6;
let left;
if (null != contentInsets) {
left = contentInsets.left;
}
let num7 = 0;
if (null != left) {
num7 = left;
}
obj7.left = num7;
let right;
if (null != contentInsets) {
right = contentInsets.right;
}
let num8 = 0;
if (null != right) {
num8 = right;
}
obj7.right = num8;
obj6.style = obj7;
2026-07-25 08:10:48 +00:00
items28[1] = targetSeconds(onLoad(onToggleFullscreen[33]).VideoQuestCaptions, obj6);
2026-07-20 16:05:17 +00:00
if (!isBuffering) {
items28[2] = isBuffering;
2026-07-25 08:10:48 +00:00
left1 = !tmp39[0];
if (left1) {
left1 = targetSeconds;
left1 = ref;
const obj8 = { style: left1.loadingContainer };
left1 = questTaskDetails;
2026-07-20 16:05:17 +00:00
obj9 = { animating: true };
obj8.children = targetSeconds(questTaskDetails, obj9);
2026-07-25 08:10:48 +00:00
left1 = targetSeconds(ref, obj8);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
items28[3] = left1;
left1 = onEnd;
left1 = onToggleFullscreen;
left1 = c14;
2026-07-20 16:05:17 +00:00
obj10 = {};
2026-07-25 08:10:48 +00:00
const items29 = [left1.controls, animatedStyle];
2026-07-20 16:05:17 +00:00
obj10.style = items29;
obj10.accessible = false;
2026-07-25 08:10:48 +00:00
left1 = "landscape" === orientation;
if (left1) {
const obj11 = {};
2026-07-20 16:05:17 +00:00
const items30 = [, , ];
2026-07-25 08:10:48 +00:00
({ controlsTopBottom: arr32[0], controlsTop: arr32[1] } = left1);
items30[2] = tmp76;
2026-07-20 16:05:17 +00:00
obj11.style = items30;
if (!hasCaptionAsset) {
const items31 = [hasCaptionAsset, ];
if (flag2) {
2026-07-25 08:10:48 +00:00
left1 = targetSeconds;
left1 = onLoad;
left1 = onToggleFullscreen;
2026-07-23 10:11:24 +00:00
obj12 = { accessibilityRole: "button" };
2026-07-25 08:10:48 +00:00
const intl3 = onLoad(onToggleFullscreen[32]).intl;
obj12.accessibilityLabel = intl3.string(onLoad(onToggleFullscreen[32]).t.KCzjTi);
2026-07-20 16:05:17 +00:00
obj12.onPress = handleOpenTranscript;
2026-07-25 08:10:48 +00:00
obj12.style = left1.controlButton;
const obj13 = { color: left1.iconDisabled.color };
obj12.children = targetSeconds(onLoad(onToggleFullscreen[36]).TranscriptOutlineIcon, obj13);
flag2 = targetSeconds(onLoad(onToggleFullscreen[34]).PressableOpacity, obj12);
2026-07-20 16:05:17 +00:00
}
items31[1] = flag2;
obj11.children = items31;
2026-07-25 08:10:48 +00:00
left1 = left1(left1, obj11);
2026-07-20 16:05:17 +00:00
} else {
2026-07-25 08:10:48 +00:00
left1 = targetSeconds;
left1 = onLoad;
left1 = onToggleFullscreen;
2026-07-20 16:05:17 +00:00
const obj14 = { accessibilityRole: "button" };
2026-07-25 08:10:48 +00:00
const intl2 = onLoad(onToggleFullscreen[32]).intl;
obj14.accessibilityLabel = intl2.string(onLoad(onToggleFullscreen[32]).t.bDSZO1);
2026-07-20 16:05:17 +00:00
obj14.onPress = handleToggleCaptions;
2026-07-25 08:10:48 +00:00
obj14.style = left1.controlButton;
2026-07-20 16:05:17 +00:00
let obj15 = {};
if (flag) {
2026-07-25 08:10:48 +00:00
let color = left1.icon.color;
2026-07-20 16:05:17 +00:00
} else {
2026-07-25 08:10:48 +00:00
color = left1.iconDisabled.color;
2026-07-20 16:05:17 +00:00
}
obj15.color = color;
2026-07-25 08:10:48 +00:00
obj15 = left1(onLoad(onToggleFullscreen[35]).ClosedCaptionsOutlineIcon, obj15);
2026-07-20 16:05:17 +00:00
obj14.children = obj15;
2026-07-25 08:10:48 +00:00
left1 = left1(onLoad(onToggleFullscreen[34]).PressableOpacity, obj14);
2026-07-20 16:05:17 +00:00
}
}
2026-07-25 08:10:48 +00:00
const items32 = [left1, , ];
const obj16 = { style: left1.controlsMiddle };
left1 = onLoad;
left1 = onToggleFullscreen;
left1 = c14;
left1 = ref;
left1 = targetSeconds;
2026-07-20 16:05:17 +00:00
const obj17 = {};
2026-07-25 08:10:48 +00:00
left1 = obj12;
2026-07-23 10:11:24 +00:00
obj17.disabled = first1 === obj12.ERRORED;
2026-07-20 16:05:17 +00:00
obj17.accessibilityRole = "button";
2026-07-25 08:10:48 +00:00
const intl4 = onLoad(onToggleFullscreen[32]).intl;
obj17.accessibilityLabel = intl4.string(onLoad(onToggleFullscreen[32]).t.r9s3Uv);
2026-07-20 16:05:17 +00:00
obj17.onPress = callbackResult;
2026-07-25 08:10:48 +00:00
const obj18 = { color: left1.icon.color, width: 16, height: 16 };
obj17.children = targetSeconds(onLoad(onToggleFullscreen[38]).SkipBackwardIcon, obj18);
const items33 = [targetSeconds(onLoad(onToggleFullscreen[37]).VideoQuestPlayerControlButton, obj17), , ];
2026-07-20 16:05:17 +00:00
const obj19 = { accessibilityRole: "button" };
if (!first2) {
2026-07-25 08:10:48 +00:00
left1 = obj12;
2026-07-23 10:11:24 +00:00
if (first1 !== obj12.ERRORED) {
2026-07-25 08:10:48 +00:00
left1 = onLoad;
left1 = onToggleFullscreen;
const t2 = onLoad(onToggleFullscreen[32]).t;
let K0e7M9 = tmp68 ? t2.R3aFPe : t2.fTMEUi;
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
obj19.accessibilityLabel = left1(K0e7M9);
2026-07-20 16:05:17 +00:00
obj19.onPress = callback5;
if (!first2) {
2026-07-25 08:10:48 +00:00
left1 = obj12;
2026-07-23 10:11:24 +00:00
if (first1 !== obj12.ERRORED) {
2026-07-25 08:10:48 +00:00
left1 = onLoad;
left1 = onToggleFullscreen;
left1 = targetSeconds;
if (tmp68) {
let PauseIcon = left1(left1[40]).PlayIcon;
2026-07-20 16:05:17 +00:00
} else {
2026-07-25 08:10:48 +00:00
PauseIcon = left1(left1[41]).PauseIcon;
2026-07-20 16:05:17 +00:00
}
const obj20 = { size: "lg" };
2026-07-25 08:10:48 +00:00
left1 = left1(PauseIcon, obj20);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
obj19.children = left1;
items33[1] = left1(onLoad(onToggleFullscreen[37]).VideoQuestPlayerControlButton, obj19);
left1 = targetSeconds;
left1 = onLoad;
left1 = onToggleFullscreen;
const obj21 = { disabled: tmp51, accessibilityRole: "button" };
const intl5 = onLoad(onToggleFullscreen[32]).intl;
obj21.accessibilityLabel = intl5.string(onLoad(onToggleFullscreen[32]).t.zWDcNP);
2026-07-20 16:05:17 +00:00
obj21.onPress = callbackResult1;
2026-07-25 08:10:48 +00:00
const obj22 = { color: left1.icon.color, width: 16, height: 16 };
obj21.children = targetSeconds(onLoad(onToggleFullscreen[42]).SkipForwardIcon, obj22);
items33[2] = targetSeconds(onLoad(onToggleFullscreen[37]).VideoQuestPlayerControlButton, obj21);
2026-07-20 16:05:17 +00:00
obj16.children = items33;
2026-07-25 08:10:48 +00:00
items32[1] = left1(left1, obj16);
if (left1) {
left1 = targetSeconds;
left1 = ref;
2026-07-20 16:05:17 +00:00
const obj23 = {};
const items34 = [, , ];
2026-07-25 08:10:48 +00:00
({ controlsTopBottom: arr36[0], controlsBottom: arr36[1] } = left1);
items34[2] = tmp76;
2026-07-20 16:05:17 +00:00
obj23.style = items34;
2026-07-25 08:10:48 +00:00
left1 = onLoad;
left1 = onToggleFullscreen;
2026-07-20 16:05:17 +00:00
const obj24 = { accessibilityRole: "button" };
2026-07-25 08:10:48 +00:00
const intl6 = onLoad(onToggleFullscreen[32]).intl;
obj24.accessibilityLabel = intl6.string(onLoad(onToggleFullscreen[32]).t.vKZT5t);
2026-07-20 16:05:17 +00:00
obj24.onPress = callback8;
2026-07-25 08:10:48 +00:00
obj24.style = left1.controlButton;
obj24.children = targetSeconds(onLoad(onToggleFullscreen[43]).FullscreenEnterIcon, {});
obj23.children = targetSeconds(onLoad(onToggleFullscreen[34]).PressableOpacity, obj24);
left1 = targetSeconds(ref, obj23);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
items32[2] = left1;
2026-07-20 16:05:17 +00:00
obj10.children = items32;
2026-07-25 08:10:48 +00:00
items28[4] = left1(onEnd(onToggleFullscreen[16]).View, obj10);
if (left1) {
left1 = targetSeconds;
left1 = ref;
const obj25 = { style: left1.progressContainer };
left1 = onEnd;
left1 = onToggleFullscreen;
2026-07-20 16:05:17 +00:00
const obj26 = {};
2026-07-25 08:10:48 +00:00
const items35 = [left1.progress, animatedStyle1];
2026-07-20 16:05:17 +00:00
obj26.style = items35;
2026-07-23 10:11:24 +00:00
obj25.children = targetSeconds(onEnd(onToggleFullscreen[16]).View, obj26);
2026-07-25 08:10:48 +00:00
left1 = targetSeconds(ref, obj25);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
items28[5] = left1;
2026-07-20 16:05:17 +00:00
obj4.children = items28;
2026-07-25 08:10:48 +00:00
obj3.children = tmp80(tmp81, obj4);
return tmp78(tmp79, obj3);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
left1 = targetSeconds;
left1 = onLoad;
left1 = onToggleFullscreen;
2026-07-20 16:05:17 +00:00
const obj27 = { size: "lg" };
2026-07-25 08:10:48 +00:00
left1 = targetSeconds(onLoad(onToggleFullscreen[39]).RetryIcon, obj27);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
left1 = onLoad;
left1 = onToggleFullscreen;
K0e7M9 = onLoad(onToggleFullscreen[32]).t.K0e7M9;
2026-07-20 16:05:17 +00:00
} else {
const obj28 = { animating: true };
2026-07-25 08:10:48 +00:00
let items36 = [left1.bufferingSpinner, ];
2026-07-20 16:05:17 +00:00
if (!isFullscreen) {
if ("landscape" !== orientation) {
let obj29 = {};
2026-07-25 08:10:48 +00:00
let top1;
2026-07-20 16:05:17 +00:00
if (null != contentInsets) {
top1 = contentInsets.top;
}
let num9 = 0;
if (null != top1) {
num9 = top1;
}
obj29.top = num9;
2026-07-25 08:10:48 +00:00
left1 = undefined;
2026-07-20 16:05:17 +00:00
if (null != contentInsets) {
2026-07-25 08:10:48 +00:00
left1 = contentInsets.left;
2026-07-20 16:05:17 +00:00
}
let num10 = 0;
2026-07-25 08:10:48 +00:00
if (null != left1) {
num10 = left1;
2026-07-20 16:05:17 +00:00
}
obj29.left = num10;
}
items36[1] = obj29;
obj28.style = items36;
2026-07-25 08:10:48 +00:00
left1 = onEnd;
left1 = onToggleFullscreen;
2026-07-23 10:11:24 +00:00
items36 = onEnd(onToggleFullscreen[8]).unsafe_rawColors.WHITE;
2026-07-20 16:05:17 +00:00
obj28.color = items36;
2026-07-25 08:10:48 +00:00
left1 = tmp97(tmp98, obj28);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
obj29 = left1.bufferingSpinnerCentered;
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
tmp78 = targetSeconds;
tmp79 = ref;
tmp80 = c14;
tmp81 = quest;
const tmp90 = targetSeconds;
2026-07-20 16:05:17 +00:00
}
});
2026-07-23 10:11:24 +00:00
let result = require("get ActivityIndicator").fileFinishedImporting("modules/quests/native/VideoQuestModal/VideoQuestPlayer.tsx");
2026-07-20 16:05:17 +00:00
export const PlayerState = obj12;
export const VideoQuestPlayer = memoResult;