/* Metro module 13538; source: modules/quests/native/BountiesModal/BountyVideo.tsx; dependencies: [31, 27, 6528, 33, 697, 4501, 13539, 9564, 9530, 4017, 4504, 4507, 13523, 13540, 10124, 13541, 2] */ import Native from '../../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import ReanimatedRexport from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import BountiesModalProgress from './BountiesModalProgress.tsx'; /* Metro dependency 13539 */ import BountiesModalTimer from './BountiesModalTimer.tsx'; /* Metro dependency 13540 */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as ReanimatedRexportModule from '../../../reanimated/ReanimatedRexport.tsx'; /* Metro dependency 4017 */ import * as CreateStylesModule from '../../../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ import * as TimingModule from '../../../../design/animation/reanimated/timing/timing.tsx'; /* Metro dependency 4504 */ import * as QuestConstantsModule from '../../QuestConstants.tsx'; /* Metro dependency 6528 */ import * as BountiesStage1ExperimentModule from '../../experiments/BountiesStage1Experiment.tsx'; /* Metro dependency 9530 */ import * as AndroidRNVHttpEngineExperimentModule from '../../../media_uploads/experiments/AndroidRNVHttpEngineExperiment.tsx'; /* Metro dependency 9564 */ import * as BalanceWidgetPillModule from '../../../virtual_currency/native/BalanceWidgetPill.tsx'; /* Metro dependency 10124 */ import * as AdVideoPlayerModule from '../AdVideoPlayer.tsx'; /* Metro dependency 13523 */ import * as BountiesModalProgressModule from './BountiesModalProgress.tsx'; /* Metro dependency 13539 */ function _fun102888(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#102888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:6, offset: 0x0224cda1, size: 304 bytes, params: 8, frame: 19 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); ReactModule; let value = ReactNativeModule; const env0_3 = value.View; const env0_4 = value.StyleSheet; value = require(33) /* metro dependency 33 */; const env0_6 = value.jsx; const env0_7 = value.jsxs; const env0_8 = value.Fragment; const env0_9 = {'top': 48, 'bottom': 16, 'left': 16, 'right': 16}; const env0_11 = (CreateStylesModule).createStyles(_fun102889); object = {code: 'function BountyVideoTsx1(){const{isScrollingInBoundsSharedValue,withTiming,isActive,timingStandard}=this.__closure;var _isScrollingInBoundsS;const isScrollingInBounds=((_isScrollingInBoundsS=isScrollingInBoundsSharedValue)===null||_isScrollingInBoundsS===void 0?void 0:_isScrollingInBoundsS.get())===true;return{opacity:withTiming(isActive&&!isScrollingInBounds?1:0,timingStandard)};}'}; (FileImportTrackerModule).fileFinishedImporting('modules/quests/native/BountiesModal/BountyVideo.tsx'); exports.BountyVideo = BountyVideo; function _fun102889() { // fn#102889, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:295, offset: 0x0224ced1, size: 215 bytes, params: 1, frame: 18 const object = {}; const object2 = {}; copyDataProperties(object2, StyleSheet.absoluteFillObject, undefined); object2['overflow'] = 'hidden'; const lgBinding = lg; object2['borderRadius'] = lgBinding; object.videoContainer = object2; const object3 = {'position': 'absolute', 'top': null, 'left': null, 'flexDirection': 'row', 'alignItems': 'center'}; let PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object3.top = PX_8; PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object3.left = PX_8; PX_8 = (importDefault(697) /* metro dependency 697: native */).space.PX_8; object3.gap = PX_8; object.leftRow = object3; const PROGRESS_BAR_HEIGHT = (BountiesModalProgressModule).PROGRESS_BAR_HEIGHT; object.progress = {'position': 'absolute', 'bottom': 0, height: PROGRESS_BAR_HEIGHT, left: lgBinding, right: lgBinding}; return object; } function BountyVideo({bounty, sourceQuestContent, isCompleted, isCtaVisible, isEndCardVisible, isProgressBarVisible, orbsBalance, handleVideoEnd, handleVideoProgress, handleVideoPaused, handleVideoResumed, rewardRemainingSeconds, rewardTotalSeconds, normalizedProgress, initialProgress, repeat, isActive, isRecapPageRevealed, isScrollingInBoundsSharedValue, renderEndCard, playerRef, onPlayerStateChange, balanceWidgetPillResetKey}) { // fn#102890, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:1105, offset: 0x0224cfa8, size: 978 bytes, params: 2, frame: 51 isActive = !(isActive === undefined) && isActive; isRecapPageRevealed = !(isRecapPageRevealed === undefined) && isRecapPageRevealed; const styles = useStyles(); const value5 = (AndroidRNVHttpEngineExperimentModule).useRnvHttpEngine(); const BountiesStage1Experiment = (BountiesStage1ExperimentModule).BountiesStage1Experiment; const useConfig = BountiesStage1Experiment.useConfig; const VIDEO_MODAL_MOBILE = QuestsExperimentLocations.VIDEO_MODAL_MOBILE; const enabled = Reflect.apply(useConfig, BountiesStage1Experiment, [{location: VIDEO_MODAL_MOBILE}]).enabled; const useAnimatedStyle = ReanimatedRexportModule.useAnimatedStyle; const BountyVideoL2 = BountyVideoL; object = {isScrollingInBoundsSharedValue: isScrollingInBoundsSharedValue}; object.withTiming = (require(4504) /* metro dependency 4504: timing */).withTiming; object.isActive = isActive; object.timingStandard = (require(4507) /* metro dependency 4507: timingPresets */).timingStandard; BountyVideoL2.__closure = object; BountyVideoL2.__workletHash = 12287714482150; BountyVideoL2.__initData = env0_12; const value6 = Reflect.apply(useAnimatedStyle, ReanimatedRexportModule, [BountyVideoL2]); const jsxRuntimeEnv0_8Binding = jsxRuntimeEnv0_8; const AdVideoPlayer = (AdVideoPlayerModule).AdVideoPlayer; const r35 = !enabled && undefined; let r33 = isActive ? isEndCardVisible : !isActive; r33 = !r33 ? isRecapPageRevealed : r33; const items3 = [ , ]; items3[1] = renderEndCard?.(); const View2 = (ReanimatedRexport).View; const items2 = [styles.leftRow, value6]; const value12 = ((Component) => )(BountiesModalTimer); const BalanceWidgetPill = (BalanceWidgetPillModule).BalanceWidgetPill; items3[2] = ( {value12} ); const View3 = (ReanimatedRexport).View; items3[3] = ( {((Component) => )(importDefault(13541) /* metro dependency 13541: BountiesModalAdvertiserCta */)} ); const view = ( {items3} ); const View4 = (ReanimatedRexport).View; return ( <> {view} {((Component) => )(BountiesModalProgress)} ); function BountyVideoL() { // fn#102891, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13728:1728, owner: BountyVideo.L, offset: 0x0224d37a, size: 121 bytes, params: 1, frame: 18 const r7 = isScrollingInBoundsSharedValue?.get(); const object = {}; const withTiming = TimingModule.withTiming; const isActiveBinding = isActive; const value = 0; object.opacity = Reflect.apply(withTiming, TimingModule, [isActiveBinding ? r7 === true ? value : 1 : value, (require(4507) /* metro dependency 4507: timingPresets */).timingStandard]); return object; } } } global.__d(_fun102888, 13538, [31, 27, 6528, 33, 697, 4501, 13539, 9564, 9530, 4017, 4504, 4507, 13523, 13540, 10124, 13541, 2]) /* metro module 13538, dependencies: [31, 27, 6528, 33, 697, 4501, 13539, 9564, 9530, 4017, 4504, 4507, 13523, 13540, 10124, 13541, 2] */;