cafe-video-player 2.4.8 → 2.4.10

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.
@@ -0,0 +1,9 @@
1
+ 'use strict';var chunkEB2I6TVN_js=require('./chunk-EB2I6TVN.js'),chunkTVDVQALL_js=require('./chunk-TVDVQALL.js'),chunkU6DIKZH7_js=require('./chunk-U6DIKZH7.js'),chunk4QQMQF6O_js=require('./chunk-4QQMQF6O.js'),chunkQHZJEU27_js=require('./chunk-QHZJEU27.js'),chunk2DZLYHGU_js=require('./chunk-2DZLYHGU.js'),chunkF2C5C3HI_js=require('./chunk-F2C5C3HI.js'),chunk5FTEBU6O_js=require('./chunk-5FTEBU6O.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime'),ie=require('next/legacy/image'),reactDom=require('react-dom'),Bo=require('next/dynamic');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ie__default=/*#__PURE__*/_interopDefault(ie);var Bo__default=/*#__PURE__*/_interopDefault(Bo);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Yo=()=>{let{details:e,params:l}=chunkF2C5C3HI_js.ha(({videoData:{details:o,params:i}})=>({details:o,params:i}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{className:`pl-w-full pl-max-w-[80%] pl-truncate pl-text-left pl-ml-4 pl-text-[16px] pl-font-normal pl-text-white pl-break-words pl-self-start animate__animated animate__faster ${chunkF2C5C3HI_js.fa("isActiveElements")?"animate__fadeIn pl-opacity-100":"pl-opacity-0 animate__fadeOut"}`,children:chunkF2C5C3HI_js.fa("hasTitle")?e.title:l.id})},It=Yo;chunkWO4IQUGO_js.e();var jo=()=>jsxRuntime.jsxs("div",{className:`pl-relative animate__animated animate__faster ${chunkF2C5C3HI_js.fa("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>chunk2DZLYHGU_js.h("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"})]}),Et=jo;var ol=()=>(chunkF2C5C3HI_js.ha(({controller:{lock:e,activeElements:l}})=>({lock:e,activeElements:l}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:`pl-flex pl-items-start pl-justify-end pl-mx-8 pl-pt-8 ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")?"pl-h-[16px]":"pl-h-[60px]"}`,children:[chunkF2C5C3HI_js.fa("showTitle")&&jsxRuntime.jsx(It,{}),chunkF2C5C3HI_js.fa("isLock")&&jsxRuntime.jsx(Et,{})]})),Lt=ol;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var rl=()=>(chunkF2C5C3HI_js.ha(({controller:{play:e}})=>({play:e}),reactRedux.shallowEqual),chunkF2C5C3HI_js.ha(({videoData:{videoElementSizeInfo:e,params:l}})=>({videoElementSizeInfo:e,params:l}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{className:`${!chunkF2C5C3HI_js.fa("isTouchScreen")&&"hover:pl-scale-125"} pl-transition-transform pl-ease-in-out pl-cursor-pointer`,onContextMenu:e=>e.preventDefault(),children:jsxRuntime.jsx(ie__default.default,{alt:"",src:chunkF2C5C3HI_js.fa("isPlay")?chunk5FTEBU6O_js.a.bigPause:chunk5FTEBU6O_js.a.bigPlay,width:40,height:40,onClick:e=>chunk2DZLYHGU_js.a(e),onDoubleClick:e=>e.stopPropagation(),className:`${chunkF2C5C3HI_js.fa("isPlay")?"pl-big-play-icon":"pl-big-pause-icon"}`})})),Dt=rl;var pl=()=>{let[e,l]=react.useState(false),[o,i]=react.useState(false),{firstPlay:r}=chunkF2C5C3HI_js.ha(({controller:{lock:m,firstPlay:h}})=>({lock:m,firstPlay:h}),reactRedux.shallowEqual),{activeElements:p,isLoading:u}=chunkF2C5C3HI_js.ha(({controller:{activeElements:m,isLoading:h}})=>({activeElements:m,isLoading:h}),reactRedux.shallowEqual);return react.useEffect(()=>{let m=null;return chunkF2C5C3HI_js.fa("isFirstPlay")||chunkF2C5C3HI_js.fa("isActiveElements")?m=setTimeout(()=>i(true),100):i(false),()=>clearTimeout(m)},[p]),react.useEffect(()=>{let m;return chunkF2C5C3HI_js.fa("isLoading")?m=setTimeout(()=>l(true),chunkF2C5C3HI_js.fa("isFirstPlay")?0:chunkQHZJEU27_js.b):l(false),()=>{clearTimeout(m),l(false);}},[u,r]),jsxRuntime.jsx("main",{className:"pl-flex-1 pl-mt-1",children:e?jsxRuntime.jsx(chunkTVDVQALL_js.a,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:o&&!chunkF2C5C3HI_js.fa("isLock")&&jsxRuntime.jsx("div",{id:"main-content",className:`pl-h-full pl-flex pl-justify-center pl-items-center pl-text-center pl-relative ${chunkF2C5C3HI_js.fa("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:jsxRuntime.jsxs("div",{onClick:m=>m.stopPropagation(),className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:3},children:[!chunkF2C5C3HI_js.fa("isFirstPlay")&&jsxRuntime.jsx(chunk4QQMQF6O_js.a,{type:"forward"}),jsxRuntime.jsx(Dt,{}),!chunkF2C5C3HI_js.fa("isFirstPlay")&&jsxRuntime.jsx(chunk4QQMQF6O_js.a,{type:"backward"})]})})})})},Bt=pl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var We=e=>{let{videoElementSizeInfo:l}=chunkF2C5C3HI_js.P.getState().videoData,{duration:o}=chunkF2C5C3HI_js.P.getState().controller,i=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(i<=l.right&&i>0)return (i-l.left)/l.width*o},J=e=>{let{videoElementSizeInfo:l}=chunkF2C5C3HI_js.P.getState().videoData,o=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(o<=l.right&&o>0)return o-l.left},Vt=e=>{let{duration:l}=chunkF2C5C3HI_js.P.getState().controller;return e*chunkF2C5C3HI_js.oa()/l},fe=e=>{e&&(e.style.opacity="0.0",e.style.pointerEvents="none",e.style.zIndex=-2);},al=e=>{e.style.display="block",e.style.zIndex=5,e.style.opacity=chunkF2C5C3HI_js.P.getState().videoData.details.vtt?"1.0":"0.6",e.style.pointerEvents="auto",e.style.transition="opacity 1s ease-out";},ml=(e,l)=>{let{videoElementSizeInfo:o}=chunkF2C5C3HI_js.P.getState().videoData,i=document.getElementsByClassName("pl-progressTooltip")[0],r=document.getElementById("parent-player");i&&r&&(J(e)>i.getBoundingClientRect().width/2&&J(e)<o.right-o.left-i.getBoundingClientRect().width/2?l.style.left=`${J(e)-i.offsetWidth/2}px`:J(e)<(r.offsetLeft===0?i.offsetWidth:r.offsetLeft)?l.style.left="0px":chunkF2C5C3HI_js.la().offsetLeft+chunkF2C5C3HI_js.la().offsetWidth<J(e)+i.offsetWidth&&(l.style.left=`${chunkF2C5C3HI_js.la().offsetWidth-i.offsetWidth}px`));},cl=(e,l,o)=>{l&&al(l),chunkF2C5C3HI_js.P.getState().videoData.details.vtt?ml(e,l):l.style.left=`${J(e)-30}px`,chunkF2C5C3HI_js.P.dispatch(chunkF2C5C3HI_js.q(Number(We(e)))),o.textContent=`${chunkF2C5C3HI_js.S(We(e))}`;},he=(e,l=false)=>{let{videoElementSizeInfo:o}=chunkF2C5C3HI_js.P.getState().videoData,i=document.querySelector(".pl-progressTooltip"),r=document.querySelector(".pl-progressTimeTooltip"),p=e.clientX!==void 0?e.clientX:e.touches[0].clientX;i&&r&&p<=o.right&&p>o.left?(cl(e,i,r),l&&setTimeout(()=>fe(i),2e3)):fe(i);},qt=e=>{let l=e.clientX!==void 0?e.clientX:e.touches[0].clientX;chunkF2C5C3HI_js.na()&&(l<=e.view.innerWidth&&l>0?chunkF2C5C3HI_js.na().style.width=`${J(e)}px`:l<=e.view.innerWidth?chunkF2C5C3HI_js.na().style.width=0:l>0&&(chunkF2C5C3HI_js.na().style.width="100%"));},Ht=(e,l,o)=>{e.preventDefault(),e.stopPropagation(),o(true);let i=chunkF2C5C3HI_js.P.dispatch,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX;r<=e.view.innerWidth&&r>0&&(i(chunkF2C5C3HI_js.k(true)),i(chunkF2C5C3HI_js.l(true)),sessionStorage.setItem("previousVideoTime",String(chunkF2C5C3HI_js.la().currentTime)),e.target.setPointerCapture(e.pointerId),l.length>0&&l.map(p=>clearTimeout(p)));},Qe=e=>{e.preventDefault(),e.stopPropagation();let l=chunkF2C5C3HI_js.P.dispatch,{activePointerProgressBar:o}=chunkF2C5C3HI_js.P.getState().controller,{left:i}=chunkF2C5C3HI_js.P.getState().videoData.videoElementSizeInfo,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX,p=document.querySelector(".pl-progressTooltip");r>i?(p&&(p.style.display="block !important",p.style.pointerEvents="auto"),o&&(l(chunkF2C5C3HI_js.l(true)),he(e),qt(e),chunkF2C5C3HI_js.la()?.pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},Rt=(e,l,o,i)=>{i(false),e.preventDefault(),e.stopPropagation();let r=chunkF2C5C3HI_js.P.dispatch,{duration:p}=chunkF2C5C3HI_js.P.getState().controller,{left:u,right:m}=chunkF2C5C3HI_js.P.getState().videoData.videoElementSizeInfo,h=chunkF2C5C3HI_js.P.getState().videoData.params;e.target.removeEventListener("pointermove",Qe);let g=e.clientX!==void 0?e.clientX:e.touches[0].clientX,c=0;g>u&&g<m?c=We(e):g<u?c=0:g>0&&(c=p),chunkF2C5C3HI_js.fa("isStaticFormat")||chunk2DZLYHGU_js.i(chunkF2C5C3HI_js.la().currentTime,c),chunkF2C5C3HI_js.la().currentTime=c,chunkF2C5C3HI_js.fa("hasOnChangeCurrentTime")&&h.onChangeCurrentTime(c),chunkF2C5C3HI_js.P.getState().controller.activePointerProgressBar&&(r(chunkF2C5C3HI_js.k(false)),r(chunkF2C5C3HI_js.l(false)),chunkF2C5C3HI_js.la().play(),he(e,true),sessionStorage.setItem("current-time",String(c)),qt(e),dl(e,r,l,o));},dl=(e,l,o,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:u}=chunkF2C5C3HI_js.P.getState().popovers,{delayTurnOffControlbar:m}=chunkF2C5C3HI_js.P.getState().controller;e.pointerType==="touch"&&!u&&m&&l(chunkF2C5C3HI_js.f(false));},chunkQHZJEU27_js.a);r.push(p),o(r);},Xt=()=>{let e=Date.now();chunkF2C5C3HI_js.la().play().then(()=>chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.ra(Date.now()-e)));},Ut=e=>he(e),Wt=()=>{let e=document.querySelector(".pl-progressTooltip");fe(e);},ul=e=>{let l=e.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}},zt=e=>{let l=ul(e);return parseInt(l.hours*(60*60)+l.minutes*60+l.seconds+l.milliseconds/1e3,10)},fl=e=>{let l=e.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}},hl=(e,l)=>e.indexOf("//")>=0?e:l.indexOf("//")===0?[l.replace(/\/$/gi,""),e.trim()].join("/"):l.indexOf("//")>0?[l.trim(),e.trim()].join("/"):e,vl=(e,l)=>{let o={},i=l.split(/\/\w+\.vtt\s?/)[0];if(e=hl(e,i),!e.match(/#xywh=/i))return o.background='url("'+e+l.split(/\/\w+\.vtt\s?/)[1]+'")',o;let r=fl(e);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},Qt=(e,l)=>{fetch(e).then(o=>{if(!o.ok)throw chunkF2C5C3HI_js.P.dispatch(chunkF2C5C3HI_js.r({...chunkF2C5C3HI_js.P.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 u=p.split(/[\r\n]/i),h=u[0].split(/ ?--> ?/i),g=h[0],c=h[1],v=u[1],d=vl(v,e);i.push({start:zt(g),end:zt(c),css:d});}}),l(i);}).catch(o=>{console.error("Error fetching file:",o);});},Gt=(e,l,o)=>{for(let i=0;i<l.length;++i){let r=l[i];if(e>=r.start&&e<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 xl=()=>{let{details:e}=chunkF2C5C3HI_js.ha(({videoData:{details:m}})=>({details:m}),reactRedux.shallowEqual),{tooltipTime:l}=chunkF2C5C3HI_js.ha(({controller:{tooltipTime:m,activeElements:h,isFullScreen:g}})=>({tooltipTime:m,activeElements:h,isFullScreen:g}),reactRedux.shallowEqual),o={},[i,r]=react.useState(void 0),[p,u]=react.useState(chunkF2C5C3HI_js.fa("isTouchScreen")?e.vtt_mobile:e.vtt);return react.useEffect(()=>{u(e.vtt_mobile);},[e.vtt_mobile]),react.useEffect(()=>{p&&Qt(e.vtt_mobile,r);},[p]),chunkF2C5C3HI_js.fa("isActiveElements")?jsxRuntime.jsxs("div",{className:`pl-flex pl-flex-col pl-progressTooltip pl-absolute pl-bottom-[calc(100%+10px)] pl-px-[10px] pl-pt-[5px] pl-mr-[-25px] pl-text-white pl-text-[14px] ${p&&i?"":"pl-bg-z-gray-700"} pl-rounded-[6px] pl-opacity-0`,children:[p&&!!i&&jsxRuntime.jsx("div",{className:"pl-flex-1 pl-border pl-border-white pl-rounded-[8px] pl-mb-2",children:jsxRuntime.jsx("div",{className:"pl-rounded-[8px]",style:Gt(l,i,o)})}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100"})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{})},Kt=react.memo(xl);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var wl=(e,l)=>{react.useEffect(()=>{let o=i=>{!e.current||e.current.contains(i.target)||l(i);};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o);}},[e,l]);},O=wl;chunkWO4IQUGO_js.e();var Tl=({name:e,className:l,dataMarker:o})=>jsxRuntime.jsx("img",{"data-marker":o,src:`${chunkF2C5C3HI_js.ia()}/${e}.png`,alt:e,className:l}),ve=Tl;var Il=()=>{chunkF2C5C3HI_js.ga();let {duration:l,activeElements:o}=chunkF2C5C3HI_js.ha(({controller:{duration:a,activeElements:b,isFullScreen:U}})=>({duration:a,activeElements:b,isFullScreen:U}),reactRedux.shallowEqual),{markers:i}=chunkF2C5C3HI_js.ha(({videoData:{markers:a,videoElementSizeInfo:b}})=>({markers:a,videoElementSizeInfo:b}),reactRedux.shallowEqual),[r,p]=react.useState(void 0),[u,m]=react.useState([]),[h,g]=react.useState({}),[c,v]=react.useState(false),d=a=>l?chunkF2C5C3HI_js.oa()*a/l:0,w=(a,b,U,se,K,W,ne,Ve)=>{a.stopPropagation();let A=24*b/(chunkF2C5C3HI_js.oa()+5),j=[],Go=0;Ve.map(be=>{be.time>b-A&&be.time<b+A&&(j.push(be),Go+=be.time);}),j.length>1?m(j):(j=[],m([]),f(a,b,U,se,K,W,ne));},f=(a,b,U,se,K,W,ne)=>{a.stopPropagation(),he(a,ne),chunk2DZLYHGU_js.i(chunkF2C5C3HI_js.la().currentTime,b),chunkF2C5C3HI_js.la().currentTime=b,chunkF2C5C3HI_js.na()&&(chunkF2C5C3HI_js.na().style.width=d(b)),chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.Ea(U,b,se,K,W));};react.useEffect(()=>{chunkF2C5C3HI_js.fa("isActiveElements")||m([]);},[o]);let I=react.useRef(null);O(I,()=>m([])),react.useEffect(()=>{if(u.length>0){let a=chunkF2C5C3HI_js.da(document.getElementsByClassName("pl-overlapMarkers")[0]);if(a==="inViewport")return v(true),g({left:d(u[0].time)});if(a==="OutViewPortFromLeft")return v(false),g({left:0});if(a==="OutViewPortFromRight")return v(false),g({right:0})}},[u,document.getElementsByClassName("pl-overlapMarkers")[0]]);let E=a=>{a.preventDefault(),chunkF2C5C3HI_js.fa("isTouchScreen")&&p(Number(a.target.getAttribute("data-marker")));};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i.map(a=>jsxRuntime.jsx("div",{onContextMenu:E,"data-marker":a.time,onClick:b=>w(b,a.time,a.id,a.title,a.description,a.sticker,true,i),onDoubleClick:b=>b.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 ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:d(a.time),zIndex:6},"data-marker":a.time,children:[a.isPersonal!==null&&a.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(ve,{dataMarker:a.time,name:a.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},a.id)),u.length>0&&jsxRuntime.jsx("div",{className:`pl-overlapMarkers ${c?"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:I,style:h,children:u.map(a=>jsxRuntime.jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":a.time,onClick:b=>f(b,a.time,a.id,a.title,a.description,a.sticker,true),onDoubleClick:b=>b.stopPropagation(),children:jsxRuntime.jsx(ve,{dataMarker:a.time,name:a.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},a.id))})]})},oo=react.memo(Il);var Ml=()=>{let[e,l]=react.useState(false);react.useEffect(()=>{fe(document.querySelector(".progressTooltip"));},[]);let{duration:o,currentTime:i,bufferedTimeWidth:r}=chunkF2C5C3HI_js.ha(({controller:{duration:m,currentTime:h,bufferedTimeWidth:g}})=>({duration:m,currentTime:h,bufferedTimeWidth:g}),reactRedux.shallowEqual);chunkF2C5C3HI_js.ha(({videoData:{params:m,videoElementSizeInfo:h}})=>({params:m,videoElementSizeInfo:h}),reactRedux.shallowEqual);let[p,u]=react.useState([]);return jsxRuntime.jsxs("div",{className:`${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"} pl-relative`,children:[jsxRuntime.jsxs("div",{className:"pl-relative",children:[jsxRuntime.jsx(Kt,{}),jsxRuntime.jsx(oo,{})]}),jsxRuntime.jsx("div",{className:"pl-w-full pl-flex pl-items-end",onPointerDown:m=>Ht(m,p,l),onPointerMove:Qe,onPointerUp:m=>Rt(m,u,p,l),onMouseMove:Ut,onMouseOut:Wt,onClick:Xt,onDoubleClick:m=>m.stopPropagation(),children:jsxRuntime.jsxs("div",{id:"progress-area",className:"pl-w-full pl-absolute",children:[jsxRuntime.jsx("div",{className:"pl-w-full pl-h-[40px]"}),jsxRuntime.jsxs("div",{id:"time-progress-area",className:"!pl-w-full !pl-h-[5px] pl-transition-transform pl-duration-300 pl-m-auto pl-cursor-pointer !pl-bg-gray-highLight pl-rounded",style:{transform:e?"scaleY(1.8)":"unset"},children:[jsxRuntime.jsx("div",{id:"time-progress-buffer",className:"pl-absolute pl-h-[5px] pl-bg-z-gray-400/[0.7] pl-rounded",style:{width:`${r}%`}}),jsxRuntime.jsx("div",{id:"time-progress-bar",className:`pl-h-[5px] pl-rounded pl-relative pl-cursor-pointer pl-bg-primary before:pl-bg-primary before:pl-inline-block before:pl-w-4 before:pl-h-4 ${e&&"before:pl-w-7 before:pl-h-3"}`,style:{width:`${i/o*chunkF2C5C3HI_js.oa()}px`}})]})]})})]})},ro=Ml;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Dl=()=>{let[e,l]=react.useState(false),o=chunkF2C5C3HI_js.ga(),{params:i,details:r}=chunkF2C5C3HI_js.ha(({videoData:{params:p,details:u}})=>({params:p,details:u}),reactRedux.shallowEqual);return jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(ie__default.default,{alt:"",onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&l(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&l(false),src:chunk5FTEBU6O_js.a.pictureInPicture,width:20,height:20,className:"pl-flex pl-cursor-pointer",onClick:()=>{i.onClickMiniPlayerIcon&&(localStorage.removeItem("close-miniPlayer"),chunkF2C5C3HI_js.la()?.pause(),o(chunkF2C5C3HI_js.a(false)),i.onClickMiniPlayerIcon({video:r||void 0,id:i.type==="vod"?i.id:window.btoa(i.id),type:i.type,currentTime:chunkF2C5C3HI_js.la().currentTime}));}}),e&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u062A\u0635\u0648\u06CC\u0631 \u062F\u0631 \u062A\u0635\u0648\u06CC\u0631 "})]})},so=Dl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ao=react.forwardRef(({children:e,status:l,onClose:o,type:i,classNames:r,parentClassNames:p,styles:u,isBlurBackground:m,isFullHeight:h=false,isHeader:g,isHasCatchUpLineOnTop:c=false,animation:v,scrollbar:d=false,isFocusOnInput:w=false},f)=>{let[I,E]=react.useState(l),[a,b]=react.useState(0),[U,se]=react.useState(0),{videoElementSizeInfo:K}=chunkF2C5C3HI_js.ha(({videoData:{videoElementSizeInfo:A}})=>({videoElementSizeInfo:A}),reactRedux.shallowEqual),W=react.useRef(0);react.useEffect(()=>{let A;return l?E(true):A=setTimeout(()=>{o(false),b(0),E(false);},500),()=>clearTimeout(A)},[l]);let ne=A=>{let j=document.getElementById("popover-content");W.current||(W.current=window.innerHeight-K.top-j?.getBoundingClientRect().top),A.stopPropagation(),window.innerHeight-K.top-A.touches[0].clientY<W.current&&b(window.innerHeight-A.touches[0].clientY),se(1000005);},Ve=()=>{o();},qe=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[m&&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:1000001}}),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:h&&!w?U:1000004},children:jsxRuntime.jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9]
2
+ ${h&&"pl-h-full"}
3
+ ${v||(window.innerWidth>768&&i==="modal"?l?"animate__fadeIn":"animate__fadeOut":l?"animate__fadeInUp":"animate__fadeOutDown")}
4
+ ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")?"!pl-fixed !pl-right-0 !pl-left-0 !pl-bottom-0 !pl-w-full !pl-mb-0 pl-rounded-[12px] !pl-rounded-b-none !pl-bg-white":"before:pl-hidden"}
5
+ ${i!=="modal"&&"pl-absolute pl-bottom-[130%] pl-overflow-auto no-scrollbar"}
6
+ ${r}
7
+ `,style:{height:a||"max-content",maxHeight:"80vh",zIndex:1000004,...u},ref:f,id:"popover-content",children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[g&&jsxRuntime.jsx("div",{onTouchMove:c?ne:()=>{},onTouchEndCapture:c?Ve:()=>{},className:"pl-py-4",children:c&&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",{className:`pl-overflow-y-auto pl-h-full pl-w-full ${!d&&"no-scrollbar"}`,onTouchMove:A=>A.stopPropagation(),children:e})]})})})]});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:I&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:i==="modal"?reactDom.createPortal(jsxRuntime.jsx(jsxRuntime.Fragment,{children:qe}),document.getElementById("dialog-react-root-videoPlayer")):jsxRuntime.jsx("div",{id:"player-popover",children:qe})})})});ao.displayName="popover";var q=ao;chunkWO4IQUGO_js.e();var Xl=({setSection:e,showQualityLevelsIcon:l})=>{let o=chunkF2C5C3HI_js.ga(),{qualityLevels:i}=chunkF2C5C3HI_js.ha(({controller:{qualityLevels:d,manualQuality:w,autoQuality:f}})=>({qualityLevels:d,manualQuality:w,autoQuality:f}),reactRedux.shallowEqual),{settings:r}=chunkF2C5C3HI_js.ha(({user:{settings:d}})=>({settings:d}),reactRedux.shallowEqual),{qualityLevelsPopover:p}=chunkF2C5C3HI_js.ha(({popovers:{qualityLevelsPopover:d}})=>({qualityLevelsPopover:d}),reactRedux.shallowEqual),{videoElementSizeInfo:u}=chunkF2C5C3HI_js.ha(({videoData:{params:d,videoElementSizeInfo:w}})=>({params:d,videoElementSizeInfo:w}),reactRedux.shallowEqual),[m,h]=react.useState(false);i=[-1,...i];let g=(d,w)=>chunkF2C5C3HI_js.fa("isAutoQuality")&&w===-1?true:!chunkF2C5C3HI_js.fa("isAutoQuality")&&r.quality===d,c=react.useRef(null);O(c,()=>o(chunkF2C5C3HI_js.F(false)));let v=jsxRuntime.jsx("div",{id:"qualityLevels",className:"animate__animated animate__fadeIn pl-py-2",children:jsxRuntime.jsx("ul",{className:"pl-flex pl-flex-col pl-gap-2",children:i.map((d,w)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-text-[14px] pl-font-medium pl-rounded-[4px] pl-relative pl-cursor-pointer ${g(w-1,d)&&"pl-bg-primary/[0.12] !pl-cursor-default"} ${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-py-[13.5px]":"pl-py-[9.5px]"}`,onClick:g(w-1,d)?()=>{}:()=>{chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.qa(d===-1?"auto":`${d}P`)),o(chunkF2C5C3HI_js.f(false)),o(chunkF2C5C3HI_js.D(false)),o(chunkF2C5C3HI_js.F(false)),o(chunkF2C5C3HI_js.J({...r,quality:d===-1?-1:w-1})),e&&e("main");},children:[!chunkF2C5C3HI_js.fa("isTouchScreen")&&g(w-1,d)&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[11.8px]",children:jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.tick,alt:"",width:12,height:9})}),chunkF2C5C3HI_js.fa("isTouchScreen")&&jsxRuntime.jsx("div",{className:`pl-w-5 pl-h-5 pl-rounded-full pl-border pl-border-black/[0.5] pl-p-0.5 ${g(w-1,d)&&"pl-border-primary"}`,children:g(w-1,d)&&jsxRuntime.jsx("div",{className:"pl-w-full pl-h-full pl-rounded-full pl-bg-primary"})}),jsxRuntime.jsx("span",{className:`pl-w-full pl-text-[14px] pl-text-black/[0.87] ${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-pr-[21px]":"pl-pr-[10px]"}`,children:d===-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 pl-text-black/[0.5]",children:"(\u0628\u0631 \u0627\u0633\u0627\u0633 \u0633\u0631\u0639\u062A \u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0634\u0645\u0627)"})]}):`${d}p`})]},w))})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:c,children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.qualitySetting1,alt:"speed-icon",width:20,height:20,onClick:()=>o(chunkF2C5C3HI_js.F(!p)),onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&!chunkF2C5C3HI_js.fa("showQualityLevelsPopover")&&h(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&h(false),className:"pl-cursor-pointer"}),m&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsxRuntime.jsx(q,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkF2C5C3HI_js.fa("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]"} ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${chunkF2C5C3HI_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(chunkF2C5C3HI_js.F(false)),type:chunkF2C5C3HI_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF2C5C3HI_js.fa("isTouchScreenPortrait"),ref:chunkF2C5C3HI_js.fa("isTouchScreen")?c:void 0,isHeader:chunkF2C5C3HI_js.fa("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkF2C5C3HI_js.fa("isTouchScreen"),styles:{maxHeight:!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&u.height-(chunkF2C5C3HI_js.fa("isTouchScreenLandscape")?120:75)},children:v})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:v})})},Le=react.memo(Xl);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Ul=({className:e,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxRuntime.jsxs("svg",{width:"18",height:"15",viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsxRuntime.jsx("path",{d:"M10.5488 1.53559C8.20532 1.02852 5.66339 1.68608 3.84359 3.50588C1.15649 6.19298 1.00481 10.4572 3.39041 13.3215C3.55135 13.5148 3.8176 13.6347 4.13036 13.6347H13.8687C14.1816 13.6347 14.4476 13.5149 14.6085 13.3217C16.0815 11.5533 16.5884 9.25027 16.1258 7.11249C16.0528 6.77512 16.2671 6.44245 16.6045 6.36945C16.9418 6.29645 17.2745 6.51077 17.3475 6.84814C17.8886 9.34866 17.2968 12.0474 15.569 14.1217C15.1326 14.6455 14.489 14.8847 13.8687 14.8847H4.13036C3.50995 14.8847 2.86616 14.6453 2.42991 14.1215C-0.36559 10.765 -0.188583 5.77029 2.95971 2.622C5.09241 0.489299 8.07189 -0.279272 10.8132 0.31386C11.1505 0.386857 11.3648 0.719527 11.2918 1.0569C11.2188 1.39427 10.8862 1.60859 10.5488 1.53559Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9976 2.66523C15.2417 2.9093 15.2417 3.30503 14.9976 3.54911L10.7129 7.83399C10.8469 8.09798 10.9225 8.39667 10.9225 8.713C10.9225 9.78688 10.0519 10.6574 8.97805 10.6574C7.90417 10.6574 7.03362 9.78688 7.03362 8.713C7.03362 7.63912 7.90417 6.76856 8.97805 6.76856C9.27953 6.76856 9.56498 6.83718 9.81965 6.95963C9.82222 6.95697 9.82483 6.95432 9.82746 6.95168L14.1137 2.66525C14.3578 2.42116 14.7535 2.42115 14.9976 2.66523ZM9.67249 8.713C9.67249 9.09652 9.36158 9.40743 8.97805 9.40743C8.59453 9.40743 8.28362 9.09652 8.28362 8.713C8.28362 8.32947 8.59453 8.01856 8.97805 8.01856C9.36158 8.01856 9.67249 8.32947 9.67249 8.713Z"})]}),Ae=Ul;var Jl=[.5,.75,1,1.25,1.5,1.75,2],Kl=({setSection:e,showSpeedIcon:l})=>{let o=chunkF2C5C3HI_js.ga(),{videoElementSizeInfo:i}=chunkF2C5C3HI_js.ha(({videoData:{videoElementSizeInfo:c,params:v}})=>({videoElementSizeInfo:c,params:v}),reactRedux.shallowEqual),{speedPopover:r}=chunkF2C5C3HI_js.ha(({popovers:{speedPopover:c}})=>({speedPopover:c}),reactRedux.shallowEqual),{settings:p}=chunkF2C5C3HI_js.ha(({user:{settings:c}})=>({settings:c}),reactRedux.shallowEqual),u=react.useRef(null),[m,h]=react.useState(false);O(u,()=>o(chunkF2C5C3HI_js.E(false))),react.useEffect(()=>{chunkF2C5C3HI_js.la()&&(chunkF2C5C3HI_js.la().playbackRate=p.speed);},[]);let g=jsxRuntime.jsx("div",{id:"speed",className:"animate__animated animate__fadeIn pl-py-2",children:jsxRuntime.jsx("ul",{className:"pl-flex pl-flex-col pl-gap-2",children:Jl.map((c,v)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-text-[14px] pl-font-medium pl-rounded-[4px] pl-relative pl-cursor-pointer ${p.speed===c&&"pl-bg-primary/[0.12] !pl-cursor-default"} ${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-py-[13.5px]":"pl-py-[9.5px]"}`,onClick:p.speed===c?()=>{}:()=>{chunkF2C5C3HI_js.fa("isStaticFormat")||chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.pa(c)),o(chunkF2C5C3HI_js.f(false)),o(chunkF2C5C3HI_js.D(false)),o(chunkF2C5C3HI_js.E(false)),o(chunkF2C5C3HI_js.J({...p,speed:c})),chunkF2C5C3HI_js.la().playbackRate=c,e&&e("main");},children:[!chunkF2C5C3HI_js.fa("isTouchScreen")&&p.speed===c&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[11.8px]",children:jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.tick,alt:"",width:12,height:9})}),chunkF2C5C3HI_js.fa("isTouchScreen")&&jsxRuntime.jsx("div",{className:`pl-w-5 pl-h-5 pl-rounded-full pl-border pl-border-black/[0.5] pl-p-0.5 ${p.speed===c&&"pl-border-primary"}`,children:p.speed===c&&jsxRuntime.jsx("div",{className:"pl-w-full pl-h-full pl-rounded-full pl-bg-primary"})}),jsxRuntime.jsx("p",{className:`pl-w-full pl-flex pl-items-center pl-gap-2 pl-text-black/[0.87] ${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-pr-[21px]":"pl-pr-[10px]"}`,children:c})]},v))})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:u,children:[jsxRuntime.jsx(Ae,{className:"pl-size-5 pl-cursor-pointer size-5 pl-fill-white",onClick:()=>o(chunkF2C5C3HI_js.E(!r)),onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&!chunkF2C5C3HI_js.fa("showSpeedPopover")&&h(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&h(false)}),m&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx(q,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkF2C5C3HI_js.fa("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]"} ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkF2C5C3HI_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"} !p-z-[100000]`,status:r,onClose:()=>o(chunkF2C5C3HI_js.E(false)),type:chunkF2C5C3HI_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF2C5C3HI_js.fa("isTouchScreenPortrait"),ref:chunkF2C5C3HI_js.fa("isTouchScreen")?u:void 0,isHeader:chunkF2C5C3HI_js.fa("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkF2C5C3HI_js.fa("isTouchScreen"),styles:{maxHeight:!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&i.height-(chunkF2C5C3HI_js.fa("isTouchScreenLandscape")?120:75)},children:g})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:g})})},$e=Kl;chunkWO4IQUGO_js.e();var jl=({enabled:e,setEnabled:l})=>jsxRuntime.jsx("div",{className:`pl-relative pl-h-[22px] pl-w-[37px] pl-cursor-pointer pl-rounded-[15px] pl-transition-colors pl-duration-150 pl-ease-linear ${e?"pl-bg-primary pl-border pl-border-transparent":"pl-bg-secondary-200 pl-border pl-border-gray-highLight"}`,onClick:l,children:jsxRuntime.jsx("div",{className:`pl-absolute pl-left-1 pl-top-[2px] pl-w-[16px] pl-h-[16px] pl-rounded-full pl-transition-transform pl-duration-150 pl-ease-linear ${e?"pl-bg-white pl-translate-x-[13px]":"pl-bg-black/[0.16] -pl-translate-x-0.5"}`})}),ho=jl;chunkWO4IQUGO_js.e();var oi=({setSection:e})=>{let l=chunkF2C5C3HI_js.ga(),{subtitles:o,selectedSubtitle:i}=chunkF2C5C3HI_js.ha(({videoData:{subtitles:r,selectedSubtitle:p}})=>({subtitles:r,selectedSubtitle:p}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{id:"subtitles",className:"animate__animated animate__fadeIn pl-p-[14px]",children:jsxRuntime.jsxs("ul",{className:"pl-flex pl-flex-col pl-p-0 pl-m-0",children:[jsxRuntime.jsx("li",{className:`pl-flex pl-items-center pl-text-[14px] pl-rounded-[4px] pl-relative pl-cursor-pointer pl-leading-6 hover:pl-bg-main/[0.1] hover:dark:pl-bg-white/[0.25] pl-p-1 pl-pr-2 ${!i&&"pl-bg-main-light hover:!pl-bg-main-light pl-text-dark-5"}`,onClick:()=>{l(chunkF2C5C3HI_js.f(false)),l(chunkF2C5C3HI_js.D(false)),l(chunkF2C5C3HI_js.A(void 0)),e("main");let r=Object.values(chunkF2C5C3HI_js.la().textTracks).find(p=>p.mode==="showing");r&&(r.mode="disabled"),l(chunkF2C5C3HI_js.z("")),chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.Da("empty"));},children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),o.map((r,p)=>jsxRuntime.jsx("li",{className:`pl-flex pl-items-center pl-text-[14px] pl-rounded-[4px] pl-relative pl-cursor-pointer pl-leading-6 hover:pl-bg-main/[0.1] hover:dark:pl-bg-white/[0.25] pl-p-1 pl-pr-2 ${i&&i.language===r.language&&"pl-bg-main-light hover:!pl-bg-main-light pl-text-dark-5"}`,onClick:()=>{l(chunkF2C5C3HI_js.f(false)),l(chunkF2C5C3HI_js.D(false)),l(chunkF2C5C3HI_js.A(r)),chunkF2C5C3HI_js.la().textTracks[p].mode="showing",e("main"),chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.Da(r.language));},children:jsxRuntime.jsx("span",{children:r.label})},p))]})})},vo=react.memo(oi);chunkWO4IQUGO_js.e();var ii=({className:e,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:e,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",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",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",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",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",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"})]}),_e=ii;chunkWO4IQUGO_js.e();var mi=({setSection:e,showMultiAudioIcon:l})=>{let o=chunkF2C5C3HI_js.ga(),{multiAudioPopover:i}=chunkF2C5C3HI_js.ha(({popovers:{multiAudioPopover:v}})=>({multiAudioPopover:v}),reactRedux.shallowEqual),[r,p]=react.useState(false),u=react.useRef(null),{multiAudio:m,selectedAudioId:h,videoElementSizeInfo:g}=chunkF2C5C3HI_js.ha(({videoData:{multiAudio:v,selectedAudioId:d,videoElementSizeInfo:w}})=>({multiAudio:v,selectedAudioId:d,videoElementSizeInfo:w}),reactRedux.shallowEqual);O(u,()=>o(chunkF2C5C3HI_js.H(false)));let c=jsxRuntime.jsx("ul",{className:`pl-flex pl-flex-col pl-m-0 !pl-py-2 ${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-pb-4 pl-gap-2":"pl-gap-1"}`,children:chunkF2C5C3HI_js.fa("hasMultiAudio")&&m.map((v,d)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-rounded-[4px] pl-relative pl-cursor-pointer pl-leading-6 ${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-pr-[26px] pl-gap-[18px] pl-py-3 pl-text-[14px]":"pl-pr-2 pl-gap-2 pl-py-2 pl-text-[12px] pl-font-medium"} ${h===d&&"pl-bg-primary/[0.08]"}`,onClick:()=>{o(chunkF2C5C3HI_js.C(d)),o(chunkF2C5C3HI_js.f(false)),o(chunkF2C5C3HI_js.D(false)),o(chunkF2C5C3HI_js.H(false)),e&&e("main");},children:[jsxRuntime.jsxs("div",{className:`${chunkF2C5C3HI_js.fa("isTouchScreen")?"pl-size-5":"pl-size-3"} pl-flex pl-items-center`,children:[!chunkF2C5C3HI_js.fa("isTouchScreen")&&h===d&&jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.tick,alt:"",width:12,height:9}),chunkF2C5C3HI_js.fa("isTouchScreen")&&jsxRuntime.jsx("div",{className:`pl-w-5 pl-h-5 pl-rounded-full pl-border pl-border-black/[0.5] pl-p-0.5 ${h===d&&"pl-border-primary"}`,children:h===d&&jsxRuntime.jsx("div",{className:"pl-w-full pl-h-full pl-rounded-full pl-bg-primary"})})]}),jsxRuntime.jsxs("span",{children:["\u0632\u0628\u0627\u0646 ",v.name]})]},v.id))});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:u,children:[jsxRuntime.jsx(_e,{className:"pl-size-5 pl-fill-white pl-cursor-pointer",onClick:()=>o(chunkF2C5C3HI_js.H(!i)),onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&p(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&p(false)}),r&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsxRuntime.jsx(q,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-white !pl-pb-0 ${chunkF2C5C3HI_js.fa("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]"} ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkF2C5C3HI_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(chunkF2C5C3HI_js.H(false)),type:chunkF2C5C3HI_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF2C5C3HI_js.fa("isTouchScreenPortrait"),ref:chunkF2C5C3HI_js.fa("isTouchScreen")?u:void 0,isHeader:chunkF2C5C3HI_js.fa("isTouchScreen"),isHasCatchUpLineOnTop:chunkF2C5C3HI_js.fa("isTouchScreen"),styles:{maxHeight:!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&g.height-(chunkF2C5C3HI_js.fa("isTouchScreenLandscape")?120:75)},children:c})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:c})})},Oe=react.memo(mi);var ui=()=>{let e=chunkF2C5C3HI_js.ga(),{selectedSubtitle:l,videoElementSizeInfo:o}=chunkF2C5C3HI_js.ha(({videoData:{params:g,subtitles:c,selectedSubtitle:v,videoElementSizeInfo:d}})=>({params:g,subtitles:c,selectedSubtitle:v,videoElementSizeInfo:d}),reactRedux.shallowEqual),{settingPopover:i}=chunkF2C5C3HI_js.ha(({popovers:{settingPopover:g}})=>({settingPopover:g}),reactRedux.shallowEqual),[r,p]=react.useState("main"),[u,m]=react.useState(false),h=react.useRef(null);return O(h,()=>{e(chunkF2C5C3HI_js.D(false)),setTimeout(()=>p("main"),500);}),jsxRuntime.jsxs("div",{className:`pl-inline-flex ${chunkF2C5C3HI_js.fa("isLandscape")&&"pl-relative"}`,ref:h,children:[jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-relative pl-cursor-pointer",onClick:()=>e(chunkF2C5C3HI_js.D(!i)),onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&!chunkF2C5C3HI_js.fa("showSettingPopover")&&m(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&m(false),children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.settings,alt:"",width:20,height:20}),u&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsxRuntime.jsx(q,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkF2C5C3HI_js.fa("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]"} ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkF2C5C3HI_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"} !overflow-auto`,styles:{maxHeight:!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&o.height-75},status:i,onClose:()=>{e(chunkF2C5C3HI_js.D(false)),setTimeout(()=>p("main"),500);},type:chunkF2C5C3HI_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF2C5C3HI_js.fa("isTouchScreenPortrait"),ref:chunkF2C5C3HI_js.fa("isTouchScreenPortrait")?h:void 0,isHeader:chunkF2C5C3HI_js.fa("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkF2C5C3HI_js.fa("isTouchScreen"),children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[r==="main"&&jsxRuntime.jsxs("div",{id:"main",className:"pl-p-4 pl-rounded-[10px] pl-flex pl-flex-col pl-gap-5 animate__animated animate__fadeIn",children:[!chunkF2C5C3HI_js.fa("isStaticFormat")&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>p("qualityLevels"),children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.qualitySetting,alt:"",width:16,height:16}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.chevronLeft,alt:"",width:16,height:16})]})}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>p("speed"),children:[jsxRuntime.jsx(Ae,{className:"size-5 pl-fill-black/[0.5]"}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.chevronLeft,alt:"",width:16,height:16})]}),chunkF2C5C3HI_js.fa("hasSubtitles")&&chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.subtitleOutlineGray,alt:"subtitle-icon",width:20,height:20}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsxRuntime.jsx(ho,{enabled:!!l,setEnabled:chunkU6DIKZH7_js.b})]}),chunkF2C5C3HI_js.fa("hasMultiAudio")&&chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>p("multiAudio"),children:[jsxRuntime.jsx(_e,{className:"size-5 pl-fill-black/[0.5]"}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.chevronLeft,alt:"",width:16,height:16})]})]}),r==="qualityLevels"&&jsxRuntime.jsx(Le,{setSection:p}),r==="speed"&&jsxRuntime.jsx($e,{setSection:p}),r==="subtitles"&&jsxRuntime.jsx(vo,{setSection:p}),r==="multiAudio"&&jsxRuntime.jsx(Oe,{setSection:p})]})})]})},So=react.memo(ui);chunkWO4IQUGO_js.e();var fi=()=>{let{duration:e,currentTime:l}=chunkF2C5C3HI_js.ha(({controller:{duration:o,currentTime:i}})=>({duration:o,currentTime:i}),reactRedux.shallowEqual);return chunkF2C5C3HI_js.ha(({videoData:{videoElementSizeInfo:o,params:i}})=>({videoElementSizeInfo:o,params:i}),reactRedux.shallowEqual),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:`pl-mr-auto !pl-text-white pl-w-full pl-max-w-max pl-text-[12px] pl-font-bold ${chunkF2C5C3HI_js.fa("isFullScreen")?"pl-ml-8":"pl-ml-4"} ${chunkF2C5C3HI_js.fa("isTouchScreenPortrait")?"!pl-ml-0":"pl-absolute pl-left-0 pl-bottom-full pl-mb-[33px]"}`,children:[jsxRuntime.jsx("span",{children:chunkF2C5C3HI_js.S(e)}),jsxRuntime.jsx("span",{children:" / "}),jsxRuntime.jsx("span",{children:chunkF2C5C3HI_js.S(l)})]})})},ze=fi;chunkWO4IQUGO_js.e();var xi=()=>jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.unlock,alt:"unlock-icon",width:20,height:20,onClick:()=>chunk2DZLYHGU_js.h("lock")}),To=xi;chunkWO4IQUGO_js.e();var Ti=()=>{let[e,l]=react.useState(false);return chunkF2C5C3HI_js.ha(({videoData:{selectedSubtitle:o,videoElementSizeInfo:i,params:r}})=>({selectedSubtitle:o,videoElementSizeInfo:i,params:r}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(ie__default.default,{alt:"subtitle-icon",src:chunkF2C5C3HI_js.fa("isSelectedSubtitle")?chunk5FTEBU6O_js.a.subtitleFill:chunk5FTEBU6O_js.a.subtitleOutline,className:"pl-cursor-pointer",width:20,height:20,onClick:chunkU6DIKZH7_js.b,onDoubleClick:o=>o.stopPropagation(),onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&l(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&l(false)}),e&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},Co=Ti;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ki=e=>(chunkF2C5C3HI_js.ha(({videoData:{videoElementSizeInfo:l,params:o}})=>({videoElementSizeInfo:l,params:o}),reactRedux.shallowEqual),jsxRuntime.jsxs("svg",{width:20,height:20,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"1.5"}),jsxRuntime.jsx("rect",{x:"3",y:"9",width:"4",height:"4",rx:"1.5"}),jsxRuntime.jsx("rect",{x:"3",y:"15",width:"4",height:"4",rx:"1.5"}),jsxRuntime.jsx("rect",{x:"8",y:"16",width:"11",height:"2",rx:"1"}),jsxRuntime.jsx("rect",{x:"8",y:"10",width:"11",height:"2",rx:"1"}),jsxRuntime.jsx("rect",{x:"8",y:"4",width:"11",height:"2",rx:"1"})]})),ko=ki;var Mi=()=>{let [e,l]=react.useState(0),[o,i]=react.useState(void 0),[r,p]=react.useState(false),{markers:u,params:m}=chunkF2C5C3HI_js.ha(({videoData:{markers:f,params:I,videoElementSizeInfo:E}})=>({markers:f,params:I,videoElementSizeInfo:E}),reactRedux.shallowEqual),{markersListPopover:h}=chunkF2C5C3HI_js.ha(({popovers:{markersListPopover:f}})=>({markersListPopover:f}),reactRedux.shallowEqual),g=react.useRef(null),c=chunkF2C5C3HI_js.ga();O(g,()=>c(chunkF2C5C3HI_js.G(false)));let d=(f,I,E,a,b)=>{chunkF2C5C3HI_js.na()&&(chunkF2C5C3HI_js.na().style.width=`${Vt(f)}px`),chunk2DZLYHGU_js.i(chunkF2C5C3HI_js.la().currentTime,f),chunkF2C5C3HI_js.la().currentTime=f,c(chunkF2C5C3HI_js.G(false)),chunkF2C5C3HI_js.ka(chunkF2C5C3HI_js.Ea(I,f,E,a,b));},w=()=>{c(chunkF2C5C3HI_js.G(!h));};return jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-p-1 pl-relative ${chunkF2C5C3HI_js.fa("showMarkerListPopover")&&"pl-bg-secondary-50/[0.4] pl-rounded-[4px]"}`,ref:g,children:[jsxRuntime.jsx(ko,{className:"pl-cursor-pointer pl-fill-dark-5",onClick:w,onMouseOver:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&p(true),onMouseLeave:()=>!chunkF2C5C3HI_js.fa("isTouchScreen")&&p(false)}),r&&jsxRuntime.jsx(chunkEB2I6TVN_js.a,{title:"\u0644\u06CC\u0633\u062A \u0646\u0634\u0627\u0646\u06AF\u0631\u0647\u0627 (e)",className:"!pl-bottom-[180%] !pl-right-[-48px]"}),jsxRuntime.jsx(q,{classNames:"!pl-p-0 pl-left-0 !pl-bg-white dark:!pl-bg-dark-13 !pl-rounded-[4px] pl-mb-[33px]",status:chunkF2C5C3HI_js.fa("showMarkerListPopover"),onClose:()=>{c(chunkF2C5C3HI_js.G(false));},headerTitle:"\u0646\u0634\u0627\u0646\u06AF\u0631\u0647\u0627",isHeader:true,type:"popover",children:jsxRuntime.jsx("div",{className:"pl-flex pl-flex-col pl-gap-6 pl-mx-2 pl-mt-2",children:jsxRuntime.jsx("div",{className:"pl-flex pl-flex-col pl-gap-2 pl-pb-2",children:u.map(f=>jsxRuntime.jsx("div",{onClick:()=>d(f.time,f.id,f.title,f.description,f.sticker),className:"odd:dark:pl-bg-dark-1 odd:pl-bg-main/[0.1] hover:pl-bg-main/[0.1] hover:dark:bg-white/[0.25] pl-rounded-[8px]",children:jsxRuntime.jsxs("div",{className:"pl-flex pl-item-center pl-gap-2 pl-cursor-pointer pl-rounded-[4px] pl-relative pl-p-2 pl-mx-2",children:[f.banner||!f.sticker?jsxRuntime.jsx(ie__default.default,{src:f.banner?f.banner:"IMAGES.defaultMarkersListItemIcon",width:40,height:40,alt:f.title}):jsxRuntime.jsx("div",{className:"pl-w-[40px] pl-h-[40px] pl-bg-secondary dark:pl-bg-secondary-50 pl-rounded-[6px] pl-flex pl-items-center",children:jsxRuntime.jsx(ve,{name:f.sticker,className:"pl-w-[20px] pl-h-[20px] pl-mx-auto"})}),jsxRuntime.jsxs("div",{className:"pl-text-gray-800 dark:pl-text-white",children:[jsxRuntime.jsx("p",{className:"pl-flex pl-items-center pl-mb-1 pl-text-[14px] pl-font-bold pl-w-[130px] pl-whitespace-nowrap pl-overflow-hidden pl-text-ellipsis",children:jsxRuntime.jsx("div",{children:f.title})}),jsxRuntime.jsx("p",{className:"pl-text-[13px] pl-font-normal pl-w-[200px] pl-whitespace-nowrap pl-overflow-hidden pl-text-ellipsis",children:f.description})]}),jsxRuntime.jsx("span",{className:"pl-absolute pl-left-9 pl-top-2 pl-text-[12px] pl-font-bold pl-bg-secondary/[0.3] dark:pl-bg-secondary/[0.6] pl-text-gray-800 dark:pl-text-white pl-rounded-[4px] pl-p-[3px]",children:chunkF2C5C3HI_js.S(f.time)})]})},f.id))})})})]})},No=Mi;var Ai=()=>{chunkF2C5C3HI_js.ha(({controller:{isFullScreen:l}})=>({isFullScreen:l}),reactRedux.shallowEqual),chunkF2C5C3HI_js.ha(({videoData:{videoElementSizeInfo:l,params:o}})=>({videoElementSizeInfo:l,params:o}),reactRedux.shallowEqual);let e="";return chunkF2C5C3HI_js.fa("isTouchScreen")?chunkF2C5C3HI_js.fa("isFullScreen")?e="pl-mx-4 tablet:pl-mx-6":e="pl-mx-4":chunkF2C5C3HI_js.fa("isFullScreen")?e="pl-mx-8":e="pl-mx-4",jsxRuntime.jsxs("div",{id:"player-controllbar",className:`pl-flex pl-justify-between pl-items-center ${e}`,children:[jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-5",children:[jsxRuntime.jsx(chunkEB2I6TVN_js.b,{}),chunkF2C5C3HI_js.fa("isTouchScreenLandscape")&&jsxRuntime.jsx(To,{}),chunkF2C5C3HI_js.fa("showPictureInPicture")&&jsxRuntime.jsx(so,{}),chunkF2C5C3HI_js.fa("showSettingIcon")&&jsxRuntime.jsx(So,{}),chunkF2C5C3HI_js.fa("isFullScreen")&&!chunkF2C5C3HI_js.fa("isStaticFormat")&&jsxRuntime.jsx(Le,{showQualityLevelsIcon:true}),(chunkF2C5C3HI_js.fa("isFullScreen")||chunkF2C5C3HI_js.fa("isStaticFormat"))&&jsxRuntime.jsx($e,{showSpeedIcon:true}),chunkF2C5C3HI_js.fa("hasSubtitles")&&!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(Co,{}),chunkF2C5C3HI_js.fa("hasMultiAudio")&&!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(Oe,{showMultiAudioIcon:true})]}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-5",children:[chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(ze,{}),!chunkF2C5C3HI_js.fa("isIOS")&&jsxRuntime.jsx(chunkEB2I6TVN_js.c,{}),chunkF2C5C3HI_js.fa("hasMarkers")&&jsxRuntime.jsx(No,{})]})]})},Mo=react.memo(Ai);chunkWO4IQUGO_js.e();var $i=()=>{let{subtitleText:e}=chunkF2C5C3HI_js.ha(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),reactRedux.shallowEqual);return chunkF2C5C3HI_js.ha(({controller:{isFullScreen:o}})=>({isFullScreen:o}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-[18px] pl-px-4 pl-text-white pl-font-medium ${(()=>{let o="";return chunkF2C5C3HI_js.fa("isLock")?o="pl-bottom-4":chunkF2C5C3HI_js.fa("isActiveElements")?chunkF2C5C3HI_js.fa("isTouchScreenPortrait")?o="pl-bottom-4 tablet:pl-bottom-[65px]":chunkF2C5C3HI_js.fa("isFullScreen")?o="pl-bottom-[104px] tablet:pl-bottom-[137px] desktop:pl-bottom-[146px]":o="pl-bottom-[120px]":chunkF2C5C3HI_js.fa("isActiveElements")||(o="pl-bottom-4"),o})()}`,children:chunkF2C5C3HI_js.ca(e).map((o,i)=>jsxRuntime.jsx("p",{className:`pl-mx-auto pl-bg-Common-black-overlay-2 ${chunkF2C5C3HI_js.fa("isTouchScreen")&&chunkF2C5C3HI_js.fa("isActiveElements")&&"pl-opacity-50 tablet:pl-opacity-100"} pl-text-wrap pl-max-w-full pl-w-max pl-px-1`,children:chunkF2C5C3HI_js.ea(o)},i))})},$o=$i;var Di=()=>{chunkF2C5C3HI_js.ha(({controller:{lock:l,isFullScreen:o,isLoading:i,activeElements:r}})=>({lock:l,isFullScreen:o,isLoading:i,activeElements:r}),reactRedux.shallowEqual),chunkF2C5C3HI_js.ha(({videoData:{subtitles:l,selectedSubtitle:o}})=>({subtitles:l,selectedSubtitle:o}),reactRedux.shallowEqual);let e="";return chunkF2C5C3HI_js.fa("isTouchScreen")?chunkF2C5C3HI_js.fa("isFullScreen")?e="pl-gap-4 table:pl-gap-6 pl-mb-4 tablet:pl-mb-6 ":e="pl-gap-6 pl-mb-0":chunkF2C5C3HI_js.fa("isFullScreen")?e="pl-gap-6 pl-mb-8":e="pl-gap-4 pl-mb-3",jsxRuntime.jsx("div",{id:"footer",className:"pl-relative",style:{zIndex:4},onClick:l=>l.stopPropagation(),children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[chunkF2C5C3HI_js.fa("showSubtitle")&&jsxRuntime.jsx($o,{}),!chunkF2C5C3HI_js.fa("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 ${e} ${chunkF2C5C3HI_js.fa("isActiveElements")&&!chunkF2C5C3HI_js.fa("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[!chunkF2C5C3HI_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(ze,{}),chunkF2C5C3HI_js.fa("showProgressbar")&&jsxRuntime.jsx(ro,{}),jsxRuntime.jsx(Mo,{})]})})]})})},Oo=Di;chunkWO4IQUGO_js.e();var _i=Bo__default.default(()=>import('./staticVideoTag-IXLQA5QO.js')),Fi=Bo__default.default(()=>import('./nonStaticVideoTag-ZXAZLBRC.js')),Oi=()=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:chunkF2C5C3HI_js.fa("isStaticFormat")?jsxRuntime.jsx(_i,{}):jsxRuntime.jsx(Fi,{})}),zo=Oi;chunkWO4IQUGO_js.e();var Vi=(e,l)=>{let o=chunkF2C5C3HI_js.ga(),{activeElements:i}=chunkF2C5C3HI_js.ha(({controller:{activeElements:m}})=>({activeElements:m}),reactRedux.shallowEqual),r=react.useRef(null),p=react.useRef(e),u=react.useRef(l);react.useEffect(()=>{p.current=e;},[e]),react.useEffect(()=>{u.current=l;},[l]),react.useEffect(()=>{let m=false,h=v=>{let{activeElements:d,isEnded:w}=chunkF2C5C3HI_js.P.getState().controller;w?o(chunkF2C5C3HI_js.f(true)):v.pointerType==="mouse"&&(clearTimeout(r.current),d?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward"].includes(v.target.id)&&(m=true):o(chunkF2C5C3HI_js.f(true)),r.current=setTimeout(()=>{let{settingPopover:f,speedPopover:I,qualityLevelsPopover:E,multiAudioPopover:a}=chunkF2C5C3HI_js.P.getState().popovers,{play:b}=chunkF2C5C3HI_js.P.getState().controller;!f&&!I&&!E&&!a&&b&&m&&o(chunkF2C5C3HI_js.f(false));},chunkQHZJEU27_js.a));},g=v=>{setTimeout(()=>{let{activeElements:d,isEnded:w,firstPlay:f}=chunkF2C5C3HI_js.P.getState().controller;if(clearTimeout(r.current),w)return o(chunkF2C5C3HI_js.f(true));chunkF2C5C3HI_js.R()&&!f&&!p.current&&!u.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward"].includes(v.target.id)||chunkF2C5C3HI_js.U(v,"playerElements")?(o(chunkF2C5C3HI_js.f(!d)),r.current=setTimeout(()=>{let{settingPopover:I,speedPopover:E,qualityLevelsPopover:a,multiAudioPopover:b}=chunkF2C5C3HI_js.P.getState().popovers;!I&&!E&&!a&&!b&&o(chunkF2C5C3HI_js.f(false));},chunkQHZJEU27_js.a)):r.current=setTimeout(()=>{let{settingPopover:I,speedPopover:E,qualityLevelsPopover:a,multiAudioPopover:b}=chunkF2C5C3HI_js.P.getState().popovers;!I&&!E&&!a&&!b&&o(chunkF2C5C3HI_js.f(false));},chunkQHZJEU27_js.a));},200);},c=()=>{clearTimeout(r.current),r.current=setTimeout(()=>{let{activeElements:v,isEnded:d}=chunkF2C5C3HI_js.P.getState().controller,{settingPopover:w,speedPopover:f,qualityLevelsPopover:I}=chunkF2C5C3HI_js.P.getState().popovers;d?o(chunkF2C5C3HI_js.f(true)):!w&&!f&&!I&&v&&!d&&o(chunkF2C5C3HI_js.f(!v));},chunkQHZJEU27_js.a);};return document.getElementById("video-area").addEventListener("touchstart",g),document.getElementById("video-area").addEventListener("touchmove",c),document.getElementById("video-area").addEventListener("pointermove",h),()=>{let v=document.getElementById("video-area");v&&(v.removeEventListener("touchstart",g),v.removeEventListener("touchmove",c),v.removeEventListener("pointermove",h));}},[i,e,l]);},Vo=Vi;chunkWO4IQUGO_js.e();var Ri=()=>{let{firstPlay:e,isFullScreen:l}=chunkF2C5C3HI_js.ha(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),reactRedux.shallowEqual);react.useEffect(()=>{if(chunkF2C5C3HI_js.la()){let o,i=()=>{o=setTimeout(()=>{chunk2DZLYHGU_js.j();},chunkF2C5C3HI_js.R()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[e,l,chunkF2C5C3HI_js.la()]);},qo=Ri;chunkWO4IQUGO_js.e();var Ui=()=>{let{firstPlay:e}=chunkF2C5C3HI_js.ha(({controller:{firstPlay:l}})=>({firstPlay:l}),reactRedux.shallowEqual);chunkF2C5C3HI_js.ha(({videoData:{details:l,params:o}})=>({details:l,params:o}),reactRedux.shallowEqual),react.useEffect(()=>{chunkF2C5C3HI_js.fa("setSubtitleFirstPlay")&&chunkU6DIKZH7_js.b();},[e]);},Ro=Ui;var Wi=Bo__default.default(()=>import('./touchVolumeBrightness-F5L3E4KG.js')),Wo=Bo__default.default(()=>import('./backwardForward-PWDMWFMB.js')),Qi=()=>{let[e,l]=react.useState(false),[o,i]=react.useState(false);return chunkF2C5C3HI_js.ha(({videoData:{details:r,params:p,videoElementSizeInfo:u}})=>({details:r,params:p,videoElementSizeInfo:u}),reactRedux.shallowEqual),chunkF2C5C3HI_js.ha(({controller:{firstPlay:r,isFullScreen:p,isLoading:u,canPlayVideo:m}})=>({firstPlay:r,isFullScreen:p,isLoading:u,canPlayVideo:m}),reactRedux.shallowEqual),chunkEB2I6TVN_js.d(),qo(),Vo(e,o),Ro(),console.log(chunkF2C5C3HI_js.fa("showFooter")),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{id:"video-area",style:{zIndex:chunkF2C5C3HI_js.fa("isFullScreen")?1e6:"unset"},onClick:r=>{let p=document.getElementById("player-popover");(chunkF2C5C3HI_js.fa("isFirstPlay")||!chunkF2C5C3HI_js.fa("isTouchScreen")&&!p)&&chunk2DZLYHGU_js.a(r);},onDoubleClick:r=>chunk2DZLYHGU_js.k(r),className:`!pl-bg-contain !pl-bg-center !pl-bg-no-repeat pl-h-full pl-bg-black pl-max-h-screen pl-aspect-video pl-flex pl-items-center ${!chunkF2C5C3HI_js.fa("isTouchScreen")&&!chunkF2C5C3HI_js.fa("isFullScreen")&&"!pl-rounded-[12px]"} ${chunkF2C5C3HI_js.fa("isFullScreen")&&"!pl-fixed !pl-w-screen dvh"} pl-w-full pl-relative ${!chunkF2C5C3HI_js.fa("isActiveElements")&&"pl-cursor-none"}`,children:[jsxRuntime.jsx("div",{id:"video-opacity",className:`pl-absolute pl-w-full pl-aspect-video pl-transition-all pl-duration-500 pl-bg-black ${!chunkF2C5C3HI_js.fa("isTouchScreen")&&!chunkF2C5C3HI_js.fa("isFullScreen")&&"!pl-rounded-[12px]"} ${chunkF2C5C3HI_js.fa("isActiveElements")?"pl-bg-opacity-50":"pl-bg-opacity-0"}`}),chunkF2C5C3HI_js.fa("showTouchVolumeBrightness")&&jsxRuntime.jsx(Wi,{}),chunkF2C5C3HI_js.fa("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||e?1000002:1},children:[jsxRuntime.jsx(Wo,{type:"touchForward",isRightDoubleTouched:e,setIsRightDoubleTouched:l}),jsxRuntime.jsx(Wo,{type:"touchBackward",isLeftDoubleTouched:o,setIsLeftDoubleTouched:i})]}),jsxRuntime.jsx(zo,{}),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:[chunkF2C5C3HI_js.fa("showHeader")&&jsxRuntime.jsx(Lt,{}),chunkF2C5C3HI_js.fa("showMain")&&jsxRuntime.jsx(Bt,{}),chunkF2C5C3HI_js.fa("showFooter")&&jsxRuntime.jsx(Oo,{})]})})]})})},Oc=Qi;
8
+ exports.a=Oc;//# sourceMappingURL=chunk-TLJZR2JW.js.map
9
+ //# sourceMappingURL=chunk-TLJZR2JW.js.map