cafe-video-player 2.1.2 → 2.2.0

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 (120) hide show
  1. package/{VideoHighLighter-J244P4R6.mjs → VideoHighLighter-U4GGV66X.mjs} +2 -2
  2. package/{VideoHighLighter-J244P4R6.mjs.map → VideoHighLighter-U4GGV66X.mjs.map} +1 -1
  3. package/{VideoHighLighter-KS4OF7LU.js → VideoHighLighter-ZAC6DXOM.js} +2 -2
  4. package/{VideoHighLighter-KS4OF7LU.js.map → VideoHighLighter-ZAC6DXOM.js.map} +1 -1
  5. package/backwardForward-BVIUUMYX.js +2 -0
  6. package/{backwardForward-T5I2BG67.js.map → backwardForward-BVIUUMYX.js.map} +1 -1
  7. package/backwardForward-Y5UZHDBP.mjs +2 -0
  8. package/{backwardForward-ZA22U5BK.mjs.map → backwardForward-Y5UZHDBP.mjs.map} +1 -1
  9. package/chunk-5FTEBU6O.js +3 -0
  10. package/{chunk-CXFHM7DX.js.map → chunk-5FTEBU6O.js.map} +1 -1
  11. package/{chunk-TTR6HY3N.js → chunk-7GSH5XMZ.js} +2 -2
  12. package/{chunk-TTR6HY3N.js.map → chunk-7GSH5XMZ.js.map} +1 -1
  13. package/{chunk-4SCALKDT.mjs → chunk-A7MEJC4F.mjs} +2 -2
  14. package/{chunk-4SCALKDT.mjs.map → chunk-A7MEJC4F.mjs.map} +1 -1
  15. package/chunk-BOS4UPEA.js +2 -0
  16. package/{chunk-IQGFJNGO.js.map → chunk-BOS4UPEA.js.map} +1 -1
  17. package/chunk-C4TEAPRX.js +9 -0
  18. package/chunk-C4TEAPRX.js.map +1 -0
  19. package/chunk-D7CTAABP.js +2 -0
  20. package/{chunk-AZTVBGMR.js.map → chunk-D7CTAABP.js.map} +1 -1
  21. package/chunk-EDQKSY4F.js +3 -0
  22. package/{chunk-FSNZMZHV.js.map → chunk-EDQKSY4F.js.map} +1 -1
  23. package/chunk-HME64W2O.js +3 -0
  24. package/chunk-HME64W2O.js.map +1 -0
  25. package/chunk-IGINC4KI.js +2 -0
  26. package/chunk-IGINC4KI.js.map +1 -0
  27. package/chunk-J6UYAT2V.mjs +2 -0
  28. package/chunk-J6UYAT2V.mjs.map +1 -0
  29. package/chunk-KIC75NSX.mjs +2 -0
  30. package/{chunk-TRTBWCNM.mjs.map → chunk-KIC75NSX.mjs.map} +1 -1
  31. package/chunk-MW3CX523.mjs +9 -0
  32. package/chunk-MW3CX523.mjs.map +1 -0
  33. package/{chunk-YYDUT7ZK.mjs → chunk-MZP43FH7.mjs} +2 -2
  34. package/{chunk-YYDUT7ZK.mjs.map → chunk-MZP43FH7.mjs.map} +1 -1
  35. package/chunk-O6OWG7HM.mjs +2 -0
  36. package/{chunk-PMXQ6WK2.mjs.map → chunk-O6OWG7HM.mjs.map} +1 -1
  37. package/chunk-PJVN7RKN.mjs +2 -0
  38. package/{chunk-IROHCKSH.mjs.map → chunk-PJVN7RKN.mjs.map} +1 -1
  39. package/chunk-TDHILUXF.js +2 -0
  40. package/{chunk-SRJT46V7.js.map → chunk-TDHILUXF.js.map} +1 -1
  41. package/chunk-TM66GJCG.mjs +3 -0
  42. package/{chunk-XNVWDQSS.mjs.map → chunk-TM66GJCG.mjs.map} +1 -1
  43. package/chunk-VIQ5L73J.js +2 -0
  44. package/{chunk-IT4ECGGR.js.map → chunk-VIQ5L73J.js.map} +1 -1
  45. package/chunk-VIUNI5PQ.mjs +3 -0
  46. package/{chunk-OJ4PZQN5.mjs.map → chunk-VIUNI5PQ.mjs.map} +1 -1
  47. package/chunk-YZYTKWCY.mjs +3 -0
  48. package/chunk-YZYTKWCY.mjs.map +1 -0
  49. package/index.js +1 -1
  50. package/index.js.map +1 -1
  51. package/index.mjs +1 -1
  52. package/index.mjs.map +1 -1
  53. package/nonStaticVideoTag-C2LVXINP.mjs +2 -0
  54. package/nonStaticVideoTag-C2LVXINP.mjs.map +1 -0
  55. package/nonStaticVideoTag-C6MCWMG2.js +2 -0
  56. package/nonStaticVideoTag-C6MCWMG2.js.map +1 -0
  57. package/{notActive-ZFPGLIIJ.mjs → notActive-FNSATJST.mjs} +2 -2
  58. package/{notActive-ZFPGLIIJ.mjs.map → notActive-FNSATJST.mjs.map} +1 -1
  59. package/{notActive-FQ2SLLCT.js → notActive-YTLKQJYE.js} +2 -2
  60. package/{notActive-FQ2SLLCT.js.map → notActive-YTLKQJYE.js.map} +1 -1
  61. package/package.json +1 -1
  62. package/staticPlayer-44ZMIIEA.mjs +2 -0
  63. package/{staticPlayer-QLINPHLK.mjs.map → staticPlayer-44ZMIIEA.mjs.map} +1 -1
  64. package/staticPlayer-7X27HEUG.js +2 -0
  65. package/{staticPlayer-G3WOD5RT.js.map → staticPlayer-7X27HEUG.js.map} +1 -1
  66. package/staticVideoTag-TO5HBYDE.mjs +2 -0
  67. package/{staticVideoTag-G5TJQQNF.mjs.map → staticVideoTag-TO5HBYDE.mjs.map} +1 -1
  68. package/staticVideoTag-YUBA5OAZ.js +2 -0
  69. package/{staticVideoTag-2HZWMOBA.js.map → staticVideoTag-YUBA5OAZ.js.map} +1 -1
  70. package/touchVolumeBrightness-27EBEX5W.mjs +3 -0
  71. package/{touchVolumeBrightness-DE5TFYAG.mjs.map → touchVolumeBrightness-27EBEX5W.mjs.map} +1 -1
  72. package/{touchVolumeBrightness-ZXFRYAIE.js → touchVolumeBrightness-KAAGMQWI.js} +3 -3
  73. package/{touchVolumeBrightness-ZXFRYAIE.js.map → touchVolumeBrightness-KAAGMQWI.js.map} +1 -1
  74. package/videoArea-IKP3GXLH.mjs +2 -0
  75. package/{videoArea-SDEAP3WB.mjs.map → videoArea-IKP3GXLH.mjs.map} +1 -1
  76. package/videoArea-W56PTQDS.js +2 -0
  77. package/{videoArea-WZH7URSO.js.map → videoArea-W56PTQDS.js.map} +1 -1
  78. package/videoPlayerStyles.css +39 -4
  79. package/vodPlayer-ANBY5ULF.mjs +2 -0
  80. package/{vodPlayer-3E5EY62P.mjs.map → vodPlayer-ANBY5ULF.mjs.map} +1 -1
  81. package/vodPlayer-QPIJN45L.js +2 -0
  82. package/{vodPlayer-X4YM6IG5.js.map → vodPlayer-QPIJN45L.js.map} +1 -1
  83. package/backwardForward-T5I2BG67.js +0 -2
  84. package/backwardForward-ZA22U5BK.mjs +0 -2
  85. package/chunk-AZTVBGMR.js +0 -2
  86. package/chunk-BC2TZBZ7.mjs +0 -2
  87. package/chunk-BC2TZBZ7.mjs.map +0 -1
  88. package/chunk-BZEHB5TW.js +0 -9
  89. package/chunk-BZEHB5TW.js.map +0 -1
  90. package/chunk-CXFHM7DX.js +0 -3
  91. package/chunk-ERJKVJY6.js +0 -2
  92. package/chunk-ERJKVJY6.js.map +0 -1
  93. package/chunk-FSNZMZHV.js +0 -3
  94. package/chunk-IDNCPTFE.mjs +0 -3
  95. package/chunk-IDNCPTFE.mjs.map +0 -1
  96. package/chunk-IQGFJNGO.js +0 -2
  97. package/chunk-IROHCKSH.mjs +0 -2
  98. package/chunk-IT4ECGGR.js +0 -2
  99. package/chunk-M2G4MENQ.js +0 -3
  100. package/chunk-M2G4MENQ.js.map +0 -1
  101. package/chunk-OJ4PZQN5.mjs +0 -3
  102. package/chunk-PMXQ6WK2.mjs +0 -2
  103. package/chunk-QVD3Z4ML.mjs +0 -9
  104. package/chunk-QVD3Z4ML.mjs.map +0 -1
  105. package/chunk-SRJT46V7.js +0 -2
  106. package/chunk-TRTBWCNM.mjs +0 -2
  107. package/chunk-XNVWDQSS.mjs +0 -3
  108. package/nonStaticVideoTag-JNQPPLGJ.js +0 -2
  109. package/nonStaticVideoTag-JNQPPLGJ.js.map +0 -1
  110. package/nonStaticVideoTag-YD6SV7LK.mjs +0 -2
  111. package/nonStaticVideoTag-YD6SV7LK.mjs.map +0 -1
  112. package/staticPlayer-G3WOD5RT.js +0 -2
  113. package/staticPlayer-QLINPHLK.mjs +0 -2
  114. package/staticVideoTag-2HZWMOBA.js +0 -2
  115. package/staticVideoTag-G5TJQQNF.mjs +0 -2
  116. package/touchVolumeBrightness-DE5TFYAG.mjs +0 -3
  117. package/videoArea-SDEAP3WB.mjs +0 -2
  118. package/videoArea-WZH7URSO.js +0 -2
  119. package/vodPlayer-3E5EY62P.mjs +0 -2
  120. package/vodPlayer-X4YM6IG5.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/touchVolumeBrightness/touchVolumeBrightness.tsx","../src/videoPlayerLibrary/components/icon-components/mute.tsx","../src/videoPlayerLibrary/components/icon-components/unMute.tsx"],"names":["init_esm_shims","Mute","className","onClick","jsx","jsxs","mute_default","UnMute","unMute_default","TouchVolumeBrightness","type","setType","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryBrightnessValueRef","useRef","primaryVolumeValueRef","typeRef","useEffect","startPositionY","handleTouchStartScreen","event","conditions","checkParentTarget","handleTouchMoveScreen","handleTouchMove","handleTouchEndScreen","store_default","sendFluentLog","brightnessLog","volumeLog","area","activePointerProgressBar","setActiveElements","height","value","volumeCount","setUserSettings","mainPlayerVideoTag","Fragment","Image","importImages_default","touchVolumeBrightness_default"],"mappings":"kTAAAA,CAAAA,EAAAA,CCAAA,CAKY,EAAA,CAHZ,IAAMC,CAAO,CAAA,CAAC,CAAE,SAAAC,CAAAA,CAAAA,CAAW,QAAAC,CAAQ,CAAA,GAE3BC,IAAC,KAAI,CAAA,CAAA,KAAA,CAAM,KAAK,MAAO,CAAA,IAAA,CAAK,QAAQ,WAAY,CAAA,IAAA,CAAK,OAAO,KAAM,CAAA,4BAAA,CAA6B,SAAWF,CAAAA,CAAAA,CAAW,QAASC,CAC1H,CAAA,QAAA,CAAAE,KAAC,GAAE,CAAA,CAAA,OAAA,CAAQ,MACP,QAAAD,CAAAA,CAAAA,GAAAA,CAAC,QAAK,CAAE,CAAA,sSAAA,CAAuS,EAC/SA,GAAC,CAAA,MAAA,CAAA,CAAK,EAAE,8kBAA+kB,CAAA,CAAA,CAAA,CAC3lB,EACJ,CAIDE,CAAAA,CA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ACNL,EAAAA,IAAAA,CAAAsC,SAAA,CACI,QAAA,CAAA,CAAAvC,IAAC,KACG,CAAA,CAAA,SAAA,CAAU,6DACV,CAAA,KAAA,CAAO,CAAE,MAAQ,CAAA,CAAA,EAAGW,EAAS,UAAU,CAAA,CAAA,CAAI,EAC/C,CACAX,CAAAA,GAAAA,CAAC,OACG,SAAU,CAAA,wDAAA,CACV,MAAO,CAAE,OAAA,CAASW,EAAS,UAAa,CAAA,GAAI,EAE5C,QAAAX,CAAAA,GAAAA,CAACwC,CAAA,CAAA,CAAM,IAAI,EAAG,CAAA,GAAA,CAAKC,EAAO,GAAK,CAAA,SAAA,CAAU,YAAY,KAAO,CAAA,EAAA,CAAI,OAAQ,EAAI,CAAA,CAAA,CAChF,GACJ,CAER,CAAA,CAAA,CACJ,GACJ,CACJ,CAAA,CAAA,CAER,EAEOC,EAAQrC,CAAAA","file":"touchVolumeBrightness-DE5TFYAG.mjs","sourcesContent":["import Image from \"next/legacy/image\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport Mute from \"../../icon-components/mute\";\r\nimport UnMute from \"../../icon-components/unMute\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { checkParentTarget } from \"../../../helpers/helpers\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { brightnessLog, volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setActiveElements } from \"../../../helpers/redux/slices/controllerSlice\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { mainPlayerVideoTag } from \"../../../helpers/constants\";\r\nimport IMAGES from \"../../../images/importImages\";\r\n\r\nconst TouchVolumeBrightness = () => {\r\n const [type, setType] = useState<string>(\"\");\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryBrightnessValueRef = useRef<number>(settings.brightness);\r\n const primaryVolumeValueRef = useRef<number>(settings.volume);\r\n const typeRef = useRef<string>(type);\r\n\r\n useEffect(() => {\r\n typeRef.current = type;\r\n }, [type]);\r\n\r\n useEffect(() => {\r\n let startPositionY = 0;\r\n\r\n const handleTouchStartScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) startPositionY = event.touches[0].clientY;\r\n };\r\n\r\n const handleTouchMoveScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) {\r\n event.stopPropagation();\r\n if (event.touches[0].clientX > window.innerWidth / 2) handleTouchMove(event, \"volume\", startPositionY, window.innerHeight);\r\n else if (event.touches[0].clientX < window.innerWidth / 2) handleTouchMove(event, \"brightness\", startPositionY, window.innerHeight);\r\n }\r\n };\r\n\r\n const handleTouchEndScreen = () => {\r\n const { settings } = store.getState().user;\r\n if (typeRef.current === \"brightness\" && primaryBrightnessValueRef.current !== settings.brightness) {\r\n sendFluentLog(brightnessLog(primaryBrightnessValueRef.current, settings.brightness));\r\n primaryBrightnessValueRef.current = settings.brightness;\r\n } else if (typeRef.current === \"volume\" && primaryVolumeValueRef.current !== settings.volume) {\r\n sendFluentLog(volumeLog(primaryVolumeValueRef.current, settings.volume));\r\n primaryVolumeValueRef.current = settings.volume;\r\n }\r\n setTimeout(() => setType(\"\"), 500);\r\n };\r\n\r\n document.addEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.addEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.addEventListener(\"touchend\", () => handleTouchEndScreen());\r\n\r\n return () => {\r\n document.removeEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.removeEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.removeEventListener(\"touchend\", () => handleTouchEndScreen());\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (settings.volume === 0 && !type) primaryVolumeValueRef.current = 0;\r\n }, [settings.volume]);\r\n\r\n const handleTouchMove = (event: any, type: string, startPositionY: number, area: number) => {\r\n const { settings } = store.getState().user;\r\n const { activePointerProgressBar } = store.getState().controller;\r\n try {\r\n if (!activePointerProgressBar) dispatch(setActiveElements(false));\r\n event.stopPropagation();\r\n setType(type);\r\n const { height } = document.getElementsByClassName(\"pl-bar\")[0].getBoundingClientRect();\r\n if (type === \"volume\") {\r\n const value = settings.volume + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n let volumeCount: number;\r\n if (value > 100) volumeCount = 100;\r\n else if (value < 0) volumeCount = 0;\r\n else volumeCount = Math.ceil(Math.abs(value));\r\n dispatch(setUserSettings({ ...settings, volume: volumeCount }));\r\n mainPlayerVideoTag().volume = volumeCount / 100;\r\n } else if (type === \"brightness\") {\r\n const value = settings.brightness + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n if (value > 100) dispatch(setUserSettings({ ...settings, brightness: 100 }));\r\n else if (value < 0) dispatch(setUserSettings({ ...settings, brightness: 0 }));\r\n else dispatch(setUserSettings({ ...settings, brightness: Math.ceil(Math.abs(value)) }));\r\n }\r\n } catch (error) {\r\n return false;\r\n }\r\n };\r\n\r\n return (\r\n <div id=\"volume-brightness\">\r\n <div\r\n className={`pl-fixed pl-w-screen pl-h-screen pl-top-0 pl-right-0 pl-bg-black`}\r\n style={{ opacity: settings.brightness < 10 ? 0.9 : 1 - settings.brightness / 100 }}\r\n ></div>\r\n <div className=\"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-flex pl-justify-between pl-items-center\">\r\n <div className=\"pl-flex pl-items-center pl-flex-1 pl-h-full pl-pr-6\">\r\n <div\r\n id={\"volume-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"volume\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"volume\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-secondary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.volume}%` }}\r\n />\r\n <div className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\">\r\n <div className=\"pl-relative pl-flex pl-items-center\">\r\n {settings.volume > 0 && (\r\n <div className=\"pl-absolute pl-right-[2px] pl-w-2 pl-h-2 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 33 && (\r\n <div className=\"pl-absolute pl-right-[-1px] pl-w-3 pl-h-3 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 66 && (\r\n <div className=\"pl-absolute pl-right-[-4px] pl-w-4 pl-h-4 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n </div>\r\n {settings.volume === 0 ? (\r\n <Mute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n ) : (\r\n <UnMute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n )}\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n {type && (\r\n <div className=\"pl-bg-secondary-700/[0.8] pl-rounded-full pl-w-[54px] pl-h-[54px] pl-flex pl-items-center pl-justify-center pl-text-[32px] pl-font-normal pl-text-white\">\r\n {type === \"volume\" ? settings.volume : settings.brightness}\r\n </div>\r\n )}\r\n <div className=\"pl-flex pl-items-center pl-justify-end pl-flex-1 pl-h-full pl-pl-6\">\r\n <div\r\n id={\"brightness-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"brightness\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"brightness\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-primary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.brightness}%` }}\r\n />\r\n <div\r\n className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\"\r\n style={{ opacity: settings.brightness / 100 }}\r\n >\r\n <Image alt=\"\" src={IMAGES.sun} className=\"pl-flex-1\" width={20} height={20} />\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default TouchVolumeBrightness;\r\n","import { IMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst Mute = ({ className, onClick }: IMuteProps) => {\r\n return (\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <g opacity=\"0.7\">\r\n <path d=\"M11.6997 10.7997C12.2247 10.2747 13.1247 10.6497 13.1247 11.3914V13.833C13.1247 15.2664 12.6081 16.3414 11.6831 16.858C11.3081 17.0664 10.8914 17.1664 10.4581 17.1664C9.79141 17.1664 9.07474 16.9414 8.34141 16.483L7.80807 16.1497C7.35807 15.8664 7.28307 15.233 7.65807 14.858L11.6997 10.7997Z\" />\r\n <path d=\"M18.141 1.85742C17.891 1.60742 17.4827 1.60742 17.2327 1.85742L13.1077 5.98242C13.0577 4.64909 12.5577 3.64909 11.6743 3.15742C10.741 2.64076 9.54935 2.77409 8.33268 3.53242L5.90768 5.04909C5.74102 5.14909 5.54935 5.20742 5.35768 5.20742H4.58268H4.16602C2.14935 5.20742 1.04102 6.31575 1.04102 8.33242V11.6658C1.04102 13.6824 2.14935 14.7908 4.16602 14.7908H4.29935L1.84935 17.2408C1.59935 17.4908 1.59935 17.8991 1.84935 18.1491C1.98268 18.2658 2.14102 18.3324 2.30768 18.3324C2.47435 18.3324 2.63268 18.2658 2.75768 18.1408L18.141 2.75742C18.3994 2.50742 18.3994 2.10742 18.141 1.85742Z\" />\r\n </g>\r\n </svg>\r\n );\r\n};\r\n\r\nexport default Mute;\r\n","import { IUnMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst UnMute = ({ className, onClick }: IUnMuteProps) => {\r\n return (\r\n <svg width=\"13\" height=\"16\" viewBox=\"0 0 13 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <path d=\"M10.6827 1.14944C9.74935 0.632778 8.55768 0.766111 7.34102 1.52444L4.90768 3.04944C4.74102 3.14944 4.54935 3.20778 4.35768 3.20778H3.58268H3.16602C1.14935 3.20778 0.0410156 4.31611 0.0410156 6.33278V9.66611C0.0410156 11.6828 1.14935 12.7911 3.16602 12.7911H3.58268H4.35768C4.54935 12.7911 4.74102 12.8494 4.90768 12.9494L7.34102 14.4744C8.07435 14.9328 8.79102 15.1578 9.45768 15.1578C9.89102 15.1578 10.3077 15.0578 10.6827 14.8494C11.6077 14.3328 12.1243 13.2578 12.1243 11.8244V4.17444C12.1243 2.74111 11.6077 1.66611 10.6827 1.14944Z\" />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default UnMute;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/touchVolumeBrightness/touchVolumeBrightness.tsx","../src/videoPlayerLibrary/components/icon-components/mute.tsx","../src/videoPlayerLibrary/components/icon-components/unMute.tsx"],"names":["init_esm_shims","Mute","className","onClick","jsx","jsxs","mute_default","UnMute","unMute_default","TouchVolumeBrightness","type","setType","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryBrightnessValueRef","useRef","primaryVolumeValueRef","typeRef","useEffect","startPositionY","handleTouchStartScreen","event","conditions","checkParentTarget","handleTouchMoveScreen","handleTouchMove","handleTouchEndScreen","store_default","sendFluentLog","brightnessLog","volumeLog","area","activePointerProgressBar","setActiveElements","height","value","volumeCount","setUserSettings","mainPlayerVideoTag","Fragment","Image","importImages_default","touchVolumeBrightness_default"],"mappings":"yTAAAA,CAAAA,EAAAA,CCAAA,CAKY,EAAA,CAHZ,IAAMC,CAAO,CAAA,CAAC,CAAE,SAAAC,CAAAA,CAAAA,CAAW,QAAAC,CAAQ,CAAA,GAE3BC,IAAC,KAAI,CAAA,CAAA,KAAA,CAAM,KAAK,MAAO,CAAA,IAAA,CAAK,QAAQ,WAAY,CAAA,IAAA,CAAK,OAAO,KAAM,CAAA,4BAAA,CAA6B,SAAWF,CAAAA,CAAAA,CAAW,QAASC,CAC1H,CAAA,QAAA,CAAAE,KAAC,GAAE,CAAA,CAAA,OAAA,CAAQ,MACP,QAAAD,CAAAA,CAAAA,GAAAA,CAAC,QAAK,CAAE,CAAA,sSAAA,CAAuS,EAC/SA,GAAC,CAAA,MAAA,CAAA,CAAK,EAAE,8kBAA+kB,CAAA,CAAA,CAAA,CAC3lB,EACJ,CAIDE,CAAAA,CAAAA,CAAQL,CCbfD,CAAAA,CAAAA,EAAAA,CAEA,IAAMO,CAAS,CAAA,CAAC,CAAE,SAAAL,CAAAA,CAAAA,CAAW,QAAAC,CAAQ,CAAA,GAE7BC,IAAC,KAAI,CAAA,CAAA,KAAA,CAAM,KAAK,MAAO,CAAA,IAAA,CAAK,QAAQ,WAAY,CAAA,IAAA,CAAK,MAAO,CAAA,KAAA,CAAM,6BAA6B,SAAWF,CAAAA,CAAAA,CAAW,QAASC,CAC1H,CAAA,QAAA,CAAAC,IAAC,MAAK,CAAA,CAAA,CAAA,CAAE,4hBAA4hB,CACxiB,CAAA,CAAA,CAIDI,EAAQD,CF4FH,CArFZ,IAAME,EAAwB,IAAM,CAChC,GAAM,CAACC,CAAAA,CAAMC,CAAO,CAAIC,CAAAA,QAAAA,CAAiB,EAAE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AA,CAAA,CAER,EAEOC,EAAQrC,CAAAA","file":"touchVolumeBrightness-27EBEX5W.mjs","sourcesContent":["import Image from \"next/legacy/image\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport Mute from \"../../icon-components/mute\";\r\nimport UnMute from \"../../icon-components/unMute\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { checkParentTarget } from \"../../../helpers/helpers\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { brightnessLog, volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setActiveElements } from \"../../../helpers/redux/slices/controllerSlice\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { mainPlayerVideoTag } from \"../../../helpers/constants\";\r\nimport IMAGES from \"../../../images/importImages\";\r\n\r\nconst TouchVolumeBrightness = () => {\r\n const [type, setType] = useState<string>(\"\");\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryBrightnessValueRef = useRef<number>(settings.brightness);\r\n const primaryVolumeValueRef = useRef<number>(settings.volume);\r\n const typeRef = useRef<string>(type);\r\n\r\n useEffect(() => {\r\n typeRef.current = type;\r\n }, [type]);\r\n\r\n useEffect(() => {\r\n let startPositionY = 0;\r\n\r\n const handleTouchStartScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) startPositionY = event.touches[0].clientY;\r\n };\r\n\r\n const handleTouchMoveScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) {\r\n event.stopPropagation();\r\n if (event.touches[0].clientX > window.innerWidth / 2) handleTouchMove(event, \"volume\", startPositionY, window.innerHeight);\r\n else if (event.touches[0].clientX < window.innerWidth / 2) handleTouchMove(event, \"brightness\", startPositionY, window.innerHeight);\r\n }\r\n };\r\n\r\n const handleTouchEndScreen = () => {\r\n const { settings } = store.getState().user;\r\n if (typeRef.current === \"brightness\" && primaryBrightnessValueRef.current !== settings.brightness) {\r\n sendFluentLog(brightnessLog(primaryBrightnessValueRef.current, settings.brightness));\r\n primaryBrightnessValueRef.current = settings.brightness;\r\n } else if (typeRef.current === \"volume\" && primaryVolumeValueRef.current !== settings.volume) {\r\n sendFluentLog(volumeLog(primaryVolumeValueRef.current, settings.volume));\r\n primaryVolumeValueRef.current = settings.volume;\r\n }\r\n setTimeout(() => setType(\"\"), 500);\r\n };\r\n\r\n document.addEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.addEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.addEventListener(\"touchend\", () => handleTouchEndScreen());\r\n\r\n return () => {\r\n document.removeEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.removeEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.removeEventListener(\"touchend\", () => handleTouchEndScreen());\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (settings.volume === 0 && !type) primaryVolumeValueRef.current = 0;\r\n }, [settings.volume]);\r\n\r\n const handleTouchMove = (event: any, type: string, startPositionY: number, area: number) => {\r\n const { settings } = store.getState().user;\r\n const { activePointerProgressBar } = store.getState().controller;\r\n try {\r\n if (!activePointerProgressBar) dispatch(setActiveElements(false));\r\n event.stopPropagation();\r\n setType(type);\r\n const { height } = document.getElementsByClassName(\"pl-bar\")[0].getBoundingClientRect();\r\n if (type === \"volume\") {\r\n const value = settings.volume + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n let volumeCount: number;\r\n if (value > 100) volumeCount = 100;\r\n else if (value < 0) volumeCount = 0;\r\n else volumeCount = Math.ceil(Math.abs(value));\r\n dispatch(setUserSettings({ ...settings, volume: volumeCount }));\r\n mainPlayerVideoTag().volume = volumeCount / 100;\r\n } else if (type === \"brightness\") {\r\n const value = settings.brightness + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n if (value > 100) dispatch(setUserSettings({ ...settings, brightness: 100 }));\r\n else if (value < 0) dispatch(setUserSettings({ ...settings, brightness: 0 }));\r\n else dispatch(setUserSettings({ ...settings, brightness: Math.ceil(Math.abs(value)) }));\r\n }\r\n } catch (error) {\r\n return false;\r\n }\r\n };\r\n\r\n return (\r\n <div id=\"volume-brightness\">\r\n <div\r\n className={`pl-fixed pl-w-screen pl-h-screen pl-top-0 pl-right-0 pl-bg-black`}\r\n style={{ opacity: settings.brightness < 10 ? 0.9 : 1 - settings.brightness / 100 }}\r\n ></div>\r\n <div className=\"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-flex pl-justify-between pl-items-center\">\r\n <div className=\"pl-flex pl-items-center pl-flex-1 pl-h-full pl-pr-6\">\r\n <div\r\n id={\"volume-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"volume\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"volume\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-secondary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.volume}%` }}\r\n />\r\n <div className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\">\r\n <div className=\"pl-relative pl-flex pl-items-center\">\r\n {settings.volume > 0 && (\r\n <div className=\"pl-absolute pl-right-[2px] pl-w-2 pl-h-2 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 33 && (\r\n <div className=\"pl-absolute pl-right-[-1px] pl-w-3 pl-h-3 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 66 && (\r\n <div className=\"pl-absolute pl-right-[-4px] pl-w-4 pl-h-4 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n </div>\r\n {settings.volume === 0 ? (\r\n <Mute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n ) : (\r\n <UnMute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n )}\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n {type && (\r\n <div className=\"pl-bg-secondary-700/[0.8] pl-rounded-full pl-w-[54px] pl-h-[54px] pl-flex pl-items-center pl-justify-center pl-text-[32px] pl-font-normal pl-text-white\">\r\n {type === \"volume\" ? settings.volume : settings.brightness}\r\n </div>\r\n )}\r\n <div className=\"pl-flex pl-items-center pl-justify-end pl-flex-1 pl-h-full pl-pl-6\">\r\n <div\r\n id={\"brightness-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"brightness\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"brightness\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-primary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.brightness}%` }}\r\n />\r\n <div\r\n className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\"\r\n style={{ opacity: settings.brightness / 100 }}\r\n >\r\n <Image alt=\"\" src={IMAGES.sun} className=\"pl-flex-1\" width={20} height={20} />\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default TouchVolumeBrightness;\r\n","import { IMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst Mute = ({ className, onClick }: IMuteProps) => {\r\n return (\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <g opacity=\"0.7\">\r\n <path d=\"M11.6997 10.7997C12.2247 10.2747 13.1247 10.6497 13.1247 11.3914V13.833C13.1247 15.2664 12.6081 16.3414 11.6831 16.858C11.3081 17.0664 10.8914 17.1664 10.4581 17.1664C9.79141 17.1664 9.07474 16.9414 8.34141 16.483L7.80807 16.1497C7.35807 15.8664 7.28307 15.233 7.65807 14.858L11.6997 10.7997Z\" />\r\n <path d=\"M18.141 1.85742C17.891 1.60742 17.4827 1.60742 17.2327 1.85742L13.1077 5.98242C13.0577 4.64909 12.5577 3.64909 11.6743 3.15742C10.741 2.64076 9.54935 2.77409 8.33268 3.53242L5.90768 5.04909C5.74102 5.14909 5.54935 5.20742 5.35768 5.20742H4.58268H4.16602C2.14935 5.20742 1.04102 6.31575 1.04102 8.33242V11.6658C1.04102 13.6824 2.14935 14.7908 4.16602 14.7908H4.29935L1.84935 17.2408C1.59935 17.4908 1.59935 17.8991 1.84935 18.1491C1.98268 18.2658 2.14102 18.3324 2.30768 18.3324C2.47435 18.3324 2.63268 18.2658 2.75768 18.1408L18.141 2.75742C18.3994 2.50742 18.3994 2.10742 18.141 1.85742Z\" />\r\n </g>\r\n </svg>\r\n );\r\n};\r\n\r\nexport default Mute;\r\n","import { IUnMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst UnMute = ({ className, onClick }: IUnMuteProps) => {\r\n return (\r\n <svg width=\"13\" height=\"16\" viewBox=\"0 0 13 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <path d=\"M10.6827 1.14944C9.74935 0.632778 8.55768 0.766111 7.34102 1.52444L4.90768 3.04944C4.74102 3.14944 4.54935 3.20778 4.35768 3.20778H3.58268H3.16602C1.14935 3.20778 0.0410156 4.31611 0.0410156 6.33278V9.66611C0.0410156 11.6828 1.14935 12.7911 3.16602 12.7911H3.58268H4.35768C4.54935 12.7911 4.74102 12.8494 4.90768 12.9494L7.34102 14.4744C8.07435 14.9328 8.79102 15.1578 9.45768 15.1578C9.89102 15.1578 10.3077 15.0578 10.6827 14.8494C11.6077 14.3328 12.1243 13.2578 12.1243 11.8244V4.17444C12.1243 2.74111 11.6077 1.66611 10.6827 1.14944Z\" />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default UnMute;\r\n"]}
@@ -1,3 +1,3 @@
1
- 'use strict';var chunkM2G4MENQ_js=require('./chunk-M2G4MENQ.js'),chunkCXFHM7DX_js=require('./chunk-CXFHM7DX.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),W=require('next/legacy/image'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var W__default=/*#__PURE__*/_interopDefault(W);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var $=({className:r,onClick:p})=>jsxRuntime.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,onClick:p,children:jsxRuntime.jsxs("g",{opacity:"0.7",children:[jsxRuntime.jsx("path",{d:"M11.6997 10.7997C12.2247 10.2747 13.1247 10.6497 13.1247 11.3914V13.833C13.1247 15.2664 12.6081 16.3414 11.6831 16.858C11.3081 17.0664 10.8914 17.1664 10.4581 17.1664C9.79141 17.1664 9.07474 16.9414 8.34141 16.483L7.80807 16.1497C7.35807 15.8664 7.28307 15.233 7.65807 14.858L11.6997 10.7997Z"}),jsxRuntime.jsx("path",{d:"M18.141 1.85742C17.891 1.60742 17.4827 1.60742 17.2327 1.85742L13.1077 5.98242C13.0577 4.64909 12.5577 3.64909 11.6743 3.15742C10.741 2.64076 9.54935 2.77409 8.33268 3.53242L5.90768 5.04909C5.74102 5.14909 5.54935 5.20742 5.35768 5.20742H4.58268H4.16602C2.14935 5.20742 1.04102 6.31575 1.04102 8.33242V11.6658C1.04102 13.6824 2.14935 14.7908 4.16602 14.7908H4.29935L1.84935 17.2408C1.59935 17.4908 1.59935 17.8991 1.84935 18.1491C1.98268 18.2658 2.14102 18.3324 2.30768 18.3324C2.47435 18.3324 2.63268 18.2658 2.75768 18.1408L18.141 2.75742C18.3994 2.50742 18.3994 2.10742 18.141 1.85742Z"})]})}),j=$;chunkWO4IQUGO_js.e();var Z=({className:r,onClick:p})=>jsxRuntime.jsx("svg",{width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,onClick:p,children:jsxRuntime.jsx("path",{d:"M10.6827 1.14944C9.74935 0.632778 8.55768 0.766111 7.34102 1.52444L4.90768 3.04944C4.74102 3.14944 4.54935 3.20778 4.35768 3.20778H3.58268H3.16602C1.14935 3.20778 0.0410156 4.31611 0.0410156 6.33278V9.66611C0.0410156 11.6828 1.14935 12.7911 3.16602 12.7911H3.58268H4.35768C4.54935 12.7911 4.74102 12.8494 4.90768 12.9494L7.34102 14.4744C8.07435 14.9328 8.79102 15.1578 9.45768 15.1578C9.89102 15.1578 10.3077 15.0578 10.6827 14.8494C11.6077 14.3328 12.1243 13.2578 12.1243 11.8244V4.17444C12.1243 2.74111 11.6077 1.66611 10.6827 1.14944Z"})}),R=Z;var D=()=>{let[r,p]=react.useState(""),m=chunkM2G4MENQ_js.da(),{settings:l}=chunkM2G4MENQ_js.ea(({user:{settings:s}})=>({settings:s}),reactRedux.shallowEqual),v=react.useRef(l.brightness),g=react.useRef(l.volume),b=react.useRef(r);react.useEffect(()=>{b.current=r;},[r]),react.useEffect(()=>{let s=0,i=e=>{chunkM2G4MENQ_js.ca("hidePopovers")&&!chunkM2G4MENQ_js.R(e,"progress-area")&&(s=e.touches[0].clientY);},u=e=>{chunkM2G4MENQ_js.ca("hidePopovers")&&!chunkM2G4MENQ_js.R(e,"progress-area")&&(e.stopPropagation(),e.touches[0].clientX>window.innerWidth/2?E(e,"volume",s,window.innerHeight):e.touches[0].clientX<window.innerWidth/2&&E(e,"brightness",s,window.innerHeight));},c=()=>{let{settings:e}=chunkM2G4MENQ_js.M.getState().user;b.current==="brightness"&&v.current!==e.brightness?(chunkM2G4MENQ_js.la(chunkM2G4MENQ_js.ra(v.current,e.brightness)),v.current=e.brightness):b.current==="volume"&&g.current!==e.volume&&(chunkM2G4MENQ_js.la(chunkM2G4MENQ_js.sa(g.current,e.volume)),g.current=e.volume),setTimeout(()=>p(""),500);};return document.addEventListener("touchstart",e=>i(e)),document.addEventListener("touchmove",e=>u(e)),document.addEventListener("touchend",()=>c()),()=>{document.removeEventListener("touchstart",e=>i(e)),document.removeEventListener("touchmove",e=>u(e)),document.removeEventListener("touchend",()=>c());}},[]),react.useEffect(()=>{l.volume===0&&!r&&(g.current=0);},[l.volume]);let E=(s,i,u,c)=>{let{settings:e}=chunkM2G4MENQ_js.M.getState().user,{activePointerProgressBar:A}=chunkM2G4MENQ_js.M.getState().controller;try{A||m(chunkM2G4MENQ_js.f(!1)),s.stopPropagation(),p(i);let{height:x}=document.getElementsByClassName("pl-bar")[0].getBoundingClientRect();if(i==="volume"){let o=e.volume+(u-s.touches[0].clientY)/40*x/c,d;o>100?d=100:o<0?d=0:d=Math.ceil(Math.abs(o)),m(chunkM2G4MENQ_js.G({...e,volume:d})),chunkM2G4MENQ_js.fa().volume=d/100;}else if(i==="brightness"){let o=e.brightness+(u-s.touches[0].clientY)/40*x/c;o>100?m(chunkM2G4MENQ_js.G({...e,brightness:100})):o<0?m(chunkM2G4MENQ_js.G({...e,brightness:0})):m(chunkM2G4MENQ_js.G({...e,brightness:Math.ceil(Math.abs(o))}));}}catch{return false}};return jsxRuntime.jsxs("div",{id:"volume-brightness",children:[jsxRuntime.jsx("div",{className:"pl-fixed pl-w-screen pl-h-screen pl-top-0 pl-right-0 pl-bg-black",style:{opacity:l.brightness<10?.9:1-l.brightness/100}}),jsxRuntime.jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-flex pl-justify-between pl-items-center",children:[jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-flex-1 pl-h-full pl-pr-6",children:jsxRuntime.jsx("div",{id:"volume-progressbar",className:`pl-bar pl-relative pl-w-6 pl-h-[200px] ${r==="volume"&&"pl-bg-gray-300"} pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`,children:r==="volume"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-w-full pl-bg-secondary-600 pl-rounded-b-[50px]",style:{height:`${l.volume}%`}}),jsxRuntime.jsxs("div",{className:"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center",children:[jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[l.volume>0&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[2px] pl-w-2 pl-h-2 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light"}),l.volume>33&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[-1px] pl-w-3 pl-h-3 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light"}),l.volume>66&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[-4px] pl-w-4 pl-h-4 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light"})]}),l.volume===0?jsxRuntime.jsx(j,{className:"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7"}):jsxRuntime.jsx(R,{className:"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7"})]})]})})}),r&&jsxRuntime.jsx("div",{className:"pl-bg-secondary-700/[0.8] pl-rounded-full pl-w-[54px] pl-h-[54px] pl-flex pl-items-center pl-justify-center pl-text-[32px] pl-font-normal pl-text-white",children:r==="volume"?l.volume:l.brightness}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-justify-end pl-flex-1 pl-h-full pl-pl-6",children:jsxRuntime.jsx("div",{id:"brightness-progressbar",className:`pl-bar pl-relative pl-w-6 pl-h-[200px] ${r==="brightness"&&"pl-bg-gray-300"} pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`,children:r==="brightness"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-w-full pl-bg-primary-600 pl-rounded-b-[50px]",style:{height:`${l.brightness}%`}}),jsxRuntime.jsx("div",{className:"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center",style:{opacity:l.brightness/100},children:jsxRuntime.jsx(W__default.default,{alt:"",src:chunkCXFHM7DX_js.a.sun,className:"pl-flex-1",width:20,height:20})})]})})})]})]})},fe=D;
2
- module.exports=fe;//# sourceMappingURL=touchVolumeBrightness-ZXFRYAIE.js.map
3
- //# sourceMappingURL=touchVolumeBrightness-ZXFRYAIE.js.map
1
+ 'use strict';var chunkHME64W2O_js=require('./chunk-HME64W2O.js'),chunk5FTEBU6O_js=require('./chunk-5FTEBU6O.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),W=require('next/legacy/image'),react=require('react'),reactRedux=require('react-redux'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var W__default=/*#__PURE__*/_interopDefault(W);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var $=({className:r,onClick:p})=>jsxRuntime.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,onClick:p,children:jsxRuntime.jsxs("g",{opacity:"0.7",children:[jsxRuntime.jsx("path",{d:"M11.6997 10.7997C12.2247 10.2747 13.1247 10.6497 13.1247 11.3914V13.833C13.1247 15.2664 12.6081 16.3414 11.6831 16.858C11.3081 17.0664 10.8914 17.1664 10.4581 17.1664C9.79141 17.1664 9.07474 16.9414 8.34141 16.483L7.80807 16.1497C7.35807 15.8664 7.28307 15.233 7.65807 14.858L11.6997 10.7997Z"}),jsxRuntime.jsx("path",{d:"M18.141 1.85742C17.891 1.60742 17.4827 1.60742 17.2327 1.85742L13.1077 5.98242C13.0577 4.64909 12.5577 3.64909 11.6743 3.15742C10.741 2.64076 9.54935 2.77409 8.33268 3.53242L5.90768 5.04909C5.74102 5.14909 5.54935 5.20742 5.35768 5.20742H4.58268H4.16602C2.14935 5.20742 1.04102 6.31575 1.04102 8.33242V11.6658C1.04102 13.6824 2.14935 14.7908 4.16602 14.7908H4.29935L1.84935 17.2408C1.59935 17.4908 1.59935 17.8991 1.84935 18.1491C1.98268 18.2658 2.14102 18.3324 2.30768 18.3324C2.47435 18.3324 2.63268 18.2658 2.75768 18.1408L18.141 2.75742C18.3994 2.50742 18.3994 2.10742 18.141 1.85742Z"})]})}),j=$;chunkWO4IQUGO_js.e();var Z=({className:r,onClick:p})=>jsxRuntime.jsx("svg",{width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,onClick:p,children:jsxRuntime.jsx("path",{d:"M10.6827 1.14944C9.74935 0.632778 8.55768 0.766111 7.34102 1.52444L4.90768 3.04944C4.74102 3.14944 4.54935 3.20778 4.35768 3.20778H3.58268H3.16602C1.14935 3.20778 0.0410156 4.31611 0.0410156 6.33278V9.66611C0.0410156 11.6828 1.14935 12.7911 3.16602 12.7911H3.58268H4.35768C4.54935 12.7911 4.74102 12.8494 4.90768 12.9494L7.34102 14.4744C8.07435 14.9328 8.79102 15.1578 9.45768 15.1578C9.89102 15.1578 10.3077 15.0578 10.6827 14.8494C11.6077 14.3328 12.1243 13.2578 12.1243 11.8244V4.17444C12.1243 2.74111 11.6077 1.66611 10.6827 1.14944Z"})}),R=Z;var D=()=>{let[r,p]=react.useState(""),m=chunkHME64W2O_js.ga(),{settings:l}=chunkHME64W2O_js.ha(({user:{settings:s}})=>({settings:s}),reactRedux.shallowEqual),v=react.useRef(l.brightness),g=react.useRef(l.volume),b=react.useRef(r);react.useEffect(()=>{b.current=r;},[r]),react.useEffect(()=>{let s=0,i=e=>{chunkHME64W2O_js.fa("hidePopovers")&&!chunkHME64W2O_js.U(e,"progress-area")&&(s=e.touches[0].clientY);},u=e=>{chunkHME64W2O_js.fa("hidePopovers")&&!chunkHME64W2O_js.U(e,"progress-area")&&(e.stopPropagation(),e.touches[0].clientX>window.innerWidth/2?E(e,"volume",s,window.innerHeight):e.touches[0].clientX<window.innerWidth/2&&E(e,"brightness",s,window.innerHeight));},c=()=>{let{settings:e}=chunkHME64W2O_js.P.getState().user;b.current==="brightness"&&v.current!==e.brightness?(chunkHME64W2O_js.oa(chunkHME64W2O_js.ua(v.current,e.brightness)),v.current=e.brightness):b.current==="volume"&&g.current!==e.volume&&(chunkHME64W2O_js.oa(chunkHME64W2O_js.va(g.current,e.volume)),g.current=e.volume),setTimeout(()=>p(""),500);};return document.addEventListener("touchstart",e=>i(e)),document.addEventListener("touchmove",e=>u(e)),document.addEventListener("touchend",()=>c()),()=>{document.removeEventListener("touchstart",e=>i(e)),document.removeEventListener("touchmove",e=>u(e)),document.removeEventListener("touchend",()=>c());}},[]),react.useEffect(()=>{l.volume===0&&!r&&(g.current=0);},[l.volume]);let E=(s,i,u,c)=>{let{settings:e}=chunkHME64W2O_js.P.getState().user,{activePointerProgressBar:A}=chunkHME64W2O_js.P.getState().controller;try{A||m(chunkHME64W2O_js.f(!1)),s.stopPropagation(),p(i);let{height:x}=document.getElementsByClassName("pl-bar")[0].getBoundingClientRect();if(i==="volume"){let o=e.volume+(u-s.touches[0].clientY)/40*x/c,d;o>100?d=100:o<0?d=0:d=Math.ceil(Math.abs(o)),m(chunkHME64W2O_js.J({...e,volume:d})),chunkHME64W2O_js.ia().volume=d/100;}else if(i==="brightness"){let o=e.brightness+(u-s.touches[0].clientY)/40*x/c;o>100?m(chunkHME64W2O_js.J({...e,brightness:100})):o<0?m(chunkHME64W2O_js.J({...e,brightness:0})):m(chunkHME64W2O_js.J({...e,brightness:Math.ceil(Math.abs(o))}));}}catch{return false}};return jsxRuntime.jsxs("div",{id:"volume-brightness",children:[jsxRuntime.jsx("div",{className:"pl-fixed pl-w-screen pl-h-screen pl-top-0 pl-right-0 pl-bg-black",style:{opacity:l.brightness<10?.9:1-l.brightness/100}}),jsxRuntime.jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-flex pl-justify-between pl-items-center",children:[jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-flex-1 pl-h-full pl-pr-6",children:jsxRuntime.jsx("div",{id:"volume-progressbar",className:`pl-bar pl-relative pl-w-6 pl-h-[200px] ${r==="volume"&&"pl-bg-gray-300"} pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`,children:r==="volume"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-w-full pl-bg-secondary-600 pl-rounded-b-[50px]",style:{height:`${l.volume}%`}}),jsxRuntime.jsxs("div",{className:"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center",children:[jsxRuntime.jsxs("div",{className:"pl-relative pl-flex pl-items-center",children:[l.volume>0&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[2px] pl-w-2 pl-h-2 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light"}),l.volume>33&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[-1px] pl-w-3 pl-h-3 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light"}),l.volume>66&&jsxRuntime.jsx("div",{className:"pl-absolute pl-right-[-4px] pl-w-4 pl-h-4 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light"})]}),l.volume===0?jsxRuntime.jsx(j,{className:"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7"}):jsxRuntime.jsx(R,{className:"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7"})]})]})})}),r&&jsxRuntime.jsx("div",{className:"pl-bg-secondary-700/[0.8] pl-rounded-full pl-w-[54px] pl-h-[54px] pl-flex pl-items-center pl-justify-center pl-text-[32px] pl-font-normal pl-text-white",children:r==="volume"?l.volume:l.brightness}),jsxRuntime.jsx("div",{className:"pl-flex pl-items-center pl-justify-end pl-flex-1 pl-h-full pl-pl-6",children:jsxRuntime.jsx("div",{id:"brightness-progressbar",className:`pl-bar pl-relative pl-w-6 pl-h-[200px] ${r==="brightness"&&"pl-bg-gray-300"} pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`,children:r==="brightness"&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("div",{className:"pl-absolute pl-w-full pl-bg-primary-600 pl-rounded-b-[50px]",style:{height:`${l.brightness}%`}}),jsxRuntime.jsx("div",{className:"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center",style:{opacity:l.brightness/100},children:jsxRuntime.jsx(W__default.default,{alt:"",src:chunk5FTEBU6O_js.a.sun,className:"pl-flex-1",width:20,height:20})})]})})})]})]})},fe=D;
2
+ module.exports=fe;//# sourceMappingURL=touchVolumeBrightness-KAAGMQWI.js.map
3
+ //# sourceMappingURL=touchVolumeBrightness-KAAGMQWI.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/touchVolumeBrightness/touchVolumeBrightness.tsx","../src/videoPlayerLibrary/components/icon-components/mute.tsx","../src/videoPlayerLibrary/components/icon-components/unMute.tsx"],"names":["init_cjs_shims","Mute","className","onClick","jsx","jsxs","mute_default","UnMute","unMute_default","TouchVolumeBrightness","type","setType","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryBrightnessValueRef","useRef","primaryVolumeValueRef","typeRef","useEffect","startPositionY","handleTouchStartScreen","event","conditions","checkParentTarget","handleTouchMoveScreen","handleTouchMove","handleTouchEndScreen","store_default","sendFluentLog","brightnessLog","volumeLog","area","activePointerProgressBar","setActiveElements","height","value","volumeCount","setUserSettings","mainPlayerVideoTag","Fragment","Image","importImages_default","touchVolumeBrightness_default"],"mappings":"iZAAAA,kBAAAA,EAAAA,CCAAA,kBAKY,EAAA,CAHZ,IAAMC,CAAO,CAAA,CAAC,CAAE,SAAAC,CAAAA,CAAAA,CAAW,QAAAC,CAAQ,CAAA,GAE3BC,eAAC,KAAI,CAAA,CAAA,KAAA,CAAM,KAAK,MAAO,CAAA,IAAA,CAAK,QAAQ,WAAY,CAAA,IAAA,CAAK,OAAO,KAAM,CAAA,4BAAA,CAA6B,SAAWF,CAAAA,CAAAA,CAAW,QAASC,CAC1H,CAAA,QAAA,CAAAE,gBAAC,GAAE,CAAA,CAAA,OAAA,CAAQ,MACP,QAAAD,CAAAA,CAAAA,cAAAA,CAAC,QAAK,CAAE,CAAA,sSAAA,CAAuS,EAC/SA,cAAC,CAAA,MAAA,CAAA,CAAK,EAAE,8kBAA+kB,CAAA,CAAA,CAAA,CAC3lB,EACJ,CAIDE,CAAAA,CAAAA,CAAQL,CCbfD,CAAAA,kBAAAA,EAAAA,CAEA,IAAMO,CAAS,CAAA,CAAC,CAAE,SAAAL,CAAAA,CAAAA,CAAW,QAAAC,CAAQ,CAAA,GAE7BC,eAAC,KAAI,CAAA,CAAA,KAAA,CAAM,KAAK,MAAO,CAAA,IAAA,CAAK,QAAQ,WAAY,CAAA,IAAA,CAAK,MAAO,CAAA,KAAA,CAAM,6BAA6B,SAAWF,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MAAO,CAAE,OAAA,CAASW,EAAS,UAAa,CAAA,GAAI,EAE5C,QAAAX,CAAAA,cAAAA,CAACwC,kBAAA,CAAA,CAAM,IAAI,EAAG,CAAA,GAAA,CAAKC,mBAAO,GAAK,CAAA,SAAA,CAAU,YAAY,KAAO,CAAA,EAAA,CAAI,OAAQ,EAAI,CAAA,CAAA,CAChF,GACJ,CAER,CAAA,CAAA,CACJ,GACJ,CACJ,CAAA,CAAA,CAER,EAEOC,EAAQrC,CAAAA","file":"touchVolumeBrightness-ZXFRYAIE.js","sourcesContent":["import Image from \"next/legacy/image\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport Mute from \"../../icon-components/mute\";\r\nimport UnMute from \"../../icon-components/unMute\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { checkParentTarget } from \"../../../helpers/helpers\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { brightnessLog, volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setActiveElements } from \"../../../helpers/redux/slices/controllerSlice\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { mainPlayerVideoTag } from \"../../../helpers/constants\";\r\nimport IMAGES from \"../../../images/importImages\";\r\n\r\nconst TouchVolumeBrightness = () => {\r\n const [type, setType] = useState<string>(\"\");\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryBrightnessValueRef = useRef<number>(settings.brightness);\r\n const primaryVolumeValueRef = useRef<number>(settings.volume);\r\n const typeRef = useRef<string>(type);\r\n\r\n useEffect(() => {\r\n typeRef.current = type;\r\n }, [type]);\r\n\r\n useEffect(() => {\r\n let startPositionY = 0;\r\n\r\n const handleTouchStartScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) startPositionY = event.touches[0].clientY;\r\n };\r\n\r\n const handleTouchMoveScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) {\r\n event.stopPropagation();\r\n if (event.touches[0].clientX > window.innerWidth / 2) handleTouchMove(event, \"volume\", startPositionY, window.innerHeight);\r\n else if (event.touches[0].clientX < window.innerWidth / 2) handleTouchMove(event, \"brightness\", startPositionY, window.innerHeight);\r\n }\r\n };\r\n\r\n const handleTouchEndScreen = () => {\r\n const { settings } = store.getState().user;\r\n if (typeRef.current === \"brightness\" && primaryBrightnessValueRef.current !== settings.brightness) {\r\n sendFluentLog(brightnessLog(primaryBrightnessValueRef.current, settings.brightness));\r\n primaryBrightnessValueRef.current = settings.brightness;\r\n } else if (typeRef.current === \"volume\" && primaryVolumeValueRef.current !== settings.volume) {\r\n sendFluentLog(volumeLog(primaryVolumeValueRef.current, settings.volume));\r\n primaryVolumeValueRef.current = settings.volume;\r\n }\r\n setTimeout(() => setType(\"\"), 500);\r\n };\r\n\r\n document.addEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.addEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.addEventListener(\"touchend\", () => handleTouchEndScreen());\r\n\r\n return () => {\r\n document.removeEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.removeEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.removeEventListener(\"touchend\", () => handleTouchEndScreen());\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (settings.volume === 0 && !type) primaryVolumeValueRef.current = 0;\r\n }, [settings.volume]);\r\n\r\n const handleTouchMove = (event: any, type: string, startPositionY: number, area: number) => {\r\n const { settings } = store.getState().user;\r\n const { activePointerProgressBar } = store.getState().controller;\r\n try {\r\n if (!activePointerProgressBar) dispatch(setActiveElements(false));\r\n event.stopPropagation();\r\n setType(type);\r\n const { height } = document.getElementsByClassName(\"pl-bar\")[0].getBoundingClientRect();\r\n if (type === \"volume\") {\r\n const value = settings.volume + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n let volumeCount: number;\r\n if (value > 100) volumeCount = 100;\r\n else if (value < 0) volumeCount = 0;\r\n else volumeCount = Math.ceil(Math.abs(value));\r\n dispatch(setUserSettings({ ...settings, volume: volumeCount }));\r\n mainPlayerVideoTag().volume = volumeCount / 100;\r\n } else if (type === \"brightness\") {\r\n const value = settings.brightness + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n if (value > 100) dispatch(setUserSettings({ ...settings, brightness: 100 }));\r\n else if (value < 0) dispatch(setUserSettings({ ...settings, brightness: 0 }));\r\n else dispatch(setUserSettings({ ...settings, brightness: Math.ceil(Math.abs(value)) }));\r\n }\r\n } catch (error) {\r\n return false;\r\n }\r\n };\r\n\r\n return (\r\n <div id=\"volume-brightness\">\r\n <div\r\n className={`pl-fixed pl-w-screen pl-h-screen pl-top-0 pl-right-0 pl-bg-black`}\r\n style={{ opacity: settings.brightness < 10 ? 0.9 : 1 - settings.brightness / 100 }}\r\n ></div>\r\n <div className=\"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-flex pl-justify-between pl-items-center\">\r\n <div className=\"pl-flex pl-items-center pl-flex-1 pl-h-full pl-pr-6\">\r\n <div\r\n id={\"volume-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"volume\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"volume\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-secondary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.volume}%` }}\r\n />\r\n <div className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\">\r\n <div className=\"pl-relative pl-flex pl-items-center\">\r\n {settings.volume > 0 && (\r\n <div className=\"pl-absolute pl-right-[2px] pl-w-2 pl-h-2 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 33 && (\r\n <div className=\"pl-absolute pl-right-[-1px] pl-w-3 pl-h-3 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 66 && (\r\n <div className=\"pl-absolute pl-right-[-4px] pl-w-4 pl-h-4 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n </div>\r\n {settings.volume === 0 ? (\r\n <Mute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n ) : (\r\n <UnMute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n )}\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n {type && (\r\n <div className=\"pl-bg-secondary-700/[0.8] pl-rounded-full pl-w-[54px] pl-h-[54px] pl-flex pl-items-center pl-justify-center pl-text-[32px] pl-font-normal pl-text-white\">\r\n {type === \"volume\" ? settings.volume : settings.brightness}\r\n </div>\r\n )}\r\n <div className=\"pl-flex pl-items-center pl-justify-end pl-flex-1 pl-h-full pl-pl-6\">\r\n <div\r\n id={\"brightness-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"brightness\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"brightness\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-primary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.brightness}%` }}\r\n />\r\n <div\r\n className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\"\r\n style={{ opacity: settings.brightness / 100 }}\r\n >\r\n <Image alt=\"\" src={IMAGES.sun} className=\"pl-flex-1\" width={20} height={20} />\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default TouchVolumeBrightness;\r\n","import { IMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst Mute = ({ className, onClick }: IMuteProps) => {\r\n return (\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <g opacity=\"0.7\">\r\n <path d=\"M11.6997 10.7997C12.2247 10.2747 13.1247 10.6497 13.1247 11.3914V13.833C13.1247 15.2664 12.6081 16.3414 11.6831 16.858C11.3081 17.0664 10.8914 17.1664 10.4581 17.1664C9.79141 17.1664 9.07474 16.9414 8.34141 16.483L7.80807 16.1497C7.35807 15.8664 7.28307 15.233 7.65807 14.858L11.6997 10.7997Z\" />\r\n <path d=\"M18.141 1.85742C17.891 1.60742 17.4827 1.60742 17.2327 1.85742L13.1077 5.98242C13.0577 4.64909 12.5577 3.64909 11.6743 3.15742C10.741 2.64076 9.54935 2.77409 8.33268 3.53242L5.90768 5.04909C5.74102 5.14909 5.54935 5.20742 5.35768 5.20742H4.58268H4.16602C2.14935 5.20742 1.04102 6.31575 1.04102 8.33242V11.6658C1.04102 13.6824 2.14935 14.7908 4.16602 14.7908H4.29935L1.84935 17.2408C1.59935 17.4908 1.59935 17.8991 1.84935 18.1491C1.98268 18.2658 2.14102 18.3324 2.30768 18.3324C2.47435 18.3324 2.63268 18.2658 2.75768 18.1408L18.141 2.75742C18.3994 2.50742 18.3994 2.10742 18.141 1.85742Z\" />\r\n </g>\r\n </svg>\r\n );\r\n};\r\n\r\nexport default Mute;\r\n","import { IUnMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst UnMute = ({ className, onClick }: IUnMuteProps) => {\r\n return (\r\n <svg width=\"13\" height=\"16\" viewBox=\"0 0 13 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <path d=\"M10.6827 1.14944C9.74935 0.632778 8.55768 0.766111 7.34102 1.52444L4.90768 3.04944C4.74102 3.14944 4.54935 3.20778 4.35768 3.20778H3.58268H3.16602C1.14935 3.20778 0.0410156 4.31611 0.0410156 6.33278V9.66611C0.0410156 11.6828 1.14935 12.7911 3.16602 12.7911H3.58268H4.35768C4.54935 12.7911 4.74102 12.8494 4.90768 12.9494L7.34102 14.4744C8.07435 14.9328 8.79102 15.1578 9.45768 15.1578C9.89102 15.1578 10.3077 15.0578 10.6827 14.8494C11.6077 14.3328 12.1243 13.2578 12.1243 11.8244V4.17444C12.1243 2.74111 11.6077 1.66611 10.6827 1.14944Z\" />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default UnMute;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/touchVolumeBrightness/touchVolumeBrightness.tsx","../src/videoPlayerLibrary/components/icon-components/mute.tsx","../src/videoPlayerLibrary/components/icon-components/unMute.tsx"],"names":["init_cjs_shims","Mute","className","onClick","jsx","jsxs","mute_default","UnMute","unMute_default","TouchVolumeBrightness","type","setType","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryBrightnessValueRef","useRef","primaryVolumeValueRef","typeRef","useEffect","startPositionY","handleTouchStartScreen","event","conditions","checkParentTarget","handleTouchMoveScreen","handleTouchMove","handleTouchEndScreen","store_default","sendFluentLog","brightnessLog","volumeLog","area","activePointerProgressBar","setActiveElements","height","value","volumeCount","setUserSettings","mainPlayerVideoTag","Fragment","Image","importImages_default","touchVolumeBrightness_default"],"mappings":"iZAAAA,kBAAAA,EAAAA,CCAAA,kBAKY,EAAA,CAHZ,IAAMC,CA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,CAAA,CAAK,SAAU,CAAA,iDAAA,CAAkD,EAElEF,cAACI,CAAAA,CAAAA,CAAA,CAAO,SAAA,CAAU,kDAAkD,CAE5E,CAAA,CAAA,CAAA,CAAA,CACJ,EAER,CACJ,CAAA,CAAA,CACCE,GACGN,cAAC,CAAA,KAAA,CAAA,CAAI,UAAU,yJACV,CAAA,QAAA,CAAAM,IAAS,QAAWK,CAAAA,CAAAA,CAAS,OAASA,CAAS,CAAA,UAAA,CACpD,EAEJX,cAAC,CAAA,KAAA,CAAA,CAAI,SAAU,CAAA,oEAAA,CACX,SAAAA,cAAC,CAAA,KAAA,CAAA,CACG,GAAI,wBACJ,CAAA,SAAA,CAAW,0CACPM,CAAS,GAAA,YAAA,EAAgB,gBAC7B,CAEC,yFAAA,CAAA,CAAA,QAAA,CAAAA,IAAS,YACNL,EAAAA,eAAAA,CAAAsC,oBAAA,CACI,QAAA,CAAA,CAAAvC,eAAC,KACG,CAAA,CAAA,SAAA,CAAU,6DACV,CAAA,KAAA,CAAO,CAAE,MAAQ,CAAA,CAAA,EAAGW,EAAS,UAAU,CAAA,CAAA,CAAI,EAC/C,CACAX,CAAAA,cAAAA,CAAC,OACG,SAAU,CAAA,wDAAA,CACV,MAAO,CAAE,OAAA,CAASW,EAAS,UAAa,CAAA,GAAI,EAE5C,QAAAX,CAAAA,cAAAA,CAACwC,kBAAA,CAAA,CAAM,IAAI,EAAG,CAAA,GAAA,CAAKC,mBAAO,GAAK,CAAA,SAAA,CAAU,YAAY,KAAO,CAAA,EAAA,CAAI,OAAQ,EAAI,CAAA,CAAA,CAChF,GACJ,CAER,CAAA,CAAA,CACJ,GACJ,CACJ,CAAA,CAAA,CAER,EAEOC,EAAQrC,CAAAA","file":"touchVolumeBrightness-KAAGMQWI.js","sourcesContent":["import Image from \"next/legacy/image\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport Mute from \"../../icon-components/mute\";\r\nimport UnMute from \"../../icon-components/unMute\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { checkParentTarget } from \"../../../helpers/helpers\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { brightnessLog, volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setActiveElements } from \"../../../helpers/redux/slices/controllerSlice\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { mainPlayerVideoTag } from \"../../../helpers/constants\";\r\nimport IMAGES from \"../../../images/importImages\";\r\n\r\nconst TouchVolumeBrightness = () => {\r\n const [type, setType] = useState<string>(\"\");\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryBrightnessValueRef = useRef<number>(settings.brightness);\r\n const primaryVolumeValueRef = useRef<number>(settings.volume);\r\n const typeRef = useRef<string>(type);\r\n\r\n useEffect(() => {\r\n typeRef.current = type;\r\n }, [type]);\r\n\r\n useEffect(() => {\r\n let startPositionY = 0;\r\n\r\n const handleTouchStartScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) startPositionY = event.touches[0].clientY;\r\n };\r\n\r\n const handleTouchMoveScreen = (event: any) => {\r\n if (conditions(ConditionName.hidePopovers) && !checkParentTarget(event, \"progress-area\")) {\r\n event.stopPropagation();\r\n if (event.touches[0].clientX > window.innerWidth / 2) handleTouchMove(event, \"volume\", startPositionY, window.innerHeight);\r\n else if (event.touches[0].clientX < window.innerWidth / 2) handleTouchMove(event, \"brightness\", startPositionY, window.innerHeight);\r\n }\r\n };\r\n\r\n const handleTouchEndScreen = () => {\r\n const { settings } = store.getState().user;\r\n if (typeRef.current === \"brightness\" && primaryBrightnessValueRef.current !== settings.brightness) {\r\n sendFluentLog(brightnessLog(primaryBrightnessValueRef.current, settings.brightness));\r\n primaryBrightnessValueRef.current = settings.brightness;\r\n } else if (typeRef.current === \"volume\" && primaryVolumeValueRef.current !== settings.volume) {\r\n sendFluentLog(volumeLog(primaryVolumeValueRef.current, settings.volume));\r\n primaryVolumeValueRef.current = settings.volume;\r\n }\r\n setTimeout(() => setType(\"\"), 500);\r\n };\r\n\r\n document.addEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.addEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.addEventListener(\"touchend\", () => handleTouchEndScreen());\r\n\r\n return () => {\r\n document.removeEventListener(\"touchstart\", (event: any) => handleTouchStartScreen(event));\r\n document.removeEventListener(\"touchmove\", (event: any) => handleTouchMoveScreen(event));\r\n document.removeEventListener(\"touchend\", () => handleTouchEndScreen());\r\n };\r\n }, []);\r\n\r\n useEffect(() => {\r\n if (settings.volume === 0 && !type) primaryVolumeValueRef.current = 0;\r\n }, [settings.volume]);\r\n\r\n const handleTouchMove = (event: any, type: string, startPositionY: number, area: number) => {\r\n const { settings } = store.getState().user;\r\n const { activePointerProgressBar } = store.getState().controller;\r\n try {\r\n if (!activePointerProgressBar) dispatch(setActiveElements(false));\r\n event.stopPropagation();\r\n setType(type);\r\n const { height } = document.getElementsByClassName(\"pl-bar\")[0].getBoundingClientRect();\r\n if (type === \"volume\") {\r\n const value = settings.volume + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n let volumeCount: number;\r\n if (value > 100) volumeCount = 100;\r\n else if (value < 0) volumeCount = 0;\r\n else volumeCount = Math.ceil(Math.abs(value));\r\n dispatch(setUserSettings({ ...settings, volume: volumeCount }));\r\n mainPlayerVideoTag().volume = volumeCount / 100;\r\n } else if (type === \"brightness\") {\r\n const value = settings.brightness + (((startPositionY - event.touches[0].clientY) / 40) * height) / area;\r\n if (value > 100) dispatch(setUserSettings({ ...settings, brightness: 100 }));\r\n else if (value < 0) dispatch(setUserSettings({ ...settings, brightness: 0 }));\r\n else dispatch(setUserSettings({ ...settings, brightness: Math.ceil(Math.abs(value)) }));\r\n }\r\n } catch (error) {\r\n return false;\r\n }\r\n };\r\n\r\n return (\r\n <div id=\"volume-brightness\">\r\n <div\r\n className={`pl-fixed pl-w-screen pl-h-screen pl-top-0 pl-right-0 pl-bg-black`}\r\n style={{ opacity: settings.brightness < 10 ? 0.9 : 1 - settings.brightness / 100 }}\r\n ></div>\r\n <div className=\"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-flex pl-justify-between pl-items-center\">\r\n <div className=\"pl-flex pl-items-center pl-flex-1 pl-h-full pl-pr-6\">\r\n <div\r\n id={\"volume-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"volume\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"volume\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-secondary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.volume}%` }}\r\n />\r\n <div className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\">\r\n <div className=\"pl-relative pl-flex pl-items-center\">\r\n {settings.volume > 0 && (\r\n <div className=\"pl-absolute pl-right-[2px] pl-w-2 pl-h-2 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 33 && (\r\n <div className=\"pl-absolute pl-right-[-1px] pl-w-3 pl-h-3 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n {settings.volume > 66 && (\r\n <div className=\"pl-absolute pl-right-[-4px] pl-w-4 pl-h-4 pl-rounded-full pl-flex pl-items-center pl-justify-center pl-border-2 pl-border-transparent pl-border-r-2 pl-border-r-z-yellow-light\" />\r\n )}\r\n </div>\r\n {settings.volume === 0 ? (\r\n <Mute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n ) : (\r\n <UnMute className=\"pl-z-[1] pl-w-[13px] pl-h-[13px] pl-fill-dark-7\" />\r\n )}\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n {type && (\r\n <div className=\"pl-bg-secondary-700/[0.8] pl-rounded-full pl-w-[54px] pl-h-[54px] pl-flex pl-items-center pl-justify-center pl-text-[32px] pl-font-normal pl-text-white\">\r\n {type === \"volume\" ? settings.volume : settings.brightness}\r\n </div>\r\n )}\r\n <div className=\"pl-flex pl-items-center pl-justify-end pl-flex-1 pl-h-full pl-pl-6\">\r\n <div\r\n id={\"brightness-progressbar\"}\r\n className={`pl-bar pl-relative pl-w-6 pl-h-[200px] ${\r\n type === \"brightness\" && \"pl-bg-gray-300\"\r\n } pl-rounded-[50px] pl-overflow-hidden pl-max-h-[80vh] pl-flex pl-items-end pl-justify-end`}\r\n >\r\n {type === \"brightness\" && (\r\n <>\r\n <div\r\n className=\"pl-absolute pl-w-full pl-bg-primary-600 pl-rounded-b-[50px]\"\r\n style={{ height: `${settings.brightness}%` }}\r\n />\r\n <div\r\n className=\"pl-mb-[7px] pl-ml-0.5 pl-flex pl-gap-1 pl-items-center\"\r\n style={{ opacity: settings.brightness / 100 }}\r\n >\r\n <Image alt=\"\" src={IMAGES.sun} className=\"pl-flex-1\" width={20} height={20} />\r\n </div>\r\n </>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default TouchVolumeBrightness;\r\n","import { IMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst Mute = ({ className, onClick }: IMuteProps) => {\r\n return (\r\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <g opacity=\"0.7\">\r\n <path d=\"M11.6997 10.7997C12.2247 10.2747 13.1247 10.6497 13.1247 11.3914V13.833C13.1247 15.2664 12.6081 16.3414 11.6831 16.858C11.3081 17.0664 10.8914 17.1664 10.4581 17.1664C9.79141 17.1664 9.07474 16.9414 8.34141 16.483L7.80807 16.1497C7.35807 15.8664 7.28307 15.233 7.65807 14.858L11.6997 10.7997Z\" />\r\n <path d=\"M18.141 1.85742C17.891 1.60742 17.4827 1.60742 17.2327 1.85742L13.1077 5.98242C13.0577 4.64909 12.5577 3.64909 11.6743 3.15742C10.741 2.64076 9.54935 2.77409 8.33268 3.53242L5.90768 5.04909C5.74102 5.14909 5.54935 5.20742 5.35768 5.20742H4.58268H4.16602C2.14935 5.20742 1.04102 6.31575 1.04102 8.33242V11.6658C1.04102 13.6824 2.14935 14.7908 4.16602 14.7908H4.29935L1.84935 17.2408C1.59935 17.4908 1.59935 17.8991 1.84935 18.1491C1.98268 18.2658 2.14102 18.3324 2.30768 18.3324C2.47435 18.3324 2.63268 18.2658 2.75768 18.1408L18.141 2.75742C18.3994 2.50742 18.3994 2.10742 18.141 1.85742Z\" />\r\n </g>\r\n </svg>\r\n );\r\n};\r\n\r\nexport default Mute;\r\n","import { IUnMuteProps } from \"../../helpers/interfaces/interfaces\";\r\n\r\nconst UnMute = ({ className, onClick }: IUnMuteProps) => {\r\n return (\r\n <svg width=\"13\" height=\"16\" viewBox=\"0 0 13 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} onClick={onClick}>\r\n <path d=\"M10.6827 1.14944C9.74935 0.632778 8.55768 0.766111 7.34102 1.52444L4.90768 3.04944C4.74102 3.14944 4.54935 3.20778 4.35768 3.20778H3.58268H3.16602C1.14935 3.20778 0.0410156 4.31611 0.0410156 6.33278V9.66611C0.0410156 11.6828 1.14935 12.7911 3.16602 12.7911H3.58268H4.35768C4.54935 12.7911 4.74102 12.8494 4.90768 12.9494L7.34102 14.4744C8.07435 14.9328 8.79102 15.1578 9.45768 15.1578C9.89102 15.1578 10.3077 15.0578 10.6827 14.8494C11.6077 14.3328 12.1243 13.2578 12.1243 11.8244V4.17444C12.1243 2.74111 11.6077 1.66611 10.6827 1.14944Z\" />\r\n </svg>\r\n );\r\n};\r\n\r\nexport default UnMute;\r\n"]}
@@ -0,0 +1,2 @@
1
+ export{a as default}from'./chunk-MW3CX523.mjs';import'./chunk-O6OWG7HM.mjs';import'./chunk-OEFD3YXU.mjs';import'./chunk-VIUNI5PQ.mjs';import'./chunk-A7MEJC4F.mjs';import'./chunk-SIUJSGLY.mjs';import'./chunk-PJVN7RKN.mjs';import'./chunk-YZYTKWCY.mjs';import'./chunk-TM66GJCG.mjs';import'./chunk-NXC6LNWJ.mjs';//# sourceMappingURL=videoArea-IKP3GXLH.mjs.map
2
+ //# sourceMappingURL=videoArea-IKP3GXLH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"videoArea-SDEAP3WB.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"videoArea-IKP3GXLH.mjs"}
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkC4TEAPRX_js=require('./chunk-C4TEAPRX.js');require('./chunk-TDHILUXF.js'),require('./chunk-TVDVQALL.js'),require('./chunk-EDQKSY4F.js'),require('./chunk-7GSH5XMZ.js'),require('./chunk-QHZJEU27.js'),require('./chunk-VIQ5L73J.js'),require('./chunk-HME64W2O.js'),require('./chunk-5FTEBU6O.js'),require('./chunk-WO4IQUGO.js');module.exports=chunkC4TEAPRX_js.a;//# sourceMappingURL=videoArea-W56PTQDS.js.map
2
+ //# sourceMappingURL=videoArea-W56PTQDS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"videoArea-WZH7URSO.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"videoArea-W56PTQDS.js"}
@@ -3478,6 +3478,11 @@ video {
3478
3478
  aspect-ratio: 16 / 9;
3479
3479
  }
3480
3480
 
3481
+ .pl-size-3{
3482
+ width: 0.75rem;
3483
+ height: 0.75rem;
3484
+ }
3485
+
3481
3486
  .pl-size-5{
3482
3487
  width: 1.25rem;
3483
3488
  height: 1.25rem;
@@ -3597,6 +3602,10 @@ video {
3597
3602
  max-height: 100vh;
3598
3603
  }
3599
3604
 
3605
+ .\!pl-w-\[200px\]{
3606
+ width: 200px !important;
3607
+ }
3608
+
3600
3609
  .\!pl-w-\[230px\]{
3601
3610
  width: 230px !important;
3602
3611
  }
@@ -3861,6 +3870,10 @@ video {
3861
3870
  gap: 14.58px;
3862
3871
  }
3863
3872
 
3873
+ .pl-gap-\[18px\]{
3874
+ gap: 18px;
3875
+ }
3876
+
3864
3877
  .pl-self-start{
3865
3878
  align-self: flex-start;
3866
3879
  }
@@ -4111,6 +4124,10 @@ video {
4111
4124
  background-color: rgb(124 142 255 / var(--tw-bg-opacity, 1));
4112
4125
  }
4113
4126
 
4127
+ .pl-bg-primary\/\[0\.08\]{
4128
+ background-color: rgb(183 28 60 / 0.08);
4129
+ }
4130
+
4114
4131
  .pl-bg-primary\/\[0\.12\]{
4115
4132
  background-color: rgb(183 28 60 / 0.12);
4116
4133
  }
@@ -4231,6 +4248,16 @@ video {
4231
4248
  padding: 3px;
4232
4249
  }
4233
4250
 
4251
+ .\!pl-px-0{
4252
+ padding-left: 0px !important;
4253
+ padding-right: 0px !important;
4254
+ }
4255
+
4256
+ .\!pl-py-2{
4257
+ padding-top: 0.5rem !important;
4258
+ padding-bottom: 0.5rem !important;
4259
+ }
4260
+
4234
4261
  .pl-px-1{
4235
4262
  padding-left: 0.25rem;
4236
4263
  padding-right: 0.25rem;
@@ -4276,10 +4303,18 @@ video {
4276
4303
  padding-bottom: 9.5px;
4277
4304
  }
4278
4305
 
4306
+ .\!pl-pb-0{
4307
+ padding-bottom: 0px !important;
4308
+ }
4309
+
4279
4310
  .pl-pb-2{
4280
4311
  padding-bottom: 0.5rem;
4281
4312
  }
4282
4313
 
4314
+ .pl-pb-4{
4315
+ padding-bottom: 1rem;
4316
+ }
4317
+
4283
4318
  .pl-pl-6{
4284
4319
  padding-left: 1.5rem;
4285
4320
  }
@@ -4300,6 +4335,10 @@ video {
4300
4335
  padding-right: 21px;
4301
4336
  }
4302
4337
 
4338
+ .pl-pr-\[26px\]{
4339
+ padding-right: 26px;
4340
+ }
4341
+
4303
4342
  .pl-ps-\[24\.2px\]{
4304
4343
  padding-inline-start: 24.2px;
4305
4344
  }
@@ -4546,10 +4585,6 @@ video {
4546
4585
  margin-bottom: 1.5rem;
4547
4586
  }
4548
4587
 
4549
- .tablet\:\!pl-max-w-\[285px\]{
4550
- max-width: 285px !important;
4551
- }
4552
-
4553
4588
  .tablet\:\!pl-max-w-\[305px\]{
4554
4589
  max-width: 305px !important;
4555
4590
  }
@@ -0,0 +1,2 @@
1
+ import {b}from'./chunk-KIC75NSX.mjs';import {a}from'./chunk-VIUNI5PQ.mjs';import {ha,fa}from'./chunk-YZYTKWCY.mjs';import {e}from'./chunk-NXC6LNWJ.mjs';import {shallowEqual}from'react-redux';import {useEffect}from'react';import f from'next/dynamic';import {jsx,Fragment}from'react/jsx-runtime';e();e();e();var A=()=>{let{params:a$1}=ha(({videoData:{params:e}})=>({params:e}),shallowEqual);ha(({controller:{isEnded:e}})=>({isEnded:e}),shallowEqual),useEffect(()=>{fa("getDetails")&&a();},[a$1.id,a$1.type]);},n=A;var y=()=>{n();},c=y;var N=f(()=>import('./videoArea-IKP3GXLH.mjs')),x=f(()=>import('./notActive-FNSATJST.mjs')),S=()=>(ha(({videoData:{params:a,details:e,isFetchDetails:u,isValidAddress:v}})=>({params:a,details:e,isFetchDetails:u,isValidAddress:v}),shallowEqual),c(),b(),jsx(Fragment,{children:fa("isFetchDetails")&&(fa("isValidAddress")?jsx("div",{className:`pl-max-h-[100dvh] pl-bg-dark-1 ${!fa("isTouchScreen")&&!fa("isFullScreen")&&"!pl-rounded-[12px]"}`,children:jsx(N,{})}):jsx("div",{className:"pl-w-full pl-aspect-video",children:jsx(x,{})}))})),L=S;export{L as default};//# sourceMappingURL=vodPlayer-ANBY5ULF.mjs.map
2
+ //# sourceMappingURL=vodPlayer-ANBY5ULF.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/vodPlayer/vodPlayer.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetData.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetDetails.tsx"],"names":["init_esm_shims","useGetDetails","params","useAppSelector","shallowEqual","isEnded","useEffect","conditions","getVodDetails","useGetDetails_default","useGetData","useGetData_default","VideoArea","dynamic","NotActive","VodPlayer","details","isFetchDetails","isValidAddress","handleApplyContinuousPlayback","jsx","Fragment","vodPlayer_default"],"mappings":"sSAAAA,CAAAA,EAAAA,CCAAA,CCAAA,EAAAA,CAAAA,CAAAA,EAAAA,CAOA,IAAMC,CAAgB,CAAA,IAAM,CACxB,GAAM,CAAE,MAAAC,CAAAA,GAAO,EAAIC,EACf,CAAA,CAAC,CAAE,SAAW,CAAA,CAAE,OAAAD,CAAO,CAAE,CAAO,IAAA,CAAE,OAAAA,CAAO,CAAA,CAAA,CACzCE,YACJ,CACAD,CAAAA,EAAAA,CAAe,CAAC,CAAE,UAAA,CAAY,CAAE,OAAA,CAAAE,CAAQ,CAAE,CAAA,IAAO,CAAE,OAAAA,CAAAA,CAAQ,GAAID,YAAY,CAAA,CAE3EE,SAAU,CAAA,IAAM,CACRC,EAAmC,CAAA,YAAA,CAAA,EAAGC,IAC9C,CAAA,CAAG,CAACN,GAAO,CAAA,EAAA,CAAIA,GAAO,CAAA,IAAI,CAAC,EAC/B,CAAA,CAEOO,EAAQR,CDhBf,CAAA,IAAMS,EAAa,IAAM,CACrBD,CAAc,GAElB,EAEOE,CAAQD,CAAAA,CAAAA,KDETE,CAAYC,CAAAA,CAAAA,CAAQ,IAAM,OAAO,0BAA6C,CAAC,CAC/EC,CAAAA,CAAAA,CAAYD,CAAQ,CAAA,IAAM,OAAO,0BAA6C,CAAC,EAE/EE,CAAY,CAAA,KACdZ,GAAe,CAAC,CAAE,SAAW,CAAA,CAAE,OAAAD,CAAQ,CAAA,OAAA,CAAAc,EAAS,cAAAC,CAAAA,CAAAA,CAAgB,eAAAC,CAAe,CAAE,CAAO,IAAA,CAAC,OAAAhB,CAAO,CAAA,OAAA,CAAAc,EAAS,cAAAC,CAAAA,CAAAA,CAAgB,eAAAC,CAAc,CAAA,CAAA,CAAGd,YAAa,CAAA,CAEvJO,GACAQ,CAAAA,CAAAA,GAGIC,GAAAC,CAAAA,QAAAA,CAAA,CACK,QAAAd,CAAAA,EAAAA,CAAAA,gBAAuC,CACpCA,GAAAA,EAAAA,CAAAA,gBAAuC,EACnCa,GAAC,CAAA,KAAA,CAAA,CACG,UAAW,CAAkC,+BAAA,EAAA,CAACb,kBAAsC,CAAK,EAAA,CAACA,EAAqC,CAAA,cAAA,CAAA,EAAK,oBAAoB,CAExJ,CAAA,CAAA,QAAA,CAAAa,IAACR,CAAA,CAAA,EAAU,EACf,CAEAQ,CAAAA,GAAAA,CAAC,OAAI,SAAW,CAAA,2BAAA,CACZ,SAAAA,GAACN,CAAAA,CAAAA,CAAA,EAAU,CACf,CAAA,CAAA,CAAA,CAGZ,GAIDQ,CAAQP,CAAAA","file":"vodPlayer-3E5EY62P.mjs","sourcesContent":["\"use client\";\r\n\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport useGetData from \"../../../helpers/hooks/useGetData/useGetData\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { handleApplyContinuousPlayback } from \"../../../helpers/redux/actions/user.actions\";\r\nimport dynamic from \"next/dynamic\";\r\n\r\nconst VideoArea = dynamic(() => import(\"../../custom-components/videoArea/videoArea\"));\r\nconst NotActive = dynamic(() => import(\"../../custom-components/notActive/notActive\"));\r\n\r\nconst VodPlayer = () => {\r\n useAppSelector(({ videoData: { params, details, isFetchDetails, isValidAddress } }) => ({params,details, isFetchDetails, isValidAddress}),shallowEqual );\r\n \r\n useGetData();\r\n handleApplyContinuousPlayback();\r\n\r\n return (\r\n <>\r\n {conditions(ConditionName.isFetchDetails) && (\r\n conditions(ConditionName.isValidAddress) ? (\r\n <div\r\n className={`pl-max-h-[100dvh] pl-bg-dark-1 ${!conditions(ConditionName.isTouchScreen) && !conditions(ConditionName.isFullScreen) && \"!pl-rounded-[12px]\"}`}\r\n >\r\n <VideoArea />\r\n </div>\r\n ) : (\r\n <div className={`pl-w-full pl-aspect-video`}>\r\n <NotActive />\r\n </div>\r\n )\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default VodPlayer;\r\n","import useGetDetails from \"./useGetDetails\";\r\nimport useGetMarkers from \"./useGetMarkers\";\r\n\r\nconst useGetData = () => {\r\n useGetDetails();\r\n // useGetMarkers();\r\n};\r\n\r\nexport default useGetData;\r\n","import { useEffect } from \"react\";\r\nimport { conditions } from \"../../conditions/conditions\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../redux/hooks\";\r\nimport { ConditionName } from \"../../interfaces/enums\";\r\nimport { getVodDetails } from \"../../redux/actions/videoData.actions\";\r\n\r\nconst useGetDetails = () => {\r\n const { params } = useAppSelector(\r\n ({ videoData: { params } }) => ({ params }),\r\n shallowEqual\r\n );\r\n useAppSelector(({ controller: { isEnded } }) => ({ isEnded }), shallowEqual);\r\n\r\n useEffect(() => {\r\n if (conditions(ConditionName.getDetails)) getVodDetails();\r\n }, [params.id, params.type]);\r\n};\r\n\r\nexport default useGetDetails;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/vodPlayer/vodPlayer.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetData.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetDetails.tsx"],"names":["init_esm_shims","useGetDetails","params","useAppSelector","shallowEqual","isEnded","useEffect","conditions","getVodDetails","useGetDetails_default","useGetData","useGetData_default","VideoArea","dynamic","NotActive","VodPlayer","details","isFetchDetails","isValidAddress","handleApplyContinuousPlayback","jsx","Fragment","vodPlayer_default"],"mappings":"sSAAAA,CAAAA,EAAAA,CCAAA,CCAAA,EAAAA,CAAAA,CAAAA,EAAAA,CAOA,IAAMC,CAAgB,CAAA,IAAM,CACxB,GAAM,CAAE,MAAAC,CAAAA,GAAO,EAAIC,EACf,CAAA,CAAC,CAAE,SAAW,CAAA,CAAE,OAAAD,CAAO,CAAE,CAAO,IAAA,CAAE,OAAAA,CAAO,CAAA,CAAA,CACzCE,YACJ,CACAD,CAAAA,EAAAA,CAAe,CAAC,CAAE,UAAA,CAAY,CAAE,OAAA,CAAAE,CAAQ,CAAE,CAAA,IAAO,CAAE,OAAAA,CAAAA,CAAQ,GAAID,YAAY,CAAA,CAE3EE,SAAU,CAAA,IAAM,CACRC,EAAmC,CAAA,YAAA,CAAA,EAAGC,IAC9C,CAAA,CAAG,CAACN,GAAO,CAAA,EAAA,CAAIA,GAAO,CAAA,IAAI,CAAC,EAC/B,CAAA,CAEOO,EAAQR,CDhBf,CAAA,IAAMS,EAAa,IAAM,CACrBD,CAAc,GAElB,EAEOE,CAAQD,CAAAA,CAAAA,KDETE,CAAYC,CAAAA,CAAAA,CAAQ,IAAM,OAAO,0BAA6C,CAAC,CAC/EC,CAAAA,CAAAA,CAAYD,CAAQ,CAAA,IAAM,OAAO,0BAA6C,CAAC,EAE/EE,CAAY,CAAA,KACdZ,GAAe,CAAC,CAAE,SAAW,CAAA,CAAE,OAAAD,CAAQ,CAAA,OAAA,CAAAc,EAAS,cAAAC,CAAAA,CAAAA,CAAgB,eAAAC,CAAe,CAAE,CAAO,IAAA,CAAC,OAAAhB,CAAO,CAAA,OAAA,CAAAc,EAAS,cAAAC,CAAAA,CAAAA,CAAgB,eAAAC,CAAc,CAAA,CAAA,CAAGd,YAAa,CAAA,CAEvJO,GACAQ,CAAAA,CAAAA,GAGIC,GAAAC,CAAAA,QAAAA,CAAA,CACK,QAAAd,CAAAA,EAAAA,CAAAA,gBAAuC,CACpCA,GAAAA,EAAAA,CAAAA,gBAAuC,EACnCa,GAAC,CAAA,KAAA,CAAA,CACG,UAAW,CAAkC,+BAAA,EAAA,CAACb,kBAAsC,CAAK,EAAA,CAACA,EAAqC,CAAA,cAAA,CAAA,EAAK,oBAAoB,CAExJ,CAAA,CAAA,QAAA,CAAAa,IAACR,CAAA,CAAA,EAAU,EACf,CAEAQ,CAAAA,GAAAA,CAAC,OAAI,SAAW,CAAA,2BAAA,CACZ,SAAAA,GAACN,CAAAA,CAAAA,CAAA,EAAU,CACf,CAAA,CAAA,CAAA,CAGZ,GAIDQ,CAAQP,CAAAA","file":"vodPlayer-ANBY5ULF.mjs","sourcesContent":["\"use client\";\r\n\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport useGetData from \"../../../helpers/hooks/useGetData/useGetData\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { handleApplyContinuousPlayback } from \"../../../helpers/redux/actions/user.actions\";\r\nimport dynamic from \"next/dynamic\";\r\n\r\nconst VideoArea = dynamic(() => import(\"../../custom-components/videoArea/videoArea\"));\r\nconst NotActive = dynamic(() => import(\"../../custom-components/notActive/notActive\"));\r\n\r\nconst VodPlayer = () => {\r\n useAppSelector(({ videoData: { params, details, isFetchDetails, isValidAddress } }) => ({params,details, isFetchDetails, isValidAddress}),shallowEqual );\r\n \r\n useGetData();\r\n handleApplyContinuousPlayback();\r\n\r\n return (\r\n <>\r\n {conditions(ConditionName.isFetchDetails) && (\r\n conditions(ConditionName.isValidAddress) ? (\r\n <div\r\n className={`pl-max-h-[100dvh] pl-bg-dark-1 ${!conditions(ConditionName.isTouchScreen) && !conditions(ConditionName.isFullScreen) && \"!pl-rounded-[12px]\"}`}\r\n >\r\n <VideoArea />\r\n </div>\r\n ) : (\r\n <div className={`pl-w-full pl-aspect-video`}>\r\n <NotActive />\r\n </div>\r\n )\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default VodPlayer;\r\n","import useGetDetails from \"./useGetDetails\";\r\nimport useGetMarkers from \"./useGetMarkers\";\r\n\r\nconst useGetData = () => {\r\n useGetDetails();\r\n // useGetMarkers();\r\n};\r\n\r\nexport default useGetData;\r\n","import { useEffect } from \"react\";\r\nimport { conditions } from \"../../conditions/conditions\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../redux/hooks\";\r\nimport { ConditionName } from \"../../interfaces/enums\";\r\nimport { getVodDetails } from \"../../redux/actions/videoData.actions\";\r\n\r\nconst useGetDetails = () => {\r\n const { params } = useAppSelector(\r\n ({ videoData: { params } }) => ({ params }),\r\n shallowEqual\r\n );\r\n useAppSelector(({ controller: { isEnded } }) => ({ isEnded }), shallowEqual);\r\n\r\n useEffect(() => {\r\n if (conditions(ConditionName.getDetails)) getVodDetails();\r\n }, [params.id, params.type]);\r\n};\r\n\r\nexport default useGetDetails;\r\n"]}
@@ -0,0 +1,2 @@
1
+ 'use strict';var chunkD7CTAABP_js=require('./chunk-D7CTAABP.js'),chunkEDQKSY4F_js=require('./chunk-EDQKSY4F.js'),chunkHME64W2O_js=require('./chunk-HME64W2O.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js'),reactRedux=require('react-redux'),react=require('react'),c=require('next/dynamic'),jsxRuntime=require('react/jsx-runtime');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var c__default=/*#__PURE__*/_interopDefault(c);chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();chunkWO4IQUGO_js.e();var h=()=>{let{params:a}=chunkHME64W2O_js.ha(({videoData:{params:e}})=>({params:e}),reactRedux.shallowEqual);chunkHME64W2O_js.ha(({controller:{isEnded:e}})=>({isEnded:e}),reactRedux.shallowEqual),react.useEffect(()=>{chunkHME64W2O_js.fa("getDetails")&&chunkEDQKSY4F_js.a();},[a.id,a.type]);},d=h;var A=()=>{d();},n=A;var G=c__default.default(()=>import('./videoArea-W56PTQDS.js')),N=c__default.default(()=>import('./notActive-YTLKQJYE.js')),x=()=>(chunkHME64W2O_js.ha(({videoData:{params:a,details:e,isFetchDetails:f,isValidAddress:u}})=>({params:a,details:e,isFetchDetails:f,isValidAddress:u}),reactRedux.shallowEqual),n(),chunkD7CTAABP_js.b(),jsxRuntime.jsx(jsxRuntime.Fragment,{children:chunkHME64W2O_js.fa("isFetchDetails")&&(chunkHME64W2O_js.fa("isValidAddress")?jsxRuntime.jsx("div",{className:`pl-max-h-[100dvh] pl-bg-dark-1 ${!chunkHME64W2O_js.fa("isTouchScreen")&&!chunkHME64W2O_js.fa("isFullScreen")&&"!pl-rounded-[12px]"}`,children:jsxRuntime.jsx(G,{})}):jsxRuntime.jsx("div",{className:"pl-w-full pl-aspect-video",children:jsxRuntime.jsx(N,{})}))})),K=x;module.exports=K;//# sourceMappingURL=vodPlayer-QPIJN45L.js.map
2
+ //# sourceMappingURL=vodPlayer-QPIJN45L.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/vodPlayer/vodPlayer.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetData.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetDetails.tsx"],"names":["init_cjs_shims","useGetDetails","params","useAppSelector","shallowEqual","isEnded","useEffect","conditions","getVodDetails","useGetDetails_default","useGetData","useGetData_default","VideoArea","dynamic","NotActive","VodPlayer","details","isFetchDetails","isValidAddress","handleApplyContinuousPlayback","jsx","Fragment","vodPlayer_default"],"mappings":"4bAAAA,kBAAAA,EAAAA,CCAAA,kBCAAA,EAAAA,CAAAA,kBAAAA,EAAAA,CAOA,IAAMC,CAAgB,CAAA,IAAM,CACxB,GAAM,CAAE,MAAAC,CAAAA,CAAO,EAAIC,mBACf,CAAA,CAAC,CAAE,SAAW,CAA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,EAAU,EACf,CAEAQ,CAAAA,cAAAA,CAAC,OAAI,SAAW,CAAA,2BAAA,CACZ,SAAAA,cAACN,CAAAA,CAAAA,CAAA,EAAU,CACf,CAAA,CAAA,CAAA,CAGZ,GAIDQ,CAAQP,CAAAA","file":"vodPlayer-X4YM6IG5.js","sourcesContent":["\"use client\";\r\n\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport useGetData from \"../../../helpers/hooks/useGetData/useGetData\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { handleApplyContinuousPlayback } from \"../../../helpers/redux/actions/user.actions\";\r\nimport dynamic from \"next/dynamic\";\r\n\r\nconst VideoArea = dynamic(() => import(\"../../custom-components/videoArea/videoArea\"));\r\nconst NotActive = dynamic(() => import(\"../../custom-components/notActive/notActive\"));\r\n\r\nconst VodPlayer = () => {\r\n useAppSelector(({ videoData: { params, details, isFetchDetails, isValidAddress } }) => ({params,details, isFetchDetails, isValidAddress}),shallowEqual );\r\n \r\n useGetData();\r\n handleApplyContinuousPlayback();\r\n\r\n return (\r\n <>\r\n {conditions(ConditionName.isFetchDetails) && (\r\n conditions(ConditionName.isValidAddress) ? (\r\n <div\r\n className={`pl-max-h-[100dvh] pl-bg-dark-1 ${!conditions(ConditionName.isTouchScreen) && !conditions(ConditionName.isFullScreen) && \"!pl-rounded-[12px]\"}`}\r\n >\r\n <VideoArea />\r\n </div>\r\n ) : (\r\n <div className={`pl-w-full pl-aspect-video`}>\r\n <NotActive />\r\n </div>\r\n )\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default VodPlayer;\r\n","import useGetDetails from \"./useGetDetails\";\r\nimport useGetMarkers from \"./useGetMarkers\";\r\n\r\nconst useGetData = () => {\r\n useGetDetails();\r\n // useGetMarkers();\r\n};\r\n\r\nexport default useGetData;\r\n","import { useEffect } from \"react\";\r\nimport { conditions } from \"../../conditions/conditions\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../redux/hooks\";\r\nimport { ConditionName } from \"../../interfaces/enums\";\r\nimport { getVodDetails } from \"../../redux/actions/videoData.actions\";\r\n\r\nconst useGetDetails = () => {\r\n const { params } = useAppSelector(\r\n ({ videoData: { params } }) => ({ params }),\r\n shallowEqual\r\n );\r\n useAppSelector(({ controller: { isEnded } }) => ({ isEnded }), shallowEqual);\r\n\r\n useEffect(() => {\r\n if (conditions(ConditionName.getDetails)) getVodDetails();\r\n }, [params.id, params.type]);\r\n};\r\n\r\nexport default useGetDetails;\r\n"]}
1
+ {"version":3,"sources":["../src/videoPlayerLibrary/components/videoPlayer/vodPlayer/vodPlayer.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetData.tsx","../src/videoPlayerLibrary/helpers/hooks/useGetData/useGetDetails.tsx"],"names":["init_cjs_shims","useGetDetails","params","useAppSelector","shallowEqual","isEnded","useEffect","conditions","getVodDetails","useGetDetails_default","useGetData","useGetData_default","VideoArea","dynamic","NotActive","VodPlayer","details","isFetchDetails","isValidAddress","handleApplyContinuousPlayback","jsx","Fragment","vodPlayer_default"],"mappings":"4bAAAA,kBAAAA,EAAAA,CCAAA,kBCAAA,EAAAA,CAAAA,kBAAAA,EAAAA,CAOA,IAAMC,CAAgB,CAAA,IAAM,CACxB,GAAM,CAAE,MAAAC,CAAAA,CAAO,EAAIC,mBACf,CAAA,CAAC,CAAE,SAAW,CAAA,CAAE,OAAAD,CAAO,CAAE,CAAO,IAAA,CAAE,OAAAA,CAAO,CAAA,CAAA,CACzCE,uBACJ,CACAD,CAAAA,mBAAAA,CAAe,CAAC,CAAE,UAAA,CAAY,CAAE,OAAA,CAAAE,CAAQ,CAAE,CAAA,IAAO,CAAE,OAAAA,CAAAA,CAAQ,GAAID,uBAAY,CAAA,CAE3EE,eAAU,CAAA,IAAM,CACRC,mBAAmC,CAAA,YAAA,CAAA,EAAGC,qBAC9C,CAAA,CAAG,CAACN,CAAO,CAAA,EAAA,CAAIA,CAAO,CAAA,IAAI,CAAC,EAC/B,CAAA,CAEOO,EAAQR,CDhBf,CAAA,IAAMS,EAAa,IAAM,CACrBD,CAAc,GAElB,EAEOE,CAAQD,CAAAA,CAAAA,KDETE,CAAYC,CAAAA,kBAAAA,CAAQ,IAAM,OAAO,yBAA6C,CAAC,CAC/EC,CAAAA,CAAAA,CAAYD,kBAAQ,CAAA,IAAM,OAAO,yBAA6C,CAAC,EAE/EE,CAAY,CAAA,KACdZ,oBAAe,CAAC,CAAE,SAAW,CAAA,CAAE,OAAAD,CAAQ,CAAA,OAAA,CAAAc,EAAS,cAAAC,CAAAA,CAAAA,CAAgB,eAAAC,CAAe,CAAE,CAAO,IAAA,CAAC,OAAAhB,CAAO,CAAA,OAAA,CAAAc,EAAS,cAAAC,CAAAA,CAAAA,CAAgB,eAAAC,CAAc,CAAA,CAAA,CAAGd,uBAAa,CAAA,CAEvJO,GACAQ,CAAAA,kBAAAA,GAGIC,cAAAC,CAAAA,mBAAAA,CAAA,CACK,QAAAd,CAAAA,mBAAAA,CAAAA,gBAAuC,CACpCA,GAAAA,mBAAAA,CAAAA,gBAAuC,EACnCa,cAAC,CAAA,KAAA,CAAA,CACG,UAAW,CAAkC,+BAAA,EAAA,CAACb,mCAAsC,CAAK,EAAA,CAACA,mBAAqC,CAAA,cAAA,CAAA,EAAK,oBAAoB,CAExJ,CAAA,CAAA,QAAA,CAAAa,eAACR,CAAA,CAAA,EAAU,EACf,CAEAQ,CAAAA,cAAAA,CAAC,OAAI,SAAW,CAAA,2BAAA,CACZ,SAAAA,cAACN,CAAAA,CAAAA,CAAA,EAAU,CACf,CAAA,CAAA,CAAA,CAGZ,GAIDQ,CAAQP,CAAAA","file":"vodPlayer-QPIJN45L.js","sourcesContent":["\"use client\";\r\n\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport useGetData from \"../../../helpers/hooks/useGetData/useGetData\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { handleApplyContinuousPlayback } from \"../../../helpers/redux/actions/user.actions\";\r\nimport dynamic from \"next/dynamic\";\r\n\r\nconst VideoArea = dynamic(() => import(\"../../custom-components/videoArea/videoArea\"));\r\nconst NotActive = dynamic(() => import(\"../../custom-components/notActive/notActive\"));\r\n\r\nconst VodPlayer = () => {\r\n useAppSelector(({ videoData: { params, details, isFetchDetails, isValidAddress } }) => ({params,details, isFetchDetails, isValidAddress}),shallowEqual );\r\n \r\n useGetData();\r\n handleApplyContinuousPlayback();\r\n\r\n return (\r\n <>\r\n {conditions(ConditionName.isFetchDetails) && (\r\n conditions(ConditionName.isValidAddress) ? (\r\n <div\r\n className={`pl-max-h-[100dvh] pl-bg-dark-1 ${!conditions(ConditionName.isTouchScreen) && !conditions(ConditionName.isFullScreen) && \"!pl-rounded-[12px]\"}`}\r\n >\r\n <VideoArea />\r\n </div>\r\n ) : (\r\n <div className={`pl-w-full pl-aspect-video`}>\r\n <NotActive />\r\n </div>\r\n )\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default VodPlayer;\r\n","import useGetDetails from \"./useGetDetails\";\r\nimport useGetMarkers from \"./useGetMarkers\";\r\n\r\nconst useGetData = () => {\r\n useGetDetails();\r\n // useGetMarkers();\r\n};\r\n\r\nexport default useGetData;\r\n","import { useEffect } from \"react\";\r\nimport { conditions } from \"../../conditions/conditions\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport { useAppSelector } from \"../../redux/hooks\";\r\nimport { ConditionName } from \"../../interfaces/enums\";\r\nimport { getVodDetails } from \"../../redux/actions/videoData.actions\";\r\n\r\nconst useGetDetails = () => {\r\n const { params } = useAppSelector(\r\n ({ videoData: { params } }) => ({ params }),\r\n shallowEqual\r\n );\r\n useAppSelector(({ controller: { isEnded } }) => ({ isEnded }), shallowEqual);\r\n\r\n useEffect(() => {\r\n if (conditions(ConditionName.getDetails)) getVodDetails();\r\n }, [params.id, params.type]);\r\n};\r\n\r\nexport default useGetDetails;\r\n"]}
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkTTR6HY3N_js=require('./chunk-TTR6HY3N.js');require('./chunk-IT4ECGGR.js'),require('./chunk-M2G4MENQ.js'),require('./chunk-CXFHM7DX.js'),require('./chunk-WO4IQUGO.js');module.exports=chunkTTR6HY3N_js.a;//# sourceMappingURL=backwardForward-T5I2BG67.js.map
2
- //# sourceMappingURL=backwardForward-T5I2BG67.js.map
@@ -1,2 +0,0 @@
1
- export{a as default}from'./chunk-4SCALKDT.mjs';import'./chunk-IROHCKSH.mjs';import'./chunk-IDNCPTFE.mjs';import'./chunk-XNVWDQSS.mjs';import'./chunk-NXC6LNWJ.mjs';//# sourceMappingURL=backwardForward-ZA22U5BK.mjs.map
2
- //# sourceMappingURL=backwardForward-ZA22U5BK.mjs.map
package/chunk-AZTVBGMR.js DELETED
@@ -1,2 +0,0 @@
1
- 'use strict';var chunkM2G4MENQ_js=require('./chunk-M2G4MENQ.js'),chunkWO4IQUGO_js=require('./chunk-WO4IQUGO.js');chunkWO4IQUGO_js.e();var w=()=>{let{params:r}=chunkM2G4MENQ_js.M.getState().videoData,t=chunkM2G4MENQ_js.fa().currentTime;if(t!==0){let d=chunkM2G4MENQ_js.fa().duration,i={video_id:+r.id,video_type:2,time:t===d?0:Math.floor(chunkM2G4MENQ_js.fa().currentTime)},o=localStorage.getItem("viewedVideos");if(o){let e=JSON.parse(o);e=e.filter(n=>n.video_id!==i.video_id||n.video_type!==i.video_type),e.length<10||e.shift(),e.push(i),localStorage.setItem("viewedVideos",JSON.stringify(e));}else localStorage.setItem("viewedVideos",JSON.stringify([i]));}},f=()=>{let r=chunkM2G4MENQ_js.M.dispatch,{params:t}=chunkM2G4MENQ_js.M.getState().videoData,d=localStorage.getItem("viewedVideos");if(d){let o=JSON.parse(d).find(e=>e.video_id===Number(t.id)&&e.video_type===2);o&&r(chunkM2G4MENQ_js.H({time:o.time}));}};exports.a=w;exports.b=f;//# sourceMappingURL=chunk-AZTVBGMR.js.map
2
- //# sourceMappingURL=chunk-AZTVBGMR.js.map
@@ -1,2 +0,0 @@
1
- import {g as g$1,i as i$1}from'./chunk-IROHCKSH.mjs';import {fa,ga,Ca,N,S,M,Y as Y$1,d,ca,i,g,a,c,w,la,xa,z as z$1,ya,j,za,n,b,y,p,f,e as e$1,m,G,F,h}from'./chunk-IDNCPTFE.mjs';import {e}from'./chunk-NXC6LNWJ.mjs';e();var he=e=>{e.preventDefault();let t=(fa()||ga()).error;if(t)switch(t.code){case t.MEDIA_ERR_ABORTED:Ca({type:"videoTagError",message:"You aborted the video playback."});break;case t.MEDIA_ERR_NETWORK:Ca({type:"videoTagError",message:"A network error caused the video download to fail part-way."});break;case t.MEDIA_ERR_DECODE:Ca({type:"videoTagError",message:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support."});break;case t.MEDIA_ERR_SRC_NOT_SUPPORTED:Ca({type:"videoTagError",message:"The video could not be loaded, either because the server or network failed or because the format is not supported."});break;default:Ca({type:"videoTagError",message:"An unknown error occurred."});break}else Ca({type:"videoTagError",message:"An error occurred, but the error object is not available."});},$=()=>{let e=M.dispatch,{params:t}=M.getState().videoData,a=n=>{n.requestFullScreen?n.requestFullScreen():n.mozRequestFullScreen?n.mozRequestFullScreen():n.webkitRequestFullScreen&&n.webkitRequestFullScreen();};e(F()),a(document.documentElement),e(h(t.fullscreen==="true"));},fe=()=>{let e=".ts",t=XMLHttpRequest.prototype.open;XMLHttpRequest.prototype.open=function(){arguments[1].endsWith(e)&&(arguments[1]=arguments[1]+"?uuid="+N()),t.apply(this,arguments);};},Y=(e,t)=>{let a=M.dispatch;t.current=setInterval(()=>{let o=e.target.buffered.end(0)/fa().duration*100;a(i(o));},500);},ge=()=>{let e=S("mainPlayer");return {xhrSetup:(t,a)=>{a.split("m3u8")[1]||(a=`${a}${e}`),t.open("GET",a,true);},startLevel:-1,debug:false,enableWorker:true,abrBandWidthUpFactor:.7,abrBandWidthFactor:.95,backBufferLength:1/0,maxBufferLength:30,maxMaxBufferLength:60,manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4},errorRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4},errorRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4},errorRetry:{maxNumRetry:10,retryDelayMs:5e3,maxRetryDelayMs:1e4}}}}},xe=()=>{let e=S("miniPlayer");return {xhrSetup:(t,a)=>{a=`${a}${e}`,t.open("GET",a,true);},startLevel:1,debug:false,maxMaxBufferLength:60,playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1e3,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1e3,retryDelayMs:1e3,maxRetryDelayMs:1e3}}}}},J=e=>{let t=M.dispatch,a=[],n=[];e.levels.map(o=>{a.push(o.attrs.RESOLUTION.split("x")[1].trim()),n.push(o.attrs.RESOLUTION);}),e.autoLevelCapping=Y$1(n,window.innerWidth,window.innerHeight),t(d(a)),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","msfullscreenchange"].forEach(o=>document.addEventListener(o,()=>{ca("isAutoQuality")&&(e.autoLevelCapping=Y$1(n,window.innerWidth,window.innerHeight),e.nextLevel=-1);},false));},ve=(e,t)=>{let{details:a}=M.getState().videoData,n=a.stream_link;t.loadSource(n),t.on(e.Events.MANIFEST_PARSED,o=>J(t));},z=(e,t,a)=>{if(t.frag.type!=="audio"){let n=M.dispatch,{settings:o}=M.getState().user,{qualityLevels:l,manualQuality:y,autoQuality:x}=M.getState().controller;ca("isAutoQuality")?ca("isAutoQuality")&&x===void 0?(e.nextLevel=-1,a(l[t.frag.level]),n(e$1(t.frag.level))):ca("isAutoQuality")&&(a(l[t.frag.level]),x!==t.frag.level&&n(e$1(t.frag.level))):(t.frag.level!==y&&(e.nextLevel=l[o.quality]?o.quality:-1),l[o.quality]?(n(m(o.quality)),n(e$1(void 0))):(a(l[t.frag.level]),n(e$1(t.frag.level)),n(G({...o,quality:-1}))));}},Te=e=>{let t=M.dispatch,n=e.mainForwardBufferInfo?.end/fa().duration*100;t(i(n));},De=(e,t,a)=>{let{params:n}=M.getState().videoData;n.type&&z(e,t,a);},Se=(e,t,a)=>{let{type:n}=M.getState().videoData.params;n&&z(e,t,a);},Pe=e=>{if(e.event!=="hlsAudioTrackLoading")return {type:"HLS_"+e.type,message:e.error.message}},be=(e,t)=>{let a=M.dispatch;e.preventDefault(),t.current=Date.now(),a(g(true));},Le=(e,t)=>{let a=M.dispatch;e.preventDefault(),t.current=0,a(g(true));},Me=(e,t)=>{let a$1=M.dispatch,{videoSettings:n}=M.getState().user,{params:o}=M.getState().videoData;e.preventDefault(),t.current=Date.now(),a$1(a(true)),ca("hasOnPlayParams")&&o.onPlay(),ca("isFirstPlay")&&(ca("hasCurrentTimeParams")||(fa().currentTime=n.time,a$1(c(n.time))),ca("hasFullScreenParams")&&$(),ca("isFullScreen")&&g$1(),a$1(w([Math.floor(fa().currentTime)]))),la(xa(true)),a$1(z$1(""));},Ee=(e,t,a,n,o,l,y,x)=>{let G=M.dispatch,{autoQuality:w,canPlayVideo:X,firstPlay:K,qualityLevels:O}=M.getState().controller,{settings:V}=M.getState().user,A=V.quality===-1&&w?O[w]:O[V.quality],v=0;y.current&&(v=Date.now()-y.current),K&&fa().played&&la(ya(t.current,Date.now()-a.current,n.current-a.current,Date.now()-o.current,o)),G(j(false)),X&&v>0&&A!==void 0&&(l.current=v,y.current=0,la(za(v,A,o,e,x.current)),e.current=e.current+1,o.current=Date.now());},Re=e=>{let t=M.dispatch,{params:a$1}=M.getState().videoData;e.preventDefault(),la(xa(false)),t(a(false)),ca("hasOnPauseParams")&&a$1.onPause();},Fe=e=>{let t=M.dispatch,{onChangeCurrentTime:a}=M.getState().videoData.params,{selectedSubtitle:n}=M.getState().videoData;e.preventDefault(),t(c(e.target.currentTime)),ca("hasOnChangeCurrentTime")&&a(e.target.currentTime),ca("hasActiveCue")&&t(z$1(n.activeCues[0].text));},ke=e=>{let t=M.dispatch,{settings:a}=M.getState().user;if(e.preventDefault(),t(g(false)),t(n(true)),fa().volume=a.volume/100,t(b(e.target.duration)),ca("isIOS")){let n=Object.values(e.target.textTracks);n&&n.length&&t(y(Object.values(n[0]).length?n:[]));}else t(y(Object.values(e.target.textTracks)));},Ce=e=>{let t=M.dispatch,{params:a}=M.getState().videoData;e.preventDefault(),t(p(true)),t(f(true)),i$1(fa().duration),ca("hasOnFinishedParams")&&a.onFinished();},we=(e,t)=>{let a=M.dispatch;e.preventDefault(),t.current=Date.now(),a(j(false));},Oe=()=>{let e=M.dispatch;e(g(false));},Ve=e=>{let{onChangeCurrentTime:t}=M.getState().videoData.params,a=M.dispatch;e.preventDefault(),ca("hasOnChangeCurrentTime")&&t(e.target.currentTime),a(c(e.target.currentTime));},Ae=()=>{let e=M.dispatch,{params:t}=M.getState().videoData;e(p(true)),e(f(true)),ca("hasOnFinishedParams")&&t.onFinished();},Ie=e=>{let t=M.dispatch;e.preventDefault(),t(a(false));},qe=(e,t)=>{let a$1=M.dispatch;e.preventDefault(),a$1(a(true)),t.current=Date.now(),a$1(z$1("")),ca("isFirstPlay")&&ca("hasFullScreenParams")&&($(),ca("isFullScreen")&&g$1());},Be=(e,t,a)=>{let n=M.dispatch,{firstPlay:o}=M.getState().controller;n(g(false)),o&&fa().played&&la(ya(Math.round(e.current),Date.now()-t.current,0,Date.now()-a.current,a)),n(j(false));},_e=e=>{let{onChangeCurrentTime:t}=M.getState().videoData.params,a=M.dispatch,{selectedSubtitle:n}=M.getState().videoData;e.preventDefault(),a(c(e.target.currentTime)),a(b(e.target.duration)),ca("hasOnChangeCurrentTime")&&t(e.target.currentTime),ca("hasActiveCue")&&a(z$1(n.activeCues[0].text));},Ne=e=>{let t=M.dispatch;if(e.preventDefault(),t(g(false)),t(n(true)),ca("isIOS")){let a=Object.values(e.target.textTracks);a&&a.length&&t(y(Object.values(a[0]).length?a:[]));}else t(y(Object.values(e.target.textTracks)));},Qe=(e,t)=>{e.preventDefault(),Y(e,t);};var Ue=async e=>{let{stream_link:t}=M.getState().miniPlayer.details;e.loadSource(t);},We=()=>{i$1(fa().currentTime);};export{Ne as A,Qe as B,Ue as C,We as D,he as a,fe as b,ge as c,xe as d,J as e,ve as f,Te as g,De as h,Se as i,Pe as j,be as k,Le as l,Me as m,Ee as n,Re as o,Fe as p,ke as q,Ce as r,we as s,Oe as t,Ve as u,Ae as v,Ie as w,qe as x,Be as y,_e as z};//# sourceMappingURL=chunk-BC2TZBZ7.mjs.map
2
- //# sourceMappingURL=chunk-BC2TZBZ7.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/videoPlayerLibrary/helpers/redux/actions/playerCore.actions.ts"],"names":["init_esm_shims","handleVideoError","event","error","mainPlayerVideoTag","miniPlayerVideoTag","errorLogProvider","handleAutoFullScreen","dispatch","store_default","params","launchFullScreen","element","setClearPopoversSlice","setIsFullScreen","appendQueryParamsToChunksIOS","fragmentExtension","originalOpen","getUUID","handleBufferedTime","intervalRef","bufferedTimeWidth","setBufferedTimeWidth","handleHlsConfig","streamLinkParams","splitQueryParamsFromStreamLink","xhr","url","handleMiniPlayerHlsConfig","handleManifestParsed","hls","qualityLevels","resolutions","level","highestResolutionSupported","setQualityLevels","eventType","conditions","handleMediaAttached","Hls","details","streamLink","_event","handleLevels","data","setQualityLevel","settings","manualQuality","autoQuality","setAutoQuality","setManualQuality","setUserSettings","handleFragBuffered","handleFragChanged","handleFragParsed","type","handleHlsErrors","handleVideoWaiting","waitingTimerRef","setIsLoading","handleVideoSeeking","handleVideoPlay","timerRef","videoSettings","setPlay","setCurrentTime","handleLockOrientation","setVideoTimelines","sendFluentLog","pausePlayLog","setSubtitleText","handleVideoPlaying","loadingCounterRef","loadingDurationRef","initialWaitingDurationRef","bannerLoadingDurationRef","waitingDurationRef","videoEntranceTimeRef","canPlayVideo","firstPlay","qualityLevel","waitingDuration","initLog","setFirstPlay","loadingLog","handleVideoPause","handleVideoTimeUpdate","onChangeCurrentTime","selectedSubtitle","handleVideoCanPlay","setCanPlayVideo","setDuration","subtitle","setSubtitles","handleVideoEnded","setIsEnded","setActiveElements","handleVideoTimeline","handleIosVideoPlay","handleIosVideoPlaying","handleIosVideoTimeUpdate","handleIosVideoEnded","handleStaticVideoPause","handleStaticVideoPlay","handleStaticVideoPlaying","handleStaticVideoTimeUpdate","handleStaticVideoCanPlay","handleStaticVideoLoadedData","handleMiniPlayerMediaAttached","stream_link","handleVideoVisibilityChange"],"mappings":"sNAAAA,CAuCO,EAAA,CAAA,IAAMC,GAAoBC,CAAe,EAAA,CAC9CA,EAAM,cAAe,EAAA,CAErB,IAAIC,CAASC,CAAAA,CAAAA,EAAAA,IAAwBC,EAAmB,EAAA,EAAG,MAC3D,GAAIF,CAAAA,CACA,OAAQA,CAAM,CAAA,IAAA,EACV,KAAKA,CAAAA,CAAM,kBACPG,EAAiB,CAAA,CAAE,KAAM,eAAiB,CAAA,OAAA,CAAS,iCAAkC,CAAC,CAAA,CACtF,MACJ,KAAKH,CAAAA,CAAM,kBACPG,EAAiB,CAAA,CAAE,KAAM,eAAiB,CAAA,OAAA,CAAS,6DAA8D,CAAC,CAAA,CAClH,MACJ,KAAKH,CAAM,CAAA,gBAAA,CACPG,GAAiB,CACb,IAAA,CAAM,gBACN,OACI,CAAA,6HACR,CAAC,CACD,CAAA,MACJ,KAAKH,CAAM,C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,CAAYkB,CAAAA,CAAAA,GAAqB,CAC3ElB,CAAM,CAAA,cAAA,GACNiB,CAAmBjB,CAAAA,CAAAA,CAAOkB,CAAW,EACvC,EAQawF,IAAAA,EAAAA,CAAgC,MAAO9E,CAAAA,EAAa,CAC/D,GAAM,CAAE,YAAA+E,CAAY,CAAA,CAAIpG,EAAM,QAAS,EAAA,CAAE,WAAW,OACpDqB,CAAAA,CAAAA,CAAI,WAAW+E,CAAW,EAC5B,EAEaC,EAA8B,CAAA,IAAM,CAC/Cb,GAAoB7F,CAAAA,EAAAA,EAAqB,CAAA,WAAW,EACtD","file":"chunk-BC2TZBZ7.mjs","sourcesContent":["import { conditions } from \"../../conditions/conditions\";\r\nimport { mainPlayerVideoTag, miniPlayerVideoTag } from \"../../constants\";\r\nimport { errorLogProvider } from \"../../errorBoundary/errorBoundaryFunctions\";\r\nimport {\r\n getUUID,\r\n highestResolutionSupported,\r\n splitQueryParamsFromStreamLink,\r\n} from \"../../helpers\";\r\nimport { ConditionName } from \"../../interfaces/enums\";\r\nimport { sendFluentLog } from \"../../logs/fluentdLogger\";\r\nimport { initLog, loadingLog, pausePlayLog } from \"../../logs/logs\";\r\nimport {\r\n setActiveElements,\r\n setAutoQuality,\r\n setBufferedTimeWidth,\r\n setCanPlayVideo,\r\n setCurrentTime,\r\n setDuration,\r\n setFirstPlay,\r\n setIsEnded,\r\n setIsFullScreen,\r\n setIsLoading,\r\n setManualQuality,\r\n setPlay,\r\n setQualityLevels,\r\n} from \"../slices/controllerSlice\";\r\nimport { setClearPopoversSlice } from \"../slices/popoversSlice\";\r\nimport { setUserSettings } from \"../slices/userSlice\";\r\nimport {\r\n setSubtitleText,\r\n setSubtitles,\r\n setVideoTimelines,\r\n} from \"../slices/videoDataSlice\";\r\nimport store from \"../store\";\r\nimport {\r\n handleLockOrientation,\r\n handleVideoTimeline,\r\n} from \"./controller.actions\";\r\n\r\nexport const handleVideoError = (event: any) => {\r\n event.preventDefault();\r\n // Access the error property from the video element\r\n let error = (mainPlayerVideoTag() || miniPlayerVideoTag()).error;\r\n if (error) {\r\n switch (error.code) {\r\n case error.MEDIA_ERR_ABORTED:\r\n errorLogProvider({ type: \"videoTagError\", message: \"You aborted the video playback.\" });\r\n break;\r\n case error.MEDIA_ERR_NETWORK:\r\n errorLogProvider({ type: \"videoTagError\", message: \"A network error caused the video download to fail part-way.\" });\r\n break;\r\n case error.MEDIA_ERR_DECODE:\r\n errorLogProvider({\r\n type: \"videoTagError\",\r\n message:\r\n \"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.\"\r\n });\r\n break;\r\n case error.MEDIA_ERR_SRC_NOT_SUPPORTED:\r\n errorLogProvider({\r\n type: \"videoTagError\",\r\n message: \"The video could not be loaded, either because the server or network failed or because the format is not supported.\"\r\n });\r\n break;\r\n default:\r\n errorLogProvider({ type: \"videoTagError\", message: \"An unknown error occurred.\" });\r\n break;\r\n }\r\n } else {\r\n errorLogProvider({ type: \"videoTagError\", message: \"An error occurred, but the error object is not available.\" });\r\n }\r\n};\r\n\r\nexport const handleAutoFullScreen = () => {\r\n const dispatch = store.dispatch;\r\n const { params } = store.getState().videoData;\r\n const launchFullScreen = (element: any) => {\r\n if (element.requestFullScreen) element.requestFullScreen();\r\n else if (element.mozRequestFullScreen) element.mozRequestFullScreen();\r\n else if (element.webkitRequestFullScreen) element.webkitRequestFullScreen();\r\n };\r\n dispatch(setClearPopoversSlice());\r\n launchFullScreen(document.documentElement);\r\n dispatch(setIsFullScreen(params.fullscreen === \"true\"));\r\n};\r\n\r\nexport const appendQueryParamsToChunksIOS = () => {\r\n let fragmentExtension = \".ts\";\r\n let originalOpen = XMLHttpRequest.prototype.open;\r\n XMLHttpRequest.prototype.open = function () {\r\n if (arguments[1].endsWith(fragmentExtension))\r\n arguments[1] = arguments[1] + \"?uuid=\" + getUUID!();\r\n originalOpen.apply(this, arguments as any);\r\n };\r\n};\r\n\r\nexport const handleBufferedTime = (event: any, intervalRef: any) => {\r\n const dispatch = store.dispatch;\r\n intervalRef.current = setInterval(() => {\r\n const bufferedTime = event.target.buffered.end(0);\r\n const bufferedTimeWidth =\r\n (bufferedTime / mainPlayerVideoTag().duration) * 100;\r\n dispatch(setBufferedTimeWidth(bufferedTimeWidth));\r\n }, 500);\r\n};\r\n\r\n// ************* Hls Config Handlers ************* //\r\nexport const handleHlsConfig = () => {\r\n const streamLinkParams = splitQueryParamsFromStreamLink(\"mainPlayer\");\r\n return {\r\n xhrSetup: (xhr: any, url: any) => {\r\n if (!url.split(\"m3u8\")[1]) url = `${url}${streamLinkParams}`;\r\n xhr.open(\"GET\", url, true);\r\n },\r\n startLevel: -1,\r\n debug: false,\r\n enableWorker: true,\r\n abrBandWidthUpFactor: 0.7,\r\n abrBandWidthFactor: 0.95,\r\n backBufferLength: Infinity,\r\n maxBufferLength: 30,\r\n maxMaxBufferLength: 60,\r\n manifestLoadPolicy: {\r\n default: {\r\n maxTimeToFirstByteMs: Infinity,\r\n maxLoadTimeMs: 20000,\r\n timeoutRetry: {\r\n maxNumRetry: 10,\r\n retryDelayMs: 5000,\r\n maxRetryDelayMs: 10000,\r\n },\r\n errorRetry: {\r\n maxNumRetry: 10,\r\n retryDelayMs: 5000,\r\n maxRetryDelayMs: 10000,\r\n },\r\n },\r\n },\r\n fragLoadPolicy: {\r\n default: {\r\n maxTimeToFirstByteMs: 10000,\r\n maxLoadTimeMs: 120000,\r\n timeoutRetry: {\r\n maxNumRetry: 10,\r\n retryDelayMs: 5000,\r\n maxRetryDelayMs: 10000,\r\n },\r\n errorRetry: {\r\n maxNumRetry: 10,\r\n retryDelayMs: 5000,\r\n maxRetryDelayMs: 10000,\r\n },\r\n },\r\n },\r\n playlistLoadPolicy: {\r\n default: {\r\n maxTimeToFirstByteMs: 10000,\r\n maxLoadTimeMs: 20000,\r\n timeoutRetry: {\r\n maxNumRetry: 10,\r\n retryDelayMs: 5000,\r\n maxRetryDelayMs: 10000,\r\n },\r\n errorRetry: {\r\n maxNumRetry: 10,\r\n retryDelayMs: 5000,\r\n maxRetryDelayMs: 10000,\r\n },\r\n },\r\n },\r\n };\r\n};\r\n\r\nexport const handleMiniPlayerHlsConfig = () => {\r\n const streamLinkParams = splitQueryParamsFromStreamLink(\"miniPlayer\");\r\n return {\r\n xhrSetup: (xhr: any, url: any) => {\r\n url = `${url}${streamLinkParams}`;\r\n xhr.open(\"GET\", url, true);\r\n },\r\n startLevel: 1,\r\n debug: false,\r\n maxMaxBufferLength: 60,\r\n playlistLoadPolicy: {\r\n default: {\r\n maxTimeToFirstByteMs: 10000,\r\n maxLoadTimeMs: 20000,\r\n timeoutRetry: {\r\n maxNumRetry: 1000,\r\n retryDelayMs: 0,\r\n maxRetryDelayMs: 0,\r\n },\r\n errorRetry: {\r\n maxNumRetry: 1000,\r\n retryDelayMs: 1000,\r\n maxRetryDelayMs: 1000,\r\n },\r\n },\r\n },\r\n };\r\n};\r\n\r\n// ************* Manifest Handlers ************* //\r\n\r\nexport const handleManifestParsed = (hls: any) => {\r\n const dispatch = store.dispatch;\r\n let qualityLevels: any[] = [];\r\n let resolutions: any[] = [];\r\n hls.levels.map((level: any) => {\r\n qualityLevels.push(level.attrs.RESOLUTION!.split(\"x\")[1].trim());\r\n resolutions.push(level.attrs.RESOLUTION!);\r\n });\r\n hls.autoLevelCapping = highestResolutionSupported(\r\n resolutions,\r\n window.innerWidth,\r\n window.innerHeight\r\n );\r\n dispatch(setQualityLevels(qualityLevels));\r\n [\r\n \"fullscreenchange\",\r\n \"webkitfullscreenchange\",\r\n \"mozfullscreenchange\",\r\n \"msfullscreenchange\",\r\n ].forEach((eventType) =>\r\n document.addEventListener(\r\n eventType,\r\n () => {\r\n if (conditions(ConditionName.isAutoQuality)) {\r\n hls.autoLevelCapping = highestResolutionSupported(\r\n resolutions,\r\n window.innerWidth,\r\n window.innerHeight\r\n );\r\n hls.nextLevel = -1;\r\n }\r\n },\r\n false\r\n )\r\n );\r\n};\r\n\r\nexport const handleMediaAttached = (Hls: any, hls: any) => {\r\n const { details } = store.getState().videoData;\r\n let streamLink = details.stream_link;\r\n hls.loadSource(streamLink);\r\n hls.on(Hls.Events.MANIFEST_PARSED, (_event: any) =>\r\n handleManifestParsed(hls)\r\n );\r\n};\r\n\r\n// ************* Level Handlers ************* //\r\n\r\nexport const handleLevels = (hls: any, data: any, setQualityLevel: any) => {\r\n if (data.frag.type !== \"audio\") {\r\n const dispatch = store.dispatch;\r\n const { settings } = store.getState().user;\r\n const { qualityLevels, manualQuality, autoQuality } =\r\n store.getState().controller;\r\n if (!conditions(ConditionName.isAutoQuality)) {\r\n if (data.frag.level !== manualQuality)\r\n hls.nextLevel = qualityLevels[settings.quality!]\r\n ? settings.quality\r\n : -1;\r\n if (qualityLevels[settings.quality!]) {\r\n dispatch(setManualQuality(settings.quality!));\r\n dispatch(setAutoQuality(undefined));\r\n } else {\r\n setQualityLevel(qualityLevels[data.frag.level]);\r\n dispatch(setAutoQuality(data.frag.level));\r\n dispatch(setUserSettings({ ...settings, quality: -1 }));\r\n }\r\n } else if (\r\n conditions(ConditionName.isAutoQuality) &&\r\n autoQuality === undefined\r\n ) {\r\n hls.nextLevel = -1;\r\n setQualityLevel(qualityLevels[data.frag.level]);\r\n dispatch(setAutoQuality(data.frag.level));\r\n } else if (conditions(ConditionName.isAutoQuality)) {\r\n setQualityLevel(qualityLevels[data.frag.level]);\r\n if (autoQuality !== data.frag.level)\r\n dispatch(setAutoQuality(data.frag.level));\r\n }\r\n }\r\n};\r\n\r\n// ************* Fragment Handlers ************* //\r\n\r\nexport const handleFragBuffered = (hls: any) => {\r\n const dispatch = store.dispatch;\r\n const bufferedTime = hls.mainForwardBufferInfo?.end;\r\n const bufferedTimeWidth =\r\n (bufferedTime! / mainPlayerVideoTag().duration) * 100;\r\n dispatch(setBufferedTimeWidth(bufferedTimeWidth));\r\n};\r\n\r\nexport const handleFragChanged = (\r\n hls: any,\r\n data: any,\r\n setQualityLevel: any\r\n) => {\r\n const { params } = store.getState().videoData;\r\n\r\n if (params.type) handleLevels(hls, data, setQualityLevel);\r\n};\r\n\r\nexport const handleFragParsed = (hls: any, data: any, setQualityLevel: any) => {\r\n const { type } = store.getState().videoData.params;\r\n if (type) handleLevels(hls, data, setQualityLevel);\r\n};\r\n\r\n// ************* HLS Error Handlers ************* //\r\n\r\nexport const handleHlsErrors = (data: any) => {\r\n if (data.event !== \"hlsAudioTrackLoading\")\r\n return { type: \"HLS_\" + data.type, message: data.error.message };\r\n return undefined;\r\n};\r\n\r\n// ************* Video Tag Handlers ************* //\r\n\r\nexport const handleVideoWaiting = (event: any, waitingTimerRef: any) => {\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n waitingTimerRef.current = Date.now();\r\n dispatch(setIsLoading(true));\r\n};\r\n\r\nexport const handleVideoSeeking = (event: any, waitingTimerRef: any) => {\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n waitingTimerRef.current = 0;\r\n dispatch(setIsLoading(true));\r\n};\r\n\r\nexport const handleVideoPlay = (event: any, timerRef: any) => {\r\n const dispatch = store.dispatch;\r\n const { videoSettings } = store.getState().user;\r\n const { params } = store.getState().videoData;\r\n event.preventDefault();\r\n timerRef.current = Date.now();\r\n dispatch(setPlay(true));\r\n if (conditions(ConditionName.hasOnPlayParams)) params.onPlay!();\r\n if (conditions(ConditionName.isFirstPlay)) {\r\n if(!conditions(ConditionName.hasCurrentTimeParams)) {\r\n mainPlayerVideoTag().currentTime = videoSettings.time;\r\n dispatch(setCurrentTime(videoSettings.time));\r\n }\r\n if (conditions(ConditionName.hasFullScreenParams)) handleAutoFullScreen();\r\n if (conditions(ConditionName.isFullScreen)) handleLockOrientation();\r\n dispatch(setVideoTimelines([Math.floor(mainPlayerVideoTag().currentTime)]));\r\n }\r\n sendFluentLog(pausePlayLog(true));\r\n dispatch(setSubtitleText(\"\"));\r\n};\r\n\r\nexport const handleVideoPlaying = (\r\n loadingCounterRef: any,\r\n loadingDurationRef: any,\r\n initialWaitingDurationRef: any,\r\n bannerLoadingDurationRef: any,\r\n timerRef: any,\r\n waitingDurationRef: any,\r\n waitingTimerRef: any,\r\n videoEntranceTimeRef: any\r\n) => {\r\n const dispatch = store.dispatch;\r\n const { autoQuality, canPlayVideo, firstPlay, qualityLevels } =\r\n store.getState().controller;\r\n const { settings } = store.getState().user;\r\n const qualityLevel =\r\n settings.quality === -1 && autoQuality\r\n ? qualityLevels[autoQuality]\r\n : qualityLevels[settings.quality!];\r\n let waitingDuration = 0;\r\n if (!!waitingTimerRef.current)\r\n waitingDuration = Date.now() - waitingTimerRef.current;\r\n if (firstPlay && !!mainPlayerVideoTag().played)\r\n sendFluentLog(\r\n initLog(\r\n loadingDurationRef.current,\r\n Date.now() - initialWaitingDurationRef.current,\r\n bannerLoadingDurationRef.current - initialWaitingDurationRef.current,\r\n Date.now() - timerRef.current,\r\n timerRef\r\n )\r\n );\r\n dispatch(setFirstPlay(false));\r\n if (canPlayVideo && waitingDuration > 0 && qualityLevel !== undefined) {\r\n waitingDurationRef.current = waitingDuration;\r\n waitingTimerRef.current = 0;\r\n sendFluentLog(\r\n loadingLog(\r\n waitingDuration,\r\n qualityLevel,\r\n timerRef,\r\n loadingCounterRef,\r\n videoEntranceTimeRef.current\r\n )\r\n );\r\n loadingCounterRef.current = loadingCounterRef.current + 1;\r\n timerRef.current = Date.now();\r\n }\r\n};\r\n\r\nexport const handleVideoPause = (event: any) => {\r\n const dispatch = store.dispatch;\r\n const { params } = store.getState().videoData;\r\n event.preventDefault();\r\n sendFluentLog(pausePlayLog(false));\r\n dispatch(setPlay(false));\r\n if (conditions(ConditionName.hasOnPauseParams)) params.onPause!();\r\n};\r\n\r\nexport const handleVideoTimeUpdate = (event: any) => {\r\n const dispatch = store.dispatch;\r\n const { onChangeCurrentTime } = store.getState().videoData.params;\r\n const { selectedSubtitle } = store.getState().videoData;\r\n event.preventDefault();\r\n dispatch(setCurrentTime(event.target.currentTime));\r\n if(conditions(ConditionName.hasOnChangeCurrentTime)) onChangeCurrentTime!(event.target.currentTime);\r\n if (conditions(ConditionName.hasActiveCue))\r\n dispatch(setSubtitleText((selectedSubtitle!.activeCues![0] as any).text));\r\n};\r\n\r\nexport const handleVideoCanPlay = (event: any) => {\r\n const dispatch = store.dispatch;\r\n const { settings } = store.getState().user;\r\n event.preventDefault();\r\n dispatch(setIsLoading(false));\r\n dispatch(setCanPlayVideo(true));\r\n mainPlayerVideoTag().volume = settings.volume / 100;\r\n dispatch(setDuration(event.target.duration));\r\n if (conditions(ConditionName.isIOS)) {\r\n const subtitle: TextTrack[] = Object.values(event.target.textTracks);\r\n if (!!subtitle && subtitle.length)\r\n dispatch(\r\n setSubtitles(!!Object.values(subtitle[0]).length ? subtitle : [])\r\n );\r\n } else dispatch(setSubtitles(Object.values(event.target.textTracks)));\r\n};\r\n\r\nexport const handleVideoEnded = (event: any) => {\r\n const dispatch = store.dispatch;\r\n const { params } = store.getState().videoData;\r\n event.preventDefault();\r\n dispatch(setIsEnded(true));\r\n dispatch(setActiveElements(true));\r\n handleVideoTimeline(mainPlayerVideoTag().duration);\r\n if (conditions(ConditionName.hasOnFinishedParams)) params.onFinished!();\r\n};\r\n\r\n// ************* IOS Video Tag Handlers ************* //\r\n\r\nexport const handleIosVideoPlay = (event: any, timerRef: any) => {\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n timerRef.current = Date.now();\r\n dispatch(setFirstPlay(false));\r\n};\r\n\r\nexport const handleIosVideoPlaying = () => {\r\n const dispatch = store.dispatch;\r\n dispatch(setIsLoading(false));\r\n};\r\n\r\nexport const handleIosVideoTimeUpdate = (event: any) => {\r\n const { onChangeCurrentTime } = store.getState().videoData.params;\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n if(conditions(ConditionName.hasOnChangeCurrentTime)) onChangeCurrentTime!(event.target.currentTime);\r\n dispatch(setCurrentTime(event.target.currentTime));\r\n};\r\n\r\nexport const handleIosVideoEnded = () => {\r\n const dispatch = store.dispatch;\r\n const { params } = store.getState().videoData;\r\n dispatch(setIsEnded(true));\r\n dispatch(setActiveElements(true));\r\n if (conditions(ConditionName.hasOnFinishedParams)) params.onFinished!();\r\n};\r\n\r\n// ************* Static Video Tag Handlers ************* //\r\n\r\nexport const handleStaticVideoPause = (event: any) => {\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n dispatch(setPlay(false));\r\n};\r\n\r\nexport const handleStaticVideoPlay = (event: any, timerRef: any) => {\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n dispatch(setPlay(true));\r\n timerRef.current = Date.now();\r\n dispatch(setSubtitleText(\"\"));\r\n\r\n if (conditions(ConditionName.isFirstPlay) && conditions(ConditionName.hasFullScreenParams)) {\r\n handleAutoFullScreen();\r\n if (conditions(ConditionName.isFullScreen)) handleLockOrientation();\r\n }\r\n\r\n\r\n};\r\n\r\nexport const handleStaticVideoPlaying = (\r\n loadingDurationRef: any,\r\n initialWaitingDurationRef: any,\r\n timerRef: any\r\n) => {\r\n const dispatch = store.dispatch;\r\n const { firstPlay } = store.getState().controller;\r\n dispatch(setIsLoading(false));\r\n if (firstPlay && !!mainPlayerVideoTag().played)\r\n sendFluentLog(\r\n initLog(\r\n Math.round(loadingDurationRef.current),\r\n Date.now() - initialWaitingDurationRef.current,\r\n 0,\r\n Date.now() - timerRef.current,\r\n timerRef\r\n )\r\n );\r\n dispatch(setFirstPlay(false));\r\n};\r\n\r\nexport const handleStaticVideoTimeUpdate = (event: any) => {\r\n const { onChangeCurrentTime } = store.getState().videoData.params;\r\n const dispatch = store.dispatch;\r\n const { selectedSubtitle } = store.getState().videoData;\r\n event.preventDefault();\r\n dispatch(setCurrentTime(event.target.currentTime));\r\n dispatch(setDuration(event.target.duration));\r\n if(conditions(ConditionName.hasOnChangeCurrentTime)) onChangeCurrentTime!(event.target.currentTime);\r\n if (conditions(ConditionName.hasActiveCue))\r\n dispatch(setSubtitleText((selectedSubtitle!.activeCues![0] as any).text));\r\n};\r\n\r\nexport const handleStaticVideoCanPlay = (event: any) => {\r\n const dispatch = store.dispatch;\r\n event.preventDefault();\r\n dispatch(setIsLoading(false));\r\n dispatch(setCanPlayVideo(true));\r\n if (conditions(ConditionName.isIOS)) {\r\n const subtitle: TextTrack[] = Object.values(event.target.textTracks);\r\n if (!!subtitle && subtitle.length)\r\n dispatch(\r\n setSubtitles(!!Object.values(subtitle[0]).length ? subtitle : [])\r\n );\r\n } else dispatch(setSubtitles(Object.values(event.target.textTracks)));\r\n};\r\n\r\nexport const handleStaticVideoLoadedData = (event: any, intervalRef: any) => {\r\n event.preventDefault();\r\n handleBufferedTime(event, intervalRef);\r\n};\r\n\r\nexport const handleStaticVideoEnded = (event: any) => {\r\n const { params } = store.getState().videoData;\r\n if (conditions(ConditionName.hasOnFinishedParams)) params.onFinished!();\r\n event.preventDefault();\r\n};\r\n\r\nexport const handleMiniPlayerMediaAttached = async (hls: any) => {\r\n const { stream_link } = store.getState().miniPlayer.details;\r\n hls.loadSource(stream_link);\r\n};\r\n\r\nexport const handleVideoVisibilityChange = () => {\r\n handleVideoTimeline(mainPlayerVideoTag().currentTime);\r\n};\r\n"]}