cafe-video-player 2.0.19 → 2.0.20
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/backwardForward-DYH6PHWL.mjs +2 -0
- package/{backwardForward-WK343PF5.mjs.map → backwardForward-DYH6PHWL.mjs.map} +1 -1
- package/backwardForward-E4S6FLOP.js +2 -0
- package/{backwardForward-AZYZ2LCJ.js.map → backwardForward-E4S6FLOP.js.map} +1 -1
- package/chunk-3MU2SHHL.js +9 -0
- package/chunk-3MU2SHHL.js.map +1 -0
- package/{chunk-EN23KUAR.mjs → chunk-47O2V3XF.mjs} +2 -2
- package/{chunk-EN23KUAR.mjs.map → chunk-47O2V3XF.mjs.map} +1 -1
- package/{chunk-DXQZ33KG.mjs → chunk-4LA4EUKN.mjs} +2 -2
- package/{chunk-DXQZ33KG.mjs.map → chunk-4LA4EUKN.mjs.map} +1 -1
- package/chunk-6KVFRDGD.js +2 -0
- package/{chunk-QRPLOTXC.js.map → chunk-6KVFRDGD.js.map} +1 -1
- package/chunk-6RMNLQH2.js +3 -0
- package/chunk-6RMNLQH2.js.map +1 -0
- package/chunk-7OLT67MH.js +3 -0
- package/{chunk-PNDO2UMT.js.map → chunk-7OLT67MH.js.map} +1 -1
- package/chunk-DYF7EM6B.mjs +9 -0
- package/chunk-DYF7EM6B.mjs.map +1 -0
- package/chunk-E3XZC6EZ.mjs +2 -0
- package/{chunk-5JO5RD7L.mjs.map → chunk-E3XZC6EZ.mjs.map} +1 -1
- package/chunk-FK3W2MAI.js +2 -0
- package/{chunk-5XWQV5MS.js.map → chunk-FK3W2MAI.js.map} +1 -1
- package/{chunk-44M5NCFG.mjs → chunk-GOYUBLGM.mjs} +2 -2
- package/{chunk-44M5NCFG.mjs.map → chunk-GOYUBLGM.mjs.map} +1 -1
- package/{chunk-LPCUMIXB.mjs → chunk-GQDNBNXB.mjs} +3 -3
- package/{chunk-LPCUMIXB.mjs.map → chunk-GQDNBNXB.mjs.map} +1 -1
- package/{chunk-EFMXOY7O.js → chunk-GX3CDH5D.js} +2 -2
- package/{chunk-EFMXOY7O.js.map → chunk-GX3CDH5D.js.map} +1 -1
- package/chunk-HBZI4GO4.mjs +3 -0
- package/chunk-HBZI4GO4.mjs.map +1 -0
- package/{chunk-COEL6VKL.mjs → chunk-IWXS6HSK.mjs} +2 -2
- package/{chunk-COEL6VKL.mjs.map → chunk-IWXS6HSK.mjs.map} +1 -1
- package/chunk-JWDZJC6T.js +2 -0
- package/{chunk-EOVTA4M6.js.map → chunk-JWDZJC6T.js.map} +1 -1
- package/chunk-KRKIL4DM.js +2 -0
- package/{chunk-QKCPHYZS.js.map → chunk-KRKIL4DM.js.map} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/nonStaticVideoTag-KPO4CJIG.mjs +2 -0
- package/{nonStaticVideoTag-EUNAKHEZ.mjs.map → nonStaticVideoTag-KPO4CJIG.mjs.map} +1 -1
- package/nonStaticVideoTag-RFEJFQEN.js +2 -0
- package/{nonStaticVideoTag-ZQVFIWCA.js.map → nonStaticVideoTag-RFEJFQEN.js.map} +1 -1
- package/package.json +1 -1
- package/staticPlayer-CKX436BV.mjs +2 -0
- package/{staticPlayer-VL6F65PE.mjs.map → staticPlayer-CKX436BV.mjs.map} +1 -1
- package/staticPlayer-PT7456TV.js +2 -0
- package/{staticPlayer-XSQVOYIL.js.map → staticPlayer-PT7456TV.js.map} +1 -1
- package/staticVideoTag-CYVERXTD.js +2 -0
- package/{staticVideoTag-2BTFB7O2.js.map → staticVideoTag-CYVERXTD.js.map} +1 -1
- package/{staticVideoTag-S6AJTH5V.mjs → staticVideoTag-DVDX4WWE.mjs} +2 -2
- package/{staticVideoTag-S6AJTH5V.mjs.map → staticVideoTag-DVDX4WWE.mjs.map} +1 -1
- package/{touchVolumeBrightness-P7K7KWDA.mjs → touchVolumeBrightness-Q4LQIIPO.mjs} +3 -3
- package/{touchVolumeBrightness-P7K7KWDA.mjs.map → touchVolumeBrightness-Q4LQIIPO.mjs.map} +1 -1
- package/{touchVolumeBrightness-YCXFPM63.js → touchVolumeBrightness-VFNRQZOL.js} +3 -3
- package/{touchVolumeBrightness-YCXFPM63.js.map → touchVolumeBrightness-VFNRQZOL.js.map} +1 -1
- package/videoArea-NWBI3JOB.mjs +2 -0
- package/{videoArea-6IUMIHKE.mjs.map → videoArea-NWBI3JOB.mjs.map} +1 -1
- package/videoArea-XNMWP7T4.js +2 -0
- package/{videoArea-DCGPSNE2.js.map → videoArea-XNMWP7T4.js.map} +1 -1
- package/vodPlayer-57SJHXNJ.js +2 -0
- package/{vodPlayer-TGBI74NF.js.map → vodPlayer-57SJHXNJ.js.map} +1 -1
- package/vodPlayer-LDSIA3V5.mjs +2 -0
- package/{vodPlayer-Q7QVHCOX.mjs.map → vodPlayer-LDSIA3V5.mjs.map} +1 -1
- package/backwardForward-AZYZ2LCJ.js +0 -2
- package/backwardForward-WK343PF5.mjs +0 -2
- package/chunk-5JO5RD7L.mjs +0 -2
- package/chunk-5U7IZZQA.js +0 -9
- package/chunk-5U7IZZQA.js.map +0 -1
- package/chunk-5XWQV5MS.js +0 -2
- package/chunk-EOVTA4M6.js +0 -2
- package/chunk-PNDO2UMT.js +0 -3
- package/chunk-QKCPHYZS.js +0 -2
- package/chunk-QRPLOTXC.js +0 -2
- package/chunk-SVK2IBDX.js +0 -3
- package/chunk-SVK2IBDX.js.map +0 -1
- package/chunk-UL5DEGBQ.mjs +0 -3
- package/chunk-UL5DEGBQ.mjs.map +0 -1
- package/chunk-XQOSIKKQ.mjs +0 -9
- package/chunk-XQOSIKKQ.mjs.map +0 -1
- package/nonStaticVideoTag-EUNAKHEZ.mjs +0 -2
- package/nonStaticVideoTag-ZQVFIWCA.js +0 -2
- package/staticPlayer-VL6F65PE.mjs +0 -2
- package/staticPlayer-XSQVOYIL.js +0 -2
- package/staticVideoTag-2BTFB7O2.js +0 -2
- package/videoArea-6IUMIHKE.mjs +0 -2
- package/videoArea-DCGPSNE2.js +0 -2
- package/vodPlayer-Q7QVHCOX.mjs +0 -2
- package/vodPlayer-TGBI74NF.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"backwardForward-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"backwardForward-DYH6PHWL.mjs"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkGX3CDH5D_js=require('./chunk-GX3CDH5D.js');require('./chunk-6KVFRDGD.js'),require('./chunk-6RMNLQH2.js'),require('./chunk-DQNYU4AM.js'),require('./chunk-WO4IQUGO.js');module.exports=chunkGX3CDH5D_js.a;//# sourceMappingURL=backwardForward-E4S6FLOP.js.map
|
|
2
|
+
//# sourceMappingURL=backwardForward-E4S6FLOP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"backwardForward-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"backwardForward-E4S6FLOP.js"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';var chunk7OLT67MH_js=require('./chunk-7OLT67MH.js'),chunkGX3CDH5D_js=require('./chunk-GX3CDH5D.js'),chunkQHZJEU27_js=require('./chunk-QHZJEU27.js'),chunk6KVFRDGD_js=require('./chunk-6KVFRDGD.js'),chunk6RMNLQH2_js=require('./chunk-6RMNLQH2.js'),chunkDQNYU4AM_js=require('./chunk-DQNYU4AM.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime'),be=require('next/legacy/image'),reactDom=require('react-dom'),Ro=require('next/dynamic');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var be__default=/*#__PURE__*/_interopDefault(be);var Ro__default=/*#__PURE__*/_interopDefault(Ro);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var tl=()=>{let{details:e,params:o}=chunk6RMNLQH2_js.ea(({videoData:{details:l,params:i}})=>({details:l,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 ${chunk6RMNLQH2_js.ca("isActiveElements")?"animate__fadeIn pl-opacity-100":"pl-opacity-0 animate__fadeOut"}`,children:chunk6RMNLQH2_js.ca("hasTitle")?e.title:o.id})},Ct=tl;chunkWO4IQUGO_js.e();var il=()=>jsxRuntime.jsxs("div",{className:`pl-relative animate__animated animate__faster ${chunk6RMNLQH2_js.ca("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_js.a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>chunk6KVFRDGD_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"})]}),It=il;var nl=()=>(chunk6RMNLQH2_js.ea(({controller:{lock:e,activeElements:o}})=>({lock:e,activeElements:o}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:`pl-flex pl-items-start pl-justify-end pl-mx-4 pl-mt-5 ${chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?"pl-h-[16px]":"pl-h-[60px]"}`,children:[chunk6RMNLQH2_js.ca("showTitle")&&jsxRuntime.jsx(Ct,{}),chunk6RMNLQH2_js.ca("isLock")&&jsxRuntime.jsx(It,{})]})),Mt=nl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ml=()=>(chunk6RMNLQH2_js.ea(({controller:{play:e}})=>({play:e}),reactRedux.shallowEqual),chunk6RMNLQH2_js.ea(({videoData:{videoElementSizeInfo:e,params:o}})=>({videoElementSizeInfo:e,params:o}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{className:`${!chunk6RMNLQH2_js.ca("isTouchScreen")&&"hover:pl-scale-125"} pl-transition-transform pl-ease-in-out pl-cursor-pointer`,onContextMenu:e=>e.preventDefault(),children:jsxRuntime.jsx(be__default.default,{alt:"",src:chunk6RMNLQH2_js.ca("isPlay")?chunkDQNYU4AM_js.a.bigPause:chunkDQNYU4AM_js.a.bigPlay,width:40,height:40,onClick:e=>chunk6KVFRDGD_js.a(e),onDoubleClick:e=>e.stopPropagation(),className:`${chunk6RMNLQH2_js.ca("isPlay")?"pl-big-play-icon":"pl-big-pause-icon"}`})})),Dt=ml;chunkWO4IQUGO_js.e();var cl=()=>jsxRuntime.jsxs("div",{className:"loader-spinner pl-absolute pl-top-[50%] pl-left-[50%] pl-mt-[-50px] pl-ml-[-42px] pl-w-screen pl-h-full pl-overflow-hidden",children:[jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"}),jsxRuntime.jsx("div",{className:"pl-bg-white"})]}),$t=cl;var ul=()=>{let[e,o]=react.useState(!1),[l,i]=react.useState(!1);chunk6RMNLQH2_js.ea(({controller:{lock:c,firstPlay:a}})=>({lock:c,firstPlay:a}),reactRedux.shallowEqual);let{activeElements:r,isLoading:p}=chunk6RMNLQH2_js.ea(({controller:{activeElements:c,isLoading:a}})=>({activeElements:c,isLoading:a}),reactRedux.shallowEqual);return react.useEffect(()=>{let c=null;return chunk6RMNLQH2_js.ca("isFirstPlay")||chunk6RMNLQH2_js.ca("isActiveElements")?c=setTimeout(()=>i(!0),100):i(!1),()=>clearTimeout(c)},[r]),react.useEffect(()=>{let c;return chunk6RMNLQH2_js.ca("isLoading")?c=setTimeout(()=>o(!0),chunk6RMNLQH2_js.ca("isFirstPlay")?0:chunkQHZJEU27_js.b):o(!1),()=>{clearTimeout(c),o(!1);}},[p]),jsxRuntime.jsx("main",{className:"pl-flex-1 pl-mt-1",children:e?jsxRuntime.jsx($t,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:l&&!chunk6RMNLQH2_js.ca("isLock")&&jsxRuntime.jsx("div",{id:"main-content",className:`pl-h-full pl-flex pl-justify-center pl-items-center pl-text-center pl-relative ${chunk6RMNLQH2_js.ca("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:jsxRuntime.jsxs("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:3},children:[!chunk6RMNLQH2_js.ca("isFirstPlay")&&jsxRuntime.jsx(chunkGX3CDH5D_js.a,{type:"forward"}),jsxRuntime.jsx(Dt,{}),!chunk6RMNLQH2_js.ca("isFirstPlay")&&jsxRuntime.jsx(chunkGX3CDH5D_js.a,{type:"backward"})]})})})})},Vt=ul;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Ge=e=>{let{videoElementSizeInfo:o}=chunk6RMNLQH2_js.M.getState().videoData,{duration:l}=chunk6RMNLQH2_js.M.getState().controller,i=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(i<=o.right&&i>0)return (i-o.left)/o.width*l},Y=e=>{let{videoElementSizeInfo:o}=chunk6RMNLQH2_js.M.getState().videoData,l=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(l<=o.right&&l>0)return l-o.left},zt=e=>{let{duration:o}=chunk6RMNLQH2_js.M.getState().controller;return e*chunk6RMNLQH2_js.ia()/o},he=e=>{e&&(e.style.opacity="0.0",e.style.pointerEvents="none",e.style.zIndex=-2);},vl=e=>{e.style.display="block",e.style.zIndex=5,e.style.opacity=chunk6RMNLQH2_js.M.getState().videoData.details.vtt?"1.0":"0.6",e.style.pointerEvents="auto",e.style.transition="opacity 1s ease-out";},gl=(e,o)=>{let{videoElementSizeInfo:l}=chunk6RMNLQH2_js.M.getState().videoData,i=document.getElementsByClassName("pl-progressTooltip")[0],r=document.getElementById("parent-player");i&&r&&(Y(e)>i.getBoundingClientRect().width/2&&Y(e)<l.right-l.left-i.getBoundingClientRect().width/2?o.style.left=`${Y(e)-i.offsetWidth/2}px`:Y(e)<(r.offsetLeft===0?i.offsetWidth:r.offsetLeft)?o.style.left="0px":chunk6RMNLQH2_js.fa().offsetLeft+chunk6RMNLQH2_js.fa().offsetWidth<Y(e)+i.offsetWidth&&(o.style.left=`${chunk6RMNLQH2_js.fa().offsetWidth-i.offsetWidth}px`));},xl=(e,o,l)=>{o&&vl(o),chunk6RMNLQH2_js.M.getState().videoData.details.vtt?gl(e,o):o.style.left=`${Y(e)-30}px`,chunk6RMNLQH2_js.M.dispatch(chunk6RMNLQH2_js.q(Number(Ge(e)))),l.textContent=`${chunk6RMNLQH2_js.P(Ge(e))}`;},ve=(e,o=!1)=>{let{videoElementSizeInfo:l}=chunk6RMNLQH2_js.M.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<=l.right&&p>l.left?(xl(e,i,r),o&&setTimeout(()=>he(i),2e3)):he(i);},Rt=e=>{let o=e.clientX!==void 0?e.clientX:e.touches[0].clientX;chunk6RMNLQH2_js.ha()&&(o<=e.view.innerWidth&&o>0?chunk6RMNLQH2_js.ha().style.width=`${Y(e)}px`:o<=e.view.innerWidth?chunk6RMNLQH2_js.ha().style.width=0:o>0&&(chunk6RMNLQH2_js.ha().style.width="100%"));},Xt=(e,o,l)=>{e.preventDefault(),e.stopPropagation(),l(!0);let i=chunk6RMNLQH2_js.M.dispatch,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX;r<=e.view.innerWidth&&r>0&&(i(chunk6RMNLQH2_js.k(!0)),i(chunk6RMNLQH2_js.l(!0)),sessionStorage.setItem("previousVideoTime",String(chunk6RMNLQH2_js.fa().currentTime)),e.target.setPointerCapture(e.pointerId),o.length>0&&o.map(p=>clearTimeout(p)));},Qe=e=>{e.preventDefault(),e.stopPropagation();let o=chunk6RMNLQH2_js.M.dispatch,{activePointerProgressBar:l}=chunk6RMNLQH2_js.M.getState().controller,{left:i}=chunk6RMNLQH2_js.M.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"),l&&(o(chunk6RMNLQH2_js.l(!0)),ve(e),Rt(e),chunk6RMNLQH2_js.fa().pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},Ht=(e,o,l,i)=>{i(!1),e.preventDefault(),e.stopPropagation();let r=chunk6RMNLQH2_js.M.dispatch,{duration:p}=chunk6RMNLQH2_js.M.getState().controller,{left:c,right:a}=chunk6RMNLQH2_js.M.getState().videoData.videoElementSizeInfo;e.target.removeEventListener("pointermove",Qe);let f=e.clientX!==void 0?e.clientX:e.touches[0].clientX,d=0;f>c&&f<a?d=Ge(e):f<c?d=0:f>0&&(d=p),chunk6RMNLQH2_js.ca("isStaticFormat")||chunk6KVFRDGD_js.i(chunk6RMNLQH2_js.fa().currentTime,d),chunk6RMNLQH2_js.fa().currentTime=d,chunk6RMNLQH2_js.M.getState().controller.activePointerProgressBar&&(r(chunk6RMNLQH2_js.k(!1)),r(chunk6RMNLQH2_js.l(!1)),chunk6RMNLQH2_js.fa().play(),ve(e,!0),sessionStorage.setItem("current-time",String(d)),Rt(e),bl(e,r,o,l));},bl=(e,o,l,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:c}=chunk6RMNLQH2_js.M.getState().popovers,{delayTurnOffControlbar:a}=chunk6RMNLQH2_js.M.getState().controller;e.pointerType==="touch"&&!c&&a&&o(chunk6RMNLQH2_js.f(!1));},chunkQHZJEU27_js.a);r.push(p),l(r);},Ut=()=>{let e=Date.now();chunk6RMNLQH2_js.fa().play().then(()=>chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.oa(Date.now()-e)));},Wt=e=>ve(e),Gt=()=>{let e=document.querySelector(".pl-progressTooltip");he(e);},Sl=e=>{let o=e.split("."),i=o[0].split(":");return {milliseconds:parseInt(o[1],10)||0,seconds:parseInt(i.pop(),10)||0,minutes:parseInt(i.pop(),10)||0,hours:parseInt(i.pop(),10)||0}},qt=e=>{let o=Sl(e);return parseInt(o.hours*(60*60)+o.minutes*60+o.seconds+o.milliseconds/1e3,10)},yl=e=>{let o=e.split(/#xywh=/i),l=o[0],r=o[1].match(/[0-9]+/gi);return {x:r[0],y:r[1],w:r[2],h:r[3],image:l}},wl=(e,o)=>e.indexOf("//")>=0?e:o.indexOf("//")===0?[o.replace(/\/$/gi,""),e.trim()].join("/"):o.indexOf("//")>0?[o.trim(),e.trim()].join("/"):e,Tl=(e,o)=>{let l={},i=o.split(/\/\w+\.vtt\s?/)[0];if(e=wl(e,i),!e.match(/#xywh=/i))return l.background='url("'+e+o.split(/\/\w+\.vtt\s?/)[1]+'")',l;let r=yl(e);return l.background='url("'+r.image+o.split(/\/\w+\.vtt\s?/)[1]+'") no-repeat -'+r.x+"px -"+r.y+"px",l.width=r.w+"px",l.height=r.h+"px",l.url=r.image,l},Qt=(e,o)=>{fetch(e).then(l=>{if(!l.ok)throw chunk6RMNLQH2_js.M.dispatch(chunk6RMNLQH2_js.r({...chunk6RMNLQH2_js.M.getState().videoData.details,vtt:void 0,vtt_mobile:void 0})),new Error("Network response was not ok");return l.text()}).then(l=>{let i=[];l.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 c=p.split(/[\r\n]/i),f=c[0].split(/ ?--> ?/i),d=f[0],T=f[1],u=c[1],x=Tl(u,e);i.push({start:qt(d),end:qt(T),css:x});}}),o(i);}).catch(l=>{console.error("Error fetching file:",l);});},Zt=(e,o,l)=>{for(let i=0;i<o.length;++i){let r=o[i];if(e>=r.start&&e<r.end){if(r.css.url&&!l[r.css.url]){let p={background:r.css.background,width:r.css.width,height:r.css.height};return l[r.css.url]=p,p}else if(r.css.url)return l[r.css.url]}}};var kl=()=>{let{details:e}=chunk6RMNLQH2_js.ea(({videoData:{details:a}})=>({details:a}),reactRedux.shallowEqual),{tooltipTime:o}=chunk6RMNLQH2_js.ea(({controller:{tooltipTime:a,activeElements:f,isFullScreen:d}})=>({tooltipTime:a,activeElements:f,isFullScreen:d}),reactRedux.shallowEqual),l={},[i,r]=react.useState(void 0),[p,c]=react.useState(chunk6RMNLQH2_js.ca("isTouchScreen")?e.vtt_mobile:e.vtt);return react.useEffect(()=>{c(e.vtt_mobile);},[e.vtt_mobile]),react.useEffect(()=>{p&&Qt(e.vtt_mobile,r);},[p]),chunk6RMNLQH2_js.ca("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:Zt(o,i,l)})}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100"})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{})},jt=react.memo(kl);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Il=(e,o)=>{react.useEffect(()=>{let l=i=>{!e.current||e.current.contains(i.target)||o(i);};return document.addEventListener("mousedown",l),document.addEventListener("touchstart",l),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("touchstart",l);}},[e,o]);},q=Il;chunkWO4IQUGO_js.e();var Ll=({name:e,className:o,dataMarker:l})=>jsxRuntime.jsx("img",{"data-marker":l,src:`${chunk6RMNLQH2_js.ja()}/${e}.png`,alt:e,className:o}),ge=Ll;var Dl=()=>{chunk6RMNLQH2_js.da();let {duration:o,activeElements:l}=chunk6RMNLQH2_js.ea(({controller:{duration:m,activeElements:y,isFullScreen:H}})=>({duration:m,activeElements:y,isFullScreen:H}),reactRedux.shallowEqual),{markers:i}=chunk6RMNLQH2_js.ea(({videoData:{markers:m,videoElementSizeInfo:y}})=>({markers:m,videoElementSizeInfo:y}),reactRedux.shallowEqual),[r,p]=react.useState(void 0),[c,a]=react.useState([]),[f,d]=react.useState({}),[T,u]=react.useState(!1),x=m=>o?chunk6RMNLQH2_js.ia()*m/o:0,A=(m,y,H,K,j,ee,me,Ve)=>{m.stopPropagation();let te=24*y/(chunk6RMNLQH2_js.ia()+5),oe=[],ze=0;Ve.map(U=>{U.time>y-te&&U.time<y+te&&(oe.push(U),ze+=U.time);}),oe.length>1?a(oe):(oe=[],a([]),h(m,y,H,K,j,ee,me));},h=(m,y,H,K,j,ee,me)=>{m.stopPropagation(),ve(m,me),chunk6KVFRDGD_js.i(chunk6RMNLQH2_js.fa().currentTime,y),chunk6RMNLQH2_js.fa().currentTime=y,chunk6RMNLQH2_js.ha()&&(chunk6RMNLQH2_js.ha().style.width=x(y)),chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.Ba(H,y,K,j,ee));};react.useEffect(()=>{chunk6RMNLQH2_js.ca("isActiveElements")||a([]);},[l]);let N=react.useRef(null);q(N,()=>a([])),react.useEffect(()=>{if(c.length>0){let m=chunk6RMNLQH2_js.aa(document.getElementsByClassName("pl-overlapMarkers")[0]);if(m==="inViewport")return u(!0),d({left:x(c[0].time)});if(m==="OutViewPortFromLeft")return u(!1),d({left:0});if(m==="OutViewPortFromRight")return u(!1),d({right:0})}},[c,document.getElementsByClassName("pl-overlapMarkers")[0]]);let L=m=>{m.preventDefault(),chunk6RMNLQH2_js.ca("isTouchScreen")&&p(Number(m.target.getAttribute("data-marker")));};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i.map(m=>jsxRuntime.jsx("div",{onContextMenu:L,"data-marker":m.time,onClick:y=>A(y,m.time,m.id,m.title,m.description,m.sticker,!0,i),onDoubleClick:y=>y.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 ${chunk6RMNLQH2_js.ca("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:x(m.time),zIndex:6},"data-marker":m.time,children:[m.isPersonal!==null&&m.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(ge,{dataMarker:m.time,name:m.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},m.id)),c.length>0&&jsxRuntime.jsx("div",{className:`pl-overlapMarkers ${T?"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:N,style:f,children:c.map(m=>jsxRuntime.jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":m.time,onClick:y=>h(y,m.time,m.id,m.title,m.description,m.sticker,!0),onDoubleClick:y=>y.stopPropagation(),children:jsxRuntime.jsx(ge,{dataMarker:m.time,name:m.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},m.id))})]})},lo=react.memo(Dl);var Ol=()=>{let[e,o]=react.useState(!1);react.useEffect(()=>{he(document.querySelector(".progressTooltip"));},[]);let{duration:l,currentTime:i,bufferedTimeWidth:r}=chunk6RMNLQH2_js.ea(({controller:{duration:a,currentTime:f,bufferedTimeWidth:d}})=>({duration:a,currentTime:f,bufferedTimeWidth:d}),reactRedux.shallowEqual);chunk6RMNLQH2_js.ea(({videoData:{params:a,videoElementSizeInfo:f}})=>({params:a,videoElementSizeInfo:f}),reactRedux.shallowEqual);let[p,c]=react.useState([]);return jsxRuntime.jsxs("div",{className:`${chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"} pl-relative`,children:[jsxRuntime.jsxs("div",{className:"pl-relative",children:[jsxRuntime.jsx(jt,{}),jsxRuntime.jsx(lo,{})]}),jsxRuntime.jsx("div",{className:"pl-w-full pl-flex pl-items-end",onPointerDown:a=>Xt(a,p,o),onPointerMove:Qe,onPointerUp:a=>Ht(a,c,p,o),onMouseMove:Wt,onMouseOut:Gt,onClick:Ut,onDoubleClick:a=>a.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/l*chunk6RMNLQH2_js.ia()}px`}})]})]})})]})},so=Ol;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Bl=({title:e,className:o})=>jsxRuntime.jsx("span",{className:`pl-absolute pl-w-max pl-bg-paper pl-text-white/[0.9] ${chunk6RMNLQH2_js.ca("isFullScreen")?"pl-bottom-[300%]":"pl-bottom-[270%]"} pl-rounded-[8px] pl-text-[10px] pl-px-4 pl-py-[13px] pl-font-normal ${o}`,children:e}),I=Bl;var Hl=()=>{let{isFullScreen:e}=chunk6RMNLQH2_js.ea(({controller:{firstPlay:r,isFullScreen:p}})=>({firstPlay:r,isFullScreen:p}),reactRedux.shallowEqual),[o,l]=react.useState(!1),i=chunk6RMNLQH2_js.da();return react.useEffect(()=>{chunk6RMNLQH2_js.ca("isFirstPlay")||i(chunk6RMNLQH2_js.f(!1));},[e]),jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(be__default.default,{src:chunk6RMNLQH2_js.ca("isFullScreen")?chunkDQNYU4AM_js.a.nonFullScreen:chunkDQNYU4AM_js.a.fullScreen,alt:"fullScreen-icon",className:"pl-cursor-pointer",width:20,height:20,onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&l(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&l(!1),onClick:()=>{chunk6KVFRDGD_js.f(),chunk6KVFRDGD_js.g();}}),o&&jsxRuntime.jsx(I,{title:`${chunk6RMNLQH2_js.ca("isFullScreen")?"\u062E\u0631\u0648\u062C \u0627\u0632":""} \u062A\u0645\u0627\u0645 \u0635\u0641\u062D\u0647`})]})},po=Hl;chunkWO4IQUGO_js.e();var Zl=()=>{let[e,o]=react.useState(!1),l=chunk6RMNLQH2_js.da(),{params:i,details:r}=chunk6RMNLQH2_js.ea(({videoData:{params:p,details:c}})=>({params:p,details:c}),reactRedux.shallowEqual);return jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(be__default.default,{alt:"",onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&o(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&o(!1),src:chunkDQNYU4AM_js.a.pictureInPicture,width:20,height:20,className:"pl-flex pl-cursor-pointer",onClick:()=>{i.onClickMiniPlayerIcon&&(localStorage.removeItem("close-miniPlayer"),chunk6RMNLQH2_js.fa().pause(),l(chunk6RMNLQH2_js.a(!1)),i.onClickMiniPlayerIcon({video:r||void 0,id:i.type==="vod"?i.id:window.btoa(i.id),type:i.type,currentTime:chunk6RMNLQH2_js.fa().currentTime}));}}),e&&jsxRuntime.jsx(I,{title:"\u062A\u0635\u0648\u06CC\u0631 \u062F\u0631 \u062A\u0635\u0648\u06CC\u0631"})]})},mo=Zl;chunkWO4IQUGO_js.e();var ti=()=>{let[e,o]=react.useState(!1),l=chunk6RMNLQH2_js.da(),{settings:i}=chunk6RMNLQH2_js.ea(({user:{settings:a}})=>({settings:a}),reactRedux.shallowEqual),r=react.useRef(i.volume),p=()=>{if(r.current!==i.volume){let{settings:a}=chunk6RMNLQH2_js.M.getState().user;chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.sa(r.current,a.volume)),r.current=a.volume,l(chunk6RMNLQH2_js.G({...a,volume:a.volume}));}},c=a=>{let{settings:f}=chunk6RMNLQH2_js.M.getState().user;a==="mute"?(chunk6KVFRDGD_js.d(0),chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.sa(f.volume,0))):(chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.sa(f.volume,100)),chunk6KVFRDGD_js.d(100));};return jsxRuntime.jsxs("div",{className:"pl-relative pl-inline-flex pl-items-center pl-gap-2 pl-sound-icon",children:[!chunk6RMNLQH2_js.ca("isTouchScreen")&&jsxRuntime.jsx("input",{onMouseUp:p,type:"range",min:"0",max:"100",value:i.volume,onChange:a=>chunk6KVFRDGD_js.d(+a.target.value),className:"pl-soundVolume pl-cursor-pointer rounded-full",style:{background:`linear-gradient(to right, white ${i.volume}%, rgba(255,255,255,0.3) 0)`}}),jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(be__default.default,{src:chunk6RMNLQH2_js.ca("hasSound")?chunkDQNYU4AM_js.a.unMute:chunkDQNYU4AM_js.a.mute,alt:chunk6RMNLQH2_js.ca("hasSound")?"unmute-icon":"mute-icon",className:"pl-flex pl-items-center pl-cursor-pointer",width:20,height:20,onClick:()=>chunk6RMNLQH2_js.ca("hasSound")?c("mute"):c("unmute"),onDoubleClick:a=>a.stopPropagation(),onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&o(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&o(!1)}),e&&jsxRuntime.jsx(I,{className:"pl-left-0",title:"\u0635\u062F\u0627"})]})]})},uo=ti;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var oi=({className:e,onClick:o})=>jsxRuntime.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,onClick:o,children:[jsxRuntime.jsx("path",{d:"M6 6L18.7742 18.7742",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),jsxRuntime.jsx("path",{d:"M6 18.7744L18.7742 6.00022",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),ho=oi;var vo=react.forwardRef(({children:e,status:o,onClose:l,type:i,classNames:r,parentClassNames:p,styles:c,isBlurBackground:a,isFullHeight:f=!1,isHeader:d,isHasCatchUpLineOnTop:T=!1,animation:u,scrollbar:x=!1,isFocusOnInput:A=!1,headerTitle:h="",customHeader:N,headerClassName:L,showCloseIcon:m=!0},y)=>{let[H,K]=react.useState(o),[j,ee]=react.useState(0),[me,Ve]=react.useState(0),{videoElementSizeInfo:qe}=chunk6RMNLQH2_js.ea(({videoData:{videoElementSizeInfo:V}})=>({videoElementSizeInfo:V}),reactRedux.shallowEqual),te=react.useRef(0);react.useEffect(()=>{let V;return o?K(!0):V=setTimeout(()=>{l(!1),ee(0),K(!1);},500),()=>clearTimeout(V)},[o]);let oe=V=>{let jo=document.getElementById("popover-content");te.current||(te.current=window.innerHeight-qe.top-jo?.getBoundingClientRect().top),V.stopPropagation(),window.innerHeight-qe.top-V.touches[0].clientY<te.current&&ee(window.innerHeight-V.touches[0].clientY),Ve(1000005);},ze=()=>{l();},U=jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[a&&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 ${o?"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:f&&!A?me:1000004},children:jsxRuntime.jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9]
|
|
2
|
+
${f&&"pl-h-full"}
|
|
3
|
+
${u||(window.innerWidth>768&&i==="modal"?o?"animate__fadeIn":"animate__fadeOut":o?"animate__fadeInUp":"animate__fadeOutDown")}
|
|
4
|
+
${chunk6RMNLQH2_js.ca("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:j||"max-content",maxHeight:"80vh",zIndex:1000004,...c},ref:y,id:"popover-content",children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsxs("div",{onTouchMove:T?oe:()=>{},onTouchEndCapture:T?ze:()=>{},className:"pl-py-4",children:[T&&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-mb-4 pl-border-b pl-border-secondary-300 dark:pl-border-secondary-400 pl-mx-4 ${L}`,children:N||jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-justify-between pl-py-[19px]",children:[jsxRuntime.jsx("p",{className:"pl-text-[18px] pl-text-black dark:pl-text-white pl-font-bold",children:h}),m&&jsxRuntime.jsx(ho,{className:"pl-cursor-pointer pl-stroke-secondary-400 dark:pl-stroke-dark-5",onClick:l})]})})]}),jsxRuntime.jsx("div",{className:`pl-overflow-y-auto pl-h-full pl-w-full ${!x&&"no-scrollbar"}`,onTouchMove:V=>V.stopPropagation(),children:e})]})})})]});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:H&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:i==="modal"?reactDom.createPortal(jsxRuntime.jsx(jsxRuntime.Fragment,{children:U}),document.getElementById("dialog-react-root-videoPlayer")):jsxRuntime.jsx("div",{children:U})})})});vo.displayName="popover";var X=vo;chunkWO4IQUGO_js.e();var di=({setSection:e,showQualityLevelsIcon:o})=>{let l=chunk6RMNLQH2_js.da(),{qualityLevels:i}=chunk6RMNLQH2_js.ea(({controller:{qualityLevels:u,manualQuality:x,autoQuality:A}})=>({qualityLevels:u,manualQuality:x,autoQuality:A}),reactRedux.shallowEqual),{settings:r}=chunk6RMNLQH2_js.ea(({user:{settings:u}})=>({settings:u}),reactRedux.shallowEqual),{qualityLevelsPopover:p}=chunk6RMNLQH2_js.ea(({popovers:{qualityLevelsPopover:u}})=>({qualityLevelsPopover:u}),reactRedux.shallowEqual);chunk6RMNLQH2_js.ea(({videoData:{params:u,videoElementSizeInfo:x}})=>({params:u,videoElementSizeInfo:x}),reactRedux.shallowEqual);let[c,a]=react.useState(!1);i=[-1,...i];let f=(u,x)=>chunk6RMNLQH2_js.ca("isAutoQuality")&&x===-1?!0:!chunk6RMNLQH2_js.ca("isAutoQuality")&&r.quality===u,d=react.useRef(null);q(d,()=>l(chunk6RMNLQH2_js.D(!1)));let T=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((u,x)=>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 ${f(x-1,u)&&"pl-bg-primary/[0.12] !pl-cursor-default"} ${chunk6RMNLQH2_js.ca("isTouchScreen")?"pl-py-[13.5px]":"pl-py-[9.5px]"}`,onClick:f(x-1,u)?()=>{}:()=>{chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.na(u===-1?"auto":`${u}P`)),l(chunk6RMNLQH2_js.f(!1)),l(chunk6RMNLQH2_js.B(!1)),l(chunk6RMNLQH2_js.D(!1)),l(chunk6RMNLQH2_js.G({...r,quality:u===-1?-1:x-1})),e&&e("main");},children:[!chunk6RMNLQH2_js.ca("isTouchScreen")&&f(x-1,u)&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[11.8px]",children:jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_js.a.tick,alt:"",width:12,height:9})}),chunk6RMNLQH2_js.ca("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 ${f(x-1,u)&&"pl-border-primary"}`,children:f(x-1,u)&&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] ${chunk6RMNLQH2_js.ca("isTouchScreen")?"pl-pr-[21px]":"pl-pr-[10px]"}`,children:u===-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)"})]}):`${u}p`})]},x))})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_js.a.qualitySetting1,alt:"speed-icon",width:20,height:20,onClick:()=>l(chunk6RMNLQH2_js.D(!p)),onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&!chunk6RMNLQH2_js.ca("showQualityLevelsPopover")&&a(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&a(!1),className:"pl-cursor-pointer"}),c&&jsxRuntime.jsx(I,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsxRuntime.jsx(X,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunk6RMNLQH2_js.ca("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]"} ${chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${chunk6RMNLQH2_js.ca("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>l(chunk6RMNLQH2_js.D(!1)),type:chunk6RMNLQH2_js.ca("isTouchScreen")?"modal":"popover",isBlurBackground:chunk6RMNLQH2_js.ca("isTouchScreenPortrait"),ref:chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?d:void 0,isHeader:chunk6RMNLQH2_js.ca("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunk6RMNLQH2_js.ca("isTouchScreen"),children:T})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:T})})},Fe=react.memo(di);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ui=({className:e,onClick:o,onMouseOver:l,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:o,onMouseOver:l,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"})]}),De=ui;var bi=[.5,.75,1,1.25,1.5,1.75,2],Si=({setSection:e,showSpeedIcon:o})=>{let l=chunk6RMNLQH2_js.da();chunk6RMNLQH2_js.ea(({videoData:{videoElementSizeInfo:d,params:T}})=>({videoElementSizeInfo:d,params:T}),reactRedux.shallowEqual);let{speedPopover:i}=chunk6RMNLQH2_js.ea(({popovers:{speedPopover:d}})=>({speedPopover:d}),reactRedux.shallowEqual),{settings:r}=chunk6RMNLQH2_js.ea(({user:{settings:d}})=>({settings:d}),reactRedux.shallowEqual),p=react.useRef(null),[c,a]=react.useState(!1);q(p,()=>l(chunk6RMNLQH2_js.C(!1))),react.useEffect(()=>{chunk6RMNLQH2_js.fa()&&(chunk6RMNLQH2_js.fa().playbackRate=r.speed);},[]);let f=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:bi.map((d,T)=>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 ${r.speed===d&&"pl-bg-primary/[0.12] !pl-cursor-default"} ${chunk6RMNLQH2_js.ca("isTouchScreen")?"pl-py-[13.5px]":"pl-py-[9.5px]"}`,onClick:r.speed===d?()=>{}:()=>{chunk6RMNLQH2_js.ca("isStaticFormat")||chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.ma(d)),l(chunk6RMNLQH2_js.f(!1)),l(chunk6RMNLQH2_js.B(!1)),l(chunk6RMNLQH2_js.C(!1)),l(chunk6RMNLQH2_js.G({...r,speed:d})),chunk6RMNLQH2_js.fa().playbackRate=d,e&&e("main");},children:[!chunk6RMNLQH2_js.ca("isTouchScreen")&&r.speed===d&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[11.8px]",children:jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_js.a.tick,alt:"",width:12,height:9})}),chunk6RMNLQH2_js.ca("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 ${r.speed===d&&"pl-border-primary"}`,children:r.speed===d&&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] ${chunk6RMNLQH2_js.ca("isTouchScreen")?"pl-pr-[21px]":"pl-pr-[10px]"}`,children:d})]},T))})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:o?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:p,children:[jsxRuntime.jsx(De,{className:"pl-size-5 pl-cursor-pointer size-5 pl-fill-white",onClick:()=>l(chunk6RMNLQH2_js.C(!i)),onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&!chunk6RMNLQH2_js.ca("showSpeedPopover")&&a(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&a(!1)}),c&&jsxRuntime.jsx(I,{title:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx(X,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunk6RMNLQH2_js.ca("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]"} ${chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunk6RMNLQH2_js.ca("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>l(chunk6RMNLQH2_js.C(!1)),type:chunk6RMNLQH2_js.ca("isTouchScreen")?"modal":"popover",isBlurBackground:chunk6RMNLQH2_js.ca("isTouchScreenPortrait"),ref:chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?p:void 0,isHeader:chunk6RMNLQH2_js.ca("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunk6RMNLQH2_js.ca("isTouchScreen"),children:f})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:f})})},$e=Si;chunkWO4IQUGO_js.e();var yi=({enabled:e,setEnabled:o})=>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:o,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"}`})}),yo=yi;chunkWO4IQUGO_js.e();var Pi=({setSection:e})=>{let o=chunk6RMNLQH2_js.da(),{subtitles:l,selectedSubtitle:i}=chunk6RMNLQH2_js.ea(({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:()=>{o(chunk6RMNLQH2_js.f(!1)),o(chunk6RMNLQH2_js.B(!1)),o(chunk6RMNLQH2_js.A(void 0)),e("main");let r=Object.values(chunk6RMNLQH2_js.fa().textTracks).find(p=>p.mode==="showing");r&&(r.mode="disabled"),o(chunk6RMNLQH2_js.z("")),chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.Aa("empty"));},children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),l.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:()=>{o(chunk6RMNLQH2_js.f(!1)),o(chunk6RMNLQH2_js.B(!1)),o(chunk6RMNLQH2_js.A(r)),chunk6RMNLQH2_js.fa().textTracks[p].mode="showing",e("main"),chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.Aa(r.language));},children:jsxRuntime.jsx("span",{children:r.label})},p))]})})},wo=react.memo(Pi);var Ei=()=>{let e=chunk6RMNLQH2_js.da(),{selectedSubtitle:o}=chunk6RMNLQH2_js.ea(({videoData:{params:f,subtitles:d,selectedSubtitle:T}})=>({params:f,subtitles:d,selectedSubtitle:T}),reactRedux.shallowEqual),{settingPopover:l}=chunk6RMNLQH2_js.ea(({popovers:{settingPopover:f}})=>({settingPopover:f}),reactRedux.shallowEqual),[i,r]=react.useState("main"),[p,c]=react.useState(!1),a=react.useRef(null);return q(a,()=>{e(chunk6RMNLQH2_js.B(!1)),setTimeout(()=>r("main"),500);}),jsxRuntime.jsxs("div",{className:`pl-inline-flex ${chunk6RMNLQH2_js.ca("isLandscape")&&"pl-relative"}`,ref:a,children:[jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-relative pl-cursor-pointer",onClick:()=>e(chunk6RMNLQH2_js.B(!l)),onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&!chunk6RMNLQH2_js.ca("showSettingPopover")&&c(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&c(!1),children:[jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_js.a.settings,alt:"",width:20,height:20}),p&&jsxRuntime.jsx(I,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A"})]}),jsxRuntime.jsx(X,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunk6RMNLQH2_js.ca("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]"} ${chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[285px] tablet:!pl-mx-auto"} ${chunk6RMNLQH2_js.ca("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"}`,status:l,onClose:()=>{e(chunk6RMNLQH2_js.B(!1)),setTimeout(()=>r("main"),500);},type:chunk6RMNLQH2_js.ca("isTouchScreen")?"modal":"popover",isBlurBackground:chunk6RMNLQH2_js.ca("isTouchScreenPortrait"),ref:chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?a:void 0,isHeader:chunk6RMNLQH2_js.ca("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunk6RMNLQH2_js.ca("isTouchScreen"),children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i==="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:[!chunk6RMNLQH2_js.ca("isStaticFormat")&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>r("qualityLevels"),children:[jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_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(be__default.default,{src:chunkDQNYU4AM_js.a.chevronLeft,alt:"",width:16,height:16})]})}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>r("speed"),children:[jsxRuntime.jsx(De,{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(be__default.default,{src:chunkDQNYU4AM_js.a.chevronLeft,alt:"",width:16,height:16})]}),chunk6RMNLQH2_js.ca("hasSubtitles")&&chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",children:[jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_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(yo,{enabled:!!o,setEnabled:chunk7OLT67MH_js.b})]})]}),i==="qualityLevels"&&jsxRuntime.jsx(Fe,{setSection:r}),i==="speed"&&jsxRuntime.jsx($e,{setSection:r}),i==="subtitles"&&jsxRuntime.jsx(wo,{setSection:r})]})})]})},ko=react.memo(Ei);chunkWO4IQUGO_js.e();var Ii=()=>{let{duration:e,currentTime:o}=chunk6RMNLQH2_js.ea(({controller:{duration:l,currentTime:i}})=>({duration:l,currentTime:i}),reactRedux.shallowEqual);return chunk6RMNLQH2_js.ea(({videoData:{videoElementSizeInfo:l,params:i}})=>({videoElementSizeInfo:l,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 ${chunk6RMNLQH2_js.ca("isFullScreen")?"pl-ml-8":"pl-ml-4"} ${chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?"!pl-ml-0":"pl-absolute pl-left-0 pl-bottom-full pl-mb-[33px]"}`,children:[jsxRuntime.jsx("span",{children:chunk6RMNLQH2_js.P(e)}),jsxRuntime.jsx("span",{children:" / "}),jsxRuntime.jsx("span",{children:chunk6RMNLQH2_js.P(o)})]})})},Be=Ii;chunkWO4IQUGO_js.e();var Fi=()=>jsxRuntime.jsx(be__default.default,{src:chunkDQNYU4AM_js.a.unlock,alt:"unlock-icon",width:20,height:20,onClick:()=>chunk6KVFRDGD_js.h("lock")}),Co=Fi;chunkWO4IQUGO_js.e();var Bi=()=>{let[e,o]=react.useState(!1);return chunk6RMNLQH2_js.ea(({videoData:{selectedSubtitle:l,videoElementSizeInfo:i,params:r}})=>({selectedSubtitle:l,videoElementSizeInfo:i,params:r}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(be__default.default,{alt:"subtitle-icon",src:chunk6RMNLQH2_js.ca("isSelectedSubtitle")?chunkDQNYU4AM_js.a.subtitleFill:chunkDQNYU4AM_js.a.subtitleOutline,className:"pl-cursor-pointer",width:20,height:20,onClick:chunk7OLT67MH_js.b,onDoubleClick:l=>l.stopPropagation(),onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&o(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&o(!1)}),e&&jsxRuntime.jsx(I,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},Io=Bi;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var zi=e=>(chunk6RMNLQH2_js.ea(({videoData:{videoElementSizeInfo:o,params:l}})=>({videoElementSizeInfo:o,params:l}),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"})]})),Lo=zi;var Ui=()=>{react.useState(0);react.useState(void 0);let [r,p]=react.useState(!1),{markers:c,params:a}=chunk6RMNLQH2_js.ea(({videoData:{markers:h,params:N,videoElementSizeInfo:L}})=>({markers:h,params:N,videoElementSizeInfo:L}),reactRedux.shallowEqual),{markersListPopover:f}=chunk6RMNLQH2_js.ea(({popovers:{markersListPopover:h}})=>({markersListPopover:h}),reactRedux.shallowEqual),d=react.useRef(null),T=chunk6RMNLQH2_js.da();q(d,()=>T(chunk6RMNLQH2_js.E(!1)));let x=(h,N,L,m,y)=>{chunk6RMNLQH2_js.ha()&&(chunk6RMNLQH2_js.ha().style.width=`${zt(h)}px`),chunk6KVFRDGD_js.i(chunk6RMNLQH2_js.fa().currentTime,h),chunk6RMNLQH2_js.fa().currentTime=h,T(chunk6RMNLQH2_js.E(!1)),chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.Ba(N,h,L,m,y));},A=()=>{T(chunk6RMNLQH2_js.E(!f));};return jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-p-1 pl-relative ${chunk6RMNLQH2_js.ca("showMarkerListPopover")&&"pl-bg-secondary-50/[0.4] pl-rounded-[4px]"}`,ref:d,children:[jsxRuntime.jsx(Lo,{className:"pl-cursor-pointer pl-fill-dark-5",onClick:A,onMouseOver:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&p(!0),onMouseLeave:()=>!chunk6RMNLQH2_js.ca("isTouchScreen")&&p(!1)}),r&&jsxRuntime.jsx(I,{title:"\u0644\u06CC\u0633\u062A \u0646\u0634\u0627\u0646\u06AF\u0631\u0647\u0627 (e)",className:"!pl-bottom-[180%] !pl-right-[-48px]"}),jsxRuntime.jsx(X,{classNames:"!pl-p-0 pl-left-0 !pl-bg-white dark:!pl-bg-dark-13 !pl-rounded-[4px] pl-mb-[33px]",status:chunk6RMNLQH2_js.ca("showMarkerListPopover"),onClose:()=>{T(chunk6RMNLQH2_js.E(!1));},headerTitle:"\u0646\u0634\u0627\u0646\u06AF\u0631\u0647\u0627",isHeader:!0,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:c.map(h=>jsxRuntime.jsx("div",{onClick:()=>x(h.time,h.id,h.title,h.description,h.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:[h.banner||!h.sticker?jsxRuntime.jsx(be__default.default,{src:h.banner?h.banner:"IMAGES.defaultMarkersListItemIcon",width:40,height:40,alt:h.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(ge,{name:h.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:h.title})}),jsxRuntime.jsx("p",{className:"pl-text-[13px] pl-font-normal pl-w-[200px] pl-whitespace-nowrap pl-overflow-hidden pl-text-ellipsis",children:h.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:chunk6RMNLQH2_js.P(h.time)})]})},h.id))})})})]})},Ao=Ui;var Gi=()=>{chunk6RMNLQH2_js.ea(({controller:{isFullScreen:o}})=>({isFullScreen:o}),reactRedux.shallowEqual),chunk6RMNLQH2_js.ea(({videoData:{videoElementSizeInfo:o,params:l}})=>({videoElementSizeInfo:o,params:l}),reactRedux.shallowEqual);let e="";return chunk6RMNLQH2_js.ca("isTouchScreen")?chunk6RMNLQH2_js.ca("isFullScreen")?e="pl-mx-6":e="pl-mx-4":chunk6RMNLQH2_js.ca("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(po,{}),chunk6RMNLQH2_js.ca("isTouchScreenLandscape")&&jsxRuntime.jsx(Co,{}),chunk6RMNLQH2_js.ca("showPictureInPicture")&&jsxRuntime.jsx(mo,{}),chunk6RMNLQH2_js.ca("showSettingIcon")&&jsxRuntime.jsx(ko,{}),chunk6RMNLQH2_js.ca("isFullScreen")&&!chunk6RMNLQH2_js.ca("isStaticFormat")&&jsxRuntime.jsx(Fe,{showQualityLevelsIcon:!0}),(chunk6RMNLQH2_js.ca("isFullScreen")||chunk6RMNLQH2_js.ca("isStaticFormat"))&&jsxRuntime.jsx($e,{showSpeedIcon:!0}),chunk6RMNLQH2_js.ca("hasSubtitles")&&!chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&jsxRuntime.jsx(Io,{})]}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-5",children:[chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&jsxRuntime.jsx(Be,{}),!chunk6RMNLQH2_js.ca("isIOS")&&jsxRuntime.jsx(uo,{}),chunk6RMNLQH2_js.ca("hasMarkers")&&jsxRuntime.jsx(Ao,{})]})]})},Do=react.memo(Gi);chunkWO4IQUGO_js.e();var Qi=()=>{let{subtitleText:e}=chunk6RMNLQH2_js.ea(({videoData:{subtitleText:l,selectedSubtitle:i}})=>({subtitleText:l,selectedSubtitle:i}),reactRedux.shallowEqual);chunk6RMNLQH2_js.ea(({controller:{isFullScreen:l}})=>({isFullScreen:l}),reactRedux.shallowEqual);let o=()=>{let l="";return chunk6RMNLQH2_js.ca("isLock")?l="pl-bottom-3":chunk6RMNLQH2_js.ca("isActiveElements")?chunk6RMNLQH2_js.ca("isTouchScreenPortrait")?l="pl-bottom-[45px]":chunk6RMNLQH2_js.ca("isFullScreen")?l="pl-bottom-[120px]":l="pl-bottom-[85px]":chunk6RMNLQH2_js.ca("isActiveElements")||(l="pl-bottom-3"),l};return jsxRuntime.jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:`pl-absolute pl-w-full pl-px-6 pl-text-center pl-text-[14px] ${chunk6RMNLQH2_js.ca("isFullScreen")&&"pl-text-[16px]"} pl-text-white pl-font-normal ${o()}`,children:chunk6RMNLQH2_js.$(e).map((l,i)=>jsxRuntime.jsx("p",{className:"pl-mx-auto",style:{textShadow:"0 0 4px #000000"},children:chunk6RMNLQH2_js.ba(l)},i))})},Oo=Qi;var Zi=()=>{chunk6RMNLQH2_js.ea(({controller:{lock:o,isFullScreen:l,isLoading:i,activeElements:r}})=>({lock:o,isFullScreen:l,isLoading:i,activeElements:r}),reactRedux.shallowEqual),chunk6RMNLQH2_js.ea(({videoData:{subtitles:o,selectedSubtitle:l}})=>({subtitles:o,selectedSubtitle:l}),reactRedux.shallowEqual);let e="";return chunk6RMNLQH2_js.ca("isTouchScreen")?chunk6RMNLQH2_js.ca("isFullScreen")?e="pl-gap-6 pl-mb-6":e="pl-gap-6 pl-mb-0":chunk6RMNLQH2_js.ca("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},children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[chunk6RMNLQH2_js.ca("showSubtitle")&&jsxRuntime.jsx(Oo,{}),!chunk6RMNLQH2_js.ca("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} ${chunk6RMNLQH2_js.ca("isActiveElements")&&!chunk6RMNLQH2_js.ca("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[!chunk6RMNLQH2_js.ca("isTouchScreenPortrait")&&jsxRuntime.jsx(Be,{}),chunk6RMNLQH2_js.ca("showProgressbar")&&jsxRuntime.jsx(so,{}),jsxRuntime.jsx(Do,{})]})})]})})},zo=Zi;chunkWO4IQUGO_js.e();var Yi=Ro__default.default(()=>import('./staticVideoTag-CYVERXTD.js')),Ji=Ro__default.default(()=>import('./nonStaticVideoTag-RFEJFQEN.js')),Ki=()=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:chunk6RMNLQH2_js.ca("isStaticFormat")?jsxRuntime.jsx(Yi,{}):jsxRuntime.jsx(Ji,{})}),Xo=Ki;chunkWO4IQUGO_js.e();var or=()=>{let e=chunk6RMNLQH2_js.da();chunk6RMNLQH2_js.ea(({videoData:{params:o}})=>({params:o}),reactRedux.shallowEqual),react.useEffect(()=>{let o=()=>{document.fullscreenElement?e(chunk6RMNLQH2_js.h(!0)):(e(chunk6RMNLQH2_js.h(!1)),chunk6KVFRDGD_js.j(),chunk6RMNLQH2_js.la(chunk6RMNLQH2_js.qa("exitFullScreen")));};document.addEventListener&&(document.addEventListener("webkitfullscreenchange",o,!1),document.addEventListener("mozfullscreenchange",o,!1),document.addEventListener("fullscreenchange",o,!1),document.addEventListener("MSFullscreenChange",o,!1));},[]);},Ho=or;chunkWO4IQUGO_js.e();var ir=(e,o)=>{let l=chunk6RMNLQH2_js.da(),{activeElements:i}=chunk6RMNLQH2_js.ea(({controller:{activeElements:a}})=>({activeElements:a}),reactRedux.shallowEqual),r=react.useRef(null),p=react.useRef(e),c=react.useRef(o);react.useEffect(()=>{p.current=e;},[e]),react.useEffect(()=>{c.current=o;},[o]),react.useEffect(()=>{let a=!1,f=u=>{let{activeElements:x,isEnded:A}=chunk6RMNLQH2_js.M.getState().controller;A?l(chunk6RMNLQH2_js.f(!0)):u.pointerType==="mouse"&&(clearTimeout(r.current),x?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward"].includes(u.target.id)&&(a=!0):l(chunk6RMNLQH2_js.f(!0)),r.current=setTimeout(()=>{let{settingPopover:h,speedPopover:N,qualityLevelsPopover:L}=chunk6RMNLQH2_js.M.getState().popovers,{play:m}=chunk6RMNLQH2_js.M.getState().controller;!h&&!N&&!L&&m&&a&&l(chunk6RMNLQH2_js.f(!1));},chunkQHZJEU27_js.a));},d=u=>{setTimeout(()=>{let{activeElements:x,isEnded:A,firstPlay:h}=chunk6RMNLQH2_js.M.getState().controller;if(clearTimeout(r.current),A)return l(chunk6RMNLQH2_js.f(!0));chunk6RMNLQH2_js.O()&&!h&&!p.current&&!c.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward"].includes(u.target.id)||chunk6RMNLQH2_js.R(u,"playerElements")?(l(chunk6RMNLQH2_js.f(!x)),r.current=setTimeout(()=>{let{settingPopover:N,speedPopover:L,qualityLevelsPopover:m}=chunk6RMNLQH2_js.M.getState().popovers;!N&&!L&&!m&&l(chunk6RMNLQH2_js.f(!1));},chunkQHZJEU27_js.a)):r.current=setTimeout(()=>{let{settingPopover:N,speedPopover:L,qualityLevelsPopover:m}=chunk6RMNLQH2_js.M.getState().popovers;!N&&!L&&!m&&l(chunk6RMNLQH2_js.f(!1));},chunkQHZJEU27_js.a));},200);},T=()=>{clearTimeout(r.current),r.current=setTimeout(()=>{let{activeElements:u,isEnded:x}=chunk6RMNLQH2_js.M.getState().controller,{settingPopover:A,speedPopover:h,qualityLevelsPopover:N}=chunk6RMNLQH2_js.M.getState().popovers;x?l(chunk6RMNLQH2_js.f(!0)):!A&&!h&&!N&&u&&!x&&l(chunk6RMNLQH2_js.f(!u));},chunkQHZJEU27_js.a);};return document.getElementById("video-area").addEventListener("touchstart",d),document.getElementById("video-area").addEventListener("touchmove",T),document.getElementById("video-area").addEventListener("pointermove",f),()=>{let u=document.getElementById("video-area");u&&(u.removeEventListener("touchstart",d),u.removeEventListener("touchmove",T),u.removeEventListener("pointermove",f));}},[i,e,o]);},Uo=ir;chunkWO4IQUGO_js.e();var nr=()=>{let{firstPlay:e,isFullScreen:o}=chunk6RMNLQH2_js.ea(({controller:{firstPlay:l,isFullScreen:i}})=>({firstPlay:l,isFullScreen:i}),reactRedux.shallowEqual);react.useEffect(()=>{if(chunk6RMNLQH2_js.fa()){let l,i=()=>{l=setTimeout(()=>{chunk6KVFRDGD_js.j();},chunk6RMNLQH2_js.O()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(l);}}},[e,o,chunk6RMNLQH2_js.fa()]);},Wo=nr;chunkWO4IQUGO_js.e();var ar=()=>{let{firstPlay:e}=chunk6RMNLQH2_js.ea(({controller:{firstPlay:o}})=>({firstPlay:o}),reactRedux.shallowEqual);chunk6RMNLQH2_js.ea(({videoData:{details:o}})=>({details:o}),reactRedux.shallowEqual),react.useEffect(()=>{chunk6RMNLQH2_js.ca("setSubtitleFirstPlay")&&chunk7OLT67MH_js.b();},[e]);},Qo=ar;var mr=Ro__default.default(()=>import('./touchVolumeBrightness-VFNRQZOL.js')),Jo=Ro__default.default(()=>import('./backwardForward-E4S6FLOP.js')),cr=()=>{let[e,o]=react.useState(!1),[l,i]=react.useState(!1);return chunk6RMNLQH2_js.ea(({videoData:{details:r,params:p,videoElementSizeInfo:c}})=>({details:r,params:p,videoElementSizeInfo:c}),reactRedux.shallowEqual),chunk6RMNLQH2_js.ea(({controller:{firstPlay:r,isFullScreen:p,isLoading:c,canPlayVideo:a}})=>({firstPlay:r,isFullScreen:p,isLoading:c,canPlayVideo:a}),reactRedux.shallowEqual),Ho(),Wo(),Uo(e,l),Qo(),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{id:"video-area",style:{zIndex:chunk6RMNLQH2_js.ca("isFullScreen")?1e6:"unset"},onClick:r=>chunk6RMNLQH2_js.ca("isFirstPlay")&&chunk6KVFRDGD_js.a(r),onDoubleClick:r=>chunk6KVFRDGD_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 ${!chunk6RMNLQH2_js.ca("isTouchScreen")&&!chunk6RMNLQH2_js.ca("isFullScreen")&&"!pl-rounded-[12px]"} ${chunk6RMNLQH2_js.ca("isFullScreen")&&"!pl-fixed !pl-w-screen dvh"} pl-w-full pl-relative ${!chunk6RMNLQH2_js.ca("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 ${!chunk6RMNLQH2_js.ca("isTouchScreen")&&!chunk6RMNLQH2_js.ca("isFullScreen")&&"!pl-rounded-[12px]"} ${chunk6RMNLQH2_js.ca("isActiveElements")?"pl-bg-opacity-50":"pl-bg-opacity-0"}`}),chunk6RMNLQH2_js.ca("showTouchVolumeBrightness")&&jsxRuntime.jsx(mr,{}),chunk6RMNLQH2_js.ca("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:l||e?1000002:1},children:[jsxRuntime.jsx(Jo,{type:"touchForward",isRightDoubleTouched:e,setIsRightDoubleTouched:o}),jsxRuntime.jsx(Jo,{type:"touchBackward",isLeftDoubleTouched:l,setIsLeftDoubleTouched:i})]}),jsxRuntime.jsx(Xo,{}),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:[chunk6RMNLQH2_js.ca("showHeader")&&jsxRuntime.jsx(Mt,{}),chunk6RMNLQH2_js.ca("showMain")&&jsxRuntime.jsx(Vt,{}),chunk6RMNLQH2_js.ca("showFooter")&&jsxRuntime.jsx(zo,{})]})})]})})},Ed=cr;
|
|
8
|
+
exports.a=Ed;//# sourceMappingURL=chunk-3MU2SHHL.js.map
|
|
9
|
+
//# sourceMappingURL=chunk-3MU2SHHL.js.map
|