cafe-video-player 3.0.12 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/VideoHighLighter-DUJF47R3.js +2 -0
- package/VideoHighLighter-DUJF47R3.js.map +1 -0
- package/VideoHighLighter-ZDZ7LZVD.mjs +2 -0
- package/VideoHighLighter-ZDZ7LZVD.mjs.map +1 -0
- package/backwardForward-3X63XNNJ.mjs +2 -0
- package/backwardForward-3X63XNNJ.mjs.map +1 -0
- package/backwardForward-HTLSZBXC.js +2 -0
- package/backwardForward-HTLSZBXC.js.map +1 -0
- package/chunk-2DV7FRU5.mjs +2 -0
- package/chunk-2DV7FRU5.mjs.map +1 -0
- package/chunk-3TPEXSZV.js +2 -0
- package/chunk-3TPEXSZV.js.map +1 -0
- package/chunk-4QMWBTB5.mjs +2 -0
- package/chunk-4QMWBTB5.mjs.map +1 -0
- package/chunk-5UGSCO4K.js +3 -0
- package/chunk-5UGSCO4K.js.map +1 -0
- package/chunk-6LGS5W4B.mjs +2 -0
- package/chunk-6LGS5W4B.mjs.map +1 -0
- package/chunk-AK5TFAW3.js +2 -0
- package/chunk-AK5TFAW3.js.map +1 -0
- package/chunk-AN6JAJSI.js +2 -0
- package/chunk-AN6JAJSI.js.map +1 -0
- package/chunk-B2LB3L3X.mjs +2 -0
- package/chunk-B2LB3L3X.mjs.map +1 -0
- package/chunk-BNVNO5NH.js +2 -0
- package/chunk-BNVNO5NH.js.map +1 -0
- package/chunk-COYFW7R4.js +3 -0
- package/chunk-COYFW7R4.js.map +1 -0
- package/chunk-EPUUJE7V.mjs +9 -0
- package/chunk-EPUUJE7V.mjs.map +1 -0
- package/chunk-FXAWDALE.mjs +2 -0
- package/chunk-FXAWDALE.mjs.map +1 -0
- package/chunk-HOAJ3EFI.mjs +3 -0
- package/chunk-HOAJ3EFI.mjs.map +1 -0
- package/chunk-HZASW2B2.js +2 -0
- package/chunk-HZASW2B2.js.map +1 -0
- package/chunk-ISVY5ION.js +2 -0
- package/chunk-ISVY5ION.js.map +1 -0
- package/chunk-K4YPVDEE.js +2 -0
- package/chunk-K4YPVDEE.js.map +1 -0
- package/chunk-KSZ35TPK.js +2 -0
- package/chunk-KSZ35TPK.js.map +1 -0
- package/chunk-MVNOUM3G.js +9 -0
- package/chunk-MVNOUM3G.js.map +1 -0
- package/chunk-NLCBOGTI.mjs +3 -0
- package/chunk-NLCBOGTI.mjs.map +1 -0
- package/chunk-P46UX5ND.mjs +2 -0
- package/chunk-P46UX5ND.mjs.map +1 -0
- package/chunk-P4O3IKAQ.mjs +2 -0
- package/chunk-P4O3IKAQ.mjs.map +1 -0
- package/chunk-QFADUEGX.mjs +2 -0
- package/chunk-QFADUEGX.mjs.map +1 -0
- package/chunk-UL5LQB3G.mjs +2 -0
- package/chunk-UL5LQB3G.mjs.map +1 -0
- package/chunk-VUHZVVMS.js +3 -0
- package/chunk-VUHZVVMS.js.map +1 -0
- package/chunk-W5NVHMWX.js +2 -0
- package/chunk-W5NVHMWX.js.map +1 -0
- package/chunk-XKRBXZUB.mjs +3 -0
- package/chunk-XKRBXZUB.mjs.map +1 -0
- package/index.js +1 -7307
- package/index.js.map +1 -1
- package/index.mjs +1 -7292
- package/index.mjs.map +1 -1
- package/nonStaticVideoTag-5HEUBWAN.js +2 -0
- package/nonStaticVideoTag-5HEUBWAN.js.map +1 -0
- package/nonStaticVideoTag-P47FI6UV.mjs +2 -0
- package/nonStaticVideoTag-P47FI6UV.mjs.map +1 -0
- package/notActive-DRH5BEL5.js +2 -0
- package/notActive-DRH5BEL5.js.map +1 -0
- package/notActive-DSDPVSW4.mjs +2 -0
- package/notActive-DSDPVSW4.mjs.map +1 -0
- package/package.json +52 -51
- package/staticPlayer-7LS2DPUR.js +2 -0
- package/staticPlayer-7LS2DPUR.js.map +1 -0
- package/staticPlayer-J7Q3JXQ2.mjs +2 -0
- package/staticPlayer-J7Q3JXQ2.mjs.map +1 -0
- package/staticVideoTag-JOPHGL3R.mjs +2 -0
- package/staticVideoTag-JOPHGL3R.mjs.map +1 -0
- package/staticVideoTag-OZZU5MWF.js +2 -0
- package/staticVideoTag-OZZU5MWF.js.map +1 -0
- package/videoArea-BVYEZUSL.mjs +2 -0
- package/videoArea-BVYEZUSL.mjs.map +1 -0
- package/videoArea-M6ZAWJQW.js +2 -0
- package/videoArea-M6ZAWJQW.js.map +1 -0
- package/videoPlayerStyles.css +4 -8
- package/vodPlayer-B5JRKEU3.js +2 -0
- package/vodPlayer-B5JRKEU3.js.map +1 -0
- package/vodPlayer-GQETGYFT.mjs +2 -0
- package/vodPlayer-GQETGYFT.mjs.map +1 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk5UGSCO4K_js=require('./chunk-5UGSCO4K.js'),chunkVUHZVVMS_js=require('./chunk-VUHZVVMS.js'),chunkAN6JAJSI_js=require('./chunk-AN6JAJSI.js');chunkAN6JAJSI_js.e();var he=e=>{e.preventDefault();let t=(chunkVUHZVVMS_js.x()||chunkVUHZVVMS_js.y()).error;if(t)switch(t.code){case t.MEDIA_ERR_ABORTED:chunkVUHZVVMS_js.P({type:"videoTagError",message:"You aborted the video playback."});break;case t.MEDIA_ERR_NETWORK:chunkVUHZVVMS_js.P({type:"videoTagError",message:"A network error caused the video download to fail part-way."});break;case t.MEDIA_ERR_DECODE:chunkVUHZVVMS_js.P({type:"videoTagError",message:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support."});break;case t.MEDIA_ERR_SRC_NOT_SUPPORTED:chunkVUHZVVMS_js.P({type:"videoTagError",message:"The video could not be loaded, either because the server or network failed or because the format is not supported."});break;default:chunkVUHZVVMS_js.P({type:"videoTagError",message:"An unknown error occurred."});break}else chunkVUHZVVMS_js.P({type:"videoTagError",message:"An error occurred, but the error object is not available."});},G=()=>{let e=chunkVUHZVVMS_js.Aa.dispatch,{params:t}=chunkVUHZVVMS_js.Aa.getState().videoData,a=n=>{n.requestFullScreen?n.requestFullScreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullScreen&&n.webkitRequestFullScreen();};e(chunkVUHZVVMS_js.s()),a(document.documentElement),e(chunkAN6JAJSI_js.m(t.fullscreen==="true"));},ge=()=>{let e=".ts",t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){arguments[1].endsWith(e)&&(arguments[1]=arguments[1]+"?uuid="+chunkVUHZVVMS_js.ga()),t.apply(this,arguments);};},Z=(e,t)=>{let a=chunkVUHZVVMS_js.Aa.dispatch;t.current=setInterval(()=>{if(e.buffered.length>0&&e.duration>0){let o=e.buffered.end(e.buffered.length-1)/e.duration*100;a(chunkAN6JAJSI_js.n(o));}else a(chunkAN6JAJSI_js.n(0));},500);},Te=()=>{let e=chunkVUHZVVMS_js.la("mainPlayer");return {xhrSetup:(t,a)=>{a?.split("m3u8")[1]||(a=`${a}${e}`),t.open("GET",a,true);},startLevel:-1,debug:false,enableWorker:true,abrBandWidthUpFactor:.7,abrBandWidthFactor:.95,backBufferLength:1/0,maxBufferLength:30,maxMaxBufferLength:60,manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4},errorRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4},errorRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4},errorRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4}}}}},xe=()=>{let e=chunkVUHZVVMS_js.la("miniPlayer");return {xhrSetup:(t,a)=>{a=`${a}${e}`,t.open("GET",a,true);},startLevel:1,debug:false,maxMaxBufferLength:60,playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1e3,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1e3,retryDelayMs:1e3,maxRetryDelayMs:1e3}}}}},Se=(e,t)=>{let a=chunkVUHZVVMS_js.Aa.dispatch,n=[],o=[];if(e.levels.map(i=>{n.push(i.attrs.RESOLUTION?.split("x")[1].trim()),o.push(i.attrs.RESOLUTION);}),e.autoLevelCapping=chunkVUHZVVMS_js.ra(o,window.innerWidth,window.innerHeight),a(chunkAN6JAJSI_js.i(n)),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(i=>document.addEventListener(i,()=>{chunkVUHZVVMS_js.t("isAutoQuality")&&(e.autoLevelCapping=chunkVUHZVVMS_js.ra(o,window.innerWidth,window.innerHeight),e.nextLevel=-1);},false)),t.audioTracks.length>0){let i=t.audioTracks.sort(l=>l.default===true?-1:1);a(chunkVUHZVVMS_js.l(i));}},X=(e,t,a)=>{if(t.frag.type!=="audio"){let n=chunkVUHZVVMS_js.Aa.dispatch,{settings:o}=chunkVUHZVVMS_js.Aa.getState().user,{qualityLevels:i,manualQuality:l,autoQuality:h}=chunkVUHZVVMS_js.Aa.getState().controller;chunkVUHZVVMS_js.t("isAutoQuality")?chunkVUHZVVMS_js.t("isAutoQuality")&&h===void 0?(e.nextLevel=-1,a(i[t.frag.level]),n(chunkAN6JAJSI_js.j(t.frag.level))):chunkVUHZVVMS_js.t("isAutoQuality")&&(a(i[t.frag.level]),h!==t.frag.level&&n(chunkAN6JAJSI_js.j(t.frag.level))):(t.frag.level!==l&&(e.nextLevel=i[o.quality]?o.quality:-1),i[o.quality]?(n(chunkAN6JAJSI_js.r(o.quality)),n(chunkAN6JAJSI_js.j(void 0))):(a(i[t.frag.level]),n(chunkAN6JAJSI_js.j(t.frag.level)),n(chunkVUHZVVMS_js.ya({...o,quality:-1}))));}},De=(e,t)=>{let a=chunkVUHZVVMS_js.Aa.dispatch,o=e.mainForwardBufferInfo?.end/t.duration*100;a(chunkAN6JAJSI_js.n(o));},ve=(e,t,a)=>{let{params:n,multiAudio:o,selectedAudioId:i}=chunkVUHZVVMS_js.Aa.getState().videoData;o&&i!==void 0&&i!==e.audioTrack&&(e.audioTrack=i),n.type&&X(e,t,a);},Pe=(e,t,a)=>{let{type:n}=chunkVUHZVVMS_js.Aa.getState().videoData.params;n&&X(e,t,a);},Le=e=>{if(e.event!=="hlsAudioTrackLoading")return {type:"HLS_"+e.type,message:e.error.message}},Me=(e,t)=>{let a=chunkVUHZVVMS_js.Aa.dispatch;e.preventDefault(),t.current=Date.now(),a(chunkAN6JAJSI_js.l(true));},be=(e,t)=>{if(chunkVUHZVVMS_js.t("isIOS")&&chunkVUHZVVMS_js.t("isFirstPlay"))return;let a=chunkVUHZVVMS_js.Aa.dispatch;e.preventDefault(),t.current=0,a(chunkAN6JAJSI_js.l(true));},Ee=(e,t,a)=>{let n=chunkVUHZVVMS_js.Aa.dispatch,{videoSettings:o}=chunkVUHZVVMS_js.Aa.getState().user,{params:i}=chunkVUHZVVMS_js.Aa.getState().videoData,{currentTime:l}=chunkVUHZVVMS_js.Aa.getState().controller;e.preventDefault(),t.current=Date.now(),n(chunkAN6JAJSI_js.f(true)),chunkVUHZVVMS_js.t("hasOnPlayParams")&&i.onPlay(l),chunkVUHZVVMS_js.t("isFirstPlay")&&(chunkVUHZVVMS_js.t("hasCurrentTimeParams")||(a.currentTime=o.time,n(chunkAN6JAJSI_js.h(o.time))),chunkVUHZVVMS_js.t("hasFullScreenParams")&&G(),chunkVUHZVVMS_js.t("isFullScreen")&&chunkVUHZVVMS_js.$(),n(chunkVUHZVVMS_js.f([Math.floor(a.currentTime)])),chunkVUHZVVMS_js.t("hasRawSubtitles")&&chunk5UGSCO4K_js.b()),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.K(true)),n(chunkVUHZVVMS_js.j(""));},Re=(e,t,a,n,o,i,l,h,j)=>{let K=chunkVUHZVVMS_js.Aa.dispatch,{autoQuality:w,canPlayVideo:Y,firstPlay:J,qualityLevels:C}=chunkVUHZVVMS_js.Aa.getState().controller,{settings:k}=chunkVUHZVVMS_js.Aa.getState().user,A=k.quality===-1&&w?C[w]:C[k.quality],g=0;l.current&&(g=Date.now()-l.current),J&&j.played&&chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.L(t.current,Date.now()-a.current,n.current-a.current,Date.now()-o.current,o)),K(chunkAN6JAJSI_js.o(false)),Y&&g>0&&A!==void 0&&(i.current=g,l.current=0,chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.M(g,A,o,e,h.current)),e.current=e.current+1,o.current=Date.now());},Ve=e=>{let t=chunkVUHZVVMS_js.Aa.dispatch,{params:a}=chunkVUHZVVMS_js.Aa.getState().videoData;e.preventDefault(),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.K(false)),t(chunkAN6JAJSI_js.f(false)),chunkVUHZVVMS_js.t("hasOnPauseParams")&&a.onPause();},Fe=e=>{let t=chunkVUHZVVMS_js.Aa.dispatch,{onChangeCurrentTime:a}=chunkVUHZVVMS_js.Aa.getState().videoData.params,{selectedSubtitle:n}=chunkVUHZVVMS_js.Aa.getState().videoData;e.preventDefault(),t(chunkAN6JAJSI_js.h(e.target.currentTime)),chunkVUHZVVMS_js.t("hasOnChangeCurrentTime")&&a(e.target.currentTime),chunkVUHZVVMS_js.t("hasActiveCue")&&t(chunkVUHZVVMS_js.j(n.activeCues[0].text));},we=e=>{let t=chunkVUHZVVMS_js.Aa.dispatch,{settings:a}=chunkVUHZVVMS_js.Aa.getState().user;t(chunkAN6JAJSI_js.l(false)),t(chunkAN6JAJSI_js.s(true)),e.volume=a.volume/100,t(chunkAN6JAJSI_js.g(e.duration));},Ce=(e,t)=>{let a=chunkVUHZVVMS_js.Aa.dispatch,{params:n}=chunkVUHZVVMS_js.Aa.getState().videoData;e.preventDefault(),a(chunkAN6JAJSI_js.u(true)),a(chunkAN6JAJSI_js.k(true)),chunkVUHZVVMS_js.ba(t.duration),chunkVUHZVVMS_js.t("hasOnFinishedParams")&&n.onFinished();},ke=(e,t)=>{e.preventDefault(),t.current=Date.now();},Ae=()=>{let e=chunkVUHZVVMS_js.Aa.dispatch;e(chunkAN6JAJSI_js.l(false)),e(chunkAN6JAJSI_js.o(false));},Oe=e=>{let{onChangeCurrentTime:t}=chunkVUHZVVMS_js.Aa.getState().videoData.params,a=chunkVUHZVVMS_js.Aa.dispatch;e.preventDefault(),chunkVUHZVVMS_js.t("hasOnChangeCurrentTime")&&t(e.target.currentTime),a(chunkAN6JAJSI_js.h(e.target.currentTime));},Ie=()=>{let e=chunkVUHZVVMS_js.Aa.dispatch,{params:t}=chunkVUHZVVMS_js.Aa.getState().videoData;e(chunkAN6JAJSI_js.u(true)),e(chunkAN6JAJSI_js.k(true)),chunkVUHZVVMS_js.t("hasOnFinishedParams")&&t.onFinished();},qe=e=>{let t=chunkVUHZVVMS_js.Aa.dispatch;e.preventDefault(),t(chunkAN6JAJSI_js.f(false));},He=(e,t)=>{let a=chunkVUHZVVMS_js.Aa.dispatch,{params:n}=chunkVUHZVVMS_js.Aa.getState().videoData,{currentTime:o}=chunkVUHZVVMS_js.Aa.getState().controller;e.preventDefault(),a(chunkAN6JAJSI_js.f(true)),t.current=Date.now(),a(chunkVUHZVVMS_js.j("")),chunkVUHZVVMS_js.t("hasOnPlayParams")&&n.onPlay(o),chunkVUHZVVMS_js.t("isFirstPlay")&&(chunkVUHZVVMS_js.t("hasRawSubtitles")&&chunk5UGSCO4K_js.b(),chunkVUHZVVMS_js.t("hasFullScreenParams")&&(G(),chunkVUHZVVMS_js.t("isFullScreen")&&chunkVUHZVVMS_js.$()));},Be=(e,t,a,n)=>{let o=chunkVUHZVVMS_js.Aa.dispatch,{firstPlay:i}=chunkVUHZVVMS_js.Aa.getState().controller;o(chunkAN6JAJSI_js.l(false)),i&&n.played&&chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.L(Math.round(e.current),Date.now()-t.current,0,Date.now()-a.current,a)),o(chunkAN6JAJSI_js.o(false));},Ne=e=>{let{onChangeCurrentTime:t}=chunkVUHZVVMS_js.Aa.getState().videoData.params,a=chunkVUHZVVMS_js.Aa.dispatch,{selectedSubtitle:n}=chunkVUHZVVMS_js.Aa.getState().videoData;e.preventDefault(),a(chunkAN6JAJSI_js.h(e.target.currentTime)),a(chunkAN6JAJSI_js.g(e.target.duration)),chunkVUHZVVMS_js.t("hasOnChangeCurrentTime")&&t(e.target.currentTime),chunkVUHZVVMS_js.t("hasActiveCue")&&a(chunkVUHZVVMS_js.j(n.activeCues[0].text));},_e=()=>{let e=chunkVUHZVVMS_js.Aa.dispatch;e(chunkAN6JAJSI_js.l(false)),e(chunkAN6JAJSI_js.s(true));},Qe=(e,t)=>Z(t,e),Ue=e=>{let t=chunkVUHZVVMS_js.Aa.dispatch,{params:a}=chunkVUHZVVMS_js.Aa.getState().videoData;t(chunkAN6JAJSI_js.u(true)),t(chunkAN6JAJSI_js.k(true)),chunkVUHZVVMS_js.t("hasOnFinishedParams")&&a.onFinished(),e.preventDefault();},We=async e=>{let{stream_link:t}=chunkVUHZVVMS_js.Aa.getState().miniPlayer.details;e.loadSource(t);},$e=e=>chunkVUHZVVMS_js.ba(e.currentTime);exports.A=Qe;exports.B=Ue;exports.C=We;exports.D=$e;exports.a=he;exports.b=ge;exports.c=Te;exports.d=xe;exports.e=Se;exports.f=De;exports.g=ve;exports.h=Pe;exports.i=Le;exports.j=Me;exports.k=be;exports.l=Ee;exports.m=Re;exports.n=Ve;exports.o=Fe;exports.p=we;exports.q=Ce;exports.r=ke;exports.s=Ae;exports.t=Oe;exports.u=Ie;exports.v=qe;exports.w=He;exports.x=Be;exports.y=Ne;exports.z=_e;//# sourceMappingURL=chunk-HZASW2B2.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-HZASW2B2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/videoPlayerLibrary/helpers/redux/actions/playerCore.actions.ts"],"names":["init_cjs_shims","handleVideoError","event","error","mainPlayerVideoTag","miniPlayerVideoTag","errorLogProvider","handleAutoFullScreen","dispatch","store_default","params","launchFullScreen","element","setClearPopoversSlice","setIsFullScreen","appendQueryParamsToChunksIOS","fragmentExtension","originalOpen","getUUID","handleBufferedTime","video","intervalRef","bufferedTimeWidth","setBufferedTimeWidth","handleHlsConfig","streamLinkParams","splitQueryParamsFromStreamLink","xhr","url","handleMiniPlayerHlsConfig","handleManifestParsed","hls","data","qualityLevels","resolutions","level","highestResolutionSupported","setQualityLevels","eventType","conditions","sortedAudioTracks","a","setMultiAudio","handleLevels","setQualityLevel","settings","manualQuality","autoQuality","setAutoQuality","setManualQuality","setUserSettings","handleFragBuffered","handleFragChanged","multiAudio","selectedAudioId","handleFragParsed","type","handleHlsErrors","handleVideoWaiting","waitingTimerRef","setIsLoading","handleVideoSeeking","handleVideoPlay","timerRef","videoSettings","currentTime","setPlay","setCurrentTime","handleLockOrientation","setVideoTimelines","handleSubtitle","sendFluentLog","pausePlayLog","setSubtitleText","handleVideoPlaying","loadingCounterRef","loadingDurationRef","initialWaitingDurationRef","bannerLoadingDurationRef","waitingDurationRef","videoEntranceTimeRef","canPlayVideo","firstPlay","qualityLevel","waitingDuration","initLog","setFirstPlay","loadingLog","handleVideoPause","handleVideoTimeUpdate","onChangeCurrentTime","selectedSubtitle","handleVideoCanPlay","setCanPlayVideo","setDuration","handleVideoEnded","setIsEnded","setActiveElements","handleVideoTimeline","handleIosVideoPlay","handleIosVideoPlaying","handleIosVideoTimeUpdate","handleIosVideoEnded","handleStaticVideoPause","handleStaticVideoPlay","handleStaticVideoPlaying","handleStaticVideoTimeUpdate","handleStaticVideoCanPlay","handleStaticVideoLoadedData","handleStaticVideoEnded","handleMiniPlayerMediaAttached","stream_link","handleVideoVisibilityChange"],"mappings":"iKAAAA,kBAAAA,EAAAA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,EAAAA,CAA+B5F,CAAAA,EAA4B8E,mBAAAA,CAAoB9E,CAAAA,CAAM,WAAW","file":"chunk-HZASW2B2.js","sourcesContent":["import { conditions } from \"../../conditions/conditions\";\nimport { mainPlayerVideoTag, miniPlayerVideoTag } from \"../../constants\";\nimport { errorLogProvider } from \"../../errorBoundary/errorBoundaryFunctions\";\nimport { getUUID, highestResolutionSupported, splitQueryParamsFromStreamLink } from \"../../helpers\";\nimport { ConditionName } from \"../../interfaces/enums\";\nimport { sendFluentLog } from \"../../logs/fluentdLogger\";\nimport { initLog, loadingLog, pausePlayLog } from \"../../logs/logs\";\nimport {\n setActiveElements,\n setAutoQuality,\n setBufferedTimeWidth,\n setCanPlayVideo,\n setCurrentTime,\n setDuration,\n setFirstPlay,\n setIsEnded,\n setIsFullScreen,\n setIsLoading,\n setManualQuality,\n setPlay,\n setQualityLevels,\n} from \"../slices/controllerSlice\";\nimport { setClearPopoversSlice } from \"../slices/popoversSlice\";\nimport { setUserSettings } from \"../slices/userSlice\";\nimport { setMultiAudio, setSubtitleText, setVideoTimelines } from \"../slices/videoDataSlice\";\nimport store from \"../store\";\nimport { handleLockOrientation, handleVideoTimeline } from \"./controller.actions\";\nimport { handleSubtitle } from \"./videoData.actions\";\n\nexport const handleVideoError = (event: any) => {\n event.preventDefault();\n // Access the error property from the video element\n let error = (mainPlayerVideoTag() || miniPlayerVideoTag()).error;\n if (error) {\n switch (error.code) {\n case error.MEDIA_ERR_ABORTED:\n errorLogProvider({\n type: \"videoTagError\",\n message: \"You aborted the video playback.\",\n });\n break;\n case error.MEDIA_ERR_NETWORK:\n errorLogProvider({\n type: \"videoTagError\",\n message: \"A network error caused the video download to fail part-way.\",\n });\n break;\n case error.MEDIA_ERR_DECODE:\n errorLogProvider({\n type: \"videoTagError\",\n message: \"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.\",\n });\n break;\n case error.MEDIA_ERR_SRC_NOT_SUPPORTED:\n errorLogProvider({\n type: \"videoTagError\",\n message: \"The video could not be loaded, either because the server or network failed or because the format is not supported.\",\n });\n break;\n default:\n errorLogProvider({\n type: \"videoTagError\",\n message: \"An unknown error occurred.\",\n });\n break;\n }\n } else {\n errorLogProvider({\n type: \"videoTagError\",\n message: \"An error occurred, but the error object is not available.\",\n });\n }\n};\n\nexport const handleAutoFullScreen = () => {\n const dispatch = store.dispatch;\n const { params } = store.getState().videoData;\n const launchFullScreen = (element: any) => {\n if (element.requestFullScreen) element.requestFullScreen();\n else if (element.mozRequestFullScreen) element.mozRequestFullScreen();\n else if (element.webkitRequestFullScreen) element.webkitRequestFullScreen();\n };\n dispatch(setClearPopoversSlice());\n launchFullScreen(document.documentElement);\n dispatch(setIsFullScreen(params.fullscreen === \"true\"));\n};\n\nexport const appendQueryParamsToChunksIOS = () => {\n let fragmentExtension = \".ts\";\n let originalOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function () {\n if (arguments[1].endsWith(fragmentExtension)) arguments[1] = arguments[1] + \"?uuid=\" + getUUID!();\n originalOpen.apply(this, arguments as any);\n };\n};\n\nexport const handleBufferedTime = (video: any, intervalRef: any) => {\n const dispatch = store.dispatch;\n\n intervalRef.current = setInterval(() => {\n // چک کردن طول buffered قبل از دسترسی\n if (video.buffered.length > 0 && video.duration > 0) {\n const bufferedTime = video.buffered.end(video.buffered.length - 1); // استفاده از آخرین index برای ایمنی\n const bufferedTimeWidth = (bufferedTime / video.duration) * 100;\n dispatch(setBufferedTimeWidth(bufferedTimeWidth));\n } else {\n dispatch(setBufferedTimeWidth(0));\n }\n }, 500);\n};\n\n// ************* Hls Config Handlers ************* //\nexport const handleHlsConfig = () => {\n const streamLinkParams = splitQueryParamsFromStreamLink(\"mainPlayer\");\n\n return {\n xhrSetup: (xhr: any, url: any) => {\n if (!url?.split(\"m3u8\")[1]) url = `${url}${streamLinkParams}`;\n xhr.open(\"GET\", url, true);\n },\n startLevel: -1,\n debug: false,\n enableWorker: true,\n abrBandWidthUpFactor: 0.7,\n abrBandWidthFactor: 0.95,\n backBufferLength: Infinity,\n maxBufferLength: 30,\n maxMaxBufferLength: 60,\n manifestLoadPolicy: {\n default: {\n maxTimeToFirstByteMs: Infinity,\n maxLoadTimeMs: 20000,\n timeoutRetry: {\n maxNumRetry: 10,\n retryDelayMs: 5000,\n maxRetryDelayMs: 10000,\n },\n errorRetry: {\n maxNumRetry: 10,\n retryDelayMs: 5000,\n maxRetryDelayMs: 10000,\n },\n },\n },\n fragLoadPolicy: {\n default: {\n maxTimeToFirstByteMs: 10000,\n maxLoadTimeMs: 120000,\n timeoutRetry: {\n maxNumRetry: 10,\n retryDelayMs: 5000,\n maxRetryDelayMs: 10000,\n },\n errorRetry: {\n maxNumRetry: 10,\n retryDelayMs: 5000,\n maxRetryDelayMs: 10000,\n },\n },\n },\n playlistLoadPolicy: {\n default: {\n maxTimeToFirstByteMs: 10000,\n maxLoadTimeMs: 20000,\n timeoutRetry: {\n maxNumRetry: 10,\n retryDelayMs: 5000,\n maxRetryDelayMs: 10000,\n },\n errorRetry: {\n maxNumRetry: 10,\n retryDelayMs: 5000,\n maxRetryDelayMs: 10000,\n },\n },\n },\n };\n};\n\nexport const handleMiniPlayerHlsConfig = () => {\n const streamLinkParams = splitQueryParamsFromStreamLink(\"miniPlayer\");\n return {\n xhrSetup: (xhr: any, url: any) => {\n url = `${url}${streamLinkParams}`;\n xhr.open(\"GET\", url, true);\n },\n startLevel: 1,\n debug: false,\n maxMaxBufferLength: 60,\n playlistLoadPolicy: {\n default: {\n maxTimeToFirstByteMs: 10000,\n maxLoadTimeMs: 20000,\n timeoutRetry: {\n maxNumRetry: 1000,\n retryDelayMs: 0,\n maxRetryDelayMs: 0,\n },\n errorRetry: {\n maxNumRetry: 1000,\n retryDelayMs: 1000,\n maxRetryDelayMs: 1000,\n },\n },\n },\n };\n};\n\n// ************* Manifest Handlers ************* //\n\nexport const handleManifestParsed = (hls: any, data: any) => {\n const dispatch = store.dispatch;\n let qualityLevels: any[] = [];\n let resolutions: any[] = [];\n hls.levels.map((level: any) => {\n qualityLevels.push(level.attrs.RESOLUTION?.split(\"x\")[1].trim());\n resolutions.push(level.attrs.RESOLUTION!);\n });\n hls.autoLevelCapping = highestResolutionSupported(resolutions, window.innerWidth, window.innerHeight);\n dispatch(setQualityLevels(qualityLevels));\n [\"fullscreenchange\", \"webkitfullscreenchange\", \"mozfullscreenchange\", \"msfullscreenchange\"].forEach((eventType) =>\n document.addEventListener(\n eventType,\n () => {\n if (conditions(ConditionName.isAutoQuality)) {\n hls.autoLevelCapping = highestResolutionSupported(resolutions, window.innerWidth, window.innerHeight);\n hls.nextLevel = -1;\n }\n },\n false,\n ),\n );\n if (data.audioTracks.length > 0) {\n const sortedAudioTracks = data.audioTracks.sort((a: any) => (a.default === true ? -1 : 1));\n dispatch(setMultiAudio(sortedAudioTracks));\n }\n};\n\n// ************* Level Handlers ************* //\n\nexport const handleLevels = (hls: any, data: any, setQualityLevel: any) => {\n if (data.frag.type !== \"audio\") {\n const dispatch = store.dispatch;\n const { settings } = store.getState().user;\n const { qualityLevels, manualQuality, autoQuality } = store.getState().controller;\n if (!conditions(ConditionName.isAutoQuality)) {\n if (data.frag.level !== manualQuality) hls.nextLevel = qualityLevels[settings.quality!] ? settings.quality : -1;\n if (qualityLevels[settings.quality!]) {\n dispatch(setManualQuality(settings.quality!));\n dispatch(setAutoQuality(undefined));\n } else {\n setQualityLevel(qualityLevels[data.frag.level]);\n dispatch(setAutoQuality(data.frag.level));\n dispatch(setUserSettings({ ...settings, quality: -1 }));\n }\n } else if (conditions(ConditionName.isAutoQuality) && autoQuality === undefined) {\n hls.nextLevel = -1;\n setQualityLevel(qualityLevels[data.frag.level]);\n dispatch(setAutoQuality(data.frag.level));\n } else if (conditions(ConditionName.isAutoQuality)) {\n setQualityLevel(qualityLevels[data.frag.level]);\n if (autoQuality !== data.frag.level) dispatch(setAutoQuality(data.frag.level));\n }\n }\n};\n\n// ************* Fragment Handlers ************* //\n\nexport const handleFragBuffered = (hls: any, video: HTMLVideoElement) => {\n const dispatch = store.dispatch;\n const bufferedTime = hls.mainForwardBufferInfo?.end;\n const bufferedTimeWidth = (bufferedTime! / video.duration) * 100;\n dispatch(setBufferedTimeWidth(bufferedTimeWidth));\n};\n\nexport const handleFragChanged = (hls: any, data: any, setQualityLevel: any) => {\n const { params, multiAudio, selectedAudioId } = store.getState().videoData;\n\n if (multiAudio && selectedAudioId !== undefined && selectedAudioId !== hls.audioTrack) hls.audioTrack = selectedAudioId;\n if (params.type) handleLevels(hls, data, setQualityLevel);\n};\n\nexport const handleFragParsed = (hls: any, data: any, setQualityLevel: any) => {\n const { type } = store.getState().videoData.params;\n if (type) handleLevels(hls, data, setQualityLevel);\n};\n\n// ************* HLS Error Handlers ************* //\n\nexport const handleHlsErrors = (data: any) => {\n if (data.event !== \"hlsAudioTrackLoading\") return { type: \"HLS_\" + data.type, message: data.error.message };\n return undefined;\n};\n\n// ************* Video Tag Handlers ************* //\n\nexport const handleVideoWaiting = (event: any, waitingTimerRef: any) => {\n const dispatch = store.dispatch;\n event.preventDefault();\n waitingTimerRef.current = Date.now();\n dispatch(setIsLoading(true));\n};\n\nexport const handleVideoSeeking = (event: any, waitingTimerRef: any) => {\n if (conditions(ConditionName.isIOS) && conditions(ConditionName.isFirstPlay)) return;\n const dispatch = store.dispatch;\n event.preventDefault();\n waitingTimerRef.current = 0;\n dispatch(setIsLoading(true));\n};\n\nexport const handleVideoPlay = (event: any, timerRef: any, video: HTMLVideoElement) => {\n const dispatch = store.dispatch;\n const { videoSettings } = store.getState().user;\n const { params } = store.getState().videoData;\n const { currentTime } = store.getState().controller;\n event.preventDefault();\n timerRef.current = Date.now();\n dispatch(setPlay(true));\n if (conditions(ConditionName.hasOnPlayParams)) params.onPlay!(currentTime);\n if (conditions(ConditionName.isFirstPlay)) {\n if (!conditions(ConditionName.hasCurrentTimeParams)) {\n video.currentTime = videoSettings.time;\n dispatch(setCurrentTime(videoSettings.time));\n }\n if (conditions(ConditionName.hasFullScreenParams)) handleAutoFullScreen();\n if (conditions(ConditionName.isFullScreen)) handleLockOrientation();\n dispatch(setVideoTimelines([Math.floor(video.currentTime)]));\n if (conditions(ConditionName.hasRawSubtitles)) handleSubtitle();\n }\n sendFluentLog(pausePlayLog(true));\n dispatch(setSubtitleText(\"\"));\n};\n\nexport const handleVideoPlaying = (\n loadingCounterRef: any,\n loadingDurationRef: any,\n initialWaitingDurationRef: any,\n bannerLoadingDurationRef: any,\n timerRef: any,\n waitingDurationRef: any,\n waitingTimerRef: any,\n videoEntranceTimeRef: any,\n video: HTMLVideoElement,\n) => {\n const dispatch = store.dispatch;\n const { autoQuality, canPlayVideo, firstPlay, qualityLevels } = store.getState().controller;\n const { settings } = store.getState().user;\n const qualityLevel = settings.quality === -1 && autoQuality ? qualityLevels[autoQuality] : qualityLevels[settings.quality!];\n let waitingDuration = 0;\n if (!!waitingTimerRef.current) waitingDuration = Date.now() - waitingTimerRef.current;\n if (firstPlay && !!video.played) {\n sendFluentLog(\n initLog(\n loadingDurationRef.current,\n Date.now() - initialWaitingDurationRef.current,\n bannerLoadingDurationRef.current - initialWaitingDurationRef.current,\n Date.now() - timerRef.current,\n timerRef,\n ),\n );\n }\n dispatch(setFirstPlay(false));\n\n if (canPlayVideo && waitingDuration > 0 && qualityLevel !== undefined) {\n waitingDurationRef.current = waitingDuration;\n waitingTimerRef.current = 0;\n sendFluentLog(loadingLog(waitingDuration, qualityLevel, timerRef, loadingCounterRef, videoEntranceTimeRef.current));\n loadingCounterRef.current = loadingCounterRef.current + 1;\n timerRef.current = Date.now();\n }\n};\n\nexport const handleVideoPause = (event: any) => {\n const dispatch = store.dispatch;\n const { params } = store.getState().videoData;\n event.preventDefault();\n sendFluentLog(pausePlayLog(false));\n dispatch(setPlay(false));\n if (conditions(ConditionName.hasOnPauseParams)) params.onPause!();\n};\n\nexport const handleVideoTimeUpdate = (event: any) => {\n const dispatch = store.dispatch;\n const { onChangeCurrentTime } = store.getState().videoData.params;\n const { selectedSubtitle } = store.getState().videoData;\n event.preventDefault();\n dispatch(setCurrentTime(event.target.currentTime));\n if (conditions(ConditionName.hasOnChangeCurrentTime)) onChangeCurrentTime!(event.target.currentTime);\n if (conditions(ConditionName.hasActiveCue)) dispatch(setSubtitleText((selectedSubtitle!.activeCues![0] as any).text));\n};\n\nexport const handleVideoCanPlay = (video: HTMLVideoElement) => {\n const dispatch = store.dispatch;\n const { settings } = store.getState().user;\n dispatch(setIsLoading(false));\n dispatch(setCanPlayVideo(true));\n video.volume = settings.volume / 100;\n dispatch(setDuration(video.duration));\n};\n\nexport const handleVideoEnded = (event: any, video: HTMLVideoElement) => {\n const dispatch = store.dispatch;\n const { params } = store.getState().videoData;\n event.preventDefault();\n dispatch(setIsEnded(true));\n dispatch(setActiveElements(true));\n handleVideoTimeline(video.duration);\n if (conditions(ConditionName.hasOnFinishedParams)) params.onFinished!();\n};\n\n// ************* IOS Video Tag Handlers ************* //\n\nexport const handleIosVideoPlay = (event: any, timerRef: any) => {\n event.preventDefault();\n timerRef.current = Date.now();\n};\n\nexport const handleIosVideoPlaying = () => {\n const dispatch = store.dispatch;\n dispatch(setIsLoading(false));\n dispatch(setFirstPlay(false));\n};\n\nexport const handleIosVideoTimeUpdate = (event: any) => {\n const { onChangeCurrentTime } = store.getState().videoData.params;\n const dispatch = store.dispatch;\n event.preventDefault();\n if (conditions(ConditionName.hasOnChangeCurrentTime)) onChangeCurrentTime!(event.target.currentTime);\n dispatch(setCurrentTime(event.target.currentTime));\n};\n\nexport const handleIosVideoEnded = () => {\n const dispatch = store.dispatch;\n const { params } = store.getState().videoData;\n dispatch(setIsEnded(true));\n dispatch(setActiveElements(true));\n if (conditions(ConditionName.hasOnFinishedParams)) params.onFinished!();\n};\n\n// ************* Static Video Tag Handlers ************* //\n\nexport const handleStaticVideoPause = (event: any) => {\n const dispatch = store.dispatch;\n event.preventDefault();\n dispatch(setPlay(false));\n};\n\nexport const handleStaticVideoPlay = (event: any, timerRef: any) => {\n const dispatch = store.dispatch;\n const { params } = store.getState().videoData;\n const { currentTime } = store.getState().controller;\n event.preventDefault();\n dispatch(setPlay(true));\n timerRef.current = Date.now();\n dispatch(setSubtitleText(\"\"));\n if (conditions(ConditionName.hasOnPlayParams)) params.onPlay!(currentTime);\n\n if (conditions(ConditionName.isFirstPlay)) {\n if (conditions(ConditionName.hasRawSubtitles)) handleSubtitle();\n if (conditions(ConditionName.hasFullScreenParams)) {\n handleAutoFullScreen();\n if (conditions(ConditionName.isFullScreen)) handleLockOrientation();\n }\n }\n};\n\nexport const handleStaticVideoPlaying = (loadingDurationRef: any, initialWaitingDurationRef: any, timerRef: any, video: HTMLVideoElement) => {\n const dispatch = store.dispatch;\n const { firstPlay } = store.getState().controller;\n dispatch(setIsLoading(false));\n if (firstPlay && !!video.played) {\n sendFluentLog(\n initLog(Math.round(loadingDurationRef.current), Date.now() - initialWaitingDurationRef.current, 0, Date.now() - timerRef.current, timerRef),\n );\n }\n dispatch(setFirstPlay(false));\n};\n\nexport const handleStaticVideoTimeUpdate = (event: any) => {\n const { onChangeCurrentTime } = store.getState().videoData.params;\n const dispatch = store.dispatch;\n const { selectedSubtitle } = store.getState().videoData;\n event.preventDefault();\n dispatch(setCurrentTime(event.target.currentTime));\n dispatch(setDuration(event.target.duration));\n if (conditions(ConditionName.hasOnChangeCurrentTime)) onChangeCurrentTime!(event.target.currentTime);\n if (conditions(ConditionName.hasActiveCue)) dispatch(setSubtitleText((selectedSubtitle!.activeCues![0] as any).text));\n};\n\nexport const handleStaticVideoCanPlay = () => {\n const dispatch = store.dispatch;\n dispatch(setIsLoading(false));\n dispatch(setCanPlayVideo(true));\n};\n\nexport const handleStaticVideoLoadedData = (intervalRef: any, video: HTMLVideoElement) => handleBufferedTime(video, intervalRef);\n\nexport const handleStaticVideoEnded = (event: any) => {\n const dispatch = store.dispatch;\n const { params } = store.getState().videoData;\n dispatch(setIsEnded(true));\n dispatch(setActiveElements(true));\n if (conditions(ConditionName.hasOnFinishedParams)) params.onFinished!();\n event.preventDefault();\n};\n\nexport const handleMiniPlayerMediaAttached = async (hls: any) => {\n const { stream_link } = store.getState().miniPlayer.details;\n hls.loadSource(stream_link);\n};\n\nexport const handleVideoVisibilityChange = (video: HTMLVideoElement) => handleVideoTimeline(video.currentTime);\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkCOYFW7R4_js=require('./chunk-COYFW7R4.js'),chunkVUHZVVMS_js=require('./chunk-VUHZVVMS.js'),chunkAN6JAJSI_js=require('./chunk-AN6JAJSI.js'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime'),V=require('next/image');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var V__default=/*#__PURE__*/_interopDefault(V);chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();var A=({title:n,className:i})=>jsxRuntime.jsx("span",{className:`pl-absolute pl-w-max pl-bg-black/75 pl-text-white pl-rounded-[8px] pl-leading-[18px] pl-flex pl-items-center pl-justify-center pl-font-normal ${chunkVUHZVVMS_js.t("isFullScreen")?"pl-bottom-[150%] pl-h-[34px] pl-px-[9.5px] pl-text-[15px]":"pl-h-6 pl-bottom-[130%] pl-px-[9px] pl-text-[12px]"} ${i}`,children:n}),h=A;var O=({width:n,height:i})=>{let[S,u]=react.useState(false),m=chunkAN6JAJSI_js.z(),{settings:l}=chunkAN6JAJSI_js.A(({user:{settings:o}})=>({settings:o}),reactRedux.shallowEqual),s=react.useRef(l.volume),y=()=>{if(s.current!==l.volume){let{settings:o}=chunkVUHZVVMS_js.Aa.getState().user;chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.H(s.current,o.volume)),s.current=o.volume,m(chunkVUHZVVMS_js.ya({...o,volume:o.volume}));}},v=o=>{let{settings:b}=chunkVUHZVVMS_js.Aa.getState().user;o==="mute"?(chunkVUHZVVMS_js.Y(0),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.H(b.volume,0))):(chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.H(b.volume,100)),chunkVUHZVVMS_js.Y(100));};return jsxRuntime.jsxs("div",{onMouseOver:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&u(true),onMouseLeave:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&u(false),id:chunkVUHZVVMS_js.t("hasSound")?"mute":"unmute",className:chunkVUHZVVMS_js.ea("pl-relative pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group pl-bg-black/75 pl-sound-icon",{desktop:"pl-min-w-[34px] pl-h-[34px] pl-p-1",desktopFullScreen:"pl-min-w-[48px] pl-h-[48px] pl-p-0 pl-px-1.5"}),children:[jsxRuntime.jsxs("div",{className:chunkVUHZVVMS_js.ea("pl-flex pl-items-center pl-justify-center pl-rounded-full group-hover:pl-bg-[#5E5E5E] pl-transition-all",{desktop:"pl-h-[26px] pl-min-w-[26px] group-hover:pl-ps-1 pl-gap-1",desktopFullScreen:"pl-h-[36px] pl-min-w-[36px] group-hover:pl-ps-1.5 pl-gap-1.5"}),children:[!chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsx("input",{onMouseUp:y,type:"range",min:"0",max:"100",value:l.volume,onChange:o=>chunkVUHZVVMS_js.Y(+o.target.value),className:`pl-soundVolume ${chunkVUHZVVMS_js.t("isFullScreen")&&"pl-soundVolume-fullscreen"} pl-cursor-pointer rounded-full`,style:{background:`linear-gradient(to right, white ${l.volume}%, rgba(255,255,255,0.3) 0)`}}),jsxRuntime.jsx("div",{onClick:()=>chunkVUHZVVMS_js.t("hasSound")?v("mute"):v("unmute"),onDoubleClick:o=>o.stopPropagation(),className:chunkVUHZVVMS_js.ea("pl-relative pl-flex pl-items-center pl-shrink-0 pl-pe-[5px]",{desktop:"",desktopFullScreen:""}),children:jsxRuntime.jsx(V__default.default,{src:chunkVUHZVVMS_js.t("hasSound")?l.volume>=50?chunkCOYFW7R4_js.a.unMute:chunkCOYFW7R4_js.a.lowSound:chunkCOYFW7R4_js.a.mute,alt:chunkVUHZVVMS_js.t("hasSound")?"unmute-icon":"mute-icon",className:"pl-flex pl-items-center pl-cursor-pointer",width:n,height:i})})]}),S&&jsxRuntime.jsx(h,{className:"pl-left-0",title:chunkVUHZVVMS_js.t("hasSound")?"\u0635\u062F\u0627 (M)":"\u0628\u06CC\u200C\u0635\u062F\u0627 (M)"})]})},ie=O;chunkAN6JAJSI_js.e();var G=({width:n,height:i,className:S})=>{chunkAN6JAJSI_js.A(({controller:{firstPlay:l,isFullScreen:s}})=>({firstPlay:l,isFullScreen:s}),reactRedux.shallowEqual);let[u,m]=react.useState(false);return jsxRuntime.jsxs("div",{onDoubleClick:l=>l.preventDefault(),onMouseOver:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&m(true),onMouseLeave:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&m(false),onClick:()=>{chunkVUHZVVMS_js._(),chunkVUHZVVMS_js.$();},id:chunkVUHZVVMS_js.t("isFullScreen")?"exit-full-s":"full-s",className:chunkVUHZVVMS_js.ea(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full pl-transition-all ${S}`,{desktop:"pl-w-[40px] pl-h-[25px] hover:pl-bg-[#5E5E5E]",desktopFullScreen:"pl-w-[56px] pl-h-[36px]",touch:"pl-w-[32px] pl-h-[22px]",touchFullScreen:"pl-w-[48px] pl-h-[32px]"}),children:[jsxRuntime.jsx(V__default.default,{src:chunkVUHZVVMS_js.t("isFullScreen")?chunkCOYFW7R4_js.a.nonFullScreen:chunkCOYFW7R4_js.a.fullScreen,alt:"fullScreen-icon",width:n,height:i}),u&&jsxRuntime.jsx(h,{className:"pl-right-5",title:`${chunkVUHZVVMS_js.t("isFullScreen")?"\u062E\u0631\u0648\u062C \u0627\u0632":""} \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647 (F)`})]})},Fe=G;exports.a=h;exports.b=ie;exports.c=Fe;//# sourceMappingURL=chunk-ISVY5ION.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-ISVY5ION.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/soundVolume/soundVolume.tsx","../src/videoPlayerLibrary/components/custom-components/footer/controllbar/controllbarTooltip.tsx","../src/videoPlayerLibrary/components/custom-components/fullScreen/fullScreen.tsx"],"names":["init_cjs_shims","ControllbarTooltip","title","className","jsx","conditions","controllbarTooltip_default","SoundVolume","width","height","showTooltip","setShowTooltip","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryVolumeRef","useRef","handleMouseUp","store_default","sendFluentLog","volumeLog","setUserSettings","handleMute","type","handleChangeSoundVolume","jsxs","tw","event","Image","importImages_default","soundVolume_default","FullScreen","firstPlay","isFullScreen","e","handleFullScreen","handleLockOrientation","fullScreen_default"],"mappings":"0YAAAA,kBAAAA,EAAAA,CCAAA,kBAAAA,EAAAA,CAIA,IAAMC,CAAAA,CAAqB,CAAC,CAAE,KAAA,CAAAC,CAAAA,CAAO,SAAA,CAAAC,CAAU,CAAA,GAC7CC,cAAAA,CAAC,MAAA,CAAA,CACC,SAAA,CAAW,CAAA,8IAAA,EACTC,iCAAqC,CAAA,CACjC,2DAAA,CACA,oDACN,CAAA,CAAA,EAAIF,CAAS,CAAA,CAAA,CAEZ,QAAA,CAAAD,CAAAA,CACH,CAAA,CAGKI,CAAAA,CAAQL,EDDf,IAAMM,CAAAA,CAAc,CAAC,CAAE,KAAA,CAAAC,CAAAA,CAAO,MAAA,CAAAC,CAAO,CAAA,GAA2C,CAC9E,GAAM,CAACC,CAAAA,CAAaC,CAAc,CAAA,CAAIC,cAAAA,CAAkB,KAAK,CAAA,CAEvDC,CAAAA,CAAWC,kBAAAA,EAAe,CAC1B,CAAE,QAAA,CAAAC,CAAS,EAAIC,kBAAAA,CAAe,CAAC,CAAE,IAAA,CAAM,CAAE,QAAA,CAAAD,CAAS,CAAE,CAAA,IAAO,CAAE,QAAA,CAAAA,CAAS,CAAA,CAAA,CAAIE,uBAAY,EAEtFC,CAAAA,CAA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QAAA,CAC7D,SAAA,CAAWwB,mBAAAA,CAAG,CAAA,0GAAA,EAA6G1B,CAAS,CAAA,CAAA,CAAI,CACtI,OAAA,CAAS,gDACT,iBAAA,CAAmB,yBAAA,CACnB,KAAA,CAAO,yBAAA,CACP,eAAA,CAAiB,yBACnB,CAAC,CAAA,CAED,QAAA,CAAA,CAAAC,cAAAA,CAAC2B,kBAAAA,CAAA,CACC,GAAA,CAAK1B,kBAAAA,CAAAA,cAAqC,EAAI2B,kBAAAA,CAAO,aAAA,CAAgBA,kBAAAA,CAAO,UAAA,CAC5E,GAAA,CAAI,iBAAA,CACJ,KAAA,CAAOxB,CAAAA,CACP,MAAA,CAAQC,CAAAA,CACV,CAAA,CAECC,CAAAA,EACCN,cAAAA,CAACE,CAAAA,CAAA,CAAmB,SAAA,CAAU,YAAA,CAAa,KAAA,CAAO,CAAA,EAAGD,kBAAAA,CAAAA,cAAqC,CAAA,CAAI,uCAAA,CAAY,EAAE,CAAA,sDAAA,CAAA,CAAkB,CAAA,CAAA,CAElI,CAEJ,CAAA,CAEOmC,EAAAA,CAAQN","file":"chunk-ISVY5ION.js","sourcesContent":["import { useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport ControllbarTooltip from \"../footer/controllbar/controllbarTooltip\";\r\nimport Image from \"next/image\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { handleChangeSoundVolume } from \"../../../helpers/redux/actions/controller.actions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport { tw } from \"../../../helpers/helpers\";\r\n\r\nconst SoundVolume = ({ width, height }: { width?: number; height?: number }) => {\r\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryVolumeRef = useRef<number>(settings.volume);\r\n\r\n const handleMouseUp = () => {\r\n if (primaryVolumeRef.current !== settings.volume) {\r\n const { settings } = store.getState().user;\r\n sendFluentLog(volumeLog(primaryVolumeRef.current, settings.volume));\r\n primaryVolumeRef.current = settings.volume;\r\n // createSettings({ ...settings, volume: settings.volume });\r\n dispatch(setUserSettings({ ...settings, volume: settings.volume }));\r\n }\r\n };\r\n\r\n const handleMute = (type: string) => {\r\n const { settings } = store.getState().user;\r\n if (type === \"mute\") {\r\n handleChangeSoundVolume(0);\r\n sendFluentLog(volumeLog(settings.volume, 0));\r\n // createSettings({ ...settings, volume: 0 });\r\n } else {\r\n sendFluentLog(volumeLog(settings.volume, 100));\r\n handleChangeSoundVolume(100);\r\n // createSettings({ ...settings, volume: 100 });\r\n }\r\n };\r\n\r\n return (\r\n <div\r\n onMouseOver={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(true)}\r\n onMouseLeave={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(false)}\r\n id={conditions(ConditionName.hasSound) ? \"mute\" : \"unmute\"}\r\n className={tw(`pl-relative pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group pl-bg-black/75 pl-sound-icon`, {\r\n desktop: \"pl-min-w-[34px] pl-h-[34px] pl-p-1\",\r\n desktopFullScreen: \"pl-min-w-[48px] pl-h-[48px] pl-p-0 pl-px-1.5\",\r\n })}\r\n >\r\n <div\r\n className={tw(\"pl-flex pl-items-center pl-justify-center pl-rounded-full group-hover:pl-bg-[#5E5E5E] pl-transition-all\", {\r\n desktop: \"pl-h-[26px] pl-min-w-[26px] group-hover:pl-ps-1 pl-gap-1\",\r\n desktopFullScreen: \"pl-h-[36px] pl-min-w-[36px] group-hover:pl-ps-1.5 pl-gap-1.5\",\r\n })}\r\n >\r\n {!conditions(ConditionName.isTouchScreen) && (\r\n <input\r\n onMouseUp={handleMouseUp}\r\n type=\"range\"\r\n min=\"0\"\r\n max=\"100\"\r\n value={settings.volume}\r\n onChange={(event) => handleChangeSoundVolume(+event.target.value)}\r\n className={`pl-soundVolume ${conditions(ConditionName.isFullScreen) && \"pl-soundVolume-fullscreen\"} pl-cursor-pointer rounded-full`}\r\n style={{ background: `linear-gradient(to right, white ${settings.volume}%, rgba(255,255,255,0.3) 0)` }}\r\n />\r\n )}\r\n <div\r\n onClick={() => (conditions(ConditionName.hasSound) ? handleMute(\"mute\") : handleMute(\"unmute\"))}\r\n onDoubleClick={(event: any) => event.stopPropagation()}\r\n className={tw(\"pl-relative pl-flex pl-items-center pl-shrink-0 pl-pe-[5px]\", { desktop: \"\", desktopFullScreen: \"\" })}\r\n >\r\n <Image\r\n src={conditions(ConditionName.hasSound) ? (settings.volume >= 50 ? IMAGES.unMute : IMAGES.lowSound) : IMAGES.mute}\r\n alt={conditions(ConditionName.hasSound) ? \"unmute-icon\" : \"mute-icon\"}\r\n className={`pl-flex pl-items-center pl-cursor-pointer`}\r\n width={width}\r\n height={height}\r\n />\r\n </div>\r\n </div>\r\n {showTooltip && <ControllbarTooltip className=\"pl-left-0\" title={conditions(ConditionName.hasSound) ? \"صدا (M)\" : \"بیصدا (M)\"} />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default SoundVolume;\r\n","import { conditions } from \"../../../../helpers/conditions/conditions\";\nimport { ConditionName } from \"../../../../helpers/interfaces/enums\";\nimport { IControllbarTooltipProps } from \"../../../../helpers/interfaces/interfaces\";\n\nconst ControllbarTooltip = ({ title, className }: IControllbarTooltipProps) => (\n <span\n className={`pl-absolute pl-w-max pl-bg-black/75 pl-text-white pl-rounded-[8px] pl-leading-[18px] pl-flex pl-items-center pl-justify-center pl-font-normal ${\n conditions(ConditionName.isFullScreen)\n ? \"pl-bottom-[150%] pl-h-[34px] pl-px-[9.5px] pl-text-[15px]\"\n : \"pl-h-6 pl-bottom-[130%] pl-px-[9px] pl-text-[12px]\"\n } ${className}`}\n >\n {title}\n </span>\n);\n\nexport default ControllbarTooltip;\n","import { useEffect, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport ControllbarTooltip from \"../footer/controllbar/controllbarTooltip\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { handleFullScreen, handleLockOrientation } from \"../../../helpers/redux/actions/controller.actions\";\r\nimport Image from \"next/image\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport { tw } from \"../../../helpers/helpers\";\r\n\r\nconst FullScreen = ({ width, height, className }: { width?: number; height?: number; className?: string }) => {\r\n useAppSelector(({ controller: { firstPlay, isFullScreen } }) => ({ firstPlay, isFullScreen }), shallowEqual);\r\n\r\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\r\n\r\n // useEffect(() => {\r\n // if (!conditions(ConditionName.isFirstPlay)) dispatch(setActiveElements(false));\r\n // }, [isFullScreen]);\r\n\r\n return (\r\n <div\r\n onDoubleClick={(e) => e.preventDefault()}\r\n onMouseOver={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(true)}\r\n onMouseLeave={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(false)}\r\n onClick={() => {\r\n handleFullScreen();\r\n handleLockOrientation();\r\n }}\r\n id={conditions(ConditionName.isFullScreen) ? \"exit-full-s\" : \"full-s\"}\r\n className={tw(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full pl-transition-all ${className}`, {\r\n desktop: \"pl-w-[40px] pl-h-[25px] hover:pl-bg-[#5E5E5E]\",\r\n desktopFullScreen: \"pl-w-[56px] pl-h-[36px]\",\r\n touch: \"pl-w-[32px] pl-h-[22px]\",\r\n touchFullScreen: \"pl-w-[48px] pl-h-[32px]\",\r\n })}\r\n >\r\n <Image\r\n src={conditions(ConditionName.isFullScreen) ? IMAGES.nonFullScreen : IMAGES.fullScreen}\r\n alt=\"fullScreen-icon\"\r\n width={width}\r\n height={height}\r\n />\r\n\r\n {showTooltip && (\r\n <ControllbarTooltip className=\"pl-right-5\" title={`${conditions(ConditionName.isFullScreen) ? \"خروج از\" : \"\"} تمام صفحه (F)`} />\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default FullScreen;\r\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkVUHZVVMS_js=require('./chunk-VUHZVVMS.js'),chunkAN6JAJSI_js=require('./chunk-AN6JAJSI.js'),react=require('react'),reactRedux=require('react-redux');chunkAN6JAJSI_js.e();var p=()=>{let t=chunkAN6JAJSI_js.z();chunkAN6JAJSI_js.A(({videoData:{params:e}})=>({params:e}),reactRedux.shallowEqual),react.useEffect(()=>{let e=()=>{let l=document.fullscreenElement,{params:f}=chunkVUHZVVMS_js.Aa.getState().videoData;f.onFullscreenChange?.(!!l),l?t(chunkAN6JAJSI_js.m(true)):(t(chunkAN6JAJSI_js.m(false)),chunkVUHZVVMS_js.ca(),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.G("exitFullScreen")),document.body.style.overflow="auto");};document.addEventListener&&(document.addEventListener("webkitfullscreenchange",e,false),document.addEventListener("mozfullscreenchange",e,false),document.addEventListener("fullscreenchange",e,false),document.addEventListener("MSFullscreenChange",e,false));},[]);},b=p;exports.a=b;//# sourceMappingURL=chunk-K4YPVDEE.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-K4YPVDEE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/videoPlayerLibrary/helpers/hooks/useFullScreen.tsx"],"names":["init_cjs_shims","useFullScreen","dispatch","useAppDispatch","useAppSelector","params","shallowEqual","useEffect","handleChangeFullScreen","isFullScreen","store_default","setIsFullScreen","handleVideoElementSizeInfo","sendFluentLog","fullscreenLog","useFullScreen_default"],"mappings":"0KAAAA,kBAAAA,EAAAA,CASA,IAAMC,CAAAA,CAAgB,IAAM,CAC1B,IAAMC,CAAAA,CAAWC,kBAAAA,EAAe,CAChCC,kBAAAA,CAAe,CAAC,CAAE,UAAW,CAAE,MAAA,CAAAC,CAAO,CAAE,CAAA,IAAO,CAAE,OAAAA,CAAO,CAAA,CAAA,CAAIC,uBAAY,CAAA,CAGxEC,eAAAA,CAAU,IAAM,CACd,IAAMC,CAAAA,CAAyB,IAAM,CACnC,IAAMC,CAAAA,CAAe,SAAS,iBAAA,CACxB,CAAE,MAAA,CAAAJ,CAAO,CAAA,CAAIK,mBAAAA,CAAM,QAAA,EAAS,CAAE,SAAA,CACpCL,CAAAA,CAAO,kBAAA,GAAqB,CAAC,CAACI,CAAY,EAEtCA,CAAAA,CAAcP,CAAAA,CAASS,kBAAAA,CAAgB,IAAI,CAAC,CAAA,EAE9CT,EAASS,kBAAAA,CAAgB,KAAK,CAAC,CAAA,CAC/BC,mBAAAA,EAA2B,CAC3BC,mBAAcC,kBAAAA,CAAc,gBAAgB,CAAC,CAAA,CAC7C,QAAA,CAAS,IAAA,CAAK,KAAA,CAAM,QAAA,CAAW,MAAA,EAEnC,CAAA,CAEI,QAAA,CAAS,gBAAA,GACX,QAAA,CAAS,gBAAA,CAAiB,yBAA0BN,CAAAA,CAAwB,KAAK,CAAA,CACjF,QAAA,CAAS,gBAAA,CAAiB,qBAAA,CAAuBA,EAAwB,KAAK,CAAA,CAC9E,QAAA,CAAS,gBAAA,CAAiB,kBAAA,CAAoBA,CAAAA,CAAwB,KAAK,CAAA,CAC3E,QAAA,CAAS,gBAAA,CAAiB,oBAAA,CAAsBA,CAAAA,CAAwB,KAAK,CAAA,EASjF,CAAA,CAAG,EAAE,EACP,CAAA,CAEOO,CAAAA,CAAQd","file":"chunk-K4YPVDEE.js","sourcesContent":["import { useEffect } from \"react\";\nimport { shallowEqual } from \"react-redux\";\nimport { useAppDispatch, useAppSelector } from \"../redux/hooks\";\nimport { setIsFullScreen } from \"../redux/slices/controllerSlice\";\nimport { handleVideoElementSizeInfo } from \"../redux/actions/controller.actions\";\nimport { fullscreenLog } from \"../logs/logs\";\nimport { sendFluentLog } from \"../logs/fluentdLogger\";\nimport store from \"../redux/store\";\n\nconst useFullScreen = () => {\n const dispatch = useAppDispatch();\n useAppSelector(({ videoData: { params } }) => ({ params }), shallowEqual);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(() => {\n const handleChangeFullScreen = () => {\n const isFullScreen = document.fullscreenElement;\n const { params } = store.getState().videoData;\n params.onFullscreenChange?.(!!isFullScreen);\n\n if (isFullScreen) dispatch(setIsFullScreen(true));\n else {\n dispatch(setIsFullScreen(false));\n handleVideoElementSizeInfo();\n sendFluentLog(fullscreenLog(\"exitFullScreen\"));\n document.body.style.overflow = \"auto\";\n }\n };\n\n if (document.addEventListener) {\n document.addEventListener(\"webkitfullscreenchange\", handleChangeFullScreen, false);\n document.addEventListener(\"mozfullscreenchange\", handleChangeFullScreen, false);\n document.addEventListener(\"fullscreenchange\", handleChangeFullScreen, false);\n document.addEventListener(\"MSFullscreenChange\", handleChangeFullScreen, false);\n }\n\n () => {\n document.removeEventListener(\"webkitfullscreenchange\", handleChangeFullScreen, false);\n document.removeEventListener(\"mozfullscreenchange\", handleChangeFullScreen, false);\n document.removeEventListener(\"fullscreenchange\", handleChangeFullScreen, false);\n document.removeEventListener(\"MSFullscreenChange\", handleChangeFullScreen, false);\n };\n }, []);\n};\n\nexport default useFullScreen;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunk5UGSCO4K_js=require('./chunk-5UGSCO4K.js'),chunkVUHZVVMS_js=require('./chunk-VUHZVVMS.js'),chunkAN6JAJSI_js=require('./chunk-AN6JAJSI.js'),react=require('react'),reactRedux=require('react-redux');chunkAN6JAJSI_js.e();var x=()=>{let a=chunkAN6JAJSI_js.z(),{params:r}=chunkAN6JAJSI_js.A(({videoData:{params:o}})=>({params:o}),reactRedux.shallowEqual);react.useEffect(()=>{chunkVUHZVVMS_js.t("hasCurrentTimeParams")&&(chunkVUHZVVMS_js.x().currentTime=r.currentTime,a(chunkAN6JAJSI_js.h(r.currentTime)));},[r.currentTime]);},j=x;chunkAN6JAJSI_js.e();var w=()=>{let{rawSubtitles:a}=chunkAN6JAJSI_js.A(({videoData:{rawSubtitles:r}})=>({rawSubtitles:r}),reactRedux.shallowEqual);react.useEffect(()=>{let r=chunkVUHZVVMS_js.x().getElementsByTagName("track");for(let o=0;o<r.length;o++)r[o].addEventListener("cuechange",u=>{let c=u.target.track,l;c.activeCues&&(l=c.activeCues[0]),l&&(setTimeout(()=>{let n=document.getElementById("subtitle-id");n&&(n.style.display="block");},300),l.onexit=()=>{let n=document.getElementById("subtitle-id");n&&(n.style.display="none");});});},[a]);},R=w;chunkAN6JAJSI_js.e();var P=()=>{let a=chunkAN6JAJSI_js.z(),{rawSubtitles:r}=chunkAN6JAJSI_js.A(({videoData:{rawSubtitles:o}})=>({rawSubtitles:o}),reactRedux.shallowEqual);react.useEffect(()=>{let o=chunkVUHZVVMS_js.x();if(!o)return;let u=chunkVUHZVVMS_js.sa(r||[]),c=Array.from(o.querySelectorAll("track")),l=new Map(c.map(t=>[t.srclang,t]));c.forEach(t=>{!u.some(e=>e.lang===t.srclang)&&t.isConnected&&t.remove();}),u.forEach(t=>{let p=l.get(t.lang);if(!p){let e=document.createElement("track");e.kind="subtitles",e.src=t.url,e.srclang=t.lang,e.label=t.title||chunkVUHZVVMS_js.ta(t.lang),e.default=!!t.is_default,o.appendChild(e);return}if(p.src!==t.url){let e=document.createElement("track");e.kind="subtitles",e.src=t.url,e.srclang=t.lang,e.label=t.title||chunkVUHZVVMS_js.ta(t.lang),e.default=!!t.is_default,p.replaceWith(e);}});let n=setTimeout(()=>{let t=Array.from(o.textTracks);a(chunkVUHZVVMS_js.i(t));},200);return ()=>clearTimeout(n)},[r,a]);},ot=P;chunkAN6JAJSI_js.e();var L=()=>{let{activeSubtitle:a}=chunkAN6JAJSI_js.A(({videoData:r})=>({activeSubtitle:r.params?.activeSubtitle}),reactRedux.shallowEqual);react.useEffect(()=>{chunkVUHZVVMS_js.t("hasActiveSubtitleInParams")&&setTimeout(()=>chunk5UGSCO4K_js.b(a),500);},[a]);},pt=L;exports.a=j;exports.b=R;exports.c=ot;exports.d=pt;//# sourceMappingURL=chunk-KSZ35TPK.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-KSZ35TPK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/videoPlayerLibrary/helpers/hooks/useJumpToCurrentTime.tsx","../src/videoPlayerLibrary/helpers/hooks/useHideSubtitle.tsx","../src/videoPlayerLibrary/helpers/hooks/useAppendSubtitle.tsx","../src/videoPlayerLibrary/helpers/hooks/useActiveSubtitleAutomatic.tsx"],"names":["init_cjs_shims","useJumpToCurrentTime","dispatch","useAppDispatch","params","useAppSelector","shallowEqual","useEffect","conditions","mainPlayerVideoTag","setCurrentTime","useJumpToCurrentTime_default","useHideSubtitle","rawSubtitles","tracks","i","event","track","activeCue","el","useHideSubtitle_default","useAppendSubtitle","videoEl","newSubtitles","sortLanguages","existingTracks","existingMap","s","subtitle","existing","trackEl","getSubtitleLabel","newTrack","timeoutId","setSubtitles","useAppendSubtitle_default","useActiveSubtitleAutomatic","activeSubtitle","videoData","handleSubtitle","useActiveSubtitleAutomatic_default"],"mappings":"0NAAAA,kBAAAA,EAAAA,CAQA,IAAMC,CAAAA,CAAuB,IAAM,CAC/B,IAAMC,CAAAA,CAAWC,kBAAAA,EAAe,CAC1B,CAAE,MAAA,CAAAC,CAAO,EAAIC,kBAAAA,CAAe,CAAC,CAAE,SAAA,CAAW,CAAE,MAAA,CAAAD,CAAO,CAAE,CAAA,IAAO,CAAE,MAAA,CAAAA,CAAO,CAAA,CAAA,CAAIE,uBAAY,CAAA,CAG3FC,eAAAA,CAAU,IAAM,CACRC,kBAAAA,CAAAA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AU,KAAO,CAClB,cAAA,CAAgBA,CAAAA,CAAU,MAAA,EAAQ,cACpC,CAAA,CAAA,CACAhC,uBACF,CAAA,CAEAC,eAAAA,CAAU,IAAM,CACVC,kBAAAA,CAAAA,2BAAkD,CAAA,EACpD,WAAW,IAAM+B,kBAAAA,CAAeF,CAAc,CAAA,CAAG,GAAG,EACxD,CAAA,CAAG,CAACA,CAAc,CAAC,EACrB,CAAA,CAEOG,EAAAA,CAAQJ","file":"chunk-KSZ35TPK.js","sourcesContent":["import { useEffect } from \"react\";\nimport { conditions } from \"../conditions/conditions\";\nimport { ConditionName } from \"../interfaces/enums\";\nimport { mainPlayerVideoTag } from \"../constants\";\nimport { useAppDispatch, useAppSelector } from \"../redux/hooks\";\nimport { setCurrentTime } from \"../redux/slices/controllerSlice\";\nimport { shallowEqual } from \"react-redux\";\n\nconst useJumpToCurrentTime = () => {\n const dispatch = useAppDispatch();\n const { params } = useAppSelector(({ videoData: { params } }) => ({ params }), shallowEqual);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(() => {\n if (conditions(ConditionName.hasCurrentTimeParams)) {\n mainPlayerVideoTag().currentTime = params.currentTime!;\n dispatch(setCurrentTime(params.currentTime!));\n }\n }, [params.currentTime]);\n}\n\nexport default useJumpToCurrentTime;","import { useEffect } from \"react\";\nimport { useAppSelector } from \"../redux/hooks\";\nimport { shallowEqual } from \"react-redux\";\nimport { mainPlayerVideoTag } from \"../constants\";\n\nconst useHideSubtitle = () => {\n const { rawSubtitles } = useAppSelector(\n ({ videoData: { rawSubtitles } }) => ({ rawSubtitles }),\n shallowEqual\n );\n\n useEffect(() => {\n const tracks = mainPlayerVideoTag().getElementsByTagName(\"track\");\n for (let i = 0; i < tracks.length; i++) {\n tracks[i].addEventListener(\"cuechange\", (event) => {\n const track = (event.target! as any).track;\n let activeCue: any;\n if (track.activeCues) activeCue = track.activeCues[0];\n if (activeCue) {\n setTimeout(() => {\n const el = document.getElementById(\"subtitle-id\");\n if (el) el.style.display = \"block\";\n }, 300);\n\n activeCue.onexit = () => {\n const el = document.getElementById(\"subtitle-id\");\n if (el) el.style.display = \"none\";\n };\n }\n });\n }\n }, [rawSubtitles]);\n};\n\nexport default useHideSubtitle;\n","import { useEffect } from \"react\";\nimport { mainPlayerVideoTag } from \"../constants\";\nimport { useAppDispatch, useAppSelector } from \"../redux/hooks\";\nimport { shallowEqual } from \"react-redux\";\nimport { getSubtitleLabel, sortLanguages } from \"../helpers\";\nimport { setSubtitles } from \"../redux/slices/videoDataSlice\";\n\nconst useAppendSubtitle = () => {\n const dispatch = useAppDispatch();\n const { rawSubtitles } = useAppSelector(({ videoData: { rawSubtitles } }) => ({ rawSubtitles }), shallowEqual);\n\n useEffect(() => {\n const videoEl = mainPlayerVideoTag();\n if (!videoEl) return;\n\n const newSubtitles = sortLanguages(rawSubtitles || []);\n const existingTracks = Array.from(videoEl.querySelectorAll(\"track\"));\n const existingMap = new Map(existingTracks.map((t) => [t.srclang, t]));\n existingTracks.forEach((track) => {\n const stillExists = newSubtitles.some((s: any) => s.lang === track.srclang);\n if (!stillExists && track.isConnected) track.remove();\n });\n\n newSubtitles.forEach((subtitle: any) => {\n const existing = existingMap.get(subtitle.lang);\n\n if (!existing) {\n const trackEl = document.createElement(\"track\");\n trackEl.kind = \"subtitles\";\n trackEl.src = subtitle.url;\n trackEl.srclang = subtitle.lang;\n trackEl.label = subtitle.title || (getSubtitleLabel(subtitle.lang) as any);\n trackEl.default = !!subtitle.is_default;\n videoEl.appendChild(trackEl);\n return;\n }\n\n if (existing.src !== subtitle.url) {\n const newTrack = document.createElement(\"track\");\n newTrack.kind = \"subtitles\";\n newTrack.src = subtitle.url;\n newTrack.srclang = subtitle.lang;\n\n newTrack.label = subtitle.title || (getSubtitleLabel(subtitle.lang) as any);\n newTrack.default = !!subtitle.is_default;\n\n existing.replaceWith(newTrack);\n }\n });\n\n const timeoutId = setTimeout(() => {\n const tracks = Array.from(videoEl.textTracks);\n dispatch(setSubtitles(tracks));\n }, 200);\n\n return () => clearTimeout(timeoutId);\n }, [rawSubtitles, dispatch]);\n};\n\nexport default useAppendSubtitle;\n","import { useEffect } from \"react\";\nimport { useAppSelector } from \"../redux/hooks\";\nimport { shallowEqual } from \"react-redux\";\nimport { handleSubtitle } from \"../redux/actions/videoData.actions\";\nimport { conditions } from \"../conditions/conditions\";\nimport { ConditionName } from \"../interfaces/enums\";\n\nconst useActiveSubtitleAutomatic = () => {\n const { activeSubtitle } = useAppSelector(\n ({ videoData }) => ({\n activeSubtitle: videoData.params?.activeSubtitle,\n }),\n shallowEqual\n );\n\n useEffect(() => {\n if (conditions(ConditionName.hasActiveSubtitleInParams))\n setTimeout(() => handleSubtitle(activeSubtitle), 500);\n }, [activeSubtitle]);\n};\n\nexport default useActiveSubtitleAutomatic;\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';var chunkK4YPVDEE_js=require('./chunk-K4YPVDEE.js'),chunkW5NVHMWX_js=require('./chunk-W5NVHMWX.js'),chunkISVY5ION_js=require('./chunk-ISVY5ION.js'),chunkAK5TFAW3_js=require('./chunk-AK5TFAW3.js'),chunkCOYFW7R4_js=require('./chunk-COYFW7R4.js'),chunk5UGSCO4K_js=require('./chunk-5UGSCO4K.js'),chunkVUHZVVMS_js=require('./chunk-VUHZVVMS.js'),chunkAN6JAJSI_js=require('./chunk-AN6JAJSI.js'),react=require('react'),reactRedux=require('react-redux'),pe=require('next/image'),jsxRuntime=require('react/jsx-runtime'),reactDom=require('react-dom'),Lo=require('next/dynamic');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var pe__default=/*#__PURE__*/_interopDefault(pe);var Lo__default=/*#__PURE__*/_interopDefault(Lo);chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();var Ro=()=>jsxRuntime.jsxs("div",{className:`pl-relative animate__animated animate__faster ${chunkVUHZVVMS_js.t("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>chunkVUHZVVMS_js.aa("unlock")}),!localStorage.getItem("unlock-click")&&jsxRuntime.jsx("p",{className:"pl-text-[10px] pl-text-black/[0.87] pl-bg-[#F7F7F7] pl-absolute pl-left-0 pl-px-4 pl-py-3 pl-rounded-[8px] pl-w-max",children:"\u0628\u0631\u0627\u06CC \u0628\u0627\u0632 \u06A9\u0631\u062F\u0646 \u0642\u0641\u0644\u060C \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F"})]}),Dt=Ro;var Uo=()=>{let{firstPlay:t}=chunkAN6JAJSI_js.A(({controller:{lock:l,activeElements:o,firstPlay:i}})=>({lock:l,activeElements:o,firstPlay:i}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{className:chunkVUHZVVMS_js.ea(`pl-duration-300 pl-transition-[opacity] ${t?"pl-opacity-0":"pl-opacity-100"}`,{desktop:"pl-rounded-t-[12px] pl-pt-8 pl-h-[45.5px]",touch:"pl-h-[16px]"}),children:jsxRuntime.jsx("div",{className:" pl-mx-8 pl-flex pl-items-start pl-justify-end pl-h-full",children:chunkVUHZVVMS_js.t("isLock")&&jsxRuntime.jsx(Dt,{})})})},_t=Uo;chunkAN6JAJSI_js.e();var Wo=()=>{let{firstPlay:t,autoplay:l,play:o,isLoading:i}=chunkAN6JAJSI_js.A(({controller:{lock:a,firstPlay:h,play:v,activeElements:f,isLoading:n},videoData:{params:{autoplay:w}}})=>({lock:a,firstPlay:h,autoplay:w,play:v,activeElements:f,isLoading:n}),reactRedux.shallowEqual),[r,p]=react.useState(true),[s,d]=react.useState(!l);return react.useEffect(()=>{if(t||chunkVUHZVVMS_js.t("isTouchScreen"))return;let a=null;return d(true),a=setTimeout(()=>d(false),1e3),()=>{a&&clearTimeout(a);}},[o,t]),react.useEffect(()=>{let a;return i?a=setTimeout(()=>p(true),chunkAK5TFAW3_js.b):p(false),()=>{clearTimeout(a);}},[i,t]),jsxRuntime.jsx("main",{className:`pl-flex-1 pl-flex pl-flex-col ${chunkVUHZVVMS_js.ha()?"pl-absolute pl-inset-0":""}`,children:r?jsxRuntime.jsx(chunkW5NVHMWX_js.a,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:!chunkVUHZVVMS_js.t("isLock")&&jsxRuntime.jsx("div",{id:"main-content",className:`pl-h-full pl-flex-1 pl-flex pl-justify-center pl-items-center pl-text-center ${chunkVUHZVVMS_js.t("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:chunkVUHZVVMS_js.t("isTouchScreen")?jsxRuntime.jsxs("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:2},children:[!t&&jsxRuntime.jsx("div",{onClick:a=>{a.stopPropagation(),chunkVUHZVVMS_js.Z("touchForward",10,a);},className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${chunkVUHZVVMS_js.t("isFullScreen")?"pl-size-[56px]":"pl-size-[40px]"} pl-bg-black/75 ${chunkVUHZVVMS_js.t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.forward2,alt:"",className:"!pl-cursor-pointer",width:chunkVUHZVVMS_js.t("isFullScreen")?28:16,height:chunkVUHZVVMS_js.t("isFullScreen")?28:16})}),jsxRuntime.jsx(chunkW5NVHMWX_js.b,{normalStyle:true,disableScale:true,disableTooltip:true,className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${chunkVUHZVVMS_js.t("isFullScreen")?"pl-size-[68px]":"pl-size-[48px]"} pl-bg-black/75 ${chunkVUHZVVMS_js.t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,width:chunkVUHZVVMS_js.t("isFullScreen")?36:24,height:chunkVUHZVVMS_js.t("isFullScreen")?36:24}),!t&&jsxRuntime.jsx("div",{onClick:a=>{a.stopPropagation(),chunkVUHZVVMS_js.Z("touchBackward",10,a);},className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${chunkVUHZVVMS_js.t("isFullScreen")?"pl-size-[56px]":"pl-size-[40px]"} pl-bg-black/75 ${chunkVUHZVVMS_js.t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.backward2,alt:"",className:"!pl-cursor-pointer",width:chunkVUHZVVMS_js.t("isFullScreen")?28:16,height:chunkVUHZVVMS_js.t("isFullScreen")?28:16})})]}):jsxRuntime.jsx("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:2},children:jsxRuntime.jsx(chunkW5NVHMWX_js.b,{normalStyle:true,disableScale:true,disableTooltip:true,inverse:!t,width:chunkVUHZVVMS_js.t("isFullScreen")?81:48,height:chunkVUHZVVMS_js.t("isFullScreen")?81:48,className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${chunkVUHZVVMS_js.t("isFullScreen")?"pl-size-[122px]":"pl-size-[72px]"} pl-bg-black/75 ${s?"pl-opacity-100":"pl-opacity-0 pl-scale-0"} ${t?"!pl-cursor-pointer":"!pl-cursor-default"}`})})})})})},Vt=Wo;chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();var Yo=t=>{let{videoElementSizeInfo:l}=chunkVUHZVVMS_js.Aa.getState().videoData,o=t.clientX!==void 0?t.clientX:t.touches[0].clientX;if(o<=l.right&&o>0)return o-l.left};var ce=t=>{t&&(t.style.opacity="0.0",t.style.pointerEvents="none",t.style.zIndex=-2,Ee());},Jo=t=>{t.style.display="block",t.style.zIndex=4,t.style.opacity=chunkVUHZVVMS_js.Aa.getState().videoData.details.vtt?"1.0":"0.6",t.style.pointerEvents="auto",t.style.transition="opacity 1s ease-out";},Ko=(t,l,o)=>{l&&Jo(l);let i=chunkVUHZVVMS_js.A()?.offsetLeft||0,r=i?0:16,p=Yo(t)-i,s=l.offsetWidth,d=l.parentElement.offsetWidth,a=Math.min(Math.max(p-s/2,0+r),d-s-r);l.style.left=`${a}px`,chunkVUHZVVMS_js.Aa.dispatch(chunkAN6JAJSI_js.v(Number(me(t)))),o.textContent=`${chunkVUHZVVMS_js.ia(me(t))}`;},ue=(t,l=false)=>{let{videoElementSizeInfo:o}=chunkVUHZVVMS_js.Aa.getState().videoData,i=document.querySelector(".pl-progressTooltip"),r=document.querySelector(".pl-progressTimeTooltip"),p=t.clientX!==void 0?t.clientX:t.touches[0].clientX;i&&r&&p<=o.right&&p>o.left?(Ko(t,i,r),l&&setTimeout(()=>ce(i),2e3)):ce(i);},me=t=>{let l=chunkVUHZVVMS_js.C(),{duration:o}=chunkVUHZVVMS_js.Aa.getState().controller;if(!l||!o)return 0;let i=t.clientX!==void 0?t.clientX:t.touches?.[0]?.clientX,r=l.getBoundingClientRect();return Math.max(0,Math.min(i-r.left,r.width))/r.width*o},qt=t=>{let{duration:l}=chunkVUHZVVMS_js.Aa.getState().controller,o=chunkVUHZVVMS_js.z(),i=me(t);o.style.width=`${i/l*100}%`;},Rt=(t,l,o)=>{t.preventDefault(),t.stopPropagation(),o(true);let i=chunkVUHZVVMS_js.Aa.dispatch,r=t.clientX!==void 0?t.clientX:t.touches[0].clientX;if(r<=t.view.innerWidth&&r>0){i(chunkAN6JAJSI_js.p(true)),i(chunkAN6JAJSI_js.q(true));let p=me(t);sessionStorage.setItem("previousVideoTime",String(p)),chunkVUHZVVMS_js.C()?.setPointerCapture(t.pointerId),l.length>0&&l.map(s=>clearTimeout(s));}},Ee=t=>{},Ze=t=>{t.preventDefault(),t.stopPropagation();let l=chunkVUHZVVMS_js.Aa.dispatch,{activePointerProgressBar:o}=chunkVUHZVVMS_js.Aa.getState().controller,{left:i}=chunkVUHZVVMS_js.Aa.getState().videoData.videoElementSizeInfo,r=t.clientX!==void 0?t.clientX:t.touches[0].clientX,p=document.querySelector(".pl-progressTooltip");r>i?(p&&(p.style.display="block !important",p.style.pointerEvents="auto"),o&&(l(chunkAN6JAJSI_js.q(true)),ue(t),qt(t),chunkVUHZVVMS_js.x()?.pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},Xt=(t,l,o,i)=>{i(false),t.preventDefault(),t.stopPropagation();let r=chunkVUHZVVMS_js.Aa.dispatch,{duration:p}=chunkVUHZVVMS_js.Aa.getState().controller,{left:s,right:d}=chunkVUHZVVMS_js.Aa.getState().videoData.videoElementSizeInfo,a=chunkVUHZVVMS_js.Aa.getState().videoData.params;t.target.removeEventListener("pointermove",Ze);let h=t.clientX!==void 0?t.clientX:t.touches[0].clientX,v=0;h>s&&h<d?v=me(t):h<s?v=0:h>0&&(v=p),chunkVUHZVVMS_js.t("isStaticFormat")||chunkVUHZVVMS_js.ba(chunkVUHZVVMS_js.x().currentTime,v),chunkVUHZVVMS_js.x().currentTime=v,chunkVUHZVVMS_js.t("hasOnChangeCurrentTime")&&a.onChangeCurrentTime(v),chunkVUHZVVMS_js.Aa.getState().controller.activePointerProgressBar&&(r(chunkAN6JAJSI_js.p(false)),r(chunkAN6JAJSI_js.q(false)),chunkVUHZVVMS_js.x().play(),ue(t,true),sessionStorage.setItem("current-time",String(v)),qt(t),el(t,r,l,o));},el=(t,l,o,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:s}=chunkVUHZVVMS_js.Aa.getState().popovers,{delayTurnOffControlbar:d}=chunkVUHZVVMS_js.Aa.getState().controller;t.pointerType==="touch"&&!s&&d&&l(chunkAN6JAJSI_js.k(false));},chunkAK5TFAW3_js.a);r.push(p),o(r);},jt=()=>{let t=Date.now();chunkVUHZVVMS_js.x().play().then(()=>chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.F(Date.now()-t)));},Ut=t=>ue(t),Qt=()=>{let t=document.querySelector(".pl-progressTooltip");ce(t);},tl=t=>{let l=t?.split("."),i=l[0]?.split(":");return {milliseconds:parseInt(l[1],10)||0,seconds:parseInt(i.pop(),10)||0,minutes:parseInt(i.pop(),10)||0,hours:parseInt(i.pop(),10)||0}},Ht=t=>{let l=tl(t);return parseInt(l.hours*3600+l.minutes*60+l.seconds+l.milliseconds/1e3,10)},ol=t=>{let l=t?.split(/#xywh=/i),o=l[0],r=l[1].match(/[0-9]+/gi);return {x:r[0],y:r[1],w:r[2],h:r[3],image:o}},ll=(t,l)=>t.indexOf("//")>=0?t:l.indexOf("//")===0?[l.replace(/\/$/gi,""),t.trim()].join("/"):l.indexOf("//")>0?[l.trim(),t.trim()].join("/"):t,il=(t,l)=>{let o={},i=l?.split(/\/\w+\.vtt\s?/)[0];if(t=ll(t,i),!t.match(/#xywh=/i))return o.background='url("'+t+l?.split(/\/\w+\.vtt\s?/)[1]+'")',o;let r=ol(t);return o.background='url("'+r.image+l?.split(/\/\w+\.vtt\s?/)[1]+'") no-repeat -'+r.x+"px -"+r.y+"px",o.width=r.w+"px",o.height=r.h+"px",o.url=r.image,o},Wt=(t,l)=>{fetch(t).then(o=>{if(!o.ok)throw chunkVUHZVVMS_js.Aa.dispatch(chunkVUHZVVMS_js.a({...chunkVUHZVVMS_js.Aa.getState().videoData.details,vtt:void 0,vtt_mobile:void 0})),new Error("Network response was not ok");return o.text()}).then(o=>{let i=[];(o?.split(/[\r\n][\r\n]/i)).forEach(p=>{if(p.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3}).*/gi)){let s=p?.split(/[\r\n]/i),a=s[0]?.split(/ ?--> ?/i),h=a[0],v=a[1],f=s[1],n=il(f,t);i.push({start:Ht(h),end:Ht(v),css:n});}}),l(i);}).catch(o=>{console.error("Error fetching file:",o);});},Zt=(t,l,o)=>{for(let i=0;i<l.length;++i){let r=l[i];if(t>=r.start&&t<r.end){if(r.css.url&&!o[r.css.url]){let p={background:r.css.background,width:r.css.width,height:r.css.height};return o[r.css.url]=p,p}else if(r.css.url)return o[r.css.url]}}};var rl=()=>{let{details:t}=chunkAN6JAJSI_js.A(({videoData:{details:d}})=>({details:d}),reactRedux.shallowEqual),{tooltipTime:l}=chunkAN6JAJSI_js.A(({controller:{tooltipTime:d,activeElements:a,isFullScreen:h}})=>({tooltipTime:d,activeElements:a,isFullScreen:h}),reactRedux.shallowEqual),o={},[i,r]=react.useState(void 0),[p,s]=react.useState(chunkVUHZVVMS_js.t("isTouchScreen")?t.vtt_mobile:t.vtt);if(react.useEffect(()=>{s(t.vtt_mobile);},[t.vtt_mobile]),react.useEffect(()=>{p&&Wt(t.vtt_mobile,r);},[p]),chunkVUHZVVMS_js.t("isActiveElements"))return jsxRuntime.jsxs("div",{className:"pl-flex pl-flex-col pl-items-center pl-justify-center pl-progressTooltip pl-absolute pl-bottom-[calc(100%+10px)] pl-text-white pl-text-[14px] pl-rounded-[6px] pl-opacity-0",children:[p&&!!i&&jsxRuntime.jsx("div",{className:chunkVUHZVVMS_js.ea("pl-flex-1 pl-border-[1.5px] pl-border-white pl-overflow-hidden pl-relative pl-rounded-[12px]",{desktopFullScreen:"pl-h-[164px] pl-w-[291px] pl-mb-1.5",desktop:"pl-h-[93px] pl-w-[165px] pl-mb-1",touch:"pl-h-[70px] pl-w-[135px] pl-mb-1",touchFullScreen:"pl-h-[137px] pl-w-[244px]"}),children:jsxRuntime.jsx("div",{style:Zt(l,i,o),className:chunkVUHZVVMS_js.ea("pl-absolute pl-inset-0 pl-top-1/2 pl-left-1/2 -pl-translate-x-1/2 -pl-translate-y-1/2 ",{desktop:"pl-scale-[170%]",touch:"pl-scale-[130%]",desktopFullScreen:"pl-scale-[290%]",touchFullScreen:"pl-scale-[250%]"})})}),jsxRuntime.jsx("div",{className:chunkVUHZVVMS_js.ea("pl-flex pl-items-center pl-mx-auto pl-w-fit pl-bg-black/75 pl-rounded-[24px] pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100 ",{desktop:"pl-text-[12px] pl-py-1 pl-px-2 pl-font-bold",desktopFullScreen:"pl-text-base pl-py-1.5 pl-px-3",touchFullScreen:"pl-text-base pl-py-1.5 pl-px-3",touch:"pl-text-[12px] pl-py-1 pl-px-2"})})]})},Kt=react.memo(rl);chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();var al=(t,l)=>{react.useEffect(()=>{let o=i=>{!t.current||t.current.contains(i.target)||l(i);};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o);}},[t,l]);},R=al;chunkAN6JAJSI_js.e();var cl=({name:t,className:l,dataMarker:o})=>jsxRuntime.jsx("img",{"data-marker":o,src:`${chunkVUHZVVMS_js.u()}/${t}.png`,alt:t,className:l}),Ye=cl;var fl=()=>{chunkAN6JAJSI_js.z();let {duration:l,activeElements:o}=chunkAN6JAJSI_js.A(({controller:{duration:c,activeElements:x,isFullScreen:F}})=>({duration:c,activeElements:x,isFullScreen:F}),reactRedux.shallowEqual),{markers:i}=chunkAN6JAJSI_js.A(({videoData:{markers:c,videoElementSizeInfo:x}})=>({markers:c,videoElementSizeInfo:x}),reactRedux.shallowEqual),[r,p]=react.useState(void 0),[s,d]=react.useState([]),[a,h]=react.useState({}),[v,f]=react.useState(false),n=c=>l?chunkVUHZVVMS_js.B()*c/l:0,w=(c,x,F,P,D,G,H,K)=>{c.stopPropagation();let Se=24*x/(chunkVUHZVVMS_js.B()+5),Y=[],O=0;K.map(be=>{be.time>x-Se&&be.time<x+Se&&(Y.push(be),O+=be.time);}),Y.length>1?d(Y):(Y=[],d([]),I(c,x,F,P,D,G,H));},I=(c,x,F,P,D,G,H)=>{c.stopPropagation(),ue(c,H),chunkVUHZVVMS_js.ba(chunkVUHZVVMS_js.x().currentTime,x),chunkVUHZVVMS_js.x().currentTime=x,chunkVUHZVVMS_js.z()&&(chunkVUHZVVMS_js.z().style.width=n(x)),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.O(F,x,P,D,G));};react.useEffect(()=>{chunkVUHZVVMS_js.t("isActiveElements")||d([]);},[o]);let M=react.useRef(null);R(M,()=>d([])),react.useEffect(()=>{if(s.length>0){let c=chunkVUHZVVMS_js.va(document.getElementsByClassName("pl-overlapMarkers")[0]);if(c==="inViewport")return f(true),h({left:n(s[0].time)});if(c==="OutViewPortFromLeft")return f(false),h({left:0});if(c==="OutViewPortFromRight")return f(false),h({right:0})}},[s,document.getElementsByClassName("pl-overlapMarkers")[0]]);let C=c=>{c.preventDefault(),chunkVUHZVVMS_js.t("isTouchScreen")&&p(Number(c.target.getAttribute("data-marker")));};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i.map(c=>jsxRuntime.jsx("div",{onContextMenu:C,"data-marker":c.time,onClick:x=>w(x,c.time,c.id,c.title,c.description,c.sticker,true,i),onDoubleClick:x=>x.stopPropagation(),children:jsxRuntime.jsxs("div",{className:`pl-emoji-image pl-absolute pl-bottom-[200%] pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-p-1 ${chunkVUHZVVMS_js.t("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:n(c.time),zIndex:5},"data-marker":c.time,children:[c.isPersonal!==null&&c.isPersonal!==void 0&&jsxRuntime.jsx("div",{className:"pl-absolute pl-rounded-full pl-top-[-2px] pl-right-[-1px] pl-bg-main pl-w-2 pl-h-2"}),jsxRuntime.jsx(Ye,{dataMarker:c.time,name:c.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},c.id)),s.length>0&&jsxRuntime.jsx("div",{className:`pl-overlapMarkers ${v?"pl-overlayMarkersInViewport":"pl-overlayMarkersOutViewport"} pl-absolute pl-bottom-[45px] pl-px-1 pl-py-2 pl-flex pl-gap-3 pl-flex-row-reverse pl-justify-end pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-ml-[-10px] animate__animated animate__fadeInUp pl-opacity-100`,ref:M,style:a,children:s.map(c=>jsxRuntime.jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":c.time,onClick:x=>I(x,c.time,c.id,c.title,c.description,c.sticker,true),onDoubleClick:x=>x.stopPropagation(),children:jsxRuntime.jsx(Ye,{dataMarker:c.time,name:c.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},c.id))})]})},lo=react.memo(fl);var vl=()=>{let[t,l]=react.useState(false),[o,i]=react.useState([]);react.useEffect(()=>{ce(document.querySelector(".progressTooltip"));},[]);let{duration:r,currentTime:p,bufferedTimeWidth:s}=chunkAN6JAJSI_js.A(({controller:{duration:d,currentTime:a,bufferedTimeWidth:h,isFullScreen:v}})=>({duration:d,currentTime:a,bufferedTimeWidth:h,isFullScreen:v}),reactRedux.shallowEqual);return chunkAN6JAJSI_js.A(({videoData:{params:d,videoElementSizeInfo:a}})=>({params:d,videoElementSizeInfo:a}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{id:"time-progress-container",className:chunkVUHZVVMS_js.ea(`pl-relative ${chunkVUHZVVMS_js.t("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"}`,{desktop:"pl-px-4"}),children:[jsxRuntime.jsxs("div",{className:"pl-relative",children:[jsxRuntime.jsx(Kt,{}),jsxRuntime.jsx(lo,{})]}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-end",onPointerDown:d=>Rt(d,o,l),onPointerMove:Ze,onPointerUp:d=>Xt(d,i,o,l),onMouseMove:Ut,onMouseOut:Qt,onClick:jt,children:jsxRuntime.jsx("div",{id:"progress-area",className:chunkVUHZVVMS_js.ea("pl-w-full"),children:jsxRuntime.jsxs("div",{id:"time-progress-area",className:chunkVUHZVVMS_js.ea("!pl-w-full pl-relative pl-transition-transform pl-duration-300 pl-m-auto pl-cursor-pointer !pl-bg-[#4A4A4A] ",{desktop:"pl-h-[3px] pl-rounded-[8px]",desktopFullScreen:"!pl-h-[6px]",touch:"pl-h-[3px]",touchFullScreen:""}),children:[jsxRuntime.jsx("div",{style:{width:`${s}%`},id:"time-progress-buffer",className:chunkVUHZVVMS_js.ea("pl-absolute pl-bg-[#C7C7C7] ",{desktop:"pl-h-[3px] pl-rounded-[8px]",desktopFullScreen:"!pl-h-[6px]",touch:"pl-h-[3px]",touchFullScreen:""})}),jsxRuntime.jsx("div",{style:{width:p===r?"0%":`${p/r*100}%`},id:"time-progress-bar",className:chunkVUHZVVMS_js.ea("pl-relative pl-cursor-pointer pl-bg-[#FF0033] before:pl-bg-[#FF0033] before:pl-inline-block",{desktop:`pl-h-[3px] before:pl-size-[9px] pl-rounded-[8px] ${t&&"before:pl-size-[11px]"}`,desktopFullScreen:`!pl-h-[6px] before:!pl-size-[20px] ${t&&"before:!pl-size-[22px]"}`,touch:"pl-h-[3px] before:pl-size-[8px]",touchFullScreen:"before:!pl-size-[9px]"})})]})})})]})},ro=vl;chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();var no=react.forwardRef(({children:t,status:l,onClose:o,type:i,classNames:r,parentClassNames:p,styles:s,isBlurBackground:d,isFullHeight:a=false,isFullScreen:h,isHeader:v,isHasCatchUpLineOnTop:f=false,animation:n,scrollbar:w=false,isFocusOnInput:I=false},M)=>{let[C,c]=react.useState(l),[x,F]=react.useState(0),[P,D]=react.useState(0),[G,H]=react.useState(0),{videoElementSizeInfo:K}=chunkAN6JAJSI_js.A(({videoData:{videoElementSizeInfo:O}})=>({videoElementSizeInfo:O}),reactRedux.shallowEqual);react.useEffect(()=>{let O;return l?c(true):O=setTimeout(()=>{o(false),D(0),c(false);},500),()=>clearTimeout(O)},[l]);let rt=O=>{O.touches[0].clientY>=K.top?D(window.innerHeight-O.touches[0].clientY):D(window.innerHeight-K.top),H(1005);},Se=()=>{P!==0&&(P>x?P-x>(window.innerHeight-K.top-x)/2?(D(window.innerHeight-K.top),H(1005)):(D(0),setTimeout(()=>H(0),500)):(P>x/2?D(x):(D(0),F(0),o()),H(0)));},Y=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx("div",{className:`pl-bg-black/[0.5] pl-w-screen pl-h-screen pl-fixed pl-top-0 pl-right-0 animate__animated animate__faster ${l?"animate__fadeIn":"animate__fadeOut"}`,style:{zIndex:1001,backdropFilter:"blur(4px)"}}),jsxRuntime.jsx("div",{className:`${i==="modal"&&"pl-fixed pl-top-0 pl-left-0 pl-flex pl-w-full pl-h-full pl-justify-center pl-items-end sm:pl-items-center"} ${p}`,style:{zIndex:a&&!I?G:1004},children:jsxRuntime.jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9] dark:pl-bg-black/[0.7]
|
|
2
|
+
${a&&"pl-h-full"}
|
|
3
|
+
${n||(window.innerWidth>768&&i==="modal"?l?"animate__fadeIn":"animate__fadeOut":l?"animate__fadeInUp":"animate__fadeOutDown")}
|
|
4
|
+
before:pl-hidden
|
|
5
|
+
${i!=="modal"&&`pl-absolute ${chunkVUHZVVMS_js.ea("",{desktop:"pl-bottom-[20px]",desktopFullScreen:"pl-bottom-[60px]"})} pl-overflow-auto no-scrollbar`}
|
|
6
|
+
${r}
|
|
7
|
+
`,style:{maxHeight:h?"unset":P||x||"",zIndex:1004,...s},ref:M,id:"popover-content",children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[v&&jsxRuntime.jsx("div",{onTouchMove:f?rt:()=>{},onTouchEndCapture:f?Se:()=>{},className:"pl-py-4",children:f&&jsxRuntime.jsx("div",{className:"pl-absolute pl-top-[10px] pl-right-[50%] pl-mr-[-25px] pl-text-center pl-w-8 pl-h-1 pl-rounded-[20px] pl-bg-gray-highLight"})}),jsxRuntime.jsx("div",{id:"popover-content",className:`pl-overflow-y-auto pl-h-full pl-w-full ${!w&&"no-scrollbar"}`,onTouchMove:O=>O.stopPropagation(),children:t})]})})})]});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:C&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:i==="modal"?reactDom.createPortal(jsxRuntime.jsx("div",{style:{fontFamily:"IRANSansXFaNum",direction:"rtl",overflowX:"hidden"},children:Y}),document.getElementById("dialog-react-root-videoPlayer")):jsxRuntime.jsx("div",{id:"player-popover",children:Y})})})});no.displayName="popover";var W=no;chunkAN6JAJSI_js.e();var kl=({setSection:t,showQualityLevelsIcon:l})=>{let o=chunkAN6JAJSI_js.z(),{qualityLevels:i}=chunkAN6JAJSI_js.A(({controller:{qualityLevels:n,manualQuality:w,autoQuality:I}})=>({qualityLevels:n,manualQuality:w,autoQuality:I}),reactRedux.shallowEqual),{settings:r}=chunkAN6JAJSI_js.A(({user:{settings:n}})=>({settings:n}),reactRedux.shallowEqual),{qualityLevelsPopover:p}=chunkAN6JAJSI_js.A(({popovers:{qualityLevelsPopover:n}})=>({qualityLevelsPopover:n}),reactRedux.shallowEqual),{videoElementSizeInfo:s}=chunkAN6JAJSI_js.A(({videoData:{params:n,videoElementSizeInfo:w}})=>({params:n,videoElementSizeInfo:w}),reactRedux.shallowEqual),[d,a]=react.useState(false);i=[-1,...i];let h=(n,w)=>chunkVUHZVVMS_js.t("isAutoQuality")&&w===-1?true:!chunkVUHZVVMS_js.t("isAutoQuality")&&r.quality===n,v=react.useRef(null);R(v,()=>o(chunkVUHZVVMS_js.q(false)));let f=jsxRuntime.jsx("div",{id:"qualityLevels",className:`animate__animated animate__fadeIn ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxRuntime.jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t&&t("main"),children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronRight,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"})]}),jsxRuntime.jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:chunkVUHZVVMS_js.t("isTouchScreenPortrait")?void 0:s.height-200-70},children:i.map((n,w)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10 pl-transition-all ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${h(w-1,n)&&"!pl-cursor-default"}`,onClick:()=>{h(w-1,n)||(chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.E(n===-1?"auto":`${n}P`)),o(chunkVUHZVVMS_js.ya({...r,quality:n===-1?-1:w-1})),t&&t("main"));},children:[!!h(w-1,n)&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.tick,alt:"",className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",width:20,height:20})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:n===-1?jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("span",{children:"\u062E\u0648\u062F\u06A9\u0627\u0631 "}),jsxRuntime.jsx("span",{className:`pl-text-[10px] pl-font-normal ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#737373]":"pl-text-[#C7C7C7]"}`,children:"(\u0628\u0631 \u0627\u0633\u0627\u0633 \u0633\u0631\u0639\u062A \u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0634\u0645\u0627)"})]}):`${n}p`})]},w))})]})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:v,children:[jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.qualitySetting,alt:"speed-icon",width:20,height:20,onClick:()=>o(chunkVUHZVVMS_js.q(!p)),onMouseOver:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&!chunkVUHZVVMS_js.t("showQualityLevelsPopover")&&a(true),onMouseLeave:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&a(false),className:"pl-cursor-pointer"}),d&&jsxRuntime.jsx(chunkISVY5ION_js.a,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsxRuntime.jsx(W,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-black/[75%] ${chunkVUHZVVMS_js.t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"pl-right-0 pl-mb-[33px] !pl-rounded-[12px] pl-w-[230px]"} ${chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${chunkVUHZVVMS_js.t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(chunkVUHZVVMS_js.q(false)),type:chunkVUHZVVMS_js.t("isTouchScreen")?"modal":"popover",isBlurBackground:chunkVUHZVVMS_js.t("isTouchScreen"),ref:chunkVUHZVVMS_js.t("isTouchScreen")?v:void 0,isHeader:chunkVUHZVVMS_js.t("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkVUHZVVMS_js.t("isTouchScreen"),styles:{maxHeight:!chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&s.height-(chunkVUHZVVMS_js.t("isTouchScreenLandscape")?120:75)},children:f})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:f})})},ao=react.memo(kl);chunkAN6JAJSI_js.e();chunkAN6JAJSI_js.e();var Nl=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i,width:r,height:p})=>jsxRuntime.jsx("svg",{width:"20",height:"20",fill:"none",onClick:l,viewBox:"0 0 20 20",className:t,onMouseOver:o,style:{width:r,height:p},onMouseLeave:i,xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M8.83613 12.7885C9.13211 13.0844 9.51329 13.2249 9.97967 13.21C10.4459 13.195 10.7881 13.0267 11.0061 12.7052L15.5284 6.15396L8.96113 10.6602C8.63433 10.8783 8.4578 11.2135 8.43155 11.6658C8.40544 12.1183 8.5403 12.4926 8.83613 12.7885ZM9.99967 3.75C10.7925 3.75 11.5352 3.85389 12.228 4.06167C12.9209 4.26944 13.59 4.58382 14.2353 5.00479L13.0605 5.76438C12.5862 5.51229 12.0945 5.32188 11.5855 5.19313C11.0763 5.06438 10.5477 5 9.99967 5C8.15245 5 6.57954 5.64931 5.28092 6.94792C3.98231 8.24653 3.33301 9.81944 3.33301 11.6667C3.33301 12.25 3.41287 12.8264 3.57259 13.3958C3.73231 13.9653 3.95801 14.5 4.24967 15H15.7497C16.0691 14.4722 16.3018 13.9236 16.4476 13.3542C16.5934 12.7847 16.6663 12.1944 16.6663 11.5833C16.6663 11.0833 16.6047 10.5772 16.4813 10.065C16.3579 9.55264 16.1674 9.06625 15.9099 8.60583L16.6695 7.43104C17.0809 8.10521 17.3894 8.77965 17.5951 9.45438C17.8006 10.1291 17.9077 10.8302 17.9163 11.5577C17.9248 12.312 17.8399 13.0249 17.6616 13.6963C17.4831 14.3678 17.2144 15.0246 16.8555 15.6667C16.7454 15.8472 16.5904 15.9896 16.3907 16.0938C16.1909 16.1979 15.9772 16.25 15.7497 16.25H4.24967C4.02745 16.25 3.8178 16.1966 3.62072 16.0898C3.42363 15.9828 3.26467 15.8311 3.14384 15.6346C2.82551 15.079 2.56912 14.4733 2.37467 13.8173C2.18023 13.1613 2.08301 12.4444 2.08301 11.6667C2.08301 10.5781 2.28954 9.55465 2.70259 8.59646C3.11565 7.63826 3.67947 6.79903 4.39405 6.07875C5.10877 5.35847 5.94898 4.79028 6.91467 4.37417C7.88051 3.95806 8.90884 3.75 9.99967 3.75Z",fill:"currentColor"})}),De=Nl;var Il=[.5,.75,1,1.25,1.5,1.75,2],Fl=({setSection:t,showSpeedIcon:l})=>{let o=chunkAN6JAJSI_js.z(),{videoElementSizeInfo:i,params:r}=chunkAN6JAJSI_js.A(({videoData:{videoElementSizeInfo:f,params:n}})=>({videoElementSizeInfo:f,params:n}),reactRedux.shallowEqual),{speedPopover:p}=chunkAN6JAJSI_js.A(({popovers:{speedPopover:f}})=>({speedPopover:f}),reactRedux.shallowEqual),{settings:s}=chunkAN6JAJSI_js.A(({user:{settings:f}})=>({settings:f}),reactRedux.shallowEqual),d=react.useRef(null),[a,h]=react.useState(false);R(d,()=>o(chunkVUHZVVMS_js.p(false))),react.useEffect(()=>{chunkVUHZVVMS_js.x()&&(chunkVUHZVVMS_js.x().playbackRate=s.speed);},[]);let v=jsxRuntime.jsx("div",{id:"speed",className:`animate__animated animate__fadeIn ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxRuntime.jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t&&t("main"),children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronRight,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0633\u0631\u0639\u062A"})]}),jsxRuntime.jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:chunkVUHZVVMS_js.t("isTouchScreenPortrait")?void 0:i.height-200-70},children:Il.map((f,n)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${s.speed===f&&" !pl-cursor-default"}`,onClick:s.speed===f?()=>{}:()=>{chunkVUHZVVMS_js.t("isStaticFormat")||chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.D(f)),o(chunkVUHZVVMS_js.ya({...s,speed:f})),chunkVUHZVVMS_js.x().playbackRate=f,t&&t("main"),r.onSpeedChange&&r.onSpeedChange(s.speed,f);},children:[s.speed===f&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.tick,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxRuntime.jsx("p",{className:`pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px] pl-w-10 pl-text-center`,children:f})]},n))})]})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsxRuntime.jsx(De,{width:20,height:20,className:`pl-cursor-pointer size-5 ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(chunkVUHZVVMS_js.p(!p)),onMouseOver:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&!chunkVUHZVVMS_js.t("showSpeedPopover")&&h(true),onMouseLeave:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&h(false)}),a&&jsxRuntime.jsx(chunkISVY5ION_js.a,{title:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx(W,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkVUHZVVMS_js.t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkVUHZVVMS_js.t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"} !pl-z-[100000]`,status:p,onClose:()=>o(chunkVUHZVVMS_js.p(false)),type:chunkVUHZVVMS_js.t("isTouchScreen")?"modal":"popover",isBlurBackground:chunkVUHZVVMS_js.t("isTouchScreen"),ref:chunkVUHZVVMS_js.t("isTouchScreen")?d:void 0,isHeader:chunkVUHZVVMS_js.t("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkVUHZVVMS_js.t("isTouchScreen"),styles:{maxHeight:!chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&i.height-(chunkVUHZVVMS_js.t("isTouchScreenLandscape")?120:75)},children:v})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:v})})},uo=Fl;chunkAN6JAJSI_js.e();var Ll=({setSection:t})=>{let l=chunkAN6JAJSI_js.z(),{subtitles:o,selectedSubtitle:i,videoElementSizeInfo:r}=chunkAN6JAJSI_js.A(({videoData:{subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}})=>({subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{id:"subtitles",className:`animate__animated animate__fadeIn ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxRuntime.jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t&&t("main"),children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronRight,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0632\u06CC\u0631 \u0646\u0648\u06CC\u0633"})]}),jsxRuntime.jsxs("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:chunkVUHZVVMS_js.t("isTouchScreenPortrait")?void 0:r.height-200-70},children:[jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer ${!i&&`${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} !pl-cursor-default`}`,onClick:()=>{l(chunkVUHZVVMS_js.k(void 0)),t("main");let p=Object.values(chunkVUHZVVMS_js.x().textTracks).find(s=>s.mode==="showing");p&&(p.mode="disabled"),l(chunkVUHZVVMS_js.j("")),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.N("empty"));},children:[!i&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.tick,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]}),o.map((p,s)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${i&&i.language===p.language&&" !pl-cursor-default"}`,onClick:()=>{l(chunkVUHZVVMS_js.k(p)),chunkVUHZVVMS_js.x().textTracks[s].mode="showing",t("main"),chunkVUHZVVMS_js.w(chunkVUHZVVMS_js.N(p.language));},children:[!!i&&i.language===p.language&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.tick,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:p.label})]},s))]})]})})},fo=react.memo(Ll);chunkAN6JAJSI_js.e();var Dl=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M10 2.29395C10.3314 2.29395 10.6 2.56257 10.6 2.89395V17.1052C10.6 17.4366 10.3314 17.7052 10 17.7052C9.66866 17.7052 9.40002 17.4366 9.40002 17.1052V2.89395C9.40002 2.56257 9.66866 2.29395 10 2.29395Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M6.41258 4.95498C6.74396 4.95498 7.01258 5.22361 7.01258 5.55498V14.5565C7.01258 14.8879 6.74396 15.1565 6.41258 15.1565C6.08121 15.1565 5.81258 14.8879 5.81258 14.5565V5.55498C5.81258 5.22361 6.08121 4.95498 6.41258 4.95498Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M13.5858 4.84247C13.9172 4.84247 14.1858 5.1111 14.1858 5.44247V14.444C14.1858 14.7754 13.9172 15.044 13.5858 15.044C13.2545 15.044 12.9858 14.7754 12.9858 14.444V5.44247C12.9858 5.1111 13.2545 4.84247 13.5858 4.84247Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M17.1735 7.60177C17.5048 7.60177 17.7735 7.8704 17.7735 8.20177V11.5709C17.7735 11.9023 17.5048 12.1709 17.1735 12.1709C16.8421 12.1709 16.5735 11.9023 16.5735 11.5709V8.20177C16.5735 7.8704 16.8421 7.60177 17.1735 7.60177Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M2.82656 7.82841C3.15794 7.82841 3.42656 8.09703 3.42656 8.42844V11.7976C3.42656 12.1289 3.15794 12.3976 2.82656 12.3976C2.49519 12.3976 2.22656 12.1289 2.22656 11.7976V8.42844C2.22656 8.09703 2.49519 7.82841 2.82656 7.82841Z"})]}),ze=Dl;chunkAN6JAJSI_js.e();var Vl=({setSection:t,showMultiAudioIcon:l})=>{let o=chunkAN6JAJSI_js.z(),{multiAudioPopover:i}=chunkAN6JAJSI_js.A(({popovers:{multiAudioPopover:f}})=>({multiAudioPopover:f}),reactRedux.shallowEqual),[r,p]=react.useState(false),s=react.useRef(null),{multiAudio:d,selectedAudioId:a,videoElementSizeInfo:h}=chunkAN6JAJSI_js.A(({videoData:{multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}})=>({multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}),reactRedux.shallowEqual);R(s,()=>o(chunkVUHZVVMS_js.r(false)));let v=jsxRuntime.jsx("div",{className:`${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxRuntime.jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer`,onClick:()=>t&&t("main"),children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronRight,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"})]}),jsxRuntime.jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:chunkVUHZVVMS_js.t("isTouchScreenPortrait")?void 0:h.height-200-70},children:chunkVUHZVVMS_js.t("hasMultiAudio")&&d.map((f,n)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${a===n&&" !pl-cursor-default"}`,onClick:()=>{o(chunkVUHZVVMS_js.m(n)),t&&t("main");},children:[a===n&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.tick,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxRuntime.jsxs("span",{className:`pl-w-full pl-text-[12px] ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:["\u0632\u0628\u0627\u0646 ",f.name]})]},f.id))})]})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:s,children:[jsxRuntime.jsx(ze,{className:`pl-size-5 pl-fill-white pl-cursor-pointer ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(chunkVUHZVVMS_js.r(!i)),onMouseOver:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&p(true),onMouseLeave:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&p(false)}),r&&jsxRuntime.jsx(chunkISVY5ION_js.a,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsxRuntime.jsx(W,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-black/[75%] !pl-pb-0 ${chunkVUHZVVMS_js.t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[200px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkVUHZVVMS_js.t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(chunkVUHZVVMS_js.r(false)),type:chunkVUHZVVMS_js.t("isTouchScreen")?"modal":"popover",isBlurBackground:chunkVUHZVVMS_js.t("isTouchScreen"),ref:chunkVUHZVVMS_js.t("isTouchScreen")?s:void 0,isHeader:chunkVUHZVVMS_js.t("isTouchScreen"),isHasCatchUpLineOnTop:chunkVUHZVVMS_js.t("isTouchScreen"),styles:{maxHeight:!chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&h.height-(chunkVUHZVVMS_js.t("isTouchScreenLandscape")?120:75)},children:v})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:v})})},go=react.memo(Vl);chunkAN6JAJSI_js.e();var Xl=({className:t,disableTooltip:l,height:o,width:i,normalStyle:r})=>{let[p,s]=react.useState(false);return chunkAN6JAJSI_js.A(({videoData:{selectedSubtitle:d,videoElementSizeInfo:a,params:h}})=>({selectedSubtitle:d,videoElementSizeInfo:a,params:h}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{onClick:d=>{d.stopPropagation(),chunk5UGSCO4K_js.b();},onDoubleClick:d=>d.stopPropagation(),onMouseOver:l?void 0:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&s(true),onMouseLeave:l?void 0:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&s(false),className:chunkVUHZVVMS_js.ea(`pl-relative ${r?"":"pl-rounded-full hover:pl-bg-[#5E5E5E]"} pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-transition-all ${t} ${chunkVUHZVVMS_js.t("hasSubtitles")?"":"pl-pointer-events-none"}`,{desktop:r?void 0:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:r?void 0:"pl-w-[56px] pl-h-[36px]"}),children:[jsxRuntime.jsx(pe__default.default,{alt:"subtitle-icon",src:chunkVUHZVVMS_js.t("hasSubtitles")?chunkVUHZVVMS_js.t("isSelectedSubtitle")?chunkCOYFW7R4_js.a.subtitleFill:chunkCOYFW7R4_js.a.subtitleOutline:chunkCOYFW7R4_js.a.subtitleDisable,width:i,height:o}),p&&!l&&jsxRuntime.jsx(chunkISVY5ION_js.a,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},ie=Xl;var Wl=({width:t,height:l,normalStyle:o})=>{let i=chunkAN6JAJSI_js.z();chunkAN6JAJSI_js.A(({controller:{isFullScreen:C}})=>({isFullScreen:C}),reactRedux.shallowEqual);let{selectedSubtitle:r,multiAudio:p,selectedAudioId:s,subtitles:d,settingPopover:a,settings:h,qualityLevels:v}=chunkAN6JAJSI_js.A(({user:{settings:C},popovers:{settingPopover:c},controller:{qualityLevels:x},videoData:{params:F,subtitles:P,multiAudio:D,selectedSubtitle:G,selectedAudioId:H}})=>({params:F,settings:C,subtitles:P,multiAudio:D,qualityLevels:x,settingPopover:c,selectedAudioId:H,selectedSubtitle:G}),reactRedux.shallowEqual),[f,n]=react.useState("main"),[w,I]=react.useState(false),M=react.useRef(null);return R(M,()=>{i(chunkVUHZVVMS_js.o(false)),setTimeout(()=>{n("main");},500);}),jsxRuntime.jsxs("div",{className:`pl-inline-flex ${chunkVUHZVVMS_js.t("isLandscape")&&"pl-relative"}`,ref:M,children:[jsxRuntime.jsxs("div",{className:chunkVUHZVVMS_js.ea(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full ${o?"":"hover:pl-bg-[#5E5E5E] pl-transition-all"}`,o?void 0:{desktop:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:"pl-w-[56px] pl-h-[36px]"}),onDoubleClick:C=>C.preventDefault(),onClick:C=>{C.stopPropagation(),i(chunkVUHZVVMS_js.o(!a));},onMouseOver:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&!chunkVUHZVVMS_js.t("showSettingPopover")&&I(true),onMouseLeave:()=>!chunkVUHZVVMS_js.t("isTouchScreen")&&I(false),children:[jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.settings,alt:"",width:t,height:l}),w&&jsxRuntime.jsx(chunkISVY5ION_js.a,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsxRuntime.jsx(W,{classNames:`!pl-p-0 pl-overflow-hidden ${chunkVUHZVVMS_js.t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none !pl-bg-white":"!pl-w-[272px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px] !pl-bg-black/[75%]"} ${chunkVUHZVVMS_js.t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkVUHZVVMS_js.t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"} !overflow-auto`,status:a,onClose:()=>{i(chunkVUHZVVMS_js.o(false)),setTimeout(()=>n("main"),500);},type:chunkVUHZVVMS_js.t("isTouchScreen")?"modal":"popover",isBlurBackground:chunkVUHZVVMS_js.t("isTouchScreen"),ref:chunkVUHZVVMS_js.t("isTouchScreen")?M:void 0,isHeader:chunkVUHZVVMS_js.t("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkVUHZVVMS_js.t("isTouchScreen"),children:jsxRuntime.jsxs("div",{children:[f==="main"&&jsxRuntime.jsxs("div",{id:"main",className:"pl-py-2 pl-rounded-[10px] pl-flex pl-flex-col animate__animated animate__fadeIn",children:[!chunkVUHZVVMS_js.t("isStaticFormat")&&jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("qualityLevels"),children:[jsxRuntime.jsx(pe__default.default,{width:20,height:20,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-[0.3]":"",src:chunkCOYFW7R4_js.a.qualitySetting,alt:""}),jsxRuntime.jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsxRuntime.jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h.quality===-1?"\u062E\u0648\u062F\u06A9\u0627\u0631":`${v.find((C,c)=>c===h.quality)}p`}),jsxRuntime.jsx(pe__default.default,{className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-50":"",src:chunkCOYFW7R4_js.a.chevronLeft,alt:"",width:16,height:16})]}),chunkVUHZVVMS_js.t("hasSubtitles")&&jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("subtitles"),children:[jsxRuntime.jsx(ie,{className:`${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-[0.3]":""}`,normalStyle:true,width:20,height:20,disableTooltip:true}),jsxRuntime.jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsxRuntime.jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:r?!!d&&d.find(C=>C.language===r.language)?.label:"\u062E\u0627\u0645\u0648\u0634"}),jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronLeft,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("speed"),children:[jsxRuntime.jsx(De,{className:`${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,width:20,height:20}),jsxRuntime.jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h?.speed?h.speed===1?"\u0645\u0639\u0645\u0648\u0644\u06CC":`${h.speed}`:"\u0645\u0639\u0645\u0648\u0644\u06CC"}),jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronLeft,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),chunkVUHZVVMS_js.t("hasMultiAudio")&&jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${chunkVUHZVVMS_js.t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("multiAudio"),children:[jsxRuntime.jsx(ze,{className:`pl-size-5 ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`}),jsxRuntime.jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsxRuntime.jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${chunkVUHZVVMS_js.t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:p?.find((C,c)=>c===s)?.name}),jsxRuntime.jsx(pe__default.default,{src:chunkCOYFW7R4_js.a.chevronLeft,className:chunkVUHZVVMS_js.t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]})]}),f==="qualityLevels"&&jsxRuntime.jsx(ao,{setSection:n}),f==="subtitles"&&jsxRuntime.jsx(fo,{setSection:n}),f==="speed"&&jsxRuntime.jsx(uo,{setSection:n}),f==="multiAudio"&&jsxRuntime.jsx(go,{setSection:n})]})})]})},Oe=react.memo(Wl);chunkAN6JAJSI_js.e();var Yl=({className:t=""})=>{let{duration:l,currentTime:o}=chunkAN6JAJSI_js.A(({controller:{duration:p,currentTime:s}})=>({duration:p,currentTime:s}),reactRedux.shallowEqual);chunkAN6JAJSI_js.A(({videoData:{videoElementSizeInfo:p,params:s}})=>({videoElementSizeInfo:p,params:s}),reactRedux.shallowEqual);let[i,r]=react.useState(false);return jsxRuntime.jsx("div",{onDoubleClick:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),r(s=>!s);},className:chunkVUHZVVMS_js.ea(`pl-cursor-pointer pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group ${t}`,{desktop:"pl-min-w-[34px] pl-h-[34px] pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-min-w-[48px] pl-h-[48px] pl-px-1.5",touch:"pl-min-w-[78px] pl-h-[22px] pl-py-1 pl-px-1.5 pl-bg-[#282828]",touchFullScreen:"pl-min-w-[103px] pl-h-[32px] pl-px-2"}),children:jsxRuntime.jsx("div",{className:chunkVUHZVVMS_js.ea("pl-flex pl-gap-0.5 pl-items-center pl-justify-center pl-rounded-full pl-transition-all",{desktop:"pl-h-[26px] pl-min-w-[26px] pl-p-1.5 group-hover:pl-bg-[#5E5E5E]",desktopFullScreen:"pl-h-[36px] pl-min-w-[36px] pl-px-3"}),children:jsxRuntime.jsxs("p",{className:chunkVUHZVVMS_js.ea("pl-text-white pl-flex pl-items-center pl-justify-center pl-gap-0.5 ",{desktop:"pl-text-[12px] pl-leading-5 pl-font-bold",desktopFullScreen:"pl-text-base",touch:"pl-font-medium pl-text-[12px] pl-pt-0.5",touchFullScreen:"pl-text-[16px] pl-font-normal pl-pt-1"}),children:[jsxRuntime.jsx("span",{className:chunkVUHZVVMS_js.ea("",{touch:"pl-text-[#C4C4C4]"}),children:chunkVUHZVVMS_js.ia(l||0)}),jsxRuntime.jsx("span",{children:"/"}),i?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("span",{children:chunkVUHZVVMS_js.ia((l||0)-(o||0))}),jsxRuntime.jsx("span",{className:"pl-mt-0.5",children:"-"})]}):jsxRuntime.jsx("span",{children:chunkVUHZVVMS_js.ia(o||0)})]})})})},Co=Yl;var ei=()=>(chunkAN6JAJSI_js.A(({controller:{isFullScreen:t}})=>({isFullScreen:t}),reactRedux.shallowEqual),chunkAN6JAJSI_js.A(({videoData:{videoElementSizeInfo:t,params:l,subtitles:o}})=>({videoElementSizeInfo:t,params:l,subtitles:o}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{id:"player-controllbar",className:chunkVUHZVVMS_js.ea("pl-flex pl-justify-between pl-items-center",{desktop:"pl-px-4",desktopFullScreen:"pl-px-6",touch:"pl-px-4 ",touchFullScreen:"pl-px-6 pl-absolute pl-w-full pl-bottom-[51px]"}),children:[jsxRuntime.jsxs("div",{className:chunkVUHZVVMS_js.ea("pl-rounded-full pl-flex pl-items-center pl-justify-center ",{desktop:"pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-p-1.5",touch:"pl-bg-[#282828]"}),children:[jsxRuntime.jsx(chunkISVY5ION_js.c,{width:chunkVUHZVVMS_js.fa({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24}),height:chunkVUHZVVMS_js.fa({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24})}),chunkVUHZVVMS_js.t("showSettingIcon")&&!chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsx(Oe,{width:chunkVUHZVVMS_js.t("isFullScreen")?24:16,height:chunkVUHZVVMS_js.t("isFullScreen")?24:16}),!chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsx(ie,{width:chunkVUHZVVMS_js.t("isFullScreen")?24:16,height:chunkVUHZVVMS_js.t("isFullScreen")?24:16})]}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-4",children:[jsxRuntime.jsx(Co,{className:"pl-relative z-10"}),!chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[!chunkVUHZVVMS_js.t("isIOS")&&jsxRuntime.jsx(chunkISVY5ION_js.b,{width:chunkVUHZVVMS_js.t("isFullScreen")?24:16,height:chunkVUHZVVMS_js.t("isFullScreen")?24:16}),jsxRuntime.jsx(chunkW5NVHMWX_js.b,{width:chunkVUHZVVMS_js.t("isFullScreen")?24:16,height:chunkVUHZVVMS_js.t("isFullScreen")?24:16})]})]})]})),No=react.memo(ei);chunkAN6JAJSI_js.e();var oi=()=>{let{subtitleText:t}=chunkAN6JAJSI_js.A(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),reactRedux.shallowEqual);return chunkAN6JAJSI_js.A(({controller:{isFullScreen:o,activeElements:i}})=>({isFullScreen:o,activeElements:i}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:chunkVUHZVVMS_js.ea(`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-white pl-font-semibold ${(()=>{let o="";return chunkVUHZVVMS_js.t("isLock")?o="pl-bottom-[50px]":chunkVUHZVVMS_js.t("isActiveElements")?chunkVUHZVVMS_js.t("isTouchScreen")&&chunkVUHZVVMS_js.t("isFullScreen")?o="pl-bottom-[64px]":chunkVUHZVVMS_js.t("isFullScreen")?o="pl-bottom-[130px]":chunkVUHZVVMS_js.t("isTouchScreen")?o="pl-bottom-[30px]":o="pl-bottom-[60px]":chunkVUHZVVMS_js.t("isActiveElements")||(chunkVUHZVVMS_js.t("isTouchScreen")&&chunkVUHZVVMS_js.t("isFullScreen")?o="pl-bottom-[20px]":chunkVUHZVVMS_js.t("isFullScreen")?o="pl-bottom-[130px]":chunkVUHZVVMS_js.t("isTouchScreen")?o="pl-bottom-[16px]":o="pl-bottom-[60px]"),o})()}`,{desktop:"pl-text-[14px] pl-leading-6",desktopFullScreen:"pl-text-base",touch:"pl-text-[10px] pl-leading-4"}),children:chunkVUHZVVMS_js.ua(t)?.map((o,i)=>{let r=chunkVUHZVVMS_js.wa(o);if(r)return jsxRuntime.jsx("p",{className:chunkVUHZVVMS_js.ea(`pl-mx-auto pl-bg-[#000000]/[70%] ${chunkVUHZVVMS_js.t("isTouchScreen")&&chunkVUHZVVMS_js.t("isActiveElements")&&"pl-opacity-50"} pl-text-wrap pl-max-w-full pl-w-max `,{desktop:"pl-px-2 pl-py-1.5",desktopFullScreen:"",touch:"pl-p-1",touchFullScreen:""}),children:r},i)})})},Eo=oi;var li=()=>{let{firstPlay:t}=chunkAN6JAJSI_js.A(({controller:{lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}})=>({lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}),reactRedux.shallowEqual);chunkAN6JAJSI_js.A(({videoData:{subtitles:o,selectedSubtitle:i}})=>({subtitles:o,selectedSubtitle:i}),reactRedux.shallowEqual);let l="";return chunkVUHZVVMS_js.t("isTouchScreen")?chunkVUHZVVMS_js.t("isFullScreen")?l="pl-gap-2.5 pl-mb-8":l="pl-gap-3":chunkVUHZVVMS_js.t("isFullScreen")?l="pl-gap-3 pl-mb-3":l="pl-gap-1.5 pl-mb-1.5",jsxRuntime.jsx("div",{id:"footer",className:chunkVUHZVVMS_js.ea("pl-relative pl-rounded-b-[12px] pl-duration-300"),onDoubleClick:o=>chunkVUHZVVMS_js.t("isActiveElements")&&o.stopPropagation(),onClick:o=>chunkVUHZVVMS_js.t("isActiveElements")&&o.stopPropagation(),style:{zIndex:3,backgroundBlendMode:"multiply",backgroundSize:"cover",backgroundPosition:"center"},children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[chunkVUHZVVMS_js.t("showSubtitle")&&jsxRuntime.jsx(Eo,{}),!chunkVUHZVVMS_js.t("isLock")&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:`pl-flex pl-flex-col pl-w-full pl-mx-auto animate__animated animate__faster ${l} ${chunkVUHZVVMS_js.t("isActiveElements")&&!chunkVUHZVVMS_js.t("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[chunkVUHZVVMS_js.t("showProgressbar")&&jsxRuntime.jsx(ro,{}),jsxRuntime.jsx(No,{})]})})]})})},Mo=li;chunkAN6JAJSI_js.e();var ii=Lo__default.default(()=>import('./staticVideoTag-OZZU5MWF.js')),pi=Lo__default.default(()=>import('./nonStaticVideoTag-5HEUBWAN.js')),ri=()=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:chunkVUHZVVMS_js.t("isStaticFormat")?jsxRuntime.jsx(ii,{}):jsxRuntime.jsx(pi,{})}),Do=ri;chunkAN6JAJSI_js.e();var ai=(t,l)=>{let o=chunkAN6JAJSI_js.z(),{activeElements:i,play:r}=chunkAN6JAJSI_js.A(({controller:{activeElements:a,play:h}})=>({activeElements:a,play:h}),reactRedux.shallowEqual),p=react.useRef(null),s=react.useRef(t),d=react.useRef(l);react.useEffect(()=>{s.current=t;},[t]),react.useEffect(()=>{d.current=l;},[l]),react.useEffect(()=>{let a=false,h=n=>{let{activeElements:w,isEnded:I}=chunkVUHZVVMS_js.Aa.getState().controller;I?o(chunkAN6JAJSI_js.k(true)):n.pointerType==="mouse"&&(clearTimeout(p.current),w?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward","backward","forward"].includes(n.target.id)&&(a=true):o(chunkAN6JAJSI_js.k(true)),p.current=setTimeout(()=>{let{settingPopover:M,speedPopover:C,qualityLevelsPopover:c,multiAudioPopover:x}=chunkVUHZVVMS_js.Aa.getState().popovers,{play:F}=chunkVUHZVVMS_js.Aa.getState().controller;!M&&!C&&!c&&!x&&F&&a&&o(chunkAN6JAJSI_js.k(false));},chunkAK5TFAW3_js.a));},v=n=>{setTimeout(()=>{let{activeElements:w,isEnded:I,firstPlay:M}=chunkVUHZVVMS_js.Aa.getState().controller;if(clearTimeout(p.current),I)return o(chunkAN6JAJSI_js.k(true));chunkVUHZVVMS_js.ha()&&!M&&!s.current&&!d.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward","backward","forward"].includes(n.target.id)||chunkVUHZVVMS_js.ka(n,"playerElements")?p.current=setTimeout(()=>{let{play:C}=chunkVUHZVVMS_js.Aa.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:F,multiAudioPopover:P}=chunkVUHZVVMS_js.Aa.getState().popovers;!c&&!x&&!F&&!P&&C&&o(chunkAN6JAJSI_js.k(false));},chunkAK5TFAW3_js.a):p.current=setTimeout(()=>{let{play:C}=chunkVUHZVVMS_js.Aa.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:F,multiAudioPopover:P}=chunkVUHZVVMS_js.Aa.getState().popovers;!c&&!x&&!F&&!P&&C&&o(chunkAN6JAJSI_js.k(false));},chunkAK5TFAW3_js.a));},200);},f=()=>{clearTimeout(p.current),p.current=setTimeout(()=>{let{activeElements:n,isEnded:w,play:I}=chunkVUHZVVMS_js.Aa.getState().controller,{settingPopover:M,speedPopover:C,qualityLevelsPopover:c}=chunkVUHZVVMS_js.Aa.getState().popovers;w?o(chunkAN6JAJSI_js.k(true)):!M&&!C&&!c&&n&&!w&&I&&o(chunkAN6JAJSI_js.k(false));},chunkAK5TFAW3_js.a);};return document.getElementById("video-area").addEventListener("touchstart",v),document.getElementById("video-area").addEventListener("touchmove",f),document.getElementById("video-area").addEventListener("pointermove",h),()=>{let n=document.getElementById("video-area");n&&(n.removeEventListener("touchstart",v),n.removeEventListener("touchmove",f),n.removeEventListener("pointermove",h));}},[i,t,l]),react.useEffect(()=>{let a;return r?a=setTimeout(()=>o(chunkAN6JAJSI_js.k(false)),chunkAK5TFAW3_js.a):o(chunkAN6JAJSI_js.k(true)),()=>{a&&clearTimeout(a);}},[r]);},_o=ai;chunkAN6JAJSI_js.e();var ui=()=>{let{firstPlay:t,isFullScreen:l}=chunkAN6JAJSI_js.A(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),reactRedux.shallowEqual);react.useEffect(()=>{if(chunkVUHZVVMS_js.x()){let o,i=()=>{o=setTimeout(()=>{chunkVUHZVVMS_js.ca();},chunkVUHZVVMS_js.ha()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[t,l,chunkVUHZVVMS_js.x()]);},zo=ui;chunkAN6JAJSI_js.e();var di=({className:t,onClick:l})=>jsxRuntime.jsxs("svg",{className:t,onClick:o=>{o.stopPropagation(),l?.();},width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("g",{"clip-path":"url(#clip0_372_39317)",children:jsxRuntime.jsx("path",{d:"M10.649 9.01462L17.658 2.00555C18.1141 1.54963 18.1141 0.812452 17.658 0.356588C17.2021 -0.0993313 16.4649 -0.0993313 16.009 0.356588L8.99992 7.3656L1.99107 0.356588C1.53493 -0.0993313 0.798022 -0.0993313 0.342103 0.356588C-0.114034 0.812507 -0.114034 1.54963 0.342103 2.00555L7.3509 9.01462L0.342158 16.0236C-0.11398 16.4796 -0.11398 17.2167 0.342158 17.6726C0.450304 17.7811 0.578815 17.8671 0.720306 17.9257C0.861797 17.9843 1.01348 18.0144 1.16664 18.0143C1.46512 18.0143 1.76371 17.9 1.99112 17.6726L8.99992 10.6636L16.009 17.6726C16.1172 17.781 16.2457 17.867 16.3872 17.9257C16.5287 17.9843 16.6804 18.0144 16.8335 18.0143C17.132 18.0143 17.4306 17.9 17.658 17.6726C18.1141 17.2167 18.1141 16.4796 17.658 16.0236L10.649 9.01462Z",fill:"white"})}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("clipPath",{id:"clip0_372_39317",children:jsxRuntime.jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),Oo=di;var Ho=Lo__default.default(()=>import('./backwardForward-HTLSZBXC.js')),xi=()=>{let[t,l]=react.useState(false),[o,i]=react.useState(false),r=chunkAN6JAJSI_js.z();chunkAN6JAJSI_js.A(({videoData:{details:a,params:h,videoElementSizeInfo:v}})=>({details:a,params:h,videoElementSizeInfo:v}),reactRedux.shallowEqual);let{firstMute:p,firstPlay:s,activeElements:d}=chunkAN6JAJSI_js.A(({controller:{firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}})=>({firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}),reactRedux.shallowEqual);return chunkK4YPVDEE_js.a(),zo(),_o(t,o),jsxRuntime.jsxs("div",{id:"video-area",style:{zIndex:chunkVUHZVVMS_js.t("isFullScreen")?1e3:"unset"},onClick:a=>{if(!(t||o||document.getElementById("popover-content"))){if(p){chunkVUHZVVMS_js.Y(50),chunkVUHZVVMS_js.X();return}chunkVUHZVVMS_js.t("isTouchScreen")?s?chunkVUHZVVMS_js.V(a):r(chunkAN6JAJSI_js.k(!d)):chunkVUHZVVMS_js.V(a);}},onDoubleClick:a=>chunkVUHZVVMS_js.da(a),className:chunkVUHZVVMS_js.ea(`pl-bg-contain pl-bg-center pl-w-full pl-relative pl-bg-no-repeat pl-h-full pl-max-h-screen pl-aspect-video pl-flex pl-items-center ${!chunkVUHZVVMS_js.t("isActiveElements")&&"pl-cursor-none"}`,{desktop:"pl-rounded-[12px] pl-overflow-hidden",touchFullScreen:"pl-fixed pl-w-screen dvh",desktopFullScreen:"pl-fixed pl-w-screen dvh"}),children:[chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsx("div",{id:"video-opacity",style:{zIndex:0},className:`pl-absolute pl-bg-black/20 pl-size-full pl-aspect-video pl-transition-all pl-duration-500 ${chunkVUHZVVMS_js.t("isActiveElements")?"pl-opacity-100 pl-visible":"pl-opacity-0 pl-invisible"} `}),chunkVUHZVVMS_js.t("showSoundVolumeAlert")&&jsxRuntime.jsx(chunkW5NVHMWX_js.c,{className:chunkVUHZVVMS_js.ea("",{touch:"pl-absolute pl-z-10 pl-top-[12px] pl-left-[16px]",touchFullScreen:"pl-top-[16px] pl-left-[24px]"})}),!s&&chunkVUHZVVMS_js.t("isActiveElements")&&jsxRuntime.jsxs("div",{className:chunkVUHZVVMS_js.ea("pl-absolute pl-z-10 pl-flex pl-items-center pl-justify-center pl-gap-4",{touch:"pl-top-3 pl-right-4",touchFullScreen:"pl-top-5 pl-right-6"}),children:[chunkVUHZVVMS_js.t("isTouchScreen")&&chunkVUHZVVMS_js.t("isFullScreen")&&jsxRuntime.jsx(Oo,{onClick:chunkVUHZVVMS_js._,className:"pl-text-white pl-size-[18px]"}),chunkVUHZVVMS_js.t("showSettingIcon")&&chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsx(Oe,{normalStyle:true,width:chunkVUHZVVMS_js.fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:chunkVUHZVVMS_js.fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})}),chunkVUHZVVMS_js.t("isTouchScreen")&&jsxRuntime.jsx(ie,{normalStyle:true,width:chunkVUHZVVMS_js.fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:chunkVUHZVVMS_js.fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})})]}),chunkVUHZVVMS_js.t("showBackwardForward")&&jsxRuntime.jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-overflow-hidden pl-flex pl-items-center",style:{zIndex:o||t?1002:1},children:[jsxRuntime.jsx(Ho,{type:chunkVUHZVVMS_js.t("isTouchScreen")?"touchForward":"forward",isRightForward:t,setIsRightForward:l}),jsxRuntime.jsx(Ho,{type:chunkVUHZVVMS_js.t("isTouchScreen")?"touchBackward":"backward",isLeftBackward:o,setIsLeftBackward:i})]}),jsxRuntime.jsx(Do,{}),jsxRuntime.jsx("div",{id:"playerElements",className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full",children:jsxRuntime.jsxs("div",{className:"pl-flex pl-flex-col pl-justify-between pl-w-full pl-h-full",children:[chunkVUHZVVMS_js.t("showHeader")&&jsxRuntime.jsx(_t,{}),chunkVUHZVVMS_js.t("showMain")&&jsxRuntime.jsx(Vt,{}),chunkVUHZVVMS_js.t("showFooter")&&jsxRuntime.jsx(Mo,{})]})})]})},Ga=xi;
|
|
8
|
+
exports.a=Ga;//# sourceMappingURL=chunk-MVNOUM3G.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-MVNOUM3G.js.map
|