cafe-video-player 2.4.5 → 2.4.7

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.
Files changed (61) hide show
  1. package/VideoHighLighter-GANLHKAN.js.map +1 -1
  2. package/VideoHighLighter-WXZX2FLN.mjs.map +1 -1
  3. package/chunk-5FTEBU6O.js.map +1 -1
  4. package/{chunk-X7U2ECXE.js → chunk-5SGRHURQ.js} +3 -3
  5. package/chunk-5SGRHURQ.js.map +1 -0
  6. package/chunk-D3XUYHYP.mjs.map +1 -1
  7. package/chunk-DKQUR3YY.mjs.map +1 -1
  8. package/chunk-F4OMGIV3.js.map +1 -1
  9. package/{chunk-KDFTXW3O.mjs → chunk-HYM6X2TF.mjs} +3 -3
  10. package/chunk-HYM6X2TF.mjs.map +1 -0
  11. package/chunk-K6VN2DH7.js.map +1 -1
  12. package/chunk-NXC6LNWJ.mjs.map +1 -1
  13. package/chunk-OEFD3YXU.mjs.map +1 -1
  14. package/chunk-QFE4JW4R.mjs.map +1 -1
  15. package/chunk-QHZJEU27.js.map +1 -1
  16. package/chunk-RJTA2L2Y.mjs.map +1 -1
  17. package/chunk-SIUJSGLY.mjs.map +1 -1
  18. package/chunk-SIZUOYDH.js.map +1 -1
  19. package/chunk-SWEML477.js.map +1 -1
  20. package/chunk-TGYQBJWV.js.map +1 -1
  21. package/chunk-TM66GJCG.mjs.map +1 -1
  22. package/chunk-TVDVQALL.js.map +1 -1
  23. package/chunk-VM4C2OTW.js.map +1 -1
  24. package/chunk-W2ITQ4MC.mjs.map +1 -1
  25. package/chunk-WAV4UDDR.mjs.map +1 -1
  26. package/chunk-WL34DTHG.js.map +1 -1
  27. package/chunk-WO4IQUGO.js.map +1 -1
  28. package/chunk-XJBLW3CD.js.map +1 -1
  29. package/chunk-XSKWKNPR.mjs.map +1 -1
  30. package/chunk-ZGYIGVAG.mjs.map +1 -1
  31. package/index.js +1 -1
  32. package/index.js.map +1 -1
  33. package/index.mjs +1 -1
  34. package/index.mjs.map +1 -1
  35. package/nonStaticVideoTag-DTYBMH3W.js.map +1 -1
  36. package/nonStaticVideoTag-YV35FB6U.mjs.map +1 -1
  37. package/notActive-FNSATJST.mjs.map +1 -1
  38. package/notActive-YTLKQJYE.js.map +1 -1
  39. package/package.json +1 -1
  40. package/{staticPlayer-UVW4F4SR.js → staticPlayer-3NWF4K5F.js} +2 -2
  41. package/{staticPlayer-DB6GMQXS.mjs.map → staticPlayer-3NWF4K5F.js.map} +1 -1
  42. package/{staticPlayer-DB6GMQXS.mjs → staticPlayer-N3BQDCJO.mjs} +2 -2
  43. package/staticPlayer-N3BQDCJO.mjs.map +1 -0
  44. package/staticVideoTag-2RBCWCVQ.mjs.map +1 -1
  45. package/staticVideoTag-R4UR3TBR.js.map +1 -1
  46. package/touchVolumeBrightness-JGBOVWR3.js.map +1 -1
  47. package/touchVolumeBrightness-QOOM7IC4.mjs.map +1 -1
  48. package/{videoArea-VEYRWGZ2.js → videoArea-AP3TY2BZ.js} +2 -2
  49. package/{videoArea-VEYRWGZ2.js.map → videoArea-AP3TY2BZ.js.map} +1 -1
  50. package/{videoArea-4TIRNBV6.mjs → videoArea-NNSCUWVK.mjs} +2 -2
  51. package/{videoArea-4TIRNBV6.mjs.map → videoArea-NNSCUWVK.mjs.map} +1 -1
  52. package/videoPlayerStyles.css +16 -0
  53. package/{vodPlayer-2RV3P3FW.js → vodPlayer-HDHG45ES.js} +2 -2
  54. package/vodPlayer-HDHG45ES.js.map +1 -0
  55. package/{vodPlayer-PICPTGQX.mjs → vodPlayer-ZOCQYDCO.mjs} +2 -2
  56. package/vodPlayer-ZOCQYDCO.mjs.map +1 -0
  57. package/chunk-KDFTXW3O.mjs.map +0 -1
  58. package/chunk-X7U2ECXE.js.map +0 -1
  59. package/staticPlayer-UVW4F4SR.js.map +0 -1
  60. package/vodPlayer-2RV3P3FW.js.map +0 -1
  61. package/vodPlayer-PICPTGQX.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/videoHighLighter/VideoHighLighter.tsx","../src/videoPlayerLibrary/components/custom-components/skeleton/Skeleton.tsx"],"names":["init_cjs_shims","Skeleton","jsx","conditions","Skeleton_default","VideoHighLighter","params","useAppSelector","shallowEqual","useFullScreen_default","jsxs","Image","Fragment","CircularProgressbarWithChildren","buildStyles","importImages_default","fullScreen_default","secondsToHMS","soundVolume_default","VideoHighLighter_default"],"mappings":"4gBAAAA,kBAAAA,EAAAA,CCAAA,kBAAAA,EAAAA,CAGA,IAAMC,EAAW,IAEbC,cAAAA,CAAC,OACC,IAAA,CAAK,QAAA,CACL,UAAW,CAAA,sEAAA,EAAyE,CAACC,mCAAsC,CAAA,EAAK,eAAe,CAAA,qCAAA,CAAA,CAE/I,QAAA,CAAAD,eAAC,MAAA,CAAA,CAAK,SAAA,CAAU,aAAa,QAAA,CAAA,YAAA,CAAU,CAAA,CACzC,EAIGE,CAAAA,CAAQH,CAAAA,KDDTI,CAAAA,CAAmB,IAAM,CAC7B,GAAM,CAAE,OAAAC,CAAO,CAAA,CAAIC,oBAAe,CAAC,CAAE,UAAW,CAAE,MAAA,CAAAD,CAAO,CAAE,CAAA,IAAO,CAAE,MAAA,CAAAA,CAAO,CAAA,CAAA,CAAIE,uBAAY,EAC3F,OAAAC,kBAAAA,GAGEC,eAAAA,CAAC,KAAA,CAAA,CACC,GAAG,YAAA,CACH,SAAA,CAAW,yFACTP,mBAAAA,CAAAA,eAAsC,CAAA,EAAK,iBAC7C,CAAA,CAAA,EAAIA,mBAAAA,CAAAA,cAAqC,GAAK,0FAA0F,CAAA,CAAA,CAEvI,QAAA,CAAA,CAAAG,CAAAA,CAAO,YAAcA,CAAAA,CAAO,UAAA,GAAe,YAC1CI,eAAAA,CAAC,KAAA,CAAA,CAAI,UAAU,8DAAA,CACZ,QAAA,CAAA,CAAAJ,EAAO,MAAA,EACNI,eAAAA,CAAC,OAAI,SAAA,CAAU,uCAAA,CACb,UAAAR,cAA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AAA,CAAA,CAAM,SAAAe,kBAAAA,CAAa,CAAC,EAAE,CAAA,CACvBf,cAAAA,CAAC,QAAK,QAAA,CAAA,GAAA,CAAC,CAAA,CACPA,eAAC,MAAA,CAAA,CAAM,QAAA,CAAAe,mBAAaX,CAAAA,CAAO,YAAY,EAAE,CAAA,CAAA,CAC3C,CAAA,CAEFJ,eAACgB,kBAAAA,CAAA,EAAY,GACf,CAAA,CAAA,CACF,CAAA,CACAhB,eAAC,KAAA,CAAA,CAAI,SAAA,CAAU,gEAAgE,CAAA,CAAA,CACjF,CAAA,CAAA,CACF,EAEDI,CAAAA,CAAO,UAAA,GAAe,YAAcJ,cAAAA,CAACE,CAAAA,CAAA,EAAS,CAAA,CAAA,CACjD,CAEJ,EAEOe,CAAAA,CAAQd","file":"VideoHighLighter-GANLHKAN.js","sourcesContent":["import { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport Skeleton from \"../../custom-components/skeleton/Skeleton\";\r\nimport FullScreen from \"../../custom-components/fullScreen/fullScreen\";\r\nimport SoundVolume from \"../../custom-components/soundVolume/soundVolume\";\r\nimport { secondsToHMS } from \"../../../helpers/helpers\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { buildStyles, CircularProgressbarWithChildren } from \"react-circular-progressbar\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport Image from \"next/legacy/image\";\r\nimport useFullScreen from \"../../../helpers/hooks/useFullScreen\";\r\n\r\nconst VideoHighLighter = () => {\r\n const { params } = useAppSelector(({ videoData: { params } }) => ({ params }), shallowEqual);\r\n useFullScreen();\r\n\r\n return (\r\n <div\r\n id=\"video-area\"\r\n className={`pl-relative pl-rounded-[12px] pl-w-full pl-h-full pl-aspect-video !pl-overflow-hidden ${\r\n conditions(ConditionName.isTouchScreen) && \"pl-rounded-none\"\r\n } ${conditions(ConditionName.isFullScreen) && \"!pl-overflow-hidden pl-fixed pl-top-0 pl-right-0 pl-w-screen pl-h-screen pl-rounded-none\"}`}\r\n >\r\n {params.vhl_status && params.vhl_status !== \"skeleton\" && (\r\n <div className=\"pl-flex pl-flex-col pl-justify-between pl-gap-2 pl-size-full\">\r\n {params.banner && (\r\n <div className=\"pl-w-full pl-aspect-video pl-absolute\">\r\n <Image src={params.banner} alt=\"banner\" layout=\"fill\" className=\"pl-w-full pl-aspect-video\" />\r\n <div className=\"pl-absolute pl-inset-0 pl-bg-black/50 pl-rounded-lg\" />\r\n </div>\r\n )}\r\n <div />\r\n {params.vhl_status === \"download_start\" && (\r\n <>\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] tablet:!pl-max-w-[305px] desktop:!pl-max-w-[198px] pl-mx-auto pl-py-2 tablet:pl-py-[12.32px] desktop:pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2 tablet:pl-gap-[12.32px] desktop:pl-gap-2\">\r\n <svg style={{ height: 0, position: \"absolute\" }}>\r\n <defs>\r\n <linearGradient id=\"gradientColor\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\r\n <stop offset=\"0%\" stopColor=\"#FF649D\" />\r\n <stop offset=\"100%\" stopColor=\"#A50C4B\" />\r\n </linearGradient>\r\n </defs>\r\n </svg>\r\n <CircularProgressbarWithChildren\r\n value={params.vhl_progress!}\r\n className=\"pl-size-[50px]\"\r\n styles={buildStyles({\r\n trailColor: \"rgba(0, 0, 0, 0.1)\",\r\n pathColor: \"url(#gradientColor)\",\r\n })}\r\n >\r\n <p className=\"pl-text-text-primary pl-text-[14px] pl-font-medium\">{params.vhl_progress}%</p>\r\n </CircularProgressbarWithChildren>\r\n <p className=\"pl-text-text-primary pl-text-[10px] pl-font-normal\">{params.vhl_statusText}</p>\r\n </div>\r\n </>\r\n )}\r\n {params.vhl_status === \"download_error\" && (\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] pl-mx-auto pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2\">\r\n <Image alt=\"info-circle-icon\" src={IMAGES.infoCircle} width={32} height={32} />\r\n <p className=\"pl-text-[10px] pl-font-normal pl-text-text-primary\">{params.vhl_statusText}</p>\r\n <button className=\"pl-flex pl-items-center pl-gap-2\" onClick={() => params.vhl_onRetry!()}>\r\n <Image alt=\"rotate-red-icon\" src={IMAGES.rotateRed} width={14} height={14} />\r\n <span className=\"pl-text-primary pl-text-[10px] pl-font-normal\">تلاش دوباره</span>\r\n </button>\r\n </div>\r\n )}\r\n <div\r\n className={`pl-flex ${\r\n !conditions(ConditionName.isTouchScreenPortrait)\r\n ? `pl-flex-col-reverse pl-mb-3 ${conditions(ConditionName.isFullScreen) && \"pl-mb-8\"}`\r\n : \"pl-flex-col\"\r\n } pl-gap-[14.58px]`}\r\n >\r\n <div className={`pl-flex pl-items-center pl-justify-between ${conditions(ConditionName.isFullScreen) ? \"pl-mx-8\" : \"pl-mx-[14.58px]\"}`}>\r\n <FullScreen />\r\n <div className={`pl-flex pl-items-center pl-gap-[14.58px]`}>\r\n {params.vhl_duration && (\r\n <div className=\"pl-text-Common-white pl-text-[10.93px] pl-font-normal pl-relative\">\r\n <span>{secondsToHMS(0)}</span>\r\n <span>/</span>\r\n <span>{secondsToHMS(params.vhl_duration)}</span>\r\n </div>\r\n )}\r\n <SoundVolume />\r\n </div>\r\n </div>\r\n <div className=\"pl-w-full pl-h-[3.64px] pl-bg-gray-highLight pl-animate-pulse\" />\r\n </div>\r\n </div>\r\n )}\r\n {params.vhl_status === \"skeleton\" && <Skeleton />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default VideoHighLighter;\r\n","import { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\n\r\nconst Skeleton = () => {\r\n return (\r\n <div\r\n role=\"status\"\r\n className={`pl-size-full pl-flex pl-items-center pl-justify-center pl-bg-gray-300 ${!conditions(ConditionName.isTouchScreen) && \"pl-rounded-lg\"} pl-animate-pulse dark:pl-bg-gray-700`}\r\n >\r\n <span className=\"pl-sr-only\">Loading...</span>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Skeleton;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/videoHighLighter/VideoHighLighter.tsx","../src/videoPlayerLibrary/components/custom-components/skeleton/Skeleton.tsx"],"names":["init_cjs_shims","Skeleton","jsx","conditions","Skeleton_default","VideoHighLighter","params","useAppSelector","shallowEqual","useFullScreen_default","jsxs","Image","Fragment","CircularProgressbarWithChildren","buildStyles","importImages_default","fullScreen_default","secondsToHMS","soundVolume_default","VideoHighLighter_default"],"mappings":"4gBAAAA,kBAAAA,EAAAA,CCAAA,kBASM,EAAA,CANN,IAAMC,EAAW,IAEbC,cAAAA,CAAC,OACC,IAAK,CAAA,QAAA,CACL,UAAW,CAAyE,sEAAA,EAAA,CAACC,mCAAsC,CAAK,EAAA,eAAe,CAE/I,qCAAA,CAAA,CAAA,QAAA,CAAAD,eAAC,MAAK,CAAA,CAAA,SAAA,CAAU,aAAa,QAAU,CAAA,YAAA,CAAA,CAAA,CACzC,EAIGE,CAAQH,CAAAA,CAAAA,KDDTI,CAAmB,CAAA,IAAM,CAC7B,GAAM,CAAE,OAAAC,CAAO,CAAA,CAAIC,oBAAe,CAAC,CAAE,UAAW,CAAE,MAAA,CAAAD,CAAO,CAAE,CAAA,IAAO,CAAE,MAAA,CAAAA,CAAO,CAAIE,CAAAA,CAAAA,uBAAY,EAC3F,OAAAC,kBAAAA,GAGEC,eAAC,CAAA,KAAA,CAAA,CACC,GAAG,YACH,CAAA,SAAA,CAAW,yFACTP,mBAAsC,CAAA,eAAA,CAAA,EAAK,iBAC7C,CAAIA,CAAAA,EAAAA,mBAAAA,CAAAA,cAAqC,GAAK,0FAA0F,CAAA,CAAA,CAEvI,QAAAG,CAAAA,CA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AAAA,cAAAA,CAACc,mBAAA,EAAW,CAAA,CACZN,gBAAC,KAAI,CAAA,CAAA,SAAA,CAAW,2CACb,QAAAJ,CAAAA,CAAAA,CAAAA,CAAO,cACNI,eAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,mEAAA,CACb,UAAAR,cAAC,CAAA,MAAA,CAAA,CAAM,SAAAe,kBAAa,CAAA,CAAC,EAAE,CACvBf,CAAAA,cAAAA,CAAC,QAAK,QAAC,CAAA,GAAA,CAAA,CAAA,CACPA,eAAC,MAAM,CAAA,CAAA,QAAA,CAAAe,mBAAaX,CAAO,CAAA,YAAY,EAAE,CAC3C,CAAA,CAAA,CAAA,CAEFJ,eAACgB,kBAAA,CAAA,EAAY,GACf,CACF,CAAA,CAAA,CAAA,CACAhB,eAAC,KAAI,CAAA,CAAA,SAAA,CAAU,gEAAgE,CACjF,CAAA,CAAA,CAAA,CAAA,CACF,EAEDI,CAAO,CAAA,UAAA,GAAe,YAAcJ,cAACE,CAAAA,CAAAA,CAAA,EAAS,CACjD,CAAA,CAAA,CAEJ,EAEOe,CAAQd,CAAAA","file":"VideoHighLighter-GANLHKAN.js","sourcesContent":["import { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport Skeleton from \"../../custom-components/skeleton/Skeleton\";\r\nimport FullScreen from \"../../custom-components/fullScreen/fullScreen\";\r\nimport SoundVolume from \"../../custom-components/soundVolume/soundVolume\";\r\nimport { secondsToHMS } from \"../../../helpers/helpers\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { buildStyles, CircularProgressbarWithChildren } from \"react-circular-progressbar\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport Image from \"next/legacy/image\";\r\nimport useFullScreen from \"../../../helpers/hooks/useFullScreen\";\r\n\r\nconst VideoHighLighter = () => {\r\n const { params } = useAppSelector(({ videoData: { params } }) => ({ params }), shallowEqual);\r\n useFullScreen();\r\n\r\n return (\r\n <div\r\n id=\"video-area\"\r\n className={`pl-relative pl-rounded-[12px] pl-w-full pl-h-full pl-aspect-video !pl-overflow-hidden ${\r\n conditions(ConditionName.isTouchScreen) && \"pl-rounded-none\"\r\n } ${conditions(ConditionName.isFullScreen) && \"!pl-overflow-hidden pl-fixed pl-top-0 pl-right-0 pl-w-screen pl-h-screen pl-rounded-none\"}`}\r\n >\r\n {params.vhl_status && params.vhl_status !== \"skeleton\" && (\r\n <div className=\"pl-flex pl-flex-col pl-justify-between pl-gap-2 pl-size-full\">\r\n {params.banner && (\r\n <div className=\"pl-w-full pl-aspect-video pl-absolute\">\r\n <Image src={params.banner} alt=\"banner\" layout=\"fill\" className=\"pl-w-full pl-aspect-video\" />\r\n <div className=\"pl-absolute pl-inset-0 pl-bg-black/50 pl-rounded-lg\" />\r\n </div>\r\n )}\r\n <div />\r\n {params.vhl_status === \"download_start\" && (\r\n <>\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] tablet:!pl-max-w-[305px] desktop:!pl-max-w-[198px] pl-mx-auto pl-py-2 tablet:pl-py-[12.32px] desktop:pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2 tablet:pl-gap-[12.32px] desktop:pl-gap-2\">\r\n <svg style={{ height: 0, position: \"absolute\" }}>\r\n <defs>\r\n <linearGradient id=\"gradientColor\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\r\n <stop offset=\"0%\" stopColor=\"#FF649D\" />\r\n <stop offset=\"100%\" stopColor=\"#A50C4B\" />\r\n </linearGradient>\r\n </defs>\r\n </svg>\r\n <CircularProgressbarWithChildren\r\n value={params.vhl_progress!}\r\n className=\"pl-size-[50px]\"\r\n styles={buildStyles({\r\n trailColor: \"rgba(0, 0, 0, 0.1)\",\r\n pathColor: \"url(#gradientColor)\",\r\n })}\r\n >\r\n <p className=\"pl-text-text-primary pl-text-[14px] pl-font-medium\">{params.vhl_progress}%</p>\r\n </CircularProgressbarWithChildren>\r\n <p className=\"pl-text-text-primary pl-text-[10px] pl-font-normal\">{params.vhl_statusText}</p>\r\n </div>\r\n </>\r\n )}\r\n {params.vhl_status === \"download_error\" && (\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] pl-mx-auto pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2\">\r\n <Image alt=\"info-circle-icon\" src={IMAGES.infoCircle} width={32} height={32} />\r\n <p className=\"pl-text-[10px] pl-font-normal pl-text-text-primary\">{params.vhl_statusText}</p>\r\n <button className=\"pl-flex pl-items-center pl-gap-2\" onClick={() => params.vhl_onRetry!()}>\r\n <Image alt=\"rotate-red-icon\" src={IMAGES.rotateRed} width={14} height={14} />\r\n <span className=\"pl-text-primary pl-text-[10px] pl-font-normal\">تلاش دوباره</span>\r\n </button>\r\n </div>\r\n )}\r\n <div\r\n className={`pl-flex ${\r\n !conditions(ConditionName.isTouchScreenPortrait)\r\n ? `pl-flex-col-reverse pl-mb-3 ${conditions(ConditionName.isFullScreen) && \"pl-mb-8\"}`\r\n : \"pl-flex-col\"\r\n } pl-gap-[14.58px]`}\r\n >\r\n <div className={`pl-flex pl-items-center pl-justify-between ${conditions(ConditionName.isFullScreen) ? \"pl-mx-8\" : \"pl-mx-[14.58px]\"}`}>\r\n <FullScreen />\r\n <div className={`pl-flex pl-items-center pl-gap-[14.58px]`}>\r\n {params.vhl_duration && (\r\n <div className=\"pl-text-Common-white pl-text-[10.93px] pl-font-normal pl-relative\">\r\n <span>{secondsToHMS(0)}</span>\r\n <span>/</span>\r\n <span>{secondsToHMS(params.vhl_duration)}</span>\r\n </div>\r\n )}\r\n <SoundVolume />\r\n </div>\r\n </div>\r\n <div className=\"pl-w-full pl-h-[3.64px] pl-bg-gray-highLight pl-animate-pulse\" />\r\n </div>\r\n </div>\r\n )}\r\n {params.vhl_status === \"skeleton\" && <Skeleton />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default VideoHighLighter;\r\n","import { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\n\r\nconst Skeleton = () => {\r\n return (\r\n <div\r\n role=\"status\"\r\n className={`pl-size-full pl-flex pl-items-center pl-justify-center pl-bg-gray-300 ${!conditions(ConditionName.isTouchScreen) && \"pl-rounded-lg\"} pl-animate-pulse dark:pl-bg-gray-700`}\r\n >\r\n <span className=\"pl-sr-only\">Loading...</span>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Skeleton;\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/videoHighLighter/VideoHighLighter.tsx","../src/videoPlayerLibrary/components/custom-components/skeleton/Skeleton.tsx"],"names":["init_esm_shims","Skeleton","jsx","conditions","Skeleton_default","VideoHighLighter","params","useAppSelector","shallowEqual","useFullScreen_default","jsxs","Image","Fragment","CircularProgressbarWithChildren","buildStyles","importImages_default","fullScreen_default","secondsToHMS","soundVolume_default","VideoHighLighter_default"],"mappings":"0YAAAA,CAAAA,EAAAA,CCAAA,CAAAA,EAAAA,CAGA,IAAMC,EAAW,IAEbC,GAAAA,CAAC,OACC,IAAA,CAAK,QAAA,CACL,UAAW,CAAA,sEAAA,EAAyE,CAACC,kBAAsC,CAAA,EAAK,eAAe,CAAA,qCAAA,CAAA,CAE/I,QAAA,CAAAD,IAAC,MAAA,CAAA,CAAK,SAAA,CAAU,aAAa,QAAA,CAAA,YAAA,CAAU,CAAA,CACzC,EAIGE,CAAAA,CAAQH,CAAAA,KDDTI,CAAAA,CAAmB,IAAM,CAC7B,GAAM,CAAE,OAAAC,CAAO,CAAA,CAAIC,GAAe,CAAC,CAAE,UAAW,CAAE,MAAA,CAAAD,CAAO,CAAE,CAAA,IAAO,CAAE,MAAA,CAAAA,CAAO,CAAA,CAAA,CAAIE,YAAY,EAC3F,OAAAC,CAAAA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AA,EAAK,SAAS,EAExF,CAAA,iBAAA,CAAA,CAEA,QAAA,CAAA,CAAAO,IAAAA,CAAC,KAAA,CAAA,CAAI,UAAW,CAAA,2CAAA,EAA8CP,EAAAA,CAAAA,cAAqC,EAAI,SAAA,CAAY,iBAAiB,GAClI,QAAA,CAAA,CAAAD,GAAAA,CAACc,EAAA,EAAW,CAAA,CACZN,KAAC,KAAA,CAAA,CAAI,SAAA,CAAW,2CACb,QAAA,CAAA,CAAAJ,CAAAA,CAAO,cACNI,IAAAA,CAAC,KAAA,CAAA,CAAI,SAAA,CAAU,mEAAA,CACb,UAAAR,GAAAA,CAAC,MAAA,CAAA,CAAM,SAAAe,CAAAA,CAAa,CAAC,EAAE,CAAA,CACvBf,GAAAA,CAAC,QAAK,QAAA,CAAA,GAAA,CAAC,CAAA,CACPA,IAAC,MAAA,CAAA,CAAM,QAAA,CAAAe,EAAaX,CAAAA,CAAO,YAAY,EAAE,CAAA,CAAA,CAC3C,CAAA,CAEFJ,IAACgB,CAAAA,CAAA,EAAY,GACf,CAAA,CAAA,CACF,CAAA,CACAhB,IAAC,KAAA,CAAA,CAAI,SAAA,CAAU,gEAAgE,CAAA,CAAA,CACjF,CAAA,CAAA,CACF,EAEDI,CAAAA,CAAO,UAAA,GAAe,YAAcJ,GAAAA,CAACE,CAAAA,CAAA,EAAS,CAAA,CAAA,CACjD,CAEJ,EAEOe,CAAAA,CAAQd","file":"VideoHighLighter-WXZX2FLN.mjs","sourcesContent":["import { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport Skeleton from \"../../custom-components/skeleton/Skeleton\";\r\nimport FullScreen from \"../../custom-components/fullScreen/fullScreen\";\r\nimport SoundVolume from \"../../custom-components/soundVolume/soundVolume\";\r\nimport { secondsToHMS } from \"../../../helpers/helpers\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { buildStyles, CircularProgressbarWithChildren } from \"react-circular-progressbar\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport Image from \"next/legacy/image\";\r\nimport useFullScreen from \"../../../helpers/hooks/useFullScreen\";\r\n\r\nconst VideoHighLighter = () => {\r\n const { params } = useAppSelector(({ videoData: { params } }) => ({ params }), shallowEqual);\r\n useFullScreen();\r\n\r\n return (\r\n <div\r\n id=\"video-area\"\r\n className={`pl-relative pl-rounded-[12px] pl-w-full pl-h-full pl-aspect-video !pl-overflow-hidden ${\r\n conditions(ConditionName.isTouchScreen) && \"pl-rounded-none\"\r\n } ${conditions(ConditionName.isFullScreen) && \"!pl-overflow-hidden pl-fixed pl-top-0 pl-right-0 pl-w-screen pl-h-screen pl-rounded-none\"}`}\r\n >\r\n {params.vhl_status && params.vhl_status !== \"skeleton\" && (\r\n <div className=\"pl-flex pl-flex-col pl-justify-between pl-gap-2 pl-size-full\">\r\n {params.banner && (\r\n <div className=\"pl-w-full pl-aspect-video pl-absolute\">\r\n <Image src={params.banner} alt=\"banner\" layout=\"fill\" className=\"pl-w-full pl-aspect-video\" />\r\n <div className=\"pl-absolute pl-inset-0 pl-bg-black/50 pl-rounded-lg\" />\r\n </div>\r\n )}\r\n <div />\r\n {params.vhl_status === \"download_start\" && (\r\n <>\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] tablet:!pl-max-w-[305px] desktop:!pl-max-w-[198px] pl-mx-auto pl-py-2 tablet:pl-py-[12.32px] desktop:pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2 tablet:pl-gap-[12.32px] desktop:pl-gap-2\">\r\n <svg style={{ height: 0, position: \"absolute\" }}>\r\n <defs>\r\n <linearGradient id=\"gradientColor\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\r\n <stop offset=\"0%\" stopColor=\"#FF649D\" />\r\n <stop offset=\"100%\" stopColor=\"#A50C4B\" />\r\n </linearGradient>\r\n </defs>\r\n </svg>\r\n <CircularProgressbarWithChildren\r\n value={params.vhl_progress!}\r\n className=\"pl-size-[50px]\"\r\n styles={buildStyles({\r\n trailColor: \"rgba(0, 0, 0, 0.1)\",\r\n pathColor: \"url(#gradientColor)\",\r\n })}\r\n >\r\n <p className=\"pl-text-text-primary pl-text-[14px] pl-font-medium\">{params.vhl_progress}%</p>\r\n </CircularProgressbarWithChildren>\r\n <p className=\"pl-text-text-primary pl-text-[10px] pl-font-normal\">{params.vhl_statusText}</p>\r\n </div>\r\n </>\r\n )}\r\n {params.vhl_status === \"download_error\" && (\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] pl-mx-auto pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2\">\r\n <Image alt=\"info-circle-icon\" src={IMAGES.infoCircle} width={32} height={32} />\r\n <p className=\"pl-text-[10px] pl-font-normal pl-text-text-primary\">{params.vhl_statusText}</p>\r\n <button className=\"pl-flex pl-items-center pl-gap-2\" onClick={() => params.vhl_onRetry!()}>\r\n <Image alt=\"rotate-red-icon\" src={IMAGES.rotateRed} width={14} height={14} />\r\n <span className=\"pl-text-primary pl-text-[10px] pl-font-normal\">تلاش دوباره</span>\r\n </button>\r\n </div>\r\n )}\r\n <div\r\n className={`pl-flex ${\r\n !conditions(ConditionName.isTouchScreenPortrait)\r\n ? `pl-flex-col-reverse pl-mb-3 ${conditions(ConditionName.isFullScreen) && \"pl-mb-8\"}`\r\n : \"pl-flex-col\"\r\n } pl-gap-[14.58px]`}\r\n >\r\n <div className={`pl-flex pl-items-center pl-justify-between ${conditions(ConditionName.isFullScreen) ? \"pl-mx-8\" : \"pl-mx-[14.58px]\"}`}>\r\n <FullScreen />\r\n <div className={`pl-flex pl-items-center pl-gap-[14.58px]`}>\r\n {params.vhl_duration && (\r\n <div className=\"pl-text-Common-white pl-text-[10.93px] pl-font-normal pl-relative\">\r\n <span>{secondsToHMS(0)}</span>\r\n <span>/</span>\r\n <span>{secondsToHMS(params.vhl_duration)}</span>\r\n </div>\r\n )}\r\n <SoundVolume />\r\n </div>\r\n </div>\r\n <div className=\"pl-w-full pl-h-[3.64px] pl-bg-gray-highLight pl-animate-pulse\" />\r\n </div>\r\n </div>\r\n )}\r\n {params.vhl_status === \"skeleton\" && <Skeleton />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default VideoHighLighter;\r\n","import { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\n\r\nconst Skeleton = () => {\r\n return (\r\n <div\r\n role=\"status\"\r\n className={`pl-size-full pl-flex pl-items-center pl-justify-center pl-bg-gray-300 ${!conditions(ConditionName.isTouchScreen) && \"pl-rounded-lg\"} pl-animate-pulse dark:pl-bg-gray-700`}\r\n >\r\n <span className=\"pl-sr-only\">Loading...</span>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Skeleton;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/videoHighLighter/VideoHighLighter.tsx","../src/videoPlayerLibrary/components/custom-components/skeleton/Skeleton.tsx"],"names":["init_esm_shims","Skeleton","jsx","conditions","Skeleton_default","VideoHighLighter","params","useAppSelector","shallowEqual","useFullScreen_default","jsxs","Image","Fragment","CircularProgressbarWithChildren","buildStyles","importImages_default","fullScreen_default","secondsToHMS","soundVolume_default","VideoHighLighter_default"],"mappings":"0YAAAA,CAAAA,EAAAA,CCAAA,CASM,EAAA,CANN,IAAMC,EAAW,IAEbC,GAAAA,CAAC,OACC,IAAK,CAAA,QAAA,CACL,UAAW,CAAyE,sEAAA,EAAA,CAACC,kBAAsC,CAAK,EAAA,eAAe,CAE/I,qCAAA,CAAA,CAAA,QAAA,CAAAD,IAAC,MAAK,CAAA,CAAA,SAAA,CAAU,aAAa,QAAU,CAAA,YAAA,CAAA,CAAA,CACzC,EAIGE,CAAQH,CAAAA,CAAAA,KDDTI,CAAmB,CAAA,IAAM,CAC7B,GA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AW,CAC7E,CAAA,CAAA,CAAA,CAAA,CACF,EAEFQ,IAAC,CAAA,KAAA,CAAA,CACC,UAAW,CACRP,QAAAA,EAAAA,EAAAA,CAAAA,uBAA8C,EAE3C,aADA,CAAA,CAAA,4BAAA,EAA+BA,iBAAqC,CAAK,EAAA,SAAS,EAExF,CAEA,iBAAA,CAAA,CAAA,QAAA,CAAA,CAAAO,IAAC,CAAA,KAAA,CAAA,CAAI,UAAW,CAA8CP,2CAAAA,EAAAA,EAAAA,CAAAA,cAAqC,EAAI,SAAY,CAAA,iBAAiB,GAClI,QAAAD,CAAAA,CAAAA,GAAAA,CAACc,EAAA,EAAW,CAAA,CACZN,KAAC,KAAI,CAAA,CAAA,SAAA,CAAW,2CACb,QAAAJ,CAAAA,CAAAA,CAAAA,CAAO,cACNI,IAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,mEAAA,CACb,UAAAR,GAAC,CAAA,MAAA,CAAA,CAAM,SAAAe,CAAa,CAAA,CAAC,EAAE,CACvBf,CAAAA,GAAAA,CAAC,QAAK,QAAC,CAAA,GAAA,CAAA,CAAA,CACPA,IAAC,MAAM,CAAA,CAAA,QAAA,CAAAe,EAAaX,CAAO,CAAA,YAAY,EAAE,CAC3C,CAAA,CAAA,CAAA,CAEFJ,IAACgB,CAAA,CAAA,EAAY,GACf,CACF,CAAA,CAAA,CAAA,CACAhB,IAAC,KAAI,CAAA,CAAA,SAAA,CAAU,gEAAgE,CACjF,CAAA,CAAA,CAAA,CAAA,CACF,EAEDI,CAAO,CAAA,UAAA,GAAe,YAAcJ,GAACE,CAAAA,CAAAA,CAAA,EAAS,CACjD,CAAA,CAAA,CAEJ,EAEOe,CAAQd,CAAAA","file":"VideoHighLighter-WXZX2FLN.mjs","sourcesContent":["import { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport Skeleton from \"../../custom-components/skeleton/Skeleton\";\r\nimport FullScreen from \"../../custom-components/fullScreen/fullScreen\";\r\nimport SoundVolume from \"../../custom-components/soundVolume/soundVolume\";\r\nimport { secondsToHMS } from \"../../../helpers/helpers\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { buildStyles, CircularProgressbarWithChildren } from \"react-circular-progressbar\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport Image from \"next/legacy/image\";\r\nimport useFullScreen from \"../../../helpers/hooks/useFullScreen\";\r\n\r\nconst VideoHighLighter = () => {\r\n const { params } = useAppSelector(({ videoData: { params } }) => ({ params }), shallowEqual);\r\n useFullScreen();\r\n\r\n return (\r\n <div\r\n id=\"video-area\"\r\n className={`pl-relative pl-rounded-[12px] pl-w-full pl-h-full pl-aspect-video !pl-overflow-hidden ${\r\n conditions(ConditionName.isTouchScreen) && \"pl-rounded-none\"\r\n } ${conditions(ConditionName.isFullScreen) && \"!pl-overflow-hidden pl-fixed pl-top-0 pl-right-0 pl-w-screen pl-h-screen pl-rounded-none\"}`}\r\n >\r\n {params.vhl_status && params.vhl_status !== \"skeleton\" && (\r\n <div className=\"pl-flex pl-flex-col pl-justify-between pl-gap-2 pl-size-full\">\r\n {params.banner && (\r\n <div className=\"pl-w-full pl-aspect-video pl-absolute\">\r\n <Image src={params.banner} alt=\"banner\" layout=\"fill\" className=\"pl-w-full pl-aspect-video\" />\r\n <div className=\"pl-absolute pl-inset-0 pl-bg-black/50 pl-rounded-lg\" />\r\n </div>\r\n )}\r\n <div />\r\n {params.vhl_status === \"download_start\" && (\r\n <>\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] tablet:!pl-max-w-[305px] desktop:!pl-max-w-[198px] pl-mx-auto pl-py-2 tablet:pl-py-[12.32px] desktop:pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2 tablet:pl-gap-[12.32px] desktop:pl-gap-2\">\r\n <svg style={{ height: 0, position: \"absolute\" }}>\r\n <defs>\r\n <linearGradient id=\"gradientColor\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\">\r\n <stop offset=\"0%\" stopColor=\"#FF649D\" />\r\n <stop offset=\"100%\" stopColor=\"#A50C4B\" />\r\n </linearGradient>\r\n </defs>\r\n </svg>\r\n <CircularProgressbarWithChildren\r\n value={params.vhl_progress!}\r\n className=\"pl-size-[50px]\"\r\n styles={buildStyles({\r\n trailColor: \"rgba(0, 0, 0, 0.1)\",\r\n pathColor: \"url(#gradientColor)\",\r\n })}\r\n >\r\n <p className=\"pl-text-text-primary pl-text-[14px] pl-font-medium\">{params.vhl_progress}%</p>\r\n </CircularProgressbarWithChildren>\r\n <p className=\"pl-text-text-primary pl-text-[10px] pl-font-normal\">{params.vhl_statusText}</p>\r\n </div>\r\n </>\r\n )}\r\n {params.vhl_status === \"download_error\" && (\r\n <div className=\"pl-relative pl-z-[1000000] pl-bg-Common-white-overlay-1 pl-w-full pl-max-w-[198px] pl-mx-auto pl-py-2 pl-rounded-[8px] pl-flex pl-flex-col pl-items-center pl-gap-2\">\r\n <Image alt=\"info-circle-icon\" src={IMAGES.infoCircle} width={32} height={32} />\r\n <p className=\"pl-text-[10px] pl-font-normal pl-text-text-primary\">{params.vhl_statusText}</p>\r\n <button className=\"pl-flex pl-items-center pl-gap-2\" onClick={() => params.vhl_onRetry!()}>\r\n <Image alt=\"rotate-red-icon\" src={IMAGES.rotateRed} width={14} height={14} />\r\n <span className=\"pl-text-primary pl-text-[10px] pl-font-normal\">تلاش دوباره</span>\r\n </button>\r\n </div>\r\n )}\r\n <div\r\n className={`pl-flex ${\r\n !conditions(ConditionName.isTouchScreenPortrait)\r\n ? `pl-flex-col-reverse pl-mb-3 ${conditions(ConditionName.isFullScreen) && \"pl-mb-8\"}`\r\n : \"pl-flex-col\"\r\n } pl-gap-[14.58px]`}\r\n >\r\n <div className={`pl-flex pl-items-center pl-justify-between ${conditions(ConditionName.isFullScreen) ? \"pl-mx-8\" : \"pl-mx-[14.58px]\"}`}>\r\n <FullScreen />\r\n <div className={`pl-flex pl-items-center pl-gap-[14.58px]`}>\r\n {params.vhl_duration && (\r\n <div className=\"pl-text-Common-white pl-text-[10.93px] pl-font-normal pl-relative\">\r\n <span>{secondsToHMS(0)}</span>\r\n <span>/</span>\r\n <span>{secondsToHMS(params.vhl_duration)}</span>\r\n </div>\r\n )}\r\n <SoundVolume />\r\n </div>\r\n </div>\r\n <div className=\"pl-w-full pl-h-[3.64px] pl-bg-gray-highLight pl-animate-pulse\" />\r\n </div>\r\n </div>\r\n )}\r\n {params.vhl_status === \"skeleton\" && <Skeleton />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default VideoHighLighter;\r\n","import { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\n\r\nconst Skeleton = () => {\r\n return (\r\n <div\r\n role=\"status\"\r\n className={`pl-size-full pl-flex pl-items-center pl-justify-center pl-bg-gray-300 ${!conditions(ConditionName.isTouchScreen) && \"pl-rounded-lg\"} pl-animate-pulse dark:pl-bg-gray-700`}\r\n >\r\n <span className=\"pl-sr-only\">Loading...</span>\r\n </div>\r\n );\r\n};\r\n\r\nexport default Skeleton;\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/images/importImages.ts"],"names":["init_cjs_shims","IMAGES","importImages_default"],"mappings":"u+nDAAAA,kBAAAA,EAAAA,CAAA,IAAMC,EAAAA,CAAc,CAChB,UAAA,CAAY,CAAA,EAAA,CACZ,aAAA,CAAe,CAAA,EAAA,CACf,QAAA,CAAU,CAAA,EAAA,CACV,OAAA,CAAS,CAAA,EAAA,CACT,QAAA,CAAU,CAAA,EAAA,CACV,IAAA,CAAM,CAAA,EAAA,CACN,MAAA,CAAQ,CAAA,EAAA,CACR,UAAA,CAAY,CAAA,EAAA,CACZ,SAAA,CAAW,CAAA,EAAA,CACX,WAAA,CAAa,CAAA,EAAA,CACb,gBAAA,CAAkB,CAAA,EAAA,CAClB,IAAA,CAAM,CAAA,EAAA,CACN,MAAA,CAAQ,CAAA,EAAA,CACR,UAAW,CAAA,EAAA,CACX,KAAA,CAAO,CAAA,EAAA,CACP,MAAA,CAAQ,CAAA,EAAA,CACR,IAAA,CAAM,CAAA,EAAA,CACN,cAAA,CAAgB,CAAA,EAAA,CAChB,eAAA,CAAiB,CAAA,EAAA,CACjB,QAAA,CAAU,CAAA,EAAA,CACV,WAAA,CAAa,CAAA,EAAA,CACb,GAAA,CAAK,CAAA,EAAA,CACL,YAAA,CAAc,CAAA,EAAA,CACd,eAAA,CAAiB,CAAA,EAAA,CACjB,mBAAA,CAAqB,CAAA,EAAA,CACrB,UAAA,CAAY,CAAA,EAAA,CACZ,SAAA,CAAW,CAAA,EACf,CAAA,CAEOC,EAAAA,CAAQD","file":"chunk-5FTEBU6O.js","sourcesContent":["const IMAGES: any = {\r\n fullScreen: require(\"./svg/FullScreen.svg\"),\r\n nonFullScreen: require(\"./svg/NonFullScreen.svg\"),\r\n settings: require(\"./svg/Settings.svg\"),\r\n bigPlay: require(\"./svg/BigPlay.svg\"),\r\n bigPause: require(\"./svg/BigPause.svg\"),\r\n mute: require(\"./svg/Mute.svg\"),\r\n unMute: require(\"./svg/UnMute.svg\"),\r\n backward15: require(\"./svg/Backward15.svg\"),\r\n forward15: require(\"./svg/Forward15.svg\"),\r\n chevronLeft: require(\"./svg/ChevronLeft.svg\"),\r\n pictureInPicture: require(\"./svg/PictureInPicture.svg\"),\r\n lock: require(\"./svg/Lock.svg\"),\r\n unlock: require(\"./svg/Unlock.svg\"),\r\n arrowLeft: require(\"./svg/ArrowLeft.svg\"),\r\n speed: require(\"./svg/Speed.svg\"),\r\n speed1: require(\"./svg/Speed1.svg\"),\r\n tick: require(\"./svg/Tick.svg\"),\r\n qualitySetting: require(\"./svg/QualitySetting.svg\"),\r\n qualitySetting1: require(\"./svg/QualitySetting1.svg\"),\r\n notFound: require(\"./svg/NotFound.svg\"),\r\n closeSquare: require(\"./svg/CloseSquare.svg\"),\r\n sun: require(\"./svg/Sun.svg\"),\r\n subtitleFill: require(\"./svg/SubtitleFill.svg\"),\r\n subtitleOutline: require(\"./svg/SubtitleOutline.svg\"),\r\n subtitleOutlineGray: require(\"./svg/SubtitleOutlineGray.svg\"),\r\n infoCircle: require(\"./svg/InfoCircle.svg\"),\r\n rotateRed: require(\"./svg/RotateRed.svg\"),\r\n};\r\n\r\nexport default IMAGES;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/images/importImages.ts"],"names":["init_cjs_shims","IMAGES","importImages_default"],"mappings":"u+nDAAAA,kBAAA,EAAA,CAAA,IAAMC,EAAc,CAAA,CAChB,UAAY,CAAA,CAAA,EAAA,CACZ,aAAe,CAAA,CAAA,EAAA,CACf,QAAU,CAAA,CAAA,EAAA,CACV,OAAS,CAAA,CAAA,EAAA,CACT,QAAU,CAAA,CAAA,EAAA,CACV,IAAM,CAAA,CAAA,EAAA,CACN,MAAQ,CAAA,CAAA,EAAA,CACR,UAAY,CAAA,CAAA,EAAA,CACZ,SAAW,CAAA,CAAA,EAAA,CACX,WAAa,CAAA,CAAA,EAAA,CACb,gBAAkB,CAAA,CAAA,EAAA,CAClB,IAAM,CAAA,CAAA,EAAA,CACN,MAAQ,CAAA,CAAA,EAAA,CACR,UAAW,CACX,EAAA,CAAA,KAAA,CAAO,CACP,EAAA,CAAA,MAAA,CAAQ,CACR,EAAA,CAAA,IAAA,CAAM,CACN,EAAA,CAAA,cAAA,CAAgB,CAChB,EAAA,CAAA,eAAA,CAAiB,CACjB,EAAA,CAAA,QAAA,CAAU,CACV,EAAA,CAAA,WAAA,CAAa,CACb,EAAA,CAAA,GAAA,CAAK,CACL,EAAA,CAAA,YAAA,CAAc,CACd,EAAA,CAAA,eAAA,CAAiB,CACjB,EAAA,CAAA,mBAAA,CAAqB,CACrB,EAAA,CAAA,UAAA,CAAY,CACZ,EAAA,CAAA,SAAA,CAAW,CACf,EAAA,CAAA,CAEOC,EAAQD,CAAAA","file":"chunk-5FTEBU6O.js","sourcesContent":["const IMAGES: any = {\r\n fullScreen: require(\"./svg/FullScreen.svg\"),\r\n nonFullScreen: require(\"./svg/NonFullScreen.svg\"),\r\n settings: require(\"./svg/Settings.svg\"),\r\n bigPlay: require(\"./svg/BigPlay.svg\"),\r\n bigPause: require(\"./svg/BigPause.svg\"),\r\n mute: require(\"./svg/Mute.svg\"),\r\n unMute: require(\"./svg/UnMute.svg\"),\r\n backward15: require(\"./svg/Backward15.svg\"),\r\n forward15: require(\"./svg/Forward15.svg\"),\r\n chevronLeft: require(\"./svg/ChevronLeft.svg\"),\r\n pictureInPicture: require(\"./svg/PictureInPicture.svg\"),\r\n lock: require(\"./svg/Lock.svg\"),\r\n unlock: require(\"./svg/Unlock.svg\"),\r\n arrowLeft: require(\"./svg/ArrowLeft.svg\"),\r\n speed: require(\"./svg/Speed.svg\"),\r\n speed1: require(\"./svg/Speed1.svg\"),\r\n tick: require(\"./svg/Tick.svg\"),\r\n qualitySetting: require(\"./svg/QualitySetting.svg\"),\r\n qualitySetting1: require(\"./svg/QualitySetting1.svg\"),\r\n notFound: require(\"./svg/NotFound.svg\"),\r\n closeSquare: require(\"./svg/CloseSquare.svg\"),\r\n sun: require(\"./svg/Sun.svg\"),\r\n subtitleFill: require(\"./svg/SubtitleFill.svg\"),\r\n subtitleOutline: require(\"./svg/SubtitleOutline.svg\"),\r\n subtitleOutlineGray: require(\"./svg/SubtitleOutlineGray.svg\"),\r\n infoCircle: require(\"./svg/InfoCircle.svg\"),\r\n rotateRed: require(\"./svg/RotateRed.svg\"),\r\n};\r\n\r\nexport default IMAGES;\r\n"]}
@@ -1,9 +1,9 @@
1
- 'use strict';var chunkVM4C2OTW_js=require('./chunk-VM4C2OTW.js'),chunkTVDVQALL_js=require('./chunk-TVDVQALL.js'),chunkK6VN2DH7_js=require('./chunk-K6VN2DH7.js'),chunkTGYQBJWV_js=require('./chunk-TGYQBJWV.js'),chunkQHZJEU27_js=require('./chunk-QHZJEU27.js'),chunkXJBLW3CD_js=require('./chunk-XJBLW3CD.js'),chunkF4OMGIV3_js=require('./chunk-F4OMGIV3.js'),chunk5FTEBU6O_js=require('./chunk-5FTEBU6O.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime'),ie=require('next/legacy/image'),reactDom=require('react-dom'),Bo=require('next/dynamic');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ie__default=/*#__PURE__*/_interopDefault(ie);var Bo__default=/*#__PURE__*/_interopDefault(Bo);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Yo=()=>{let{details:e,params:l}=chunkF4OMGIV3_js.ha(({videoData:{details:o,params:i}})=>({details:o,params:i}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{className:`pl-w-full pl-max-w-[80%] pl-truncate pl-text-left pl-ml-4 pl-text-[16px] pl-font-normal pl-text-white pl-break-words pl-self-start animate__animated animate__faster ${chunkF4OMGIV3_js.fa("isActiveElements")?"animate__fadeIn pl-opacity-100":"pl-opacity-0 animate__fadeOut"}`,children:chunkF4OMGIV3_js.fa("hasTitle")?e.title:l.id})},It=Yo;chunkWO4IQUGO_js.e();var jo=()=>jsxRuntime.jsxs("div",{className:`pl-relative animate__animated animate__faster ${chunkF4OMGIV3_js.fa("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>chunkXJBLW3CD_js.h("unlock")}),!localStorage.getItem("unlock-click")&&jsxRuntime.jsx("p",{className:"pl-text-[10px] pl-text-black/[0.87] pl-bg-[#F7F7F7] pl-absolute pl-left-0 pl-px-4 pl-py-3 pl-rounded-[8px] pl-w-max",children:"\u0628\u0631\u0627\u06CC \u0628\u0627\u0632 \u06A9\u0631\u062F\u0646 \u0642\u0641\u0644\u060C \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F"})]}),Et=jo;var ol=()=>(chunkF4OMGIV3_js.ha(({controller:{lock:e,activeElements:l}})=>({lock:e,activeElements:l}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:`pl-flex pl-items-start pl-justify-end pl-mx-8 pl-pt-8 ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?"pl-h-[16px]":"pl-h-[60px]"}`,children:[chunkF4OMGIV3_js.fa("showTitle")&&jsxRuntime.jsx(It,{}),chunkF4OMGIV3_js.fa("isLock")&&jsxRuntime.jsx(Et,{})]})),Lt=ol;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var rl=()=>(chunkF4OMGIV3_js.ha(({controller:{play:e}})=>({play:e}),reactRedux.shallowEqual),chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:e,params:l}})=>({videoElementSizeInfo:e,params:l}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{className:`${!chunkF4OMGIV3_js.fa("isTouchScreen")&&"hover:pl-scale-125"} pl-transition-transform pl-ease-in-out pl-cursor-pointer`,onContextMenu:e=>e.preventDefault(),children:jsxRuntime.jsx(ie__default.default,{alt:"",src:chunkF4OMGIV3_js.fa("isPlay")?chunk5FTEBU6O_js.a.bigPause:chunk5FTEBU6O_js.a.bigPlay,width:40,height:40,onClick:e=>chunkXJBLW3CD_js.a(e),onDoubleClick:e=>e.stopPropagation(),className:`${chunkF4OMGIV3_js.fa("isPlay")?"pl-big-play-icon":"pl-big-pause-icon"}`})})),Dt=rl;var pl=()=>{let[e,l]=react.useState(false),[o,i]=react.useState(false),{firstPlay:r}=chunkF4OMGIV3_js.ha(({controller:{lock:a,firstPlay:f}})=>({lock:a,firstPlay:f}),reactRedux.shallowEqual),{activeElements:p,isLoading:u}=chunkF4OMGIV3_js.ha(({controller:{activeElements:a,isLoading:f}})=>({activeElements:a,isLoading:f}),reactRedux.shallowEqual);return react.useEffect(()=>{let a=null;return chunkF4OMGIV3_js.fa("isFirstPlay")||chunkF4OMGIV3_js.fa("isActiveElements")?a=setTimeout(()=>i(true),100):i(false),()=>clearTimeout(a)},[p]),react.useEffect(()=>{let a;return chunkF4OMGIV3_js.fa("isLoading")?a=setTimeout(()=>l(true),chunkF4OMGIV3_js.fa("isFirstPlay")?0:chunkQHZJEU27_js.b):l(false),()=>{clearTimeout(a),l(false);}},[u,r]),jsxRuntime.jsx("main",{className:"pl-flex-1 pl-mt-1",children:e?jsxRuntime.jsx(chunkTVDVQALL_js.a,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:o&&!chunkF4OMGIV3_js.fa("isLock")&&jsxRuntime.jsx("div",{id:"main-content",className:`pl-h-full pl-flex pl-justify-center pl-items-center pl-text-center pl-relative ${chunkF4OMGIV3_js.fa("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:jsxRuntime.jsxs("div",{onClick:a=>a.stopPropagation(),className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:4},children:[!chunkF4OMGIV3_js.fa("isFirstPlay")&&jsxRuntime.jsx(chunkTGYQBJWV_js.a,{type:"forward"}),jsxRuntime.jsx(Dt,{}),!chunkF4OMGIV3_js.fa("isFirstPlay")&&jsxRuntime.jsx(chunkTGYQBJWV_js.a,{type:"backward"})]})})})})},Bt=pl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var We=e=>{let{videoElementSizeInfo:l}=chunkF4OMGIV3_js.P.getState().videoData,{duration:o}=chunkF4OMGIV3_js.P.getState().controller,i=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(i<=l.right&&i>0)return (i-l.left)/l.width*o},J=e=>{let{videoElementSizeInfo:l}=chunkF4OMGIV3_js.P.getState().videoData,o=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(o<=l.right&&o>0)return o-l.left},zt=e=>{let{duration:l}=chunkF4OMGIV3_js.P.getState().controller;return e*chunkF4OMGIV3_js.oa()/l},fe=e=>{e&&(e.style.opacity="0.0",e.style.pointerEvents="none",e.style.zIndex=-2);},al=e=>{e.style.display="block",e.style.zIndex=5,e.style.opacity=chunkF4OMGIV3_js.P.getState().videoData.details.vtt?"1.0":"0.6",e.style.pointerEvents="auto",e.style.transition="opacity 1s ease-out";},ml=(e,l)=>{let{videoElementSizeInfo:o}=chunkF4OMGIV3_js.P.getState().videoData,i=document.getElementsByClassName("pl-progressTooltip")[0],r=document.getElementById("parent-player");i&&r&&(J(e)>i.getBoundingClientRect().width/2&&J(e)<o.right-o.left-i.getBoundingClientRect().width/2?l.style.left=`${J(e)-i.offsetWidth/2}px`:J(e)<(r.offsetLeft===0?i.offsetWidth:r.offsetLeft)?l.style.left="0px":chunkF4OMGIV3_js.la().offsetLeft+chunkF4OMGIV3_js.la().offsetWidth<J(e)+i.offsetWidth&&(l.style.left=`${chunkF4OMGIV3_js.la().offsetWidth-i.offsetWidth}px`));},cl=(e,l,o)=>{l&&al(l),chunkF4OMGIV3_js.P.getState().videoData.details.vtt?ml(e,l):l.style.left=`${J(e)-30}px`,chunkF4OMGIV3_js.P.dispatch(chunkF4OMGIV3_js.q(Number(We(e)))),o.textContent=`${chunkF4OMGIV3_js.S(We(e))}`;},he=(e,l=false)=>{let{videoElementSizeInfo:o}=chunkF4OMGIV3_js.P.getState().videoData,i=document.querySelector(".pl-progressTooltip"),r=document.querySelector(".pl-progressTimeTooltip"),p=e.clientX!==void 0?e.clientX:e.touches[0].clientX;i&&r&&p<=o.right&&p>o.left?(cl(e,i,r),l&&setTimeout(()=>fe(i),2e3)):fe(i);},qt=e=>{let l=e.clientX!==void 0?e.clientX:e.touches[0].clientX;chunkF4OMGIV3_js.na()&&(l<=e.view.innerWidth&&l>0?chunkF4OMGIV3_js.na().style.width=`${J(e)}px`:l<=e.view.innerWidth?chunkF4OMGIV3_js.na().style.width=0:l>0&&(chunkF4OMGIV3_js.na().style.width="100%"));},Rt=(e,l,o)=>{e.preventDefault(),e.stopPropagation(),o(true);let i=chunkF4OMGIV3_js.P.dispatch,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX;r<=e.view.innerWidth&&r>0&&(i(chunkF4OMGIV3_js.k(true)),i(chunkF4OMGIV3_js.l(true)),sessionStorage.setItem("previousVideoTime",String(chunkF4OMGIV3_js.la().currentTime)),e.target.setPointerCapture(e.pointerId),l.length>0&&l.map(p=>clearTimeout(p)));},Qe=e=>{e.preventDefault(),e.stopPropagation();let l=chunkF4OMGIV3_js.P.dispatch,{activePointerProgressBar:o}=chunkF4OMGIV3_js.P.getState().controller,{left:i}=chunkF4OMGIV3_js.P.getState().videoData.videoElementSizeInfo,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX,p=document.querySelector(".pl-progressTooltip");r>i?(p&&(p.style.display="block !important",p.style.pointerEvents="auto"),o&&(l(chunkF4OMGIV3_js.l(true)),he(e),qt(e),chunkF4OMGIV3_js.la()?.pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},Xt=(e,l,o,i)=>{i(false),e.preventDefault(),e.stopPropagation();let r=chunkF4OMGIV3_js.P.dispatch,{duration:p}=chunkF4OMGIV3_js.P.getState().controller,{left:u,right:a}=chunkF4OMGIV3_js.P.getState().videoData.videoElementSizeInfo,f=chunkF4OMGIV3_js.P.getState().videoData.params;e.target.removeEventListener("pointermove",Qe);let d=e.clientX!==void 0?e.clientX:e.touches[0].clientX,h=0;d>u&&d<a?h=We(e):d<u?h=0:d>0&&(h=p),chunkF4OMGIV3_js.fa("isStaticFormat")||chunkXJBLW3CD_js.i(chunkF4OMGIV3_js.la().currentTime,h),chunkF4OMGIV3_js.la().currentTime=h,chunkF4OMGIV3_js.fa("hasOnChangeCurrentTime")&&f.onChangeCurrentTime(h),chunkF4OMGIV3_js.P.getState().controller.activePointerProgressBar&&(r(chunkF4OMGIV3_js.k(false)),r(chunkF4OMGIV3_js.l(false)),chunkF4OMGIV3_js.la().play(),he(e,true),sessionStorage.setItem("current-time",String(h)),qt(e),dl(e,r,l,o));},dl=(e,l,o,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:u}=chunkF4OMGIV3_js.P.getState().popovers,{delayTurnOffControlbar:a}=chunkF4OMGIV3_js.P.getState().controller;e.pointerType==="touch"&&!u&&a&&l(chunkF4OMGIV3_js.f(false));},chunkQHZJEU27_js.a);r.push(p),o(r);},Ht=()=>{let e=Date.now();chunkF4OMGIV3_js.la().play().then(()=>chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.ra(Date.now()-e)));},Ut=e=>he(e),Wt=()=>{let e=document.querySelector(".pl-progressTooltip");fe(e);},ul=e=>{let l=e.split("."),i=l[0].split(":");return {milliseconds:parseInt(l[1],10)||0,seconds:parseInt(i.pop(),10)||0,minutes:parseInt(i.pop(),10)||0,hours:parseInt(i.pop(),10)||0}},Vt=e=>{let l=ul(e);return parseInt(l.hours*3600+l.minutes*60+l.seconds+l.milliseconds/1e3,10)},fl=e=>{let l=e.split(/#xywh=/i),o=l[0],r=l[1].match(/[0-9]+/gi);return {x:r[0],y:r[1],w:r[2],h:r[3],image:o}},hl=(e,l)=>e.indexOf("//")>=0?e:l.indexOf("//")===0?[l.replace(/\/$/gi,""),e.trim()].join("/"):l.indexOf("//")>0?[l.trim(),e.trim()].join("/"):e,vl=(e,l)=>{let o={},i=l.split(/\/\w+\.vtt\s?/)[0];if(e=hl(e,i),!e.match(/#xywh=/i))return o.background='url("'+e+l.split(/\/\w+\.vtt\s?/)[1]+'")',o;let r=fl(e);return o.background='url("'+r.image+l.split(/\/\w+\.vtt\s?/)[1]+'") no-repeat -'+r.x+"px -"+r.y+"px",o.width=r.w+"px",o.height=r.h+"px",o.url=r.image,o},Qt=(e,l)=>{fetch(e).then(o=>{if(!o.ok)throw chunkF4OMGIV3_js.P.dispatch(chunkF4OMGIV3_js.r({...chunkF4OMGIV3_js.P.getState().videoData.details,vtt:void 0,vtt_mobile:void 0})),new Error("Network response was not ok");return o.text()}).then(o=>{let i=[];o.split(/[\r\n][\r\n]/i).forEach(p=>{if(p.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3}).*/gi)){let u=p.split(/[\r\n]/i),f=u[0].split(/ ?--> ?/i),d=f[0],h=f[1],c=u[1],y=vl(c,e);i.push({start:Vt(d),end:Vt(h),css:y});}}),l(i);}).catch(o=>{console.error("Error fetching file:",o);});},Gt=(e,l,o)=>{for(let i=0;i<l.length;++i){let r=l[i];if(e>=r.start&&e<r.end){if(r.css.url&&!o[r.css.url]){let p={background:r.css.background,width:r.css.width,height:r.css.height};return o[r.css.url]=p,p}else if(r.css.url)return o[r.css.url]}}};var xl=()=>{let{details:e}=chunkF4OMGIV3_js.ha(({videoData:{details:a}})=>({details:a}),reactRedux.shallowEqual),{tooltipTime:l}=chunkF4OMGIV3_js.ha(({controller:{tooltipTime:a,activeElements:f,isFullScreen:d}})=>({tooltipTime:a,activeElements:f,isFullScreen:d}),reactRedux.shallowEqual),o={},[i,r]=react.useState(void 0),[p,u]=react.useState(chunkF4OMGIV3_js.fa("isTouchScreen")?e.vtt_mobile:e.vtt);return react.useEffect(()=>{u(e.vtt_mobile);},[e.vtt_mobile]),react.useEffect(()=>{p&&Qt(e.vtt_mobile,r);},[p]),chunkF4OMGIV3_js.fa("isActiveElements")?jsxRuntime.jsxs("div",{className:`pl-flex pl-flex-col pl-progressTooltip pl-absolute pl-bottom-[calc(100%+10px)] pl-px-[10px] pl-pt-[5px] pl-mr-[-25px] pl-text-white pl-text-[14px] ${p&&i?"":"pl-bg-z-gray-700"} pl-rounded-[6px] pl-opacity-0`,children:[p&&!!i&&jsxRuntime.jsx("div",{className:"pl-flex-1 pl-border pl-border-white pl-rounded-[8px] pl-mb-2",children:jsxRuntime.jsx("div",{className:"pl-rounded-[8px]",style:Gt(l,i,o)})}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100"})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{})},Kt=react.memo(xl);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var wl=(e,l)=>{react.useEffect(()=>{let o=i=>{!e.current||e.current.contains(i.target)||l(i);};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o);}},[e,l]);},O=wl;chunkWO4IQUGO_js.e();var Tl=({name:e,className:l,dataMarker:o})=>jsxRuntime.jsx("img",{"data-marker":o,src:`${chunkF4OMGIV3_js.ia()}/${e}.png`,alt:e,className:l}),ve=Tl;var Il=()=>{chunkF4OMGIV3_js.ga();let {duration:l,activeElements:o}=chunkF4OMGIV3_js.ha(({controller:{duration:m,activeElements:x,isFullScreen:U}})=>({duration:m,activeElements:x,isFullScreen:U}),reactRedux.shallowEqual),{markers:i}=chunkF4OMGIV3_js.ha(({videoData:{markers:m,videoElementSizeInfo:x}})=>({markers:m,videoElementSizeInfo:x}),reactRedux.shallowEqual),[r,p]=react.useState(void 0),[u,a]=react.useState([]),[f,d]=react.useState({}),[h,c]=react.useState(false),y=m=>l?chunkF4OMGIV3_js.oa()*m/l:0,L=(m,x,U,se,K,W,ne,ze)=>{m.stopPropagation();let A=24*x/(chunkF4OMGIV3_js.oa()+5),j=[],Go=0;ze.map(be=>{be.time>x-A&&be.time<x+A&&(j.push(be),Go+=be.time);}),j.length>1?a(j):(j=[],a([]),v(m,x,U,se,K,W,ne));},v=(m,x,U,se,K,W,ne)=>{m.stopPropagation(),he(m,ne),chunkXJBLW3CD_js.i(chunkF4OMGIV3_js.la().currentTime,x),chunkF4OMGIV3_js.la().currentTime=x,chunkF4OMGIV3_js.na()&&(chunkF4OMGIV3_js.na().style.width=y(x)),chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.Ea(U,x,se,K,W));};react.useEffect(()=>{chunkF4OMGIV3_js.fa("isActiveElements")||a([]);},[o]);let k=react.useRef(null);O(k,()=>a([])),react.useEffect(()=>{if(u.length>0){let m=chunkF4OMGIV3_js.da(document.getElementsByClassName("pl-overlapMarkers")[0]);if(m==="inViewport")return c(true),d({left:y(u[0].time)});if(m==="OutViewPortFromLeft")return c(false),d({left:0});if(m==="OutViewPortFromRight")return c(false),d({right:0})}},[u,document.getElementsByClassName("pl-overlapMarkers")[0]]);let N=m=>{m.preventDefault(),chunkF4OMGIV3_js.fa("isTouchScreen")&&p(Number(m.target.getAttribute("data-marker")));};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i.map(m=>jsxRuntime.jsx("div",{onContextMenu:N,"data-marker":m.time,onClick:x=>L(x,m.time,m.id,m.title,m.description,m.sticker,true,i),onDoubleClick:x=>x.stopPropagation(),children:jsxRuntime.jsxs("div",{className:`pl-emoji-image pl-absolute pl-bottom-[200%] pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-p-1 ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:y(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(ve,{dataMarker:m.time,name:m.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},m.id)),u.length>0&&jsxRuntime.jsx("div",{className:`pl-overlapMarkers ${h?"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:k,style:f,children:u.map(m=>jsxRuntime.jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":m.time,onClick:x=>v(x,m.time,m.id,m.title,m.description,m.sticker,true),onDoubleClick:x=>x.stopPropagation(),children:jsxRuntime.jsx(ve,{dataMarker:m.time,name:m.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},m.id))})]})},oo=react.memo(Il);var Ml=()=>{let[e,l]=react.useState(false);react.useEffect(()=>{fe(document.querySelector(".progressTooltip"));},[]);let{duration:o,currentTime:i,bufferedTimeWidth:r}=chunkF4OMGIV3_js.ha(({controller:{duration:a,currentTime:f,bufferedTimeWidth:d}})=>({duration:a,currentTime:f,bufferedTimeWidth:d}),reactRedux.shallowEqual);chunkF4OMGIV3_js.ha(({videoData:{params:a,videoElementSizeInfo:f}})=>({params:a,videoElementSizeInfo:f}),reactRedux.shallowEqual);let[p,u]=react.useState([]);return jsxRuntime.jsxs("div",{className:`${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"} pl-relative`,children:[jsxRuntime.jsxs("div",{className:"pl-relative",children:[jsxRuntime.jsx(Kt,{}),jsxRuntime.jsx(oo,{})]}),jsxRuntime.jsx("div",{className:"pl-w-full pl-flex pl-items-end",onPointerDown:a=>Rt(a,p,l),onPointerMove:Qe,onPointerUp:a=>Xt(a,u,p,l),onMouseMove:Ut,onMouseOut:Wt,onClick:Ht,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/o*chunkF4OMGIV3_js.oa()}px`}})]})]})})]})},ro=Ml;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Dl=()=>{let[e,l]=react.useState(false),o=chunkF4OMGIV3_js.ga(),{params:i,details:r}=chunkF4OMGIV3_js.ha(({videoData:{params:p,details:u}})=>({params:p,details:u}),reactRedux.shallowEqual);return jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(ie__default.default,{alt:"",onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&l(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&l(false),src:chunk5FTEBU6O_js.a.pictureInPicture,width:20,height:20,className:"pl-flex pl-cursor-pointer",onClick:()=>{i.onClickMiniPlayerIcon&&(localStorage.removeItem("close-miniPlayer"),chunkF4OMGIV3_js.la()?.pause(),o(chunkF4OMGIV3_js.a(false)),i.onClickMiniPlayerIcon({video:r||void 0,id:i.type==="vod"?i.id:window.btoa(i.id),type:i.type,currentTime:chunkF4OMGIV3_js.la().currentTime}));}}),e&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u062A\u0635\u0648\u06CC\u0631 \u062F\u0631 \u062A\u0635\u0648\u06CC\u0631 "})]})},so=Dl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ao=react.forwardRef(({children:e,status:l,onClose:o,type:i,classNames:r,parentClassNames:p,styles:u,isBlurBackground:a,isFullHeight:f=false,isHeader:d,isHasCatchUpLineOnTop:h=false,animation:c,scrollbar:y=false,isFocusOnInput:L=false},v)=>{let[k,N]=react.useState(l),[m,x]=react.useState(0),[U,se]=react.useState(0),{videoElementSizeInfo:K}=chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:A}})=>({videoElementSizeInfo:A}),reactRedux.shallowEqual),W=react.useRef(0);react.useEffect(()=>{let A;return l?N(true):A=setTimeout(()=>{o(false),x(0),N(false);},500),()=>clearTimeout(A)},[l]);let ne=A=>{let j=document.getElementById("popover-content");W.current||(W.current=window.innerHeight-K.top-j?.getBoundingClientRect().top),A.stopPropagation(),window.innerHeight-K.top-A.touches[0].clientY<W.current&&x(window.innerHeight-A.touches[0].clientY),se(1000005);},ze=()=>{o();},qe=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 ${l?"animate__fadeIn":"animate__fadeOut"}`,style:{zIndex:1000001}}),jsxRuntime.jsx("div",{className:`${i==="modal"&&"pl-fixed pl-top-0 pl-left-0 pl-flex pl-w-full pl-h-full pl-justify-center pl-items-end sm:pl-items-center"} ${p}`,style:{zIndex:f&&!L?U:1000004},children:jsxRuntime.jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9]
1
+ 'use strict';var chunkVM4C2OTW_js=require('./chunk-VM4C2OTW.js'),chunkTVDVQALL_js=require('./chunk-TVDVQALL.js'),chunkK6VN2DH7_js=require('./chunk-K6VN2DH7.js'),chunkTGYQBJWV_js=require('./chunk-TGYQBJWV.js'),chunkQHZJEU27_js=require('./chunk-QHZJEU27.js'),chunkXJBLW3CD_js=require('./chunk-XJBLW3CD.js'),chunkF4OMGIV3_js=require('./chunk-F4OMGIV3.js'),chunk5FTEBU6O_js=require('./chunk-5FTEBU6O.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime'),ie=require('next/legacy/image'),reactDom=require('react-dom'),Bo=require('next/dynamic');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var ie__default=/*#__PURE__*/_interopDefault(ie);var Bo__default=/*#__PURE__*/_interopDefault(Bo);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Yo=()=>{let{details:e,params:l}=chunkF4OMGIV3_js.ha(({videoData:{details:o,params:i}})=>({details:o,params:i}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{className:`pl-w-full pl-max-w-[80%] pl-truncate pl-text-left pl-ml-4 pl-text-[16px] pl-font-normal pl-text-white pl-break-words pl-self-start animate__animated animate__faster ${chunkF4OMGIV3_js.fa("isActiveElements")?"animate__fadeIn pl-opacity-100":"pl-opacity-0 animate__fadeOut"}`,children:chunkF4OMGIV3_js.fa("hasTitle")?e.title:l.id})},It=Yo;chunkWO4IQUGO_js.e();var jo=()=>jsxRuntime.jsxs("div",{className:`pl-relative animate__animated animate__faster ${chunkF4OMGIV3_js.fa("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>chunkXJBLW3CD_js.h("unlock")}),!localStorage.getItem("unlock-click")&&jsxRuntime.jsx("p",{className:"pl-text-[10px] pl-text-black/[0.87] pl-bg-[#F7F7F7] pl-absolute pl-left-0 pl-px-4 pl-py-3 pl-rounded-[8px] pl-w-max",children:"\u0628\u0631\u0627\u06CC \u0628\u0627\u0632 \u06A9\u0631\u062F\u0646 \u0642\u0641\u0644\u060C \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F"})]}),Et=jo;var ol=()=>(chunkF4OMGIV3_js.ha(({controller:{lock:e,activeElements:l}})=>({lock:e,activeElements:l}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:`pl-flex pl-items-start pl-justify-end pl-mx-8 pl-pt-8 ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?"pl-h-[16px]":"pl-h-[60px]"}`,children:[chunkF4OMGIV3_js.fa("showTitle")&&jsxRuntime.jsx(It,{}),chunkF4OMGIV3_js.fa("isLock")&&jsxRuntime.jsx(Et,{})]})),Lt=ol;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var rl=()=>(chunkF4OMGIV3_js.ha(({controller:{play:e}})=>({play:e}),reactRedux.shallowEqual),chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:e,params:l}})=>({videoElementSizeInfo:e,params:l}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{className:`${!chunkF4OMGIV3_js.fa("isTouchScreen")&&"hover:pl-scale-125"} pl-transition-transform pl-ease-in-out pl-cursor-pointer`,onContextMenu:e=>e.preventDefault(),children:jsxRuntime.jsx(ie__default.default,{alt:"",src:chunkF4OMGIV3_js.fa("isPlay")?chunk5FTEBU6O_js.a.bigPause:chunk5FTEBU6O_js.a.bigPlay,width:40,height:40,onClick:e=>chunkXJBLW3CD_js.a(e),onDoubleClick:e=>e.stopPropagation(),className:`${chunkF4OMGIV3_js.fa("isPlay")?"pl-big-play-icon":"pl-big-pause-icon"}`})})),Dt=rl;var pl=()=>{let[e,l]=react.useState(false),[o,i]=react.useState(false),{firstPlay:r}=chunkF4OMGIV3_js.ha(({controller:{lock:a,firstPlay:f}})=>({lock:a,firstPlay:f}),reactRedux.shallowEqual),{activeElements:p,isLoading:u}=chunkF4OMGIV3_js.ha(({controller:{activeElements:a,isLoading:f}})=>({activeElements:a,isLoading:f}),reactRedux.shallowEqual);return react.useEffect(()=>{let a=null;return chunkF4OMGIV3_js.fa("isFirstPlay")||chunkF4OMGIV3_js.fa("isActiveElements")?a=setTimeout(()=>i(true),100):i(false),()=>clearTimeout(a)},[p]),react.useEffect(()=>{let a;return chunkF4OMGIV3_js.fa("isLoading")?a=setTimeout(()=>l(true),chunkF4OMGIV3_js.fa("isFirstPlay")?0:chunkQHZJEU27_js.b):l(false),()=>{clearTimeout(a),l(false);}},[u,r]),jsxRuntime.jsx("main",{className:"pl-flex-1 pl-mt-1",children:e?jsxRuntime.jsx(chunkTVDVQALL_js.a,{}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:o&&!chunkF4OMGIV3_js.fa("isLock")&&jsxRuntime.jsx("div",{id:"main-content",className:`pl-h-full pl-flex pl-justify-center pl-items-center pl-text-center pl-relative ${chunkF4OMGIV3_js.fa("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:jsxRuntime.jsxs("div",{onClick:a=>a.stopPropagation(),className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:4},children:[!chunkF4OMGIV3_js.fa("isFirstPlay")&&jsxRuntime.jsx(chunkTGYQBJWV_js.a,{type:"forward"}),jsxRuntime.jsx(Dt,{}),!chunkF4OMGIV3_js.fa("isFirstPlay")&&jsxRuntime.jsx(chunkTGYQBJWV_js.a,{type:"backward"})]})})})})},Bt=pl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var We=e=>{let{videoElementSizeInfo:l}=chunkF4OMGIV3_js.P.getState().videoData,{duration:o}=chunkF4OMGIV3_js.P.getState().controller,i=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(i<=l.right&&i>0)return (i-l.left)/l.width*o},J=e=>{let{videoElementSizeInfo:l}=chunkF4OMGIV3_js.P.getState().videoData,o=e.clientX!==void 0?e.clientX:e.touches[0].clientX;if(o<=l.right&&o>0)return o-l.left},zt=e=>{let{duration:l}=chunkF4OMGIV3_js.P.getState().controller;return e*chunkF4OMGIV3_js.oa()/l},fe=e=>{e&&(e.style.opacity="0.0",e.style.pointerEvents="none",e.style.zIndex=-2);},al=e=>{e.style.display="block",e.style.zIndex=5,e.style.opacity=chunkF4OMGIV3_js.P.getState().videoData.details.vtt?"1.0":"0.6",e.style.pointerEvents="auto",e.style.transition="opacity 1s ease-out";},ml=(e,l)=>{let{videoElementSizeInfo:o}=chunkF4OMGIV3_js.P.getState().videoData,i=document.getElementsByClassName("pl-progressTooltip")[0],r=document.getElementById("parent-player");i&&r&&(J(e)>i.getBoundingClientRect().width/2&&J(e)<o.right-o.left-i.getBoundingClientRect().width/2?l.style.left=`${J(e)-i.offsetWidth/2}px`:J(e)<(r.offsetLeft===0?i.offsetWidth:r.offsetLeft)?l.style.left="0px":chunkF4OMGIV3_js.la().offsetLeft+chunkF4OMGIV3_js.la().offsetWidth<J(e)+i.offsetWidth&&(l.style.left=`${chunkF4OMGIV3_js.la().offsetWidth-i.offsetWidth}px`));},cl=(e,l,o)=>{l&&al(l),chunkF4OMGIV3_js.P.getState().videoData.details.vtt?ml(e,l):l.style.left=`${J(e)-30}px`,chunkF4OMGIV3_js.P.dispatch(chunkF4OMGIV3_js.q(Number(We(e)))),o.textContent=`${chunkF4OMGIV3_js.S(We(e))}`;},he=(e,l=false)=>{let{videoElementSizeInfo:o}=chunkF4OMGIV3_js.P.getState().videoData,i=document.querySelector(".pl-progressTooltip"),r=document.querySelector(".pl-progressTimeTooltip"),p=e.clientX!==void 0?e.clientX:e.touches[0].clientX;i&&r&&p<=o.right&&p>o.left?(cl(e,i,r),l&&setTimeout(()=>fe(i),2e3)):fe(i);},qt=e=>{let l=e.clientX!==void 0?e.clientX:e.touches[0].clientX;chunkF4OMGIV3_js.na()&&(l<=e.view.innerWidth&&l>0?chunkF4OMGIV3_js.na().style.width=`${J(e)}px`:l<=e.view.innerWidth?chunkF4OMGIV3_js.na().style.width=0:l>0&&(chunkF4OMGIV3_js.na().style.width="100%"));},Rt=(e,l,o)=>{e.preventDefault(),e.stopPropagation(),o(true);let i=chunkF4OMGIV3_js.P.dispatch,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX;r<=e.view.innerWidth&&r>0&&(i(chunkF4OMGIV3_js.k(true)),i(chunkF4OMGIV3_js.l(true)),sessionStorage.setItem("previousVideoTime",String(chunkF4OMGIV3_js.la().currentTime)),e.target.setPointerCapture(e.pointerId),l.length>0&&l.map(p=>clearTimeout(p)));},Qe=e=>{e.preventDefault(),e.stopPropagation();let l=chunkF4OMGIV3_js.P.dispatch,{activePointerProgressBar:o}=chunkF4OMGIV3_js.P.getState().controller,{left:i}=chunkF4OMGIV3_js.P.getState().videoData.videoElementSizeInfo,r=e.clientX!==void 0?e.clientX:e.touches[0].clientX,p=document.querySelector(".pl-progressTooltip");r>i?(p&&(p.style.display="block !important",p.style.pointerEvents="auto"),o&&(l(chunkF4OMGIV3_js.l(true)),he(e),qt(e),chunkF4OMGIV3_js.la()?.pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},Xt=(e,l,o,i)=>{i(false),e.preventDefault(),e.stopPropagation();let r=chunkF4OMGIV3_js.P.dispatch,{duration:p}=chunkF4OMGIV3_js.P.getState().controller,{left:u,right:a}=chunkF4OMGIV3_js.P.getState().videoData.videoElementSizeInfo,f=chunkF4OMGIV3_js.P.getState().videoData.params;e.target.removeEventListener("pointermove",Qe);let d=e.clientX!==void 0?e.clientX:e.touches[0].clientX,h=0;d>u&&d<a?h=We(e):d<u?h=0:d>0&&(h=p),chunkF4OMGIV3_js.fa("isStaticFormat")||chunkXJBLW3CD_js.i(chunkF4OMGIV3_js.la().currentTime,h),chunkF4OMGIV3_js.la().currentTime=h,chunkF4OMGIV3_js.fa("hasOnChangeCurrentTime")&&f.onChangeCurrentTime(h),chunkF4OMGIV3_js.P.getState().controller.activePointerProgressBar&&(r(chunkF4OMGIV3_js.k(false)),r(chunkF4OMGIV3_js.l(false)),chunkF4OMGIV3_js.la().play(),he(e,true),sessionStorage.setItem("current-time",String(h)),qt(e),dl(e,r,l,o));},dl=(e,l,o,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:u}=chunkF4OMGIV3_js.P.getState().popovers,{delayTurnOffControlbar:a}=chunkF4OMGIV3_js.P.getState().controller;e.pointerType==="touch"&&!u&&a&&l(chunkF4OMGIV3_js.f(false));},chunkQHZJEU27_js.a);r.push(p),o(r);},Ht=()=>{let e=Date.now();chunkF4OMGIV3_js.la().play().then(()=>chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.ra(Date.now()-e)));},Ut=e=>he(e),Wt=()=>{let e=document.querySelector(".pl-progressTooltip");fe(e);},ul=e=>{let l=e.split("."),i=l[0].split(":");return {milliseconds:parseInt(l[1],10)||0,seconds:parseInt(i.pop(),10)||0,minutes:parseInt(i.pop(),10)||0,hours:parseInt(i.pop(),10)||0}},Vt=e=>{let l=ul(e);return parseInt(l.hours*(60*60)+l.minutes*60+l.seconds+l.milliseconds/1e3,10)},fl=e=>{let l=e.split(/#xywh=/i),o=l[0],r=l[1].match(/[0-9]+/gi);return {x:r[0],y:r[1],w:r[2],h:r[3],image:o}},hl=(e,l)=>e.indexOf("//")>=0?e:l.indexOf("//")===0?[l.replace(/\/$/gi,""),e.trim()].join("/"):l.indexOf("//")>0?[l.trim(),e.trim()].join("/"):e,vl=(e,l)=>{let o={},i=l.split(/\/\w+\.vtt\s?/)[0];if(e=hl(e,i),!e.match(/#xywh=/i))return o.background='url("'+e+l.split(/\/\w+\.vtt\s?/)[1]+'")',o;let r=fl(e);return o.background='url("'+r.image+l.split(/\/\w+\.vtt\s?/)[1]+'") no-repeat -'+r.x+"px -"+r.y+"px",o.width=r.w+"px",o.height=r.h+"px",o.url=r.image,o},Qt=(e,l)=>{fetch(e).then(o=>{if(!o.ok)throw chunkF4OMGIV3_js.P.dispatch(chunkF4OMGIV3_js.r({...chunkF4OMGIV3_js.P.getState().videoData.details,vtt:void 0,vtt_mobile:void 0})),new Error("Network response was not ok");return o.text()}).then(o=>{let i=[];o.split(/[\r\n][\r\n]/i).forEach(p=>{if(p.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3}).*/gi)){let u=p.split(/[\r\n]/i),f=u[0].split(/ ?--> ?/i),d=f[0],h=f[1],c=u[1],y=vl(c,e);i.push({start:Vt(d),end:Vt(h),css:y});}}),l(i);}).catch(o=>{console.error("Error fetching file:",o);});},Gt=(e,l,o)=>{for(let i=0;i<l.length;++i){let r=l[i];if(e>=r.start&&e<r.end){if(r.css.url&&!o[r.css.url]){let p={background:r.css.background,width:r.css.width,height:r.css.height};return o[r.css.url]=p,p}else if(r.css.url)return o[r.css.url]}}};var xl=()=>{let{details:e}=chunkF4OMGIV3_js.ha(({videoData:{details:a}})=>({details:a}),reactRedux.shallowEqual),{tooltipTime:l}=chunkF4OMGIV3_js.ha(({controller:{tooltipTime:a,activeElements:f,isFullScreen:d}})=>({tooltipTime:a,activeElements:f,isFullScreen:d}),reactRedux.shallowEqual),o={},[i,r]=react.useState(void 0),[p,u]=react.useState(chunkF4OMGIV3_js.fa("isTouchScreen")?e.vtt_mobile:e.vtt);return react.useEffect(()=>{u(e.vtt_mobile);},[e.vtt_mobile]),react.useEffect(()=>{p&&Qt(e.vtt_mobile,r);},[p]),chunkF4OMGIV3_js.fa("isActiveElements")?jsxRuntime.jsxs("div",{className:`pl-flex pl-flex-col pl-progressTooltip pl-absolute pl-bottom-[calc(100%+10px)] pl-px-[10px] pl-pt-[5px] pl-mr-[-25px] pl-text-white pl-text-[14px] ${p&&i?"":"pl-bg-z-gray-700"} pl-rounded-[6px] pl-opacity-0`,children:[p&&!!i&&jsxRuntime.jsx("div",{className:"pl-flex-1 pl-border pl-border-white pl-rounded-[8px] pl-mb-2",children:jsxRuntime.jsx("div",{className:"pl-rounded-[8px]",style:Gt(l,i,o)})}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100"})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{})},Kt=react.memo(xl);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var wl=(e,l)=>{react.useEffect(()=>{let o=i=>{!e.current||e.current.contains(i.target)||l(i);};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o);}},[e,l]);},O=wl;chunkWO4IQUGO_js.e();var Tl=({name:e,className:l,dataMarker:o})=>jsxRuntime.jsx("img",{"data-marker":o,src:`${chunkF4OMGIV3_js.ia()}/${e}.png`,alt:e,className:l}),ve=Tl;var Il=()=>{chunkF4OMGIV3_js.ga();let {duration:l,activeElements:o}=chunkF4OMGIV3_js.ha(({controller:{duration:m,activeElements:x,isFullScreen:U}})=>({duration:m,activeElements:x,isFullScreen:U}),reactRedux.shallowEqual),{markers:i}=chunkF4OMGIV3_js.ha(({videoData:{markers:m,videoElementSizeInfo:x}})=>({markers:m,videoElementSizeInfo:x}),reactRedux.shallowEqual),[r,p]=react.useState(void 0),[u,a]=react.useState([]),[f,d]=react.useState({}),[h,c]=react.useState(false),y=m=>l?chunkF4OMGIV3_js.oa()*m/l:0,L=(m,x,U,se,K,W,ne,ze)=>{m.stopPropagation();let A=24*x/(chunkF4OMGIV3_js.oa()+5),j=[],Go=0;ze.map(be=>{be.time>x-A&&be.time<x+A&&(j.push(be),Go+=be.time);}),j.length>1?a(j):(j=[],a([]),v(m,x,U,se,K,W,ne));},v=(m,x,U,se,K,W,ne)=>{m.stopPropagation(),he(m,ne),chunkXJBLW3CD_js.i(chunkF4OMGIV3_js.la().currentTime,x),chunkF4OMGIV3_js.la().currentTime=x,chunkF4OMGIV3_js.na()&&(chunkF4OMGIV3_js.na().style.width=y(x)),chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.Ea(U,x,se,K,W));};react.useEffect(()=>{chunkF4OMGIV3_js.fa("isActiveElements")||a([]);},[o]);let k=react.useRef(null);O(k,()=>a([])),react.useEffect(()=>{if(u.length>0){let m=chunkF4OMGIV3_js.da(document.getElementsByClassName("pl-overlapMarkers")[0]);if(m==="inViewport")return c(true),d({left:y(u[0].time)});if(m==="OutViewPortFromLeft")return c(false),d({left:0});if(m==="OutViewPortFromRight")return c(false),d({right:0})}},[u,document.getElementsByClassName("pl-overlapMarkers")[0]]);let N=m=>{m.preventDefault(),chunkF4OMGIV3_js.fa("isTouchScreen")&&p(Number(m.target.getAttribute("data-marker")));};return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i.map(m=>jsxRuntime.jsx("div",{onContextMenu:N,"data-marker":m.time,onClick:x=>L(x,m.time,m.id,m.title,m.description,m.sticker,true,i),onDoubleClick:x=>x.stopPropagation(),children:jsxRuntime.jsxs("div",{className:`pl-emoji-image pl-absolute pl-bottom-[200%] pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-p-1 ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:y(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(ve,{dataMarker:m.time,name:m.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},m.id)),u.length>0&&jsxRuntime.jsx("div",{className:`pl-overlapMarkers ${h?"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:k,style:f,children:u.map(m=>jsxRuntime.jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":m.time,onClick:x=>v(x,m.time,m.id,m.title,m.description,m.sticker,true),onDoubleClick:x=>x.stopPropagation(),children:jsxRuntime.jsx(ve,{dataMarker:m.time,name:m.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},m.id))})]})},oo=react.memo(Il);var Ml=()=>{let[e,l]=react.useState(false);react.useEffect(()=>{fe(document.querySelector(".progressTooltip"));},[]);let{duration:o,currentTime:i,bufferedTimeWidth:r}=chunkF4OMGIV3_js.ha(({controller:{duration:a,currentTime:f,bufferedTimeWidth:d}})=>({duration:a,currentTime:f,bufferedTimeWidth:d}),reactRedux.shallowEqual);chunkF4OMGIV3_js.ha(({videoData:{params:a,videoElementSizeInfo:f}})=>({params:a,videoElementSizeInfo:f}),reactRedux.shallowEqual);let[p,u]=react.useState([]);return jsxRuntime.jsxs("div",{className:`${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"} pl-relative`,children:[jsxRuntime.jsxs("div",{className:"pl-relative",children:[jsxRuntime.jsx(Kt,{}),jsxRuntime.jsx(oo,{})]}),jsxRuntime.jsx("div",{className:"pl-w-full pl-flex pl-items-end",onPointerDown:a=>Rt(a,p,l),onPointerMove:Qe,onPointerUp:a=>Xt(a,u,p,l),onMouseMove:Ut,onMouseOut:Wt,onClick:Ht,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/o*chunkF4OMGIV3_js.oa()}px`}})]})]})})]})},ro=Ml;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Dl=()=>{let[e,l]=react.useState(false),o=chunkF4OMGIV3_js.ga(),{params:i,details:r}=chunkF4OMGIV3_js.ha(({videoData:{params:p,details:u}})=>({params:p,details:u}),reactRedux.shallowEqual);return jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(ie__default.default,{alt:"",onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&l(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&l(false),src:chunk5FTEBU6O_js.a.pictureInPicture,width:20,height:20,className:"pl-flex pl-cursor-pointer",onClick:()=>{i.onClickMiniPlayerIcon&&(localStorage.removeItem("close-miniPlayer"),chunkF4OMGIV3_js.la()?.pause(),o(chunkF4OMGIV3_js.a(false)),i.onClickMiniPlayerIcon({video:r||void 0,id:i.type==="vod"?i.id:window.btoa(i.id),type:i.type,currentTime:chunkF4OMGIV3_js.la().currentTime}));}}),e&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u062A\u0635\u0648\u06CC\u0631 \u062F\u0631 \u062A\u0635\u0648\u06CC\u0631 "})]})},so=Dl;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ao=react.forwardRef(({children:e,status:l,onClose:o,type:i,classNames:r,parentClassNames:p,styles:u,isBlurBackground:a,isFullHeight:f=false,isHeader:d,isHasCatchUpLineOnTop:h=false,animation:c,scrollbar:y=false,isFocusOnInput:L=false},v)=>{let[k,N]=react.useState(l),[m,x]=react.useState(0),[U,se]=react.useState(0),{videoElementSizeInfo:K}=chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:A}})=>({videoElementSizeInfo:A}),reactRedux.shallowEqual),W=react.useRef(0);react.useEffect(()=>{let A;return l?N(true):A=setTimeout(()=>{o(false),x(0),N(false);},500),()=>clearTimeout(A)},[l]);let ne=A=>{let j=document.getElementById("popover-content");W.current||(W.current=window.innerHeight-K.top-j?.getBoundingClientRect().top),A.stopPropagation(),window.innerHeight-K.top-A.touches[0].clientY<W.current&&x(window.innerHeight-A.touches[0].clientY),se(1000005);},ze=()=>{o();},qe=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 ${l?"animate__fadeIn":"animate__fadeOut"}`,style:{zIndex:1000001}}),jsxRuntime.jsx("div",{className:`${i==="modal"&&"pl-fixed pl-top-0 pl-left-0 pl-flex pl-w-full pl-h-full pl-justify-center pl-items-end sm:pl-items-center"} ${p}`,style:{zIndex:f&&!L?U:1000004},children:jsxRuntime.jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9]
2
2
  ${f&&"pl-h-full"}
3
3
  ${c||(window.innerWidth>768&&i==="modal"?l?"animate__fadeIn":"animate__fadeOut":l?"animate__fadeInUp":"animate__fadeOutDown")}
4
4
  ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?"!pl-fixed !pl-right-0 !pl-left-0 !pl-bottom-0 !pl-w-full !pl-mb-0 pl-rounded-[12px] !pl-rounded-b-none !pl-bg-white":"before:pl-hidden"}
5
5
  ${i!=="modal"&&"pl-absolute pl-bottom-[130%] pl-overflow-auto no-scrollbar"}
6
6
  ${r}
7
7
  `,style:{height:m||"max-content",maxHeight:"80vh",zIndex:1000004,...u},ref:v,id:"popover-content",children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[d&&jsxRuntime.jsx("div",{onTouchMove:h?ne:()=>{},onTouchEndCapture:h?ze:()=>{},className:"pl-py-4",children:h&&jsxRuntime.jsx("div",{className:"pl-absolute pl-top-[10px] pl-right-[50%] pl-mr-[-25px] pl-text-center pl-w-8 pl-h-1 pl-rounded-[20px] pl-bg-gray-highLight"})}),jsxRuntime.jsx("div",{className:`pl-overflow-y-auto pl-h-full pl-w-full ${!y&&"no-scrollbar"}`,onTouchMove:A=>A.stopPropagation(),children:e})]})})})]});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:k&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:i==="modal"?reactDom.createPortal(jsxRuntime.jsx(jsxRuntime.Fragment,{children:qe}),document.getElementById("dialog-react-root-videoPlayer")):jsxRuntime.jsx("div",{id:"player-popover",children:qe})})})});ao.displayName="popover";var q=ao;chunkWO4IQUGO_js.e();var Hl=({setSection:e,showQualityLevelsIcon:l})=>{let o=chunkF4OMGIV3_js.ga(),{qualityLevels:i}=chunkF4OMGIV3_js.ha(({controller:{qualityLevels:c,manualQuality:y,autoQuality:L}})=>({qualityLevels:c,manualQuality:y,autoQuality:L}),reactRedux.shallowEqual),{settings:r}=chunkF4OMGIV3_js.ha(({user:{settings:c}})=>({settings:c}),reactRedux.shallowEqual),{qualityLevelsPopover:p}=chunkF4OMGIV3_js.ha(({popovers:{qualityLevelsPopover:c}})=>({qualityLevelsPopover:c}),reactRedux.shallowEqual);chunkF4OMGIV3_js.ha(({videoData:{params:c,videoElementSizeInfo:y}})=>({params:c,videoElementSizeInfo:y}),reactRedux.shallowEqual);let[u,a]=react.useState(false);i=[-1,...i];let f=(c,y)=>chunkF4OMGIV3_js.fa("isAutoQuality")&&y===-1?true:!chunkF4OMGIV3_js.fa("isAutoQuality")&&r.quality===c,d=react.useRef(null);O(d,()=>o(chunkF4OMGIV3_js.F(false)));let h=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((c,y)=>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(y-1,c)&&"pl-bg-primary/[0.12] !pl-cursor-default"} ${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-py-[13.5px]":"pl-py-[9.5px]"}`,onClick:f(y-1,c)?()=>{}:()=>{chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.qa(c===-1?"auto":`${c}P`)),o(chunkF4OMGIV3_js.f(false)),o(chunkF4OMGIV3_js.D(false)),o(chunkF4OMGIV3_js.F(false)),o(chunkF4OMGIV3_js.J({...r,quality:c===-1?-1:y-1})),e&&e("main");},children:[!chunkF4OMGIV3_js.fa("isTouchScreen")&&f(y-1,c)&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[11.8px]",children:jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.tick,alt:"",width:12,height:9})}),chunkF4OMGIV3_js.fa("isTouchScreen")&&jsxRuntime.jsx("div",{className:`pl-w-5 pl-h-5 pl-rounded-full pl-border pl-border-black/[0.5] pl-p-0.5 ${f(y-1,c)&&"pl-border-primary"}`,children:f(y-1,c)&&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] ${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-pr-[21px]":"pl-pr-[10px]"}`,children:c===-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)"})]}):`${c}p`})]},y))})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.qualitySetting1,alt:"speed-icon",width:20,height:20,onClick:()=>o(chunkF4OMGIV3_js.F(!p)),onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&!chunkF4OMGIV3_js.fa("showQualityLevelsPopover")&&a(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&a(false),className:"pl-cursor-pointer"}),u&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsxRuntime.jsx(q,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkF4OMGIV3_js.fa("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"pl-right-0 pl-mb-[33px] !pl-rounded-[12px] pl-w-[230px]"} ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${chunkF4OMGIV3_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(chunkF4OMGIV3_js.F(false)),type:chunkF4OMGIV3_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF4OMGIV3_js.fa("isTouchScreenPortrait"),ref:chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?d:void 0,isHeader:chunkF4OMGIV3_js.fa("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkF4OMGIV3_js.fa("isTouchScreen"),children:h})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:h})})},Le=react.memo(Hl);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var Ul=({className:e,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxRuntime.jsxs("svg",{width:"18",height:"15",viewBox:"0 0 18 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsxRuntime.jsx("path",{d:"M10.5488 1.53559C8.20532 1.02852 5.66339 1.68608 3.84359 3.50588C1.15649 6.19298 1.00481 10.4572 3.39041 13.3215C3.55135 13.5148 3.8176 13.6347 4.13036 13.6347H13.8687C14.1816 13.6347 14.4476 13.5149 14.6085 13.3217C16.0815 11.5533 16.5884 9.25027 16.1258 7.11249C16.0528 6.77512 16.2671 6.44245 16.6045 6.36945C16.9418 6.29645 17.2745 6.51077 17.3475 6.84814C17.8886 9.34866 17.2968 12.0474 15.569 14.1217C15.1326 14.6455 14.489 14.8847 13.8687 14.8847H4.13036C3.50995 14.8847 2.86616 14.6453 2.42991 14.1215C-0.36559 10.765 -0.188583 5.77029 2.95971 2.622C5.09241 0.489299 8.07189 -0.279272 10.8132 0.31386C11.1505 0.386857 11.3648 0.719527 11.2918 1.0569C11.2188 1.39427 10.8862 1.60859 10.5488 1.53559Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9976 2.66523C15.2417 2.9093 15.2417 3.30503 14.9976 3.54911L10.7129 7.83399C10.8469 8.09798 10.9225 8.39667 10.9225 8.713C10.9225 9.78688 10.0519 10.6574 8.97805 10.6574C7.90417 10.6574 7.03362 9.78688 7.03362 8.713C7.03362 7.63912 7.90417 6.76856 8.97805 6.76856C9.27953 6.76856 9.56498 6.83718 9.81965 6.95963C9.82222 6.95697 9.82483 6.95432 9.82746 6.95168L14.1137 2.66525C14.3578 2.42116 14.7535 2.42115 14.9976 2.66523ZM9.67249 8.713C9.67249 9.09652 9.36158 9.40743 8.97805 9.40743C8.59453 9.40743 8.28362 9.09652 8.28362 8.713C8.28362 8.32947 8.59453 8.01856 8.97805 8.01856C9.36158 8.01856 9.67249 8.32947 9.67249 8.713Z"})]}),Ae=Ul;var Jl=[.5,.75,1,1.25,1.5,1.75,2],Kl=({setSection:e,showSpeedIcon:l})=>{let o=chunkF4OMGIV3_js.ga();chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:d,params:h}})=>({videoElementSizeInfo:d,params:h}),reactRedux.shallowEqual);let{speedPopover:i}=chunkF4OMGIV3_js.ha(({popovers:{speedPopover:d}})=>({speedPopover:d}),reactRedux.shallowEqual),{settings:r}=chunkF4OMGIV3_js.ha(({user:{settings:d}})=>({settings:d}),reactRedux.shallowEqual),p=react.useRef(null),[u,a]=react.useState(false);O(p,()=>o(chunkF4OMGIV3_js.E(false))),react.useEffect(()=>{chunkF4OMGIV3_js.la()&&(chunkF4OMGIV3_js.la().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:Jl.map((d,h)=>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"} ${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-py-[13.5px]":"pl-py-[9.5px]"}`,onClick:r.speed===d?()=>{}:()=>{chunkF4OMGIV3_js.fa("isStaticFormat")||chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.pa(d)),o(chunkF4OMGIV3_js.f(false)),o(chunkF4OMGIV3_js.D(false)),o(chunkF4OMGIV3_js.E(false)),o(chunkF4OMGIV3_js.J({...r,speed:d})),chunkF4OMGIV3_js.la().playbackRate=d,e&&e("main");},children:[!chunkF4OMGIV3_js.fa("isTouchScreen")&&r.speed===d&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[11.8px]",children:jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.tick,alt:"",width:12,height:9})}),chunkF4OMGIV3_js.fa("isTouchScreen")&&jsxRuntime.jsx("div",{className:`pl-w-5 pl-h-5 pl-rounded-full pl-border pl-border-black/[0.5] pl-p-0.5 ${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] ${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-pr-[21px]":"pl-pr-[10px]"}`,children:d})]},h))})});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:p,children:[jsxRuntime.jsx(Ae,{className:"pl-size-5 pl-cursor-pointer size-5 pl-fill-white",onClick:()=>o(chunkF4OMGIV3_js.E(!i)),onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&!chunkF4OMGIV3_js.fa("showSpeedPopover")&&a(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&a(false)}),u&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx(q,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkF4OMGIV3_js.fa("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkF4OMGIV3_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(chunkF4OMGIV3_js.E(false)),type:chunkF4OMGIV3_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF4OMGIV3_js.fa("isTouchScreenPortrait"),ref:chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?p:void 0,isHeader:chunkF4OMGIV3_js.fa("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkF4OMGIV3_js.fa("isTouchScreen"),children:f})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:f})})},$e=Kl;chunkWO4IQUGO_js.e();var jl=({enabled:e,setEnabled:l})=>jsxRuntime.jsx("div",{className:`pl-relative pl-h-[22px] pl-w-[37px] pl-cursor-pointer pl-rounded-[15px] pl-transition-colors pl-duration-150 pl-ease-linear ${e?"pl-bg-primary pl-border pl-border-transparent":"pl-bg-secondary-200 pl-border pl-border-gray-highLight"}`,onClick:l,children:jsxRuntime.jsx("div",{className:`pl-absolute pl-left-1 pl-top-[2px] pl-w-[16px] pl-h-[16px] pl-rounded-full pl-transition-transform pl-duration-150 pl-ease-linear ${e?"pl-bg-white pl-translate-x-[13px]":"pl-bg-black/[0.16] -pl-translate-x-0.5"}`})}),ho=jl;chunkWO4IQUGO_js.e();var oi=({setSection:e})=>{let l=chunkF4OMGIV3_js.ga(),{subtitles:o,selectedSubtitle:i}=chunkF4OMGIV3_js.ha(({videoData:{subtitles:r,selectedSubtitle:p}})=>({subtitles:r,selectedSubtitle:p}),reactRedux.shallowEqual);return jsxRuntime.jsx("div",{id:"subtitles",className:"animate__animated animate__fadeIn pl-p-[14px]",children:jsxRuntime.jsxs("ul",{className:"pl-flex pl-flex-col pl-p-0 pl-m-0",children:[jsxRuntime.jsx("li",{className:`pl-flex pl-items-center pl-text-[14px] pl-rounded-[4px] pl-relative pl-cursor-pointer pl-leading-6 hover:pl-bg-main/[0.1] hover:dark:pl-bg-white/[0.25] pl-p-1 pl-pr-2 ${!i&&"pl-bg-main-light hover:!pl-bg-main-light pl-text-dark-5"}`,onClick:()=>{l(chunkF4OMGIV3_js.f(false)),l(chunkF4OMGIV3_js.D(false)),l(chunkF4OMGIV3_js.A(void 0)),e("main");let r=Object.values(chunkF4OMGIV3_js.la().textTracks).find(p=>p.mode==="showing");r&&(r.mode="disabled"),l(chunkF4OMGIV3_js.z("")),chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.Da("empty"));},children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),o.map((r,p)=>jsxRuntime.jsx("li",{className:`pl-flex pl-items-center pl-text-[14px] pl-rounded-[4px] pl-relative pl-cursor-pointer pl-leading-6 hover:pl-bg-main/[0.1] hover:dark:pl-bg-white/[0.25] pl-p-1 pl-pr-2 ${i&&i.language===r.language&&"pl-bg-main-light hover:!pl-bg-main-light pl-text-dark-5"}`,onClick:()=>{l(chunkF4OMGIV3_js.f(false)),l(chunkF4OMGIV3_js.D(false)),l(chunkF4OMGIV3_js.A(r)),chunkF4OMGIV3_js.la().textTracks[p].mode="showing",e("main"),chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.Da(r.language));},children:jsxRuntime.jsx("span",{children:r.label})},p))]})})},vo=react.memo(oi);chunkWO4IQUGO_js.e();var ii=({className:e,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxRuntime.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 2.29395C10.3314 2.29395 10.6 2.56257 10.6 2.89395V17.1052C10.6 17.4366 10.3314 17.7052 10 17.7052C9.66866 17.7052 9.40002 17.4366 9.40002 17.1052V2.89395C9.40002 2.56257 9.66866 2.29395 10 2.29395Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.41258 4.95498C6.74396 4.95498 7.01258 5.22361 7.01258 5.55498V14.5565C7.01258 14.8879 6.74396 15.1565 6.41258 15.1565C6.08121 15.1565 5.81258 14.8879 5.81258 14.5565V5.55498C5.81258 5.22361 6.08121 4.95498 6.41258 4.95498Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.5858 4.84247C13.9172 4.84247 14.1858 5.1111 14.1858 5.44247V14.444C14.1858 14.7754 13.9172 15.044 13.5858 15.044C13.2545 15.044 12.9858 14.7754 12.9858 14.444V5.44247C12.9858 5.1111 13.2545 4.84247 13.5858 4.84247Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.1735 7.60177C17.5048 7.60177 17.7735 7.8704 17.7735 8.20177V11.5709C17.7735 11.9023 17.5048 12.1709 17.1735 12.1709C16.8421 12.1709 16.5735 11.9023 16.5735 11.5709V8.20177C16.5735 7.8704 16.8421 7.60177 17.1735 7.60177Z"}),jsxRuntime.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.82656 7.82841C3.15794 7.82841 3.42656 8.09703 3.42656 8.42844V11.7976C3.42656 12.1289 3.15794 12.3976 2.82656 12.3976C2.49519 12.3976 2.22656 12.1289 2.22656 11.7976V8.42844C2.22656 8.09703 2.49519 7.82841 2.82656 7.82841Z"})]}),_e=ii;chunkWO4IQUGO_js.e();var mi=({setSection:e,showMultiAudioIcon:l})=>{let o=chunkF4OMGIV3_js.ga(),{multiAudioPopover:i}=chunkF4OMGIV3_js.ha(({popovers:{multiAudioPopover:h}})=>({multiAudioPopover:h}),reactRedux.shallowEqual),[r,p]=react.useState(false),u=react.useRef(null),{multiAudio:a,selectedAudioId:f}=chunkF4OMGIV3_js.ha(({videoData:{multiAudio:h,selectedAudioId:c}})=>({multiAudio:h,selectedAudioId:c}),reactRedux.shallowEqual);O(u,()=>o(chunkF4OMGIV3_js.H(false)));let d=jsxRuntime.jsx("ul",{className:`pl-flex pl-flex-col pl-m-0 !pl-py-2 ${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-pb-4 pl-gap-2":"pl-gap-1"}`,children:chunkF4OMGIV3_js.fa("hasMultiAudio")&&a.map((h,c)=>jsxRuntime.jsxs("li",{className:`pl-flex pl-items-center pl-rounded-[4px] pl-relative pl-cursor-pointer pl-leading-6 ${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-pr-[26px] pl-gap-[18px] pl-py-3 pl-text-[14px]":"pl-pr-2 pl-gap-2 pl-py-2 pl-text-[12px] pl-font-medium"} ${f===c&&"pl-bg-primary/[0.08]"}`,onClick:()=>{o(chunkF4OMGIV3_js.C(c)),o(chunkF4OMGIV3_js.f(false)),o(chunkF4OMGIV3_js.D(false)),o(chunkF4OMGIV3_js.H(false)),e&&e("main");},children:[jsxRuntime.jsxs("div",{className:`${chunkF4OMGIV3_js.fa("isTouchScreen")?"pl-size-5":"pl-size-3"} pl-flex pl-items-center`,children:[!chunkF4OMGIV3_js.fa("isTouchScreen")&&f===c&&jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.tick,alt:"",width:12,height:9}),chunkF4OMGIV3_js.fa("isTouchScreen")&&jsxRuntime.jsx("div",{className:`pl-w-5 pl-h-5 pl-rounded-full pl-border pl-border-black/[0.5] pl-p-0.5 ${f===c&&"pl-border-primary"}`,children:f===c&&jsxRuntime.jsx("div",{className:"pl-w-full pl-h-full pl-rounded-full pl-bg-primary"})})]}),jsxRuntime.jsxs("span",{children:["\u0632\u0628\u0627\u0646 ",h.name]})]},h.id))});return jsxRuntime.jsx(jsxRuntime.Fragment,{children:l?jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:u,children:[jsxRuntime.jsx(_e,{className:"pl-size-5 pl-fill-white pl-cursor-pointer",onClick:()=>o(chunkF4OMGIV3_js.H(!i)),onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&p(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&p(false)}),r&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsxRuntime.jsx(q,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-white !pl-pb-0 ${chunkF4OMGIV3_js.fa("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[200px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkF4OMGIV3_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(chunkF4OMGIV3_js.H(false)),type:chunkF4OMGIV3_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF4OMGIV3_js.fa("isTouchScreenPortrait"),ref:chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?u:void 0,isHeader:chunkF4OMGIV3_js.fa("isTouchScreen"),isHasCatchUpLineOnTop:chunkF4OMGIV3_js.fa("isTouchScreen"),children:d})]}):jsxRuntime.jsx(jsxRuntime.Fragment,{children:d})})},Oe=react.memo(mi);var ui=()=>{let e=chunkF4OMGIV3_js.ga(),{selectedSubtitle:l}=chunkF4OMGIV3_js.ha(({videoData:{params:f,subtitles:d,selectedSubtitle:h}})=>({params:f,subtitles:d,selectedSubtitle:h}),reactRedux.shallowEqual),{settingPopover:o}=chunkF4OMGIV3_js.ha(({popovers:{settingPopover:f}})=>({settingPopover:f}),reactRedux.shallowEqual),[i,r]=react.useState("main"),[p,u]=react.useState(false),a=react.useRef(null);return O(a,()=>{e(chunkF4OMGIV3_js.D(false)),setTimeout(()=>r("main"),500);}),jsxRuntime.jsxs("div",{className:`pl-inline-flex ${chunkF4OMGIV3_js.fa("isLandscape")&&"pl-relative"}`,ref:a,children:[jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-relative pl-cursor-pointer",onClick:()=>e(chunkF4OMGIV3_js.D(!o)),onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&!chunkF4OMGIV3_js.fa("showSettingPopover")&&u(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&u(false),children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.settings,alt:"",width:20,height:20}),p&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsxRuntime.jsx(q,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${chunkF4OMGIV3_js.fa("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${chunkF4OMGIV3_js.fa("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"}`,status:o,onClose:()=>{e(chunkF4OMGIV3_js.D(false)),setTimeout(()=>r("main"),500);},type:chunkF4OMGIV3_js.fa("isTouchScreen")?"modal":"popover",isBlurBackground:chunkF4OMGIV3_js.fa("isTouchScreenPortrait"),ref:chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?a:void 0,isHeader:chunkF4OMGIV3_js.fa("isTouchScreen"),customHeader:jsxRuntime.jsx(jsxRuntime.Fragment,{}),isHasCatchUpLineOnTop:chunkF4OMGIV3_js.fa("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:[!chunkF4OMGIV3_js.fa("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(ie__default.default,{src:chunk5FTEBU6O_js.a.qualitySetting,alt:"",width:16,height:16}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.chevronLeft,alt:"",width:16,height:16})]})}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>r("speed"),children:[jsxRuntime.jsx(Ae,{className:"size-5 pl-fill-black/[0.5]"}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u0633\u0631\u0639\u062A"}),jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.chevronLeft,alt:"",width:16,height:16})]}),chunkF4OMGIV3_js.fa("hasSubtitles")&&chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",children:[jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.subtitleOutlineGray,alt:"subtitle-icon",width:20,height:20}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsxRuntime.jsx(ho,{enabled:!!l,setEnabled:chunkK6VN2DH7_js.b})]}),chunkF4OMGIV3_js.fa("hasMultiAudio")&&chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-[10px] pl-cursor-pointer",onClick:()=>r("multiAudio"),children:[jsxRuntime.jsx(_e,{className:"size-5 pl-fill-black/[0.5]"}),jsxRuntime.jsx("p",{className:"pl-ml-auto pl-text-[12px] pl-font-medium pl-text-black/[0.87]",children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.chevronLeft,alt:"",width:16,height:16})]})]}),i==="qualityLevels"&&jsxRuntime.jsx(Le,{setSection:r}),i==="speed"&&jsxRuntime.jsx($e,{setSection:r}),i==="subtitles"&&jsxRuntime.jsx(vo,{setSection:r}),i==="multiAudio"&&jsxRuntime.jsx(Oe,{setSection:r})]})})]})},So=react.memo(ui);chunkWO4IQUGO_js.e();var fi=()=>{let{duration:e,currentTime:l}=chunkF4OMGIV3_js.ha(({controller:{duration:o,currentTime:i}})=>({duration:o,currentTime:i}),reactRedux.shallowEqual);return chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:o,params:i}})=>({videoElementSizeInfo:o,params:i}),reactRedux.shallowEqual),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:`pl-mr-auto !pl-text-white pl-w-full pl-max-w-max pl-text-[12px] pl-font-bold ${chunkF4OMGIV3_js.fa("isFullScreen")?"pl-ml-8":"pl-ml-4"} ${chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?"!pl-ml-0":"pl-absolute pl-left-0 pl-bottom-full pl-mb-[33px]"}`,children:[jsxRuntime.jsx("span",{children:chunkF4OMGIV3_js.S(e)}),jsxRuntime.jsx("span",{children:" / "}),jsxRuntime.jsx("span",{children:chunkF4OMGIV3_js.S(l)})]})})},Ve=fi;chunkWO4IQUGO_js.e();var xi=()=>jsxRuntime.jsx(ie__default.default,{src:chunk5FTEBU6O_js.a.unlock,alt:"unlock-icon",width:20,height:20,onClick:()=>chunkXJBLW3CD_js.h("lock")}),To=xi;chunkWO4IQUGO_js.e();var Ti=()=>{let[e,l]=react.useState(false);return chunkF4OMGIV3_js.ha(({videoData:{selectedSubtitle:o,videoElementSizeInfo:i,params:r}})=>({selectedSubtitle:o,videoElementSizeInfo:i,params:r}),reactRedux.shallowEqual),jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[jsxRuntime.jsx(ie__default.default,{alt:"subtitle-icon",src:chunkF4OMGIV3_js.fa("isSelectedSubtitle")?chunk5FTEBU6O_js.a.subtitleFill:chunk5FTEBU6O_js.a.subtitleOutline,className:"pl-cursor-pointer",width:20,height:20,onClick:chunkK6VN2DH7_js.b,onDoubleClick:o=>o.stopPropagation(),onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&l(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&l(false)}),e&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},Co=Ti;chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var ki=e=>(chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:l,params:o}})=>({videoElementSizeInfo:l,params:o}),reactRedux.shallowEqual),jsxRuntime.jsxs("svg",{width:20,height:20,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[jsxRuntime.jsx("rect",{x:"3",y:"3",width:"4",height:"4",rx:"1.5"}),jsxRuntime.jsx("rect",{x:"3",y:"9",width:"4",height:"4",rx:"1.5"}),jsxRuntime.jsx("rect",{x:"3",y:"15",width:"4",height:"4",rx:"1.5"}),jsxRuntime.jsx("rect",{x:"8",y:"16",width:"11",height:"2",rx:"1"}),jsxRuntime.jsx("rect",{x:"8",y:"10",width:"11",height:"2",rx:"1"}),jsxRuntime.jsx("rect",{x:"8",y:"4",width:"11",height:"2",rx:"1"})]})),ko=ki;var Mi=()=>{let [e,l]=react.useState(0),[o,i]=react.useState(void 0),[r,p]=react.useState(false),{markers:u,params:a}=chunkF4OMGIV3_js.ha(({videoData:{markers:v,params:k,videoElementSizeInfo:N}})=>({markers:v,params:k,videoElementSizeInfo:N}),reactRedux.shallowEqual),{markersListPopover:f}=chunkF4OMGIV3_js.ha(({popovers:{markersListPopover:v}})=>({markersListPopover:v}),reactRedux.shallowEqual),d=react.useRef(null),h=chunkF4OMGIV3_js.ga();O(d,()=>h(chunkF4OMGIV3_js.G(false)));let y=(v,k,N,m,x)=>{chunkF4OMGIV3_js.na()&&(chunkF4OMGIV3_js.na().style.width=`${zt(v)}px`),chunkXJBLW3CD_js.i(chunkF4OMGIV3_js.la().currentTime,v),chunkF4OMGIV3_js.la().currentTime=v,h(chunkF4OMGIV3_js.G(false)),chunkF4OMGIV3_js.ka(chunkF4OMGIV3_js.Ea(k,v,N,m,x));},L=()=>{h(chunkF4OMGIV3_js.G(!f));};return jsxRuntime.jsxs("div",{className:`pl-flex pl-items-center pl-p-1 pl-relative ${chunkF4OMGIV3_js.fa("showMarkerListPopover")&&"pl-bg-secondary-50/[0.4] pl-rounded-[4px]"}`,ref:d,children:[jsxRuntime.jsx(ko,{className:"pl-cursor-pointer pl-fill-dark-5",onClick:L,onMouseOver:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&p(true),onMouseLeave:()=>!chunkF4OMGIV3_js.fa("isTouchScreen")&&p(false)}),r&&jsxRuntime.jsx(chunkVM4C2OTW_js.a,{title:"\u0644\u06CC\u0633\u062A \u0646\u0634\u0627\u0646\u06AF\u0631\u0647\u0627 (e)",className:"!pl-bottom-[180%] !pl-right-[-48px]"}),jsxRuntime.jsx(q,{classNames:"!pl-p-0 pl-left-0 !pl-bg-white dark:!pl-bg-dark-13 !pl-rounded-[4px] pl-mb-[33px]",status:chunkF4OMGIV3_js.fa("showMarkerListPopover"),onClose:()=>{h(chunkF4OMGIV3_js.G(false));},headerTitle:"\u0646\u0634\u0627\u0646\u06AF\u0631\u0647\u0627",isHeader:true,type:"popover",children:jsxRuntime.jsx("div",{className:"pl-flex pl-flex-col pl-gap-6 pl-mx-2 pl-mt-2",children:jsxRuntime.jsx("div",{className:"pl-flex pl-flex-col pl-gap-2 pl-pb-2",children:u.map(v=>jsxRuntime.jsx("div",{onClick:()=>y(v.time,v.id,v.title,v.description,v.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:[v.banner||!v.sticker?jsxRuntime.jsx(ie__default.default,{src:v.banner?v.banner:"IMAGES.defaultMarkersListItemIcon",width:40,height:40,alt:v.title}):jsxRuntime.jsx("div",{className:"pl-w-[40px] pl-h-[40px] pl-bg-secondary dark:pl-bg-secondary-50 pl-rounded-[6px] pl-flex pl-items-center",children:jsxRuntime.jsx(ve,{name:v.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:v.title})}),jsxRuntime.jsx("p",{className:"pl-text-[13px] pl-font-normal pl-w-[200px] pl-whitespace-nowrap pl-overflow-hidden pl-text-ellipsis",children:v.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:chunkF4OMGIV3_js.S(v.time)})]})},v.id))})})})]})},No=Mi;var Ai=()=>{chunkF4OMGIV3_js.ha(({controller:{isFullScreen:l}})=>({isFullScreen:l}),reactRedux.shallowEqual),chunkF4OMGIV3_js.ha(({videoData:{videoElementSizeInfo:l,params:o}})=>({videoElementSizeInfo:l,params:o}),reactRedux.shallowEqual);let e="";return chunkF4OMGIV3_js.fa("isTouchScreen")?chunkF4OMGIV3_js.fa("isFullScreen")?e="pl-mx-4 tablet:pl-mx-6":e="pl-mx-4":chunkF4OMGIV3_js.fa("isFullScreen")?e="pl-mx-8":e="pl-mx-4",jsxRuntime.jsxs("div",{id:"player-controllbar",className:`pl-flex pl-justify-between pl-items-center ${e}`,children:[jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-5",children:[jsxRuntime.jsx(chunkVM4C2OTW_js.b,{}),chunkF4OMGIV3_js.fa("isTouchScreenLandscape")&&jsxRuntime.jsx(To,{}),chunkF4OMGIV3_js.fa("showPictureInPicture")&&jsxRuntime.jsx(so,{}),chunkF4OMGIV3_js.fa("showSettingIcon")&&jsxRuntime.jsx(So,{}),chunkF4OMGIV3_js.fa("isFullScreen")&&!chunkF4OMGIV3_js.fa("isStaticFormat")&&jsxRuntime.jsx(Le,{showQualityLevelsIcon:true}),(chunkF4OMGIV3_js.fa("isFullScreen")||chunkF4OMGIV3_js.fa("isStaticFormat"))&&jsxRuntime.jsx($e,{showSpeedIcon:true}),chunkF4OMGIV3_js.fa("hasSubtitles")&&!chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(Co,{}),chunkF4OMGIV3_js.fa("hasMultiAudio")&&!chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(Oe,{showMultiAudioIcon:true})]}),jsxRuntime.jsxs("div",{className:"pl-flex pl-items-center pl-gap-5",children:[chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(Ve,{}),!chunkF4OMGIV3_js.fa("isIOS")&&jsxRuntime.jsx(chunkVM4C2OTW_js.c,{}),chunkF4OMGIV3_js.fa("hasMarkers")&&jsxRuntime.jsx(No,{})]})]})},Mo=react.memo(Ai);chunkWO4IQUGO_js.e();var $i=()=>{let{subtitleText:e}=chunkF4OMGIV3_js.ha(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),reactRedux.shallowEqual);return chunkF4OMGIV3_js.ha(({controller:{isFullScreen:o}})=>({isFullScreen:o}),reactRedux.shallowEqual),jsxRuntime.jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-[18px] pl-px-4 pl-text-white pl-font-medium ${(()=>{let o="";return chunkF4OMGIV3_js.fa("isLock")?o="pl-bottom-4":chunkF4OMGIV3_js.fa("isActiveElements")?chunkF4OMGIV3_js.fa("isTouchScreenPortrait")?o="pl-bottom-4 tablet:pl-bottom-[65px]":chunkF4OMGIV3_js.fa("isFullScreen")?o="pl-bottom-[104px] tablet:pl-bottom-[137px] desktop:pl-bottom-[146px]":o="pl-bottom-[120px]":chunkF4OMGIV3_js.fa("isActiveElements")||(o="pl-bottom-4"),o})()}`,children:chunkF4OMGIV3_js.ca(e).map((o,i)=>jsxRuntime.jsx("p",{className:`pl-mx-auto pl-bg-Common-black-overlay-2 ${chunkF4OMGIV3_js.fa("isTouchScreen")&&chunkF4OMGIV3_js.fa("isActiveElements")&&"pl-opacity-50 tablet:pl-opacity-100"} pl-text-wrap pl-max-w-full pl-w-max pl-px-1`,children:chunkF4OMGIV3_js.ea(o)},i))})},$o=$i;var Di=()=>{chunkF4OMGIV3_js.ha(({controller:{lock:l,isFullScreen:o,isLoading:i,activeElements:r}})=>({lock:l,isFullScreen:o,isLoading:i,activeElements:r}),reactRedux.shallowEqual),chunkF4OMGIV3_js.ha(({videoData:{subtitles:l,selectedSubtitle:o}})=>({subtitles:l,selectedSubtitle:o}),reactRedux.shallowEqual);let e="";return chunkF4OMGIV3_js.fa("isTouchScreen")?chunkF4OMGIV3_js.fa("isFullScreen")?e="pl-gap-4 table:pl-gap-6 pl-mb-4 tablet:pl-mb-6 ":e="pl-gap-6 pl-mb-0":chunkF4OMGIV3_js.fa("isFullScreen")?e="pl-gap-6 pl-mb-8":e="pl-gap-4 pl-mb-3",jsxRuntime.jsx("div",{id:"footer",className:"pl-relative",style:{zIndex:3},onClick:l=>l.stopPropagation(),children:jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[chunkF4OMGIV3_js.fa("showSubtitle")&&jsxRuntime.jsx($o,{}),!chunkF4OMGIV3_js.fa("isLock")&&jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{className:`pl-flex pl-flex-col pl-w-full pl-mx-auto animate__animated animate__faster ${e} ${chunkF4OMGIV3_js.fa("isActiveElements")&&!chunkF4OMGIV3_js.fa("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[!chunkF4OMGIV3_js.fa("isTouchScreenPortrait")&&jsxRuntime.jsx(Ve,{}),chunkF4OMGIV3_js.fa("showProgressbar")&&jsxRuntime.jsx(ro,{}),jsxRuntime.jsx(Mo,{})]})})]})})},Oo=Di;chunkWO4IQUGO_js.e();var _i=Bo__default.default(()=>import('./staticVideoTag-R4UR3TBR.js')),Fi=Bo__default.default(()=>import('./nonStaticVideoTag-DTYBMH3W.js')),Oi=()=>jsxRuntime.jsx(jsxRuntime.Fragment,{children:chunkF4OMGIV3_js.fa("isStaticFormat")?jsxRuntime.jsx(_i,{}):jsxRuntime.jsx(Fi,{})}),Vo=Oi;chunkWO4IQUGO_js.e();var zi=(e,l)=>{let o=chunkF4OMGIV3_js.ga(),{activeElements:i}=chunkF4OMGIV3_js.ha(({controller:{activeElements:a}})=>({activeElements:a}),reactRedux.shallowEqual),r=react.useRef(null),p=react.useRef(e),u=react.useRef(l);react.useEffect(()=>{p.current=e;},[e]),react.useEffect(()=>{u.current=l;},[l]),react.useEffect(()=>{let a=false,f=c=>{let{activeElements:y,isEnded:L}=chunkF4OMGIV3_js.P.getState().controller;L?o(chunkF4OMGIV3_js.f(true)):c.pointerType==="mouse"&&(clearTimeout(r.current),y?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward"].includes(c.target.id)&&(a=true):o(chunkF4OMGIV3_js.f(true)),r.current=setTimeout(()=>{let{settingPopover:v,speedPopover:k,qualityLevelsPopover:N,multiAudioPopover:m}=chunkF4OMGIV3_js.P.getState().popovers,{play:x}=chunkF4OMGIV3_js.P.getState().controller;!v&&!k&&!N&&!m&&x&&a&&o(chunkF4OMGIV3_js.f(false));},chunkQHZJEU27_js.a));},d=c=>{setTimeout(()=>{let{activeElements:y,isEnded:L,firstPlay:v}=chunkF4OMGIV3_js.P.getState().controller;if(clearTimeout(r.current),L)return o(chunkF4OMGIV3_js.f(true));chunkF4OMGIV3_js.R()&&!v&&!p.current&&!u.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward"].includes(c.target.id)||chunkF4OMGIV3_js.U(c,"playerElements")?(o(chunkF4OMGIV3_js.f(!y)),r.current=setTimeout(()=>{let{settingPopover:k,speedPopover:N,qualityLevelsPopover:m,multiAudioPopover:x}=chunkF4OMGIV3_js.P.getState().popovers;!k&&!N&&!m&&!x&&o(chunkF4OMGIV3_js.f(false));},chunkQHZJEU27_js.a)):r.current=setTimeout(()=>{let{settingPopover:k,speedPopover:N,qualityLevelsPopover:m,multiAudioPopover:x}=chunkF4OMGIV3_js.P.getState().popovers;!k&&!N&&!m&&!x&&o(chunkF4OMGIV3_js.f(false));},chunkQHZJEU27_js.a));},200);},h=()=>{clearTimeout(r.current),r.current=setTimeout(()=>{let{activeElements:c,isEnded:y}=chunkF4OMGIV3_js.P.getState().controller,{settingPopover:L,speedPopover:v,qualityLevelsPopover:k}=chunkF4OMGIV3_js.P.getState().popovers;y?o(chunkF4OMGIV3_js.f(true)):!L&&!v&&!k&&c&&!y&&o(chunkF4OMGIV3_js.f(!c));},chunkQHZJEU27_js.a);};return document.getElementById("video-area").addEventListener("touchstart",d),document.getElementById("video-area").addEventListener("touchmove",h),document.getElementById("video-area").addEventListener("pointermove",f),()=>{let c=document.getElementById("video-area");c&&(c.removeEventListener("touchstart",d),c.removeEventListener("touchmove",h),c.removeEventListener("pointermove",f));}},[i,e,l]);},zo=zi;chunkWO4IQUGO_js.e();var Xi=()=>{let{firstPlay:e,isFullScreen:l}=chunkF4OMGIV3_js.ha(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),reactRedux.shallowEqual);react.useEffect(()=>{if(chunkF4OMGIV3_js.la()){let o,i=()=>{o=setTimeout(()=>{chunkXJBLW3CD_js.j();},chunkF4OMGIV3_js.R()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[e,l,chunkF4OMGIV3_js.la()]);},qo=Xi;chunkWO4IQUGO_js.e();var Ui=()=>{let{firstPlay:e}=chunkF4OMGIV3_js.ha(({controller:{firstPlay:l}})=>({firstPlay:l}),reactRedux.shallowEqual);chunkF4OMGIV3_js.ha(({videoData:{details:l,params:o}})=>({details:l,params:o}),reactRedux.shallowEqual),react.useEffect(()=>{chunkF4OMGIV3_js.fa("setSubtitleFirstPlay")&&chunkK6VN2DH7_js.b();},[e]);},Xo=Ui;var Wi=Bo__default.default(()=>import('./touchVolumeBrightness-JGBOVWR3.js')),Wo=Bo__default.default(()=>import('./backwardForward-ZDIRWFOH.js')),Qi=()=>{let[e,l]=react.useState(false),[o,i]=react.useState(false);return chunkF4OMGIV3_js.ha(({videoData:{details:r,params:p,videoElementSizeInfo:u}})=>({details:r,params:p,videoElementSizeInfo:u}),reactRedux.shallowEqual),chunkF4OMGIV3_js.ha(({controller:{firstPlay:r,isFullScreen:p,isLoading:u,canPlayVideo:a}})=>({firstPlay:r,isFullScreen:p,isLoading:u,canPlayVideo:a}),reactRedux.shallowEqual),chunkVM4C2OTW_js.d(),qo(),zo(e,o),Xo(),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsxs("div",{id:"video-area",style:{zIndex:chunkF4OMGIV3_js.fa("isFullScreen")?1e6:"unset"},onClick:r=>{let p=document.getElementById("player-popover");(chunkF4OMGIV3_js.fa("isFirstPlay")||!chunkF4OMGIV3_js.fa("isTouchScreen")&&!p)&&chunkXJBLW3CD_js.a(r);},onDoubleClick:r=>chunkXJBLW3CD_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 ${!chunkF4OMGIV3_js.fa("isTouchScreen")&&!chunkF4OMGIV3_js.fa("isFullScreen")&&"!pl-rounded-[12px]"} ${chunkF4OMGIV3_js.fa("isFullScreen")&&"!pl-fixed !pl-w-screen dvh"} pl-w-full pl-relative ${!chunkF4OMGIV3_js.fa("isActiveElements")&&"pl-cursor-none"}`,children:[jsxRuntime.jsx("div",{id:"video-opacity",className:`pl-absolute pl-w-full pl-aspect-video pl-transition-all pl-duration-500 pl-bg-black ${!chunkF4OMGIV3_js.fa("isTouchScreen")&&!chunkF4OMGIV3_js.fa("isFullScreen")&&"!pl-rounded-[12px]"} ${chunkF4OMGIV3_js.fa("isActiveElements")?"pl-bg-opacity-50":"pl-bg-opacity-0"}`}),chunkF4OMGIV3_js.fa("showTouchVolumeBrightness")&&jsxRuntime.jsx(Wi,{}),chunkF4OMGIV3_js.fa("showBackwardForward")&&jsxRuntime.jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-overflow-hidden pl-flex pl-items-center",style:{zIndex:o||e?1000002:1},children:[jsxRuntime.jsx(Wo,{type:"touchForward",isRightDoubleTouched:e,setIsRightDoubleTouched:l}),jsxRuntime.jsx(Wo,{type:"touchBackward",isLeftDoubleTouched:o,setIsLeftDoubleTouched:i})]}),jsxRuntime.jsx(Vo,{}),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:[chunkF4OMGIV3_js.fa("showHeader")&&jsxRuntime.jsx(Lt,{}),chunkF4OMGIV3_js.fa("showMain")&&jsxRuntime.jsx(Bt,{}),chunkF4OMGIV3_js.fa("showFooter")&&jsxRuntime.jsx(Oo,{})]})})]})})},Oc=Qi;
8
- exports.a=Oc;//# sourceMappingURL=chunk-X7U2ECXE.js.map
9
- //# sourceMappingURL=chunk-X7U2ECXE.js.map
8
+ exports.a=Oc;//# sourceMappingURL=chunk-5SGRHURQ.js.map
9
+ //# sourceMappingURL=chunk-5SGRHURQ.js.map