cafe-video-player 3.0.8 → 3.0.9

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.
@@ -4,6 +4,6 @@ import {a as a$3}from'./chunk-ZOZPPUR2.mjs';import {b as b$1,c as c$1,a as a$5}f
4
4
  before:pl-hidden
5
5
  ${i!=="modal"&&`pl-absolute ${fa("",{desktop:"pl-bottom-[20px]",desktopFullScreen:"pl-bottom-[60px]"})} pl-overflow-auto no-scrollbar`}
6
6
  ${r}
7
- `,style:{maxHeight:h?"unset":A$1||x||"",zIndex:1004,...s},ref:L,id:"popover-content",children:jsxs(Fragment,{children:[v&&jsx("div",{onTouchMove:f?rt:()=>{},onTouchEndCapture:f?Se:()=>{},className:"pl-py-4",children:f&&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"})}),jsx("div",{id:"popover-content",className:`pl-overflow-y-auto pl-h-full pl-w-full ${!w&&"no-scrollbar"}`,onTouchMove:B=>B.stopPropagation(),children:t})]})})})]});return jsx(Fragment,{children:k&&jsx(Fragment,{children:i==="modal"?createPortal(jsx("div",{style:{fontFamily:"IRANSansXFaNum",direction:"rtl",overflowX:"hidden"},children:J}),document.getElementById("dialog-react-root-videoPlayer")):jsx("div",{id:"player-popover",children:J})})})});ao.displayName="popover";var Z=ao;e();var Nl=({setSection:t$1,showQualityLevelsIcon:l})=>{let o=z(),{qualityLevels:i}=A(({controller:{qualityLevels:n,manualQuality:w,autoQuality:F}})=>({qualityLevels:n,manualQuality:w,autoQuality:F}),shallowEqual),{settings:r}=A(({user:{settings:n}})=>({settings:n}),shallowEqual),{qualityLevelsPopover:p}=A(({popovers:{qualityLevelsPopover:n}})=>({qualityLevelsPopover:n}),shallowEqual),{videoElementSizeInfo:s}=A(({videoData:{params:n,videoElementSizeInfo:w}})=>({params:n,videoElementSizeInfo:w}),shallowEqual),[d,a$2]=useState(false);i=[-1,...i];let h=(n,w)=>t("isAutoQuality")&&w===-1?true:!t("isAutoQuality")&&r.quality===n,v=useRef(null);X(v,()=>o(q(false)));let f=jsx("div",{id:"qualityLevels",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:s.height-200-70},children:i.map((n,w)=>jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10 pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${h(w-1,n)&&"!pl-cursor-default"}`,onClick:()=>{h(w-1,n)||(C(E(n===-1?"auto":`${n}P`)),o(za({...r,quality:n===-1?-1:w-1})),t$1&&t$1("main"));},children:[!!h(w-1,n)&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,alt:"",className:t("isTouchScreen")?"pl-brightness-0":"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:n===-1?jsxs("span",{children:[jsx("span",{children:"\u062E\u0648\u062F\u06A9\u0627\u0631 "}),jsx("span",{className:`pl-text-[10px] pl-font-normal ${t("isTouchScreen")?"pl-text-[#737373]":"pl-text-[#C7C7C7]"}`,children:"(\u0628\u0631 \u0627\u0633\u0627\u0633 \u0633\u0631\u0639\u062A \u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0634\u0645\u0627)"})]}):`${n}p`})]},w))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:v,children:[jsx(pe,{src:a.qualitySetting,alt:"speed-icon",width:20,height:20,onClick:()=>o(q(!p)),onMouseOver:()=>!t("isTouchScreen")&&!t("showQualityLevelsPopover")&&a$2(true),onMouseLeave:()=>!t("isTouchScreen")&&a$2(false),className:"pl-cursor-pointer"}),d&&jsx(a$1,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-black/[75%] ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"pl-right-0 pl-mb-[33px] !pl-rounded-[12px] pl-w-[230px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(q(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?v:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&s.height-(t("isTouchScreenLandscape")?120:75)},children:f})]}):jsx(Fragment,{children:f})})},co=memo(Nl);e();e();var Pl=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i,width:r,height:p})=>jsx("svg",{width:"20",height:"20",fill:"none",onClick:l,viewBox:"0 0 20 20",className:t,onMouseOver:o,style:{width:r,height:p},onMouseLeave:i,xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8.83613 12.7885C9.13211 13.0844 9.51329 13.2249 9.97967 13.21C10.4459 13.195 10.7881 13.0267 11.0061 12.7052L15.5284 6.15396L8.96113 10.6602C8.63433 10.8783 8.4578 11.2135 8.43155 11.6658C8.40544 12.1183 8.5403 12.4926 8.83613 12.7885ZM9.99967 3.75C10.7925 3.75 11.5352 3.85389 12.228 4.06167C12.9209 4.26944 13.59 4.58382 14.2353 5.00479L13.0605 5.76438C12.5862 5.51229 12.0945 5.32188 11.5855 5.19313C11.0763 5.06438 10.5477 5 9.99967 5C8.15245 5 6.57954 5.64931 5.28092 6.94792C3.98231 8.24653 3.33301 9.81944 3.33301 11.6667C3.33301 12.25 3.41287 12.8264 3.57259 13.3958C3.73231 13.9653 3.95801 14.5 4.24967 15H15.7497C16.0691 14.4722 16.3018 13.9236 16.4476 13.3542C16.5934 12.7847 16.6663 12.1944 16.6663 11.5833C16.6663 11.0833 16.6047 10.5772 16.4813 10.065C16.3579 9.55264 16.1674 9.06625 15.9099 8.60583L16.6695 7.43104C17.0809 8.10521 17.3894 8.77965 17.5951 9.45438C17.8006 10.1291 17.9077 10.8302 17.9163 11.5577C17.9248 12.312 17.8399 13.0249 17.6616 13.6963C17.4831 14.3678 17.2144 15.0246 16.8555 15.6667C16.7454 15.8472 16.5904 15.9896 16.3907 16.0938C16.1909 16.1979 15.9772 16.25 15.7497 16.25H4.24967C4.02745 16.25 3.8178 16.1966 3.62072 16.0898C3.42363 15.9828 3.26467 15.8311 3.14384 15.6346C2.82551 15.079 2.56912 14.4733 2.37467 13.8173C2.18023 13.1613 2.08301 12.4444 2.08301 11.6667C2.08301 10.5781 2.28954 9.55465 2.70259 8.59646C3.11565 7.63826 3.67947 6.79903 4.39405 6.07875C5.10877 5.35847 5.94898 4.79028 6.91467 4.37417C7.88051 3.95806 8.90884 3.75 9.99967 3.75Z",fill:"currentColor"})}),_e=Pl;var Fl=[.5,.75,1,1.25,1.5,1.75,2],$l=({setSection:t$1,showSpeedIcon:l})=>{let o=z(),{videoElementSizeInfo:i,params:r}=A(({videoData:{videoElementSizeInfo:f,params:n}})=>({videoElementSizeInfo:f,params:n}),shallowEqual),{speedPopover:p$1}=A(({popovers:{speedPopover:f}})=>({speedPopover:f}),shallowEqual),{settings:s}=A(({user:{settings:f}})=>({settings:f}),shallowEqual),d=useRef(null),[a$2,h]=useState(false);X(d,()=>o(p(false))),useEffect(()=>{u()&&(u().playbackRate=s.speed);},[]);let v=jsx("div",{id:"speed",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0633\u0631\u0639\u062A"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:i.height-200-70},children:Fl.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${s.speed===f&&" !pl-cursor-default"}`,onClick:s.speed===f?()=>{}:()=>{t("isStaticFormat")||C(D(f)),o(za({...s,speed:f})),u().playbackRate=f,t$1&&t$1("main"),r.onSpeedChange&&r.onSpeedChange(s.speed,f);},children:[s.speed===f&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("p",{className:`pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px] pl-w-10 pl-text-center`,children:f})]},n))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsx(_e,{width:20,height:20,className:`pl-cursor-pointer size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(p(!p$1)),onMouseOver:()=>!t("isTouchScreen")&&!t("showSpeedPopover")&&h(true),onMouseLeave:()=>!t("isTouchScreen")&&h(false)}),a$2&&jsx(a$1,{title:"\u0633\u0631\u0639\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"} !pl-z-[100000]`,status:p$1,onClose:()=>o(p(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?d:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&i.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},fo=$l;e();var Dl=({setSection:t$1})=>{let l=z(),{subtitles:o,selectedSubtitle:i,videoElementSizeInfo:r}=A(({videoData:{subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}})=>({subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}),shallowEqual);return jsx("div",{id:"subtitles",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0632\u06CC\u0631 \u0646\u0648\u06CC\u0633"})]}),jsxs("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:r.height-200-70},children:[jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer ${!i&&`${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} !pl-cursor-default`}`,onClick:()=>{l(k(void 0)),t$1("main");let p=Object.values(u().textTracks).find(s=>s.mode==="showing");p&&(p.mode="disabled"),l(j("")),C(N("empty"));},children:[!i&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]}),o.map((p,s)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${i&&i.language===p.language&&" !pl-cursor-default"}`,onClick:()=>{l(k(p)),u().textTracks[s].mode="showing",t$1("main"),C(N(p.language));},children:[!!i&&i.language===p.language&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:p.label})]},s))]})]})})},ho=memo(Dl);e();var _l=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M10 2.29395C10.3314 2.29395 10.6 2.56257 10.6 2.89395V17.1052C10.6 17.4366 10.3314 17.7052 10 17.7052C9.66866 17.7052 9.40002 17.4366 9.40002 17.1052V2.89395C9.40002 2.56257 9.66866 2.29395 10 2.29395Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M6.41258 4.95498C6.74396 4.95498 7.01258 5.22361 7.01258 5.55498V14.5565C7.01258 14.8879 6.74396 15.1565 6.41258 15.1565C6.08121 15.1565 5.81258 14.8879 5.81258 14.5565V5.55498C5.81258 5.22361 6.08121 4.95498 6.41258 4.95498Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M13.5858 4.84247C13.9172 4.84247 14.1858 5.1111 14.1858 5.44247V14.444C14.1858 14.7754 13.9172 15.044 13.5858 15.044C13.2545 15.044 12.9858 14.7754 12.9858 14.444V5.44247C12.9858 5.1111 13.2545 4.84247 13.5858 4.84247Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M17.1735 7.60177C17.5048 7.60177 17.7735 7.8704 17.7735 8.20177V11.5709C17.7735 11.9023 17.5048 12.1709 17.1735 12.1709C16.8421 12.1709 16.5735 11.9023 16.5735 11.5709V8.20177C16.5735 7.8704 16.8421 7.60177 17.1735 7.60177Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M2.82656 7.82841C3.15794 7.82841 3.42656 8.09703 3.42656 8.42844V11.7976C3.42656 12.1289 3.15794 12.3976 2.82656 12.3976C2.49519 12.3976 2.22656 12.1289 2.22656 11.7976V8.42844C2.22656 8.09703 2.49519 7.82841 2.82656 7.82841Z"})]}),Oe=_l;e();var Hl=({setSection:t$1,showMultiAudioIcon:l})=>{let o=z(),{multiAudioPopover:i}=A(({popovers:{multiAudioPopover:f}})=>({multiAudioPopover:f}),shallowEqual),[r$1,p]=useState(false),s=useRef(null),{multiAudio:d,selectedAudioId:a$2,videoElementSizeInfo:h}=A(({videoData:{multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}})=>({multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}),shallowEqual);X(s,()=>o(r(false)));let v=jsx("div",{className:`${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:h.height-200-70},children:t("hasMultiAudio")&&d.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${a$2===n&&" !pl-cursor-default"}`,onClick:()=>{o(m(n)),t$1&&t$1("main");},children:[a$2===n&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxs("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:["\u0632\u0628\u0627\u0646 ",f.name]})]},f.id))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:s,children:[jsx(Oe,{className:`pl-size-5 pl-fill-white pl-cursor-pointer ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(r(!i)),onMouseOver:()=>!t("isTouchScreen")&&p(true),onMouseLeave:()=>!t("isTouchScreen")&&p(false)}),r$1&&jsx(a$1,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx(Z,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-black/[75%] !pl-pb-0 ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[200px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(r(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?s:void 0,isHeader:t("isTouchScreen"),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&h.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},So=memo(Hl);e();var jl=({className:t$1,disableTooltip:l,height:o,width:i,normalStyle:r})=>{let[p,s]=useState(false);return A(({videoData:{selectedSubtitle:d,videoElementSizeInfo:a,params:h}})=>({selectedSubtitle:d,videoElementSizeInfo:a,params:h}),shallowEqual),jsxs("div",{onClick:d=>{d.stopPropagation(),b$2();},onDoubleClick:d=>d.stopPropagation(),onMouseOver:l?void 0:()=>!t("isTouchScreen")&&s(true),onMouseLeave:l?void 0:()=>!t("isTouchScreen")&&s(false),className:fa(`pl-relative ${r?"":"pl-rounded-full hover:pl-bg-[#5E5E5E]"} pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-transition-all ${t$1} ${t("hasSubtitles")?"":"pl-pointer-events-none"}`,{desktop:r?void 0:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:r?void 0:"pl-w-[56px] pl-h-[36px]"}),children:[jsx(pe,{alt:"subtitle-icon",src:t("hasSubtitles")?t("isSelectedSubtitle")?a.subtitleFill:a.subtitleOutline:a.subtitleDisable,width:i,height:o}),p&&!l&&jsx(a$1,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},ie=jl;var Zl=({width:t$1,height:l,normalStyle:o$1})=>{let i=z();A(({controller:{isFullScreen:k}})=>({isFullScreen:k}),shallowEqual);let{selectedSubtitle:r,multiAudio:p,selectedAudioId:s,subtitles:d,settingPopover:a$2,settings:h,qualityLevels:v}=A(({user:{settings:k},popovers:{settingPopover:c},controller:{qualityLevels:x},videoData:{params:$,subtitles:A,multiAudio:_,selectedSubtitle:Y,selectedAudioId:q}})=>({params:$,settings:k,subtitles:A,multiAudio:_,qualityLevels:x,settingPopover:c,selectedAudioId:q,selectedSubtitle:Y}),shallowEqual),[f,n]=useState("main"),[w,F]=useState(false),L=useRef(null);return X(L,()=>{i(o(false)),setTimeout(()=>{n("main");},500);}),jsxs("div",{className:`pl-inline-flex ${t("isLandscape")&&"pl-relative"}`,ref:L,children:[jsxs("div",{className:fa(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full ${o$1?"":"hover:pl-bg-[#5E5E5E] pl-transition-all"}`,o$1?void 0:{desktop:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:"pl-w-[56px] pl-h-[36px]"}),onDoubleClick:k=>k.preventDefault(),onClick:k=>{k.stopPropagation(),i(o(!a$2));},onMouseOver:()=>!t("isTouchScreen")&&!t("showSettingPopover")&&F(true),onMouseLeave:()=>!t("isTouchScreen")&&F(false),children:[jsx(pe,{src:a.settings,alt:"",width:t$1,height:l}),w&&jsx(a$1,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none !pl-bg-white":"!pl-w-[272px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px] !pl-bg-black/[75%]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"} !overflow-auto`,status:a$2,onClose:()=>{i(o(false)),setTimeout(()=>n("main"),500);},type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?L:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),children:jsxs("div",{children:[f==="main"&&jsxs("div",{id:"main",className:"pl-py-2 pl-rounded-[10px] pl-flex pl-flex-col animate__animated animate__fadeIn",children:[!t("isStaticFormat")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("qualityLevels"),children:[jsx(pe,{width:20,height:20,className:t("isTouchScreen")?"pl-brightness-[0.3]":"",src:a.qualitySetting,alt:""}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h.quality===-1?"\u062E\u0648\u062F\u06A9\u0627\u0631":`${v.find((k,c)=>c===h.quality)}p`}),jsx(pe,{className:t("isTouchScreen")?"pl-brightness-50":"",src:a.chevronLeft,alt:"",width:16,height:16})]}),t("hasSubtitles")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("subtitles"),children:[jsx(ie,{className:`${t("isTouchScreen")?"pl-brightness-[0.3]":""}`,normalStyle:true,width:20,height:20,disableTooltip:true}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:r?!!d&&d.find(k=>k.language===r.language)?.label:"\u062E\u0627\u0645\u0648\u0634"}),jsx(pe,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("speed"),children:[jsx(_e,{className:`${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,width:20,height:20}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0633\u0631\u0639\u062A"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h?.speed?h.speed===1?"\u0645\u0639\u0645\u0648\u0644\u06CC":`${h.speed}`:"\u0645\u0639\u0645\u0648\u0644\u06CC"}),jsx(pe,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),t("hasMultiAudio")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("multiAudio"),children:[jsx(Oe,{className:`pl-size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:p?.find((k,c)=>c===s)?.name}),jsx(pe,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]})]}),f==="qualityLevels"&&jsx(co,{setSection:n}),f==="subtitles"&&jsx(ho,{setSection:n}),f==="speed"&&jsx(fo,{setSection:n}),f==="multiAudio"&&jsx(So,{setSection:n})]})})]})},Be=memo(Zl);e();var Jl=({className:t=""})=>{let{duration:l,currentTime:o}=A(({controller:{duration:p,currentTime:s}})=>({duration:p,currentTime:s}),shallowEqual);A(({videoData:{videoElementSizeInfo:p,params:s}})=>({videoElementSizeInfo:p,params:s}),shallowEqual);let[i,r]=useState(false);return jsx("div",{onDoubleClick:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),r(s=>!s);},className:fa(`pl-cursor-pointer pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group ${t}`,{desktop:"pl-min-w-[34px] pl-h-[34px] pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-min-w-[48px] pl-h-[48px] pl-px-1.5",touch:"pl-min-w-[78px] pl-h-[22px] pl-py-1 pl-px-1.5 pl-bg-[#282828]",touchFullScreen:"pl-min-w-[103px] pl-h-[32px] pl-px-2"}),children:jsx("div",{className:fa("pl-flex pl-gap-0.5 pl-items-center pl-justify-center pl-rounded-full pl-transition-all",{desktop:"pl-h-[26px] pl-min-w-[26px] pl-p-1.5 group-hover:pl-bg-[#5E5E5E]",desktopFullScreen:"pl-h-[36px] pl-min-w-[36px] pl-px-3"}),children:jsxs("p",{className:fa("pl-text-white pl-flex pl-items-center pl-justify-center pl-gap-0.5 ",{desktop:"pl-text-[12px] pl-leading-5 pl-font-bold",desktopFullScreen:"pl-text-base",touch:"pl-font-medium pl-text-[12px] pl-pt-0.5",touchFullScreen:"pl-text-[16px] pl-font-normal pl-pt-1"}),children:[jsx("span",{className:fa("",{touch:"pl-text-[#C4C4C4]"}),children:ja(l||0)}),jsx("span",{children:"/"}),i?jsxs(Fragment,{children:[jsx("span",{children:ja((l||0)-(o||0))}),jsx("span",{className:"pl-mt-0.5",children:"-"})]}):jsx("span",{children:ja(o||0)})]})})})},ko=Jl;var ti=()=>(A(({controller:{isFullScreen:t}})=>({isFullScreen:t}),shallowEqual),A(({videoData:{videoElementSizeInfo:t,params:l,subtitles:o}})=>({videoElementSizeInfo:t,params:l,subtitles:o}),shallowEqual),jsxs("div",{id:"player-controllbar",className:fa("pl-flex pl-justify-between pl-items-center",{desktop:"pl-px-4",desktopFullScreen:"pl-px-6",touch:"pl-px-4 ",touchFullScreen:"pl-px-6 pl-absolute pl-w-full pl-bottom-[51px]"}),children:[jsxs("div",{className:fa("pl-rounded-full pl-flex pl-items-center pl-justify-center ",{desktop:"pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-p-1.5",touch:"pl-bg-[#282828]"}),children:[jsx(c,{width:ga({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24}),height:ga({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24})}),t("showSettingIcon")&&!t("isTouchScreen")&&jsx(Be,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),!t("isTouchScreen")&&jsx(ie,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]}),jsxs("div",{className:"pl-flex pl-items-center pl-gap-4",children:[jsx(ko,{className:"pl-relative z-10"}),!t("isTouchScreen")&&jsxs(Fragment,{children:[!t("isIOS")&&jsx(b,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),jsx(b$1,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]})]})]})),Po=memo(ti);e();var li=()=>{let{subtitleText:t$1}=A(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),shallowEqual);return A(({controller:{isFullScreen:o,activeElements:i}})=>({isFullScreen:o,activeElements:i}),shallowEqual),jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:fa(`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-white pl-font-semibold ${(()=>{let o="";return t("isLock")?o="pl-bottom-[50px]":t("isActiveElements")?t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[64px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[30px]":o="pl-bottom-[60px]":t("isActiveElements")||(t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[20px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[16px]":o="pl-bottom-[60px]"),o})()}`,{desktop:"pl-text-[14px] pl-leading-6",desktopFullScreen:"pl-text-base",touch:"pl-text-[10px] pl-leading-4"}),children:va(t$1)?.map((o,i)=>{let r=xa(o);if(r)return jsx("p",{className:fa(`pl-mx-auto pl-bg-[#000000]/[70%] ${t("isTouchScreen")&&t("isActiveElements")&&"pl-opacity-50"} pl-text-wrap pl-max-w-full pl-w-max `,{desktop:"pl-px-2 pl-py-1.5",desktopFullScreen:"",touch:"pl-p-1",touchFullScreen:""}),children:r},i)})})},Io=li;var ii=()=>{let{firstPlay:t$1}=A(({controller:{lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}})=>({lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}),shallowEqual);A(({videoData:{subtitles:o,selectedSubtitle:i}})=>({subtitles:o,selectedSubtitle:i}),shallowEqual);let l="";return t("isTouchScreen")?t("isFullScreen")?l="pl-gap-2.5 pl-mb-8":l="pl-gap-3":t("isFullScreen")?l="pl-gap-3 pl-mb-3":l="pl-gap-1.5 pl-mb-1.5",jsx("div",{id:"footer",className:fa("pl-relative pl-rounded-b-[12px] pl-duration-300"),onDoubleClick:o=>t("isActiveElements")&&o.stopPropagation(),onClick:o=>t("isActiveElements")&&o.stopPropagation(),style:{zIndex:3,backgroundBlendMode:"multiply",backgroundSize:"cover",backgroundPosition:"center"},children:jsxs(Fragment,{children:[t("showSubtitle")&&jsx(Io,{}),!t("isLock")&&jsx(Fragment,{children:jsxs("div",{className:`pl-flex pl-flex-col pl-w-full pl-mx-auto animate__animated animate__faster ${l} ${t("isActiveElements")&&!t("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[t("showProgressbar")&&jsx(so,{}),jsx(Po,{})]})})]})})},Lo=ii;e();var pi=Do(()=>import('./staticVideoTag-K5KF2NBH.mjs')),ri=Do(()=>import('./nonStaticVideoTag-MZOIOJPM.mjs')),si=()=>jsx(Fragment,{children:t("isStaticFormat")?jsx(pi,{}):jsx(ri,{})}),_o=si;e();var ci=(t,l)=>{let o=z(),{activeElements:i,play:r}=A(({controller:{activeElements:a,play:h}})=>({activeElements:a,play:h}),shallowEqual),p=useRef(null),s=useRef(t),d=useRef(l);useEffect(()=>{s.current=t;},[t]),useEffect(()=>{d.current=l;},[l]),useEffect(()=>{let a=false,h=n=>{let{activeElements:w,isEnded:F}=Ba.getState().controller;F?o(k$1(true)):n.pointerType==="mouse"&&(clearTimeout(p.current),w?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward","backward","forward"].includes(n.target.id)&&(a=true):o(k$1(true)),p.current=setTimeout(()=>{let{settingPopover:L,speedPopover:k,qualityLevelsPopover:c,multiAudioPopover:x}=Ba.getState().popovers,{play:$}=Ba.getState().controller;!L&&!k&&!c&&!x&&$&&a&&o(k$1(false));},a$4));},v=n=>{setTimeout(()=>{let{activeElements:w,isEnded:F,firstPlay:L}=Ba.getState().controller;if(clearTimeout(p.current),F)return o(k$1(true));ia()&&!L&&!s.current&&!d.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward","backward","forward"].includes(n.target.id)||la(n,"playerElements")?p.current=setTimeout(()=>{let{play:k}=Ba.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Ba.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$4):p.current=setTimeout(()=>{let{play:k}=Ba.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Ba.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$4));},200);},f=()=>{clearTimeout(p.current),p.current=setTimeout(()=>{let{activeElements:n,isEnded:w,play:F}=Ba.getState().controller,{settingPopover:L,speedPopover:k,qualityLevelsPopover:c}=Ba.getState().popovers;w?o(k$1(true)):!L&&!k&&!c&&n&&!w&&F&&o(k$1(false));},a$4);};return document.getElementById("video-area").addEventListener("touchstart",v),document.getElementById("video-area").addEventListener("touchmove",f),document.getElementById("video-area").addEventListener("pointermove",h),()=>{let n=document.getElementById("video-area");n&&(n.removeEventListener("touchstart",v),n.removeEventListener("touchmove",f),n.removeEventListener("pointermove",h));}},[i,t,l]),useEffect(()=>{let a;return r?a=setTimeout(()=>o(k$1(false)),a$4):o(k$1(true)),()=>{a&&clearTimeout(a);}},[r,o]);},zo=ci;e();var di=()=>{let{firstPlay:t,isFullScreen:l}=A(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),shallowEqual);useEffect(()=>{if(u()){let o,i=()=>{o=setTimeout(()=>{da();},ia()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[t,l,u()]);},Oo=di;e();var fi=({className:t,onClick:l})=>jsxs("svg",{className:t,onClick:o=>{o.stopPropagation(),l?.();},width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{"clip-path":"url(#clip0_372_39317)",children:jsx("path",{d:"M10.649 9.01462L17.658 2.00555C18.1141 1.54963 18.1141 0.812452 17.658 0.356588C17.2021 -0.0993313 16.4649 -0.0993313 16.009 0.356588L8.99992 7.3656L1.99107 0.356588C1.53493 -0.0993313 0.798022 -0.0993313 0.342103 0.356588C-0.114034 0.812507 -0.114034 1.54963 0.342103 2.00555L7.3509 9.01462L0.342158 16.0236C-0.11398 16.4796 -0.11398 17.2167 0.342158 17.6726C0.450304 17.7811 0.578815 17.8671 0.720306 17.9257C0.861797 17.9843 1.01348 18.0144 1.16664 18.0143C1.46512 18.0143 1.76371 17.9 1.99112 17.6726L8.99992 10.6636L16.009 17.6726C16.1172 17.781 16.2457 17.867 16.3872 17.9257C16.5287 17.9843 16.6804 18.0144 16.8335 18.0143C17.132 18.0143 17.4306 17.9 17.658 17.6726C18.1141 17.2167 18.1141 16.4796 17.658 16.0236L10.649 9.01462Z",fill:"white"})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_372_39317",children:jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),Bo=fi;var qo=Do(()=>import('./backwardForward-R3CPRHJG.mjs')),vi=()=>{let[t$1,l]=useState(false),[o,i]=useState(false),r=z();A(({videoData:{details:a,params:h,videoElementSizeInfo:v}})=>({details:a,params:h,videoElementSizeInfo:v}),shallowEqual);let{firstMute:p,firstPlay:s,activeElements:d}=A(({controller:{firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}})=>({firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}),shallowEqual);return a$3(),Oo(),zo(t$1,o),jsx(Fragment,{children:jsxs("div",{id:"video-area",style:{zIndex:t("isFullScreen")?1e3:"unset"},onClick:a=>{if(!(t$1||o||document.getElementById("popover-content"))){if(p){Z$1(50),Y();return}t("isTouchScreen")?r(k$1(!d)):V(a);}},onDoubleClick:a=>ea(a),className:fa(`pl-bg-contain pl-bg-center pl-w-full pl-relative pl-bg-no-repeat pl-h-full pl-max-h-screen pl-aspect-video pl-flex pl-items-center ${!t("isActiveElements")&&"pl-cursor-none"}`,{desktop:"pl-rounded-[12px] pl-overflow-hidden",touchFullScreen:"pl-fixed pl-w-screen dvh",desktopFullScreen:"pl-fixed pl-w-screen dvh"}),children:[t("isTouchScreen")&&jsx("div",{id:"video-opacity",style:{zIndex:0},className:`pl-absolute pl-bg-black/20 pl-size-full pl-aspect-video pl-transition-all pl-duration-500 ${t("isActiveElements")?"pl-opacity-100 pl-visible":"pl-opacity-0 pl-invisible"} `}),t("showSoundVolumeAlert")&&jsx(c$1,{className:fa("",{touch:"pl-absolute pl-z-10 pl-top-[12px] pl-left-[16px]",touchFullScreen:"pl-top-[16px] pl-left-[24px]"})}),!s&&t("isActiveElements")&&jsxs("div",{className:fa("pl-absolute pl-z-10 pl-flex pl-items-center pl-justify-center pl-gap-4",{touch:"pl-top-3 pl-right-4",touchFullScreen:"pl-top-5 pl-right-6"}),children:[t("isTouchScreen")&&t("isFullScreen")&&jsx(Bo,{onClick:$,className:"pl-text-white pl-size-[18px]"}),t("showSettingIcon")&&t("isTouchScreen")&&jsx(Be,{normalStyle:true,width:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})}),t("isTouchScreen")&&jsx(ie,{normalStyle:true,width:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})})]}),t("showBackwardForward")&&jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-overflow-hidden pl-flex pl-items-center",style:{zIndex:o||t$1?1002:1},children:[jsx(qo,{type:t("isTouchScreen")?"touchForward":"forward",isRightForward:t$1,setIsRightForward:l}),jsx(qo,{type:t("isTouchScreen")?"touchBackward":"backward",isLeftBackward:o,setIsLeftBackward:i})]}),jsx(_o,{}),jsx("div",{id:"playerElements",className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full",children:jsxs("div",{className:"pl-flex pl-flex-col pl-justify-between pl-w-full pl-h-full",children:[t("showHeader")&&jsx(zt,{}),t("showMain")&&jsx(Ht,{}),t("showFooter")&&jsx(Lo,{})]})})]})})},Ya=vi;
8
- export{Ya as a};//# sourceMappingURL=chunk-GZLP6GZF.mjs.map
9
- //# sourceMappingURL=chunk-GZLP6GZF.mjs.map
7
+ `,style:{maxHeight:h?"unset":A$1||x||"",zIndex:1004,...s},ref:L,id:"popover-content",children:jsxs(Fragment,{children:[v&&jsx("div",{onTouchMove:f?rt:()=>{},onTouchEndCapture:f?Se:()=>{},className:"pl-py-4",children:f&&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"})}),jsx("div",{id:"popover-content",className:`pl-overflow-y-auto pl-h-full pl-w-full ${!w&&"no-scrollbar"}`,onTouchMove:B=>B.stopPropagation(),children:t})]})})})]});return jsx(Fragment,{children:k&&jsx(Fragment,{children:i==="modal"?createPortal(jsx("div",{style:{fontFamily:"IRANSansXFaNum",direction:"rtl",overflowX:"hidden"},children:J}),document.getElementById("dialog-react-root-videoPlayer")):jsx("div",{id:"player-popover",children:J})})})});ao.displayName="popover";var Z=ao;e();var Nl=({setSection:t$1,showQualityLevelsIcon:l})=>{let o=z(),{qualityLevels:i}=A(({controller:{qualityLevels:n,manualQuality:w,autoQuality:F}})=>({qualityLevels:n,manualQuality:w,autoQuality:F}),shallowEqual),{settings:r}=A(({user:{settings:n}})=>({settings:n}),shallowEqual),{qualityLevelsPopover:p}=A(({popovers:{qualityLevelsPopover:n}})=>({qualityLevelsPopover:n}),shallowEqual),{videoElementSizeInfo:s}=A(({videoData:{params:n,videoElementSizeInfo:w}})=>({params:n,videoElementSizeInfo:w}),shallowEqual),[d,a$2]=useState(false);i=[-1,...i];let h=(n,w)=>t("isAutoQuality")&&w===-1?true:!t("isAutoQuality")&&r.quality===n,v=useRef(null);X(v,()=>o(q(false)));let f=jsx("div",{id:"qualityLevels",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:s.height-200-70},children:i.map((n,w)=>jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10 pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${h(w-1,n)&&"!pl-cursor-default"}`,onClick:()=>{h(w-1,n)||(C(E(n===-1?"auto":`${n}P`)),o(za({...r,quality:n===-1?-1:w-1})),t$1&&t$1("main"));},children:[!!h(w-1,n)&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,alt:"",className:t("isTouchScreen")?"pl-brightness-0":"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:n===-1?jsxs("span",{children:[jsx("span",{children:"\u062E\u0648\u062F\u06A9\u0627\u0631 "}),jsx("span",{className:`pl-text-[10px] pl-font-normal ${t("isTouchScreen")?"pl-text-[#737373]":"pl-text-[#C7C7C7]"}`,children:"(\u0628\u0631 \u0627\u0633\u0627\u0633 \u0633\u0631\u0639\u062A \u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0634\u0645\u0627)"})]}):`${n}p`})]},w))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:v,children:[jsx(pe,{src:a.qualitySetting,alt:"speed-icon",width:20,height:20,onClick:()=>o(q(!p)),onMouseOver:()=>!t("isTouchScreen")&&!t("showQualityLevelsPopover")&&a$2(true),onMouseLeave:()=>!t("isTouchScreen")&&a$2(false),className:"pl-cursor-pointer"}),d&&jsx(a$1,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-black/[75%] ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"pl-right-0 pl-mb-[33px] !pl-rounded-[12px] pl-w-[230px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(q(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?v:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&s.height-(t("isTouchScreenLandscape")?120:75)},children:f})]}):jsx(Fragment,{children:f})})},co=memo(Nl);e();e();var Pl=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i,width:r,height:p})=>jsx("svg",{width:"20",height:"20",fill:"none",onClick:l,viewBox:"0 0 20 20",className:t,onMouseOver:o,style:{width:r,height:p},onMouseLeave:i,xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8.83613 12.7885C9.13211 13.0844 9.51329 13.2249 9.97967 13.21C10.4459 13.195 10.7881 13.0267 11.0061 12.7052L15.5284 6.15396L8.96113 10.6602C8.63433 10.8783 8.4578 11.2135 8.43155 11.6658C8.40544 12.1183 8.5403 12.4926 8.83613 12.7885ZM9.99967 3.75C10.7925 3.75 11.5352 3.85389 12.228 4.06167C12.9209 4.26944 13.59 4.58382 14.2353 5.00479L13.0605 5.76438C12.5862 5.51229 12.0945 5.32188 11.5855 5.19313C11.0763 5.06438 10.5477 5 9.99967 5C8.15245 5 6.57954 5.64931 5.28092 6.94792C3.98231 8.24653 3.33301 9.81944 3.33301 11.6667C3.33301 12.25 3.41287 12.8264 3.57259 13.3958C3.73231 13.9653 3.95801 14.5 4.24967 15H15.7497C16.0691 14.4722 16.3018 13.9236 16.4476 13.3542C16.5934 12.7847 16.6663 12.1944 16.6663 11.5833C16.6663 11.0833 16.6047 10.5772 16.4813 10.065C16.3579 9.55264 16.1674 9.06625 15.9099 8.60583L16.6695 7.43104C17.0809 8.10521 17.3894 8.77965 17.5951 9.45438C17.8006 10.1291 17.9077 10.8302 17.9163 11.5577C17.9248 12.312 17.8399 13.0249 17.6616 13.6963C17.4831 14.3678 17.2144 15.0246 16.8555 15.6667C16.7454 15.8472 16.5904 15.9896 16.3907 16.0938C16.1909 16.1979 15.9772 16.25 15.7497 16.25H4.24967C4.02745 16.25 3.8178 16.1966 3.62072 16.0898C3.42363 15.9828 3.26467 15.8311 3.14384 15.6346C2.82551 15.079 2.56912 14.4733 2.37467 13.8173C2.18023 13.1613 2.08301 12.4444 2.08301 11.6667C2.08301 10.5781 2.28954 9.55465 2.70259 8.59646C3.11565 7.63826 3.67947 6.79903 4.39405 6.07875C5.10877 5.35847 5.94898 4.79028 6.91467 4.37417C7.88051 3.95806 8.90884 3.75 9.99967 3.75Z",fill:"currentColor"})}),_e=Pl;var Fl=[.5,.75,1,1.25,1.5,1.75,2],$l=({setSection:t$1,showSpeedIcon:l})=>{let o=z(),{videoElementSizeInfo:i,params:r}=A(({videoData:{videoElementSizeInfo:f,params:n}})=>({videoElementSizeInfo:f,params:n}),shallowEqual),{speedPopover:p$1}=A(({popovers:{speedPopover:f}})=>({speedPopover:f}),shallowEqual),{settings:s}=A(({user:{settings:f}})=>({settings:f}),shallowEqual),d=useRef(null),[a$2,h]=useState(false);X(d,()=>o(p(false))),useEffect(()=>{u()&&(u().playbackRate=s.speed);},[]);let v=jsx("div",{id:"speed",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0633\u0631\u0639\u062A"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:i.height-200-70},children:Fl.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${s.speed===f&&" !pl-cursor-default"}`,onClick:s.speed===f?()=>{}:()=>{t("isStaticFormat")||C(D(f)),o(za({...s,speed:f})),u().playbackRate=f,t$1&&t$1("main"),r.onSpeedChange&&r.onSpeedChange(s.speed,f);},children:[s.speed===f&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("p",{className:`pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px] pl-w-10 pl-text-center`,children:f})]},n))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsx(_e,{width:20,height:20,className:`pl-cursor-pointer size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(p(!p$1)),onMouseOver:()=>!t("isTouchScreen")&&!t("showSpeedPopover")&&h(true),onMouseLeave:()=>!t("isTouchScreen")&&h(false)}),a$2&&jsx(a$1,{title:"\u0633\u0631\u0639\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"} !pl-z-[100000]`,status:p$1,onClose:()=>o(p(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?d:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&i.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},fo=$l;e();var Dl=({setSection:t$1})=>{let l=z(),{subtitles:o,selectedSubtitle:i,videoElementSizeInfo:r}=A(({videoData:{subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}})=>({subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}),shallowEqual);return jsx("div",{id:"subtitles",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0632\u06CC\u0631 \u0646\u0648\u06CC\u0633"})]}),jsxs("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:r.height-200-70},children:[jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer ${!i&&`${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} !pl-cursor-default`}`,onClick:()=>{l(k(void 0)),t$1("main");let p=Object.values(u().textTracks).find(s=>s.mode==="showing");p&&(p.mode="disabled"),l(j("")),C(N("empty"));},children:[!i&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]}),o.map((p,s)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${i&&i.language===p.language&&" !pl-cursor-default"}`,onClick:()=>{l(k(p)),u().textTracks[s].mode="showing",t$1("main"),C(N(p.language));},children:[!!i&&i.language===p.language&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:p.label})]},s))]})]})})},ho=memo(Dl);e();var _l=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M10 2.29395C10.3314 2.29395 10.6 2.56257 10.6 2.89395V17.1052C10.6 17.4366 10.3314 17.7052 10 17.7052C9.66866 17.7052 9.40002 17.4366 9.40002 17.1052V2.89395C9.40002 2.56257 9.66866 2.29395 10 2.29395Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M6.41258 4.95498C6.74396 4.95498 7.01258 5.22361 7.01258 5.55498V14.5565C7.01258 14.8879 6.74396 15.1565 6.41258 15.1565C6.08121 15.1565 5.81258 14.8879 5.81258 14.5565V5.55498C5.81258 5.22361 6.08121 4.95498 6.41258 4.95498Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M13.5858 4.84247C13.9172 4.84247 14.1858 5.1111 14.1858 5.44247V14.444C14.1858 14.7754 13.9172 15.044 13.5858 15.044C13.2545 15.044 12.9858 14.7754 12.9858 14.444V5.44247C12.9858 5.1111 13.2545 4.84247 13.5858 4.84247Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M17.1735 7.60177C17.5048 7.60177 17.7735 7.8704 17.7735 8.20177V11.5709C17.7735 11.9023 17.5048 12.1709 17.1735 12.1709C16.8421 12.1709 16.5735 11.9023 16.5735 11.5709V8.20177C16.5735 7.8704 16.8421 7.60177 17.1735 7.60177Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M2.82656 7.82841C3.15794 7.82841 3.42656 8.09703 3.42656 8.42844V11.7976C3.42656 12.1289 3.15794 12.3976 2.82656 12.3976C2.49519 12.3976 2.22656 12.1289 2.22656 11.7976V8.42844C2.22656 8.09703 2.49519 7.82841 2.82656 7.82841Z"})]}),Oe=_l;e();var Hl=({setSection:t$1,showMultiAudioIcon:l})=>{let o=z(),{multiAudioPopover:i}=A(({popovers:{multiAudioPopover:f}})=>({multiAudioPopover:f}),shallowEqual),[r$1,p]=useState(false),s=useRef(null),{multiAudio:d,selectedAudioId:a$2,videoElementSizeInfo:h}=A(({videoData:{multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}})=>({multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}),shallowEqual);X(s,()=>o(r(false)));let v=jsx("div",{className:`${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:h.height-200-70},children:t("hasMultiAudio")&&d.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${a$2===n&&" !pl-cursor-default"}`,onClick:()=>{o(m(n)),t$1&&t$1("main");},children:[a$2===n&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(pe,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxs("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:["\u0632\u0628\u0627\u0646 ",f.name]})]},f.id))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:s,children:[jsx(Oe,{className:`pl-size-5 pl-fill-white pl-cursor-pointer ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(r(!i)),onMouseOver:()=>!t("isTouchScreen")&&p(true),onMouseLeave:()=>!t("isTouchScreen")&&p(false)}),r$1&&jsx(a$1,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx(Z,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-black/[75%] !pl-pb-0 ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[200px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(r(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?s:void 0,isHeader:t("isTouchScreen"),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&h.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},So=memo(Hl);e();var jl=({className:t$1,disableTooltip:l,height:o,width:i,normalStyle:r})=>{let[p,s]=useState(false);return A(({videoData:{selectedSubtitle:d,videoElementSizeInfo:a,params:h}})=>({selectedSubtitle:d,videoElementSizeInfo:a,params:h}),shallowEqual),jsxs("div",{onClick:d=>{d.stopPropagation(),b$2();},onDoubleClick:d=>d.stopPropagation(),onMouseOver:l?void 0:()=>!t("isTouchScreen")&&s(true),onMouseLeave:l?void 0:()=>!t("isTouchScreen")&&s(false),className:fa(`pl-relative ${r?"":"pl-rounded-full hover:pl-bg-[#5E5E5E]"} pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-transition-all ${t$1} ${t("hasSubtitles")?"":"pl-pointer-events-none"}`,{desktop:r?void 0:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:r?void 0:"pl-w-[56px] pl-h-[36px]"}),children:[jsx(pe,{alt:"subtitle-icon",src:t("hasSubtitles")?t("isSelectedSubtitle")?a.subtitleFill:a.subtitleOutline:a.subtitleDisable,width:i,height:o}),p&&!l&&jsx(a$1,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},ie=jl;var Zl=({width:t$1,height:l,normalStyle:o$1})=>{let i=z();A(({controller:{isFullScreen:k}})=>({isFullScreen:k}),shallowEqual);let{selectedSubtitle:r,multiAudio:p,selectedAudioId:s,subtitles:d,settingPopover:a$2,settings:h,qualityLevels:v}=A(({user:{settings:k},popovers:{settingPopover:c},controller:{qualityLevels:x},videoData:{params:$,subtitles:A,multiAudio:_,selectedSubtitle:Y,selectedAudioId:q}})=>({params:$,settings:k,subtitles:A,multiAudio:_,qualityLevels:x,settingPopover:c,selectedAudioId:q,selectedSubtitle:Y}),shallowEqual),[f,n]=useState("main"),[w,F]=useState(false),L=useRef(null);return X(L,()=>{i(o(false)),setTimeout(()=>{n("main");},500);}),jsxs("div",{className:`pl-inline-flex ${t("isLandscape")&&"pl-relative"}`,ref:L,children:[jsxs("div",{className:fa(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full ${o$1?"":"hover:pl-bg-[#5E5E5E] pl-transition-all"}`,o$1?void 0:{desktop:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:"pl-w-[56px] pl-h-[36px]"}),onDoubleClick:k=>k.preventDefault(),onClick:k=>{k.stopPropagation(),i(o(!a$2));},onMouseOver:()=>!t("isTouchScreen")&&!t("showSettingPopover")&&F(true),onMouseLeave:()=>!t("isTouchScreen")&&F(false),children:[jsx(pe,{src:a.settings,alt:"",width:t$1,height:l}),w&&jsx(a$1,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none !pl-bg-white":"!pl-w-[272px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px] !pl-bg-black/[75%]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"} !overflow-auto`,status:a$2,onClose:()=>{i(o(false)),setTimeout(()=>n("main"),500);},type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?L:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),children:jsxs("div",{children:[f==="main"&&jsxs("div",{id:"main",className:"pl-py-2 pl-rounded-[10px] pl-flex pl-flex-col animate__animated animate__fadeIn",children:[!t("isStaticFormat")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("qualityLevels"),children:[jsx(pe,{width:20,height:20,className:t("isTouchScreen")?"pl-brightness-[0.3]":"",src:a.qualitySetting,alt:""}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h.quality===-1?"\u062E\u0648\u062F\u06A9\u0627\u0631":`${v.find((k,c)=>c===h.quality)}p`}),jsx(pe,{className:t("isTouchScreen")?"pl-brightness-50":"",src:a.chevronLeft,alt:"",width:16,height:16})]}),t("hasSubtitles")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("subtitles"),children:[jsx(ie,{className:`${t("isTouchScreen")?"pl-brightness-[0.3]":""}`,normalStyle:true,width:20,height:20,disableTooltip:true}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:r?!!d&&d.find(k=>k.language===r.language)?.label:"\u062E\u0627\u0645\u0648\u0634"}),jsx(pe,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("speed"),children:[jsx(_e,{className:`${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,width:20,height:20}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0633\u0631\u0639\u062A"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h?.speed?h.speed===1?"\u0645\u0639\u0645\u0648\u0644\u06CC":`${h.speed}`:"\u0645\u0639\u0645\u0648\u0644\u06CC"}),jsx(pe,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),t("hasMultiAudio")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("multiAudio"),children:[jsx(Oe,{className:`pl-size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:p?.find((k,c)=>c===s)?.name}),jsx(pe,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]})]}),f==="qualityLevels"&&jsx(co,{setSection:n}),f==="subtitles"&&jsx(ho,{setSection:n}),f==="speed"&&jsx(fo,{setSection:n}),f==="multiAudio"&&jsx(So,{setSection:n})]})})]})},Be=memo(Zl);e();var Jl=({className:t=""})=>{let{duration:l,currentTime:o}=A(({controller:{duration:p,currentTime:s}})=>({duration:p,currentTime:s}),shallowEqual);A(({videoData:{videoElementSizeInfo:p,params:s}})=>({videoElementSizeInfo:p,params:s}),shallowEqual);let[i,r]=useState(false);return jsx("div",{onDoubleClick:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),r(s=>!s);},className:fa(`pl-cursor-pointer pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group ${t}`,{desktop:"pl-min-w-[34px] pl-h-[34px] pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-min-w-[48px] pl-h-[48px] pl-px-1.5",touch:"pl-min-w-[78px] pl-h-[22px] pl-py-1 pl-px-1.5 pl-bg-[#282828]",touchFullScreen:"pl-min-w-[103px] pl-h-[32px] pl-px-2"}),children:jsx("div",{className:fa("pl-flex pl-gap-0.5 pl-items-center pl-justify-center pl-rounded-full pl-transition-all",{desktop:"pl-h-[26px] pl-min-w-[26px] pl-p-1.5 group-hover:pl-bg-[#5E5E5E]",desktopFullScreen:"pl-h-[36px] pl-min-w-[36px] pl-px-3"}),children:jsxs("p",{className:fa("pl-text-white pl-flex pl-items-center pl-justify-center pl-gap-0.5 ",{desktop:"pl-text-[12px] pl-leading-5 pl-font-bold",desktopFullScreen:"pl-text-base",touch:"pl-font-medium pl-text-[12px] pl-pt-0.5",touchFullScreen:"pl-text-[16px] pl-font-normal pl-pt-1"}),children:[jsx("span",{className:fa("",{touch:"pl-text-[#C4C4C4]"}),children:ja(l||0)}),jsx("span",{children:"/"}),i?jsxs(Fragment,{children:[jsx("span",{children:ja((l||0)-(o||0))}),jsx("span",{className:"pl-mt-0.5",children:"-"})]}):jsx("span",{children:ja(o||0)})]})})})},ko=Jl;var ti=()=>(A(({controller:{isFullScreen:t}})=>({isFullScreen:t}),shallowEqual),A(({videoData:{videoElementSizeInfo:t,params:l,subtitles:o}})=>({videoElementSizeInfo:t,params:l,subtitles:o}),shallowEqual),jsxs("div",{id:"player-controllbar",className:fa("pl-flex pl-justify-between pl-items-center",{desktop:"pl-px-4",desktopFullScreen:"pl-px-6",touch:"pl-px-4 ",touchFullScreen:"pl-px-6 pl-absolute pl-w-full pl-bottom-[51px]"}),children:[jsxs("div",{className:fa("pl-rounded-full pl-flex pl-items-center pl-justify-center ",{desktop:"pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-p-1.5",touch:"pl-bg-[#282828]"}),children:[jsx(c,{width:ga({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24}),height:ga({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24})}),t("showSettingIcon")&&!t("isTouchScreen")&&jsx(Be,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),!t("isTouchScreen")&&jsx(ie,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]}),jsxs("div",{className:"pl-flex pl-items-center pl-gap-4",children:[jsx(ko,{className:"pl-relative z-10"}),!t("isTouchScreen")&&jsxs(Fragment,{children:[!t("isIOS")&&jsx(b,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),jsx(b$1,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]})]})]})),Po=memo(ti);e();var li=()=>{let{subtitleText:t$1}=A(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),shallowEqual);return A(({controller:{isFullScreen:o,activeElements:i}})=>({isFullScreen:o,activeElements:i}),shallowEqual),jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:fa(`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-white pl-font-semibold ${(()=>{let o="";return t("isLock")?o="pl-bottom-[50px]":t("isActiveElements")?t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[64px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[30px]":o="pl-bottom-[60px]":t("isActiveElements")||(t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[20px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[16px]":o="pl-bottom-[60px]"),o})()}`,{desktop:"pl-text-[14px] pl-leading-6",desktopFullScreen:"pl-text-base",touch:"pl-text-[10px] pl-leading-4"}),children:va(t$1)?.map((o,i)=>{let r=xa(o);if(r)return jsx("p",{className:fa(`pl-mx-auto pl-bg-[#000000]/[70%] ${t("isTouchScreen")&&t("isActiveElements")&&"pl-opacity-50"} pl-text-wrap pl-max-w-full pl-w-max `,{desktop:"pl-px-2 pl-py-1.5",desktopFullScreen:"",touch:"pl-p-1",touchFullScreen:""}),children:r},i)})})},Io=li;var ii=()=>{let{firstPlay:t$1}=A(({controller:{lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}})=>({lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}),shallowEqual);A(({videoData:{subtitles:o,selectedSubtitle:i}})=>({subtitles:o,selectedSubtitle:i}),shallowEqual);let l="";return t("isTouchScreen")?t("isFullScreen")?l="pl-gap-2.5 pl-mb-8":l="pl-gap-3":t("isFullScreen")?l="pl-gap-3 pl-mb-3":l="pl-gap-1.5 pl-mb-1.5",jsx("div",{id:"footer",className:fa("pl-relative pl-rounded-b-[12px] pl-duration-300"),onDoubleClick:o=>t("isActiveElements")&&o.stopPropagation(),onClick:o=>t("isActiveElements")&&o.stopPropagation(),style:{zIndex:3,backgroundBlendMode:"multiply",backgroundSize:"cover",backgroundPosition:"center"},children:jsxs(Fragment,{children:[t("showSubtitle")&&jsx(Io,{}),!t("isLock")&&jsx(Fragment,{children:jsxs("div",{className:`pl-flex pl-flex-col pl-w-full pl-mx-auto animate__animated animate__faster ${l} ${t("isActiveElements")&&!t("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[t("showProgressbar")&&jsx(so,{}),jsx(Po,{})]})})]})})},Lo=ii;e();var pi=Do(()=>import('./staticVideoTag-K5KF2NBH.mjs')),ri=Do(()=>import('./nonStaticVideoTag-MZOIOJPM.mjs')),si=()=>jsx(Fragment,{children:t("isStaticFormat")?jsx(pi,{}):jsx(ri,{})}),_o=si;e();var ci=(t,l)=>{let o=z(),{activeElements:i,play:r}=A(({controller:{activeElements:a,play:h}})=>({activeElements:a,play:h}),shallowEqual),p=useRef(null),s=useRef(t),d=useRef(l);useEffect(()=>{s.current=t;},[t]),useEffect(()=>{d.current=l;},[l]),useEffect(()=>{let a=false,h=n=>{let{activeElements:w,isEnded:F}=Ba.getState().controller;F?o(k$1(true)):n.pointerType==="mouse"&&(clearTimeout(p.current),w?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward","backward","forward"].includes(n.target.id)&&(a=true):o(k$1(true)),p.current=setTimeout(()=>{let{settingPopover:L,speedPopover:k,qualityLevelsPopover:c,multiAudioPopover:x}=Ba.getState().popovers,{play:$}=Ba.getState().controller;!L&&!k&&!c&&!x&&$&&a&&o(k$1(false));},a$4));},v=n=>{setTimeout(()=>{let{activeElements:w,isEnded:F,firstPlay:L}=Ba.getState().controller;if(clearTimeout(p.current),F)return o(k$1(true));ia()&&!L&&!s.current&&!d.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward","backward","forward"].includes(n.target.id)||la(n,"playerElements")?p.current=setTimeout(()=>{let{play:k}=Ba.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Ba.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$4):p.current=setTimeout(()=>{let{play:k}=Ba.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Ba.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$4));},200);},f=()=>{clearTimeout(p.current),p.current=setTimeout(()=>{let{activeElements:n,isEnded:w,play:F}=Ba.getState().controller,{settingPopover:L,speedPopover:k,qualityLevelsPopover:c}=Ba.getState().popovers;w?o(k$1(true)):!L&&!k&&!c&&n&&!w&&F&&o(k$1(false));},a$4);};return document.getElementById("video-area").addEventListener("touchstart",v),document.getElementById("video-area").addEventListener("touchmove",f),document.getElementById("video-area").addEventListener("pointermove",h),()=>{let n=document.getElementById("video-area");n&&(n.removeEventListener("touchstart",v),n.removeEventListener("touchmove",f),n.removeEventListener("pointermove",h));}},[i,t,l]),useEffect(()=>{let a;return r?a=setTimeout(()=>o(k$1(false)),a$4):o(k$1(true)),()=>{a&&clearTimeout(a);}},[r,o]);},zo=ci;e();var di=()=>{let{firstPlay:t,isFullScreen:l}=A(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),shallowEqual);useEffect(()=>{if(u()){let o,i=()=>{o=setTimeout(()=>{da();},ia()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[t,l,u()]);},Oo=di;e();var fi=({className:t,onClick:l})=>jsxs("svg",{className:t,onClick:o=>{o.stopPropagation(),l?.();},width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{"clip-path":"url(#clip0_372_39317)",children:jsx("path",{d:"M10.649 9.01462L17.658 2.00555C18.1141 1.54963 18.1141 0.812452 17.658 0.356588C17.2021 -0.0993313 16.4649 -0.0993313 16.009 0.356588L8.99992 7.3656L1.99107 0.356588C1.53493 -0.0993313 0.798022 -0.0993313 0.342103 0.356588C-0.114034 0.812507 -0.114034 1.54963 0.342103 2.00555L7.3509 9.01462L0.342158 16.0236C-0.11398 16.4796 -0.11398 17.2167 0.342158 17.6726C0.450304 17.7811 0.578815 17.8671 0.720306 17.9257C0.861797 17.9843 1.01348 18.0144 1.16664 18.0143C1.46512 18.0143 1.76371 17.9 1.99112 17.6726L8.99992 10.6636L16.009 17.6726C16.1172 17.781 16.2457 17.867 16.3872 17.9257C16.5287 17.9843 16.6804 18.0144 16.8335 18.0143C17.132 18.0143 17.4306 17.9 17.658 17.6726C18.1141 17.2167 18.1141 16.4796 17.658 16.0236L10.649 9.01462Z",fill:"white"})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_372_39317",children:jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),Bo=fi;var qo=Do(()=>import('./backwardForward-R3CPRHJG.mjs')),vi=()=>{let[t$1,l]=useState(false),[o,i]=useState(false),r=z();A(({videoData:{details:a,params:h,videoElementSizeInfo:v}})=>({details:a,params:h,videoElementSizeInfo:v}),shallowEqual);let{firstMute:p,firstPlay:s,activeElements:d}=A(({controller:{firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}})=>({firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}),shallowEqual);return a$3(),Oo(),zo(t$1,o),jsxs("div",{id:"video-area",style:{zIndex:t("isFullScreen")?1e3:"unset"},onClick:a=>{if(!(t$1||o||document.getElementById("popover-content"))){if(p){Z$1(50),Y();return}t("isTouchScreen")?r(k$1(!d)):V(a);}},onDoubleClick:a=>ea(a),className:fa(`pl-bg-contain pl-bg-center pl-w-full pl-relative pl-bg-no-repeat pl-h-full pl-max-h-screen pl-aspect-video pl-flex pl-items-center ${!t("isActiveElements")&&"pl-cursor-none"}`,{desktop:"pl-rounded-[12px] pl-overflow-hidden",touchFullScreen:"pl-fixed pl-w-screen dvh",desktopFullScreen:"pl-fixed pl-w-screen dvh"}),children:[t("isTouchScreen")&&jsx("div",{id:"video-opacity",style:{zIndex:0},className:`pl-absolute pl-bg-black/20 pl-size-full pl-aspect-video pl-transition-all pl-duration-500 ${t("isActiveElements")?"pl-opacity-100 pl-visible":"pl-opacity-0 pl-invisible"} `}),t("showSoundVolumeAlert")&&jsx(c$1,{className:fa("",{touch:"pl-absolute pl-z-10 pl-top-[12px] pl-left-[16px]",touchFullScreen:"pl-top-[16px] pl-left-[24px]"})}),!s&&t("isActiveElements")&&jsxs("div",{className:fa("pl-absolute pl-z-10 pl-flex pl-items-center pl-justify-center pl-gap-4",{touch:"pl-top-3 pl-right-4",touchFullScreen:"pl-top-5 pl-right-6"}),children:[t("isTouchScreen")&&t("isFullScreen")&&jsx(Bo,{onClick:$,className:"pl-text-white pl-size-[18px]"}),t("showSettingIcon")&&t("isTouchScreen")&&jsx(Be,{normalStyle:true,width:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})}),t("isTouchScreen")&&jsx(ie,{normalStyle:true,width:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:ga({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})})]}),t("showBackwardForward")&&jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-overflow-hidden pl-flex pl-items-center",style:{zIndex:o||t$1?1002:1},children:[jsx(qo,{type:t("isTouchScreen")?"touchForward":"forward",isRightForward:t$1,setIsRightForward:l}),jsx(qo,{type:t("isTouchScreen")?"touchBackward":"backward",isLeftBackward:o,setIsLeftBackward:i})]}),jsx(_o,{}),jsx("div",{id:"playerElements",className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full",children:jsxs("div",{className:"pl-flex pl-flex-col pl-justify-between pl-w-full pl-h-full",children:[t("showHeader")&&jsx(zt,{}),t("showMain")&&jsx(Ht,{}),t("showFooter")&&jsx(Lo,{})]})})]})},Ga=vi;
8
+ export{Ga as a};//# sourceMappingURL=chunk-47BUPPUZ.mjs.map
9
+ //# sourceMappingURL=chunk-47BUPPUZ.mjs.map