cafe-video-player 3.0.13 → 3.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{VideoHighLighter-OBD2IGA6.js → VideoHighLighter-DUJF47R3.js} +2 -2
- package/{VideoHighLighter-OBD2IGA6.js.map → VideoHighLighter-DUJF47R3.js.map} +1 -1
- package/{VideoHighLighter-T2LVURER.mjs → VideoHighLighter-ZDZ7LZVD.mjs} +2 -2
- package/{VideoHighLighter-T2LVURER.mjs.map → VideoHighLighter-ZDZ7LZVD.mjs.map} +1 -1
- package/{backwardForward-ZUVULGGJ.mjs → backwardForward-3X63XNNJ.mjs} +2 -2
- package/{backwardForward-ZUVULGGJ.mjs.map → backwardForward-3X63XNNJ.mjs.map} +1 -1
- package/{backwardForward-S6ZHVC75.js → backwardForward-HTLSZBXC.js} +2 -2
- package/{backwardForward-S6ZHVC75.js.map → backwardForward-HTLSZBXC.js.map} +1 -1
- package/chunk-3TPEXSZV.js +2 -0
- package/{chunk-ZWGZGWEB.js.map → chunk-3TPEXSZV.js.map} +1 -1
- package/chunk-5UGSCO4K.js +3 -0
- package/{chunk-BFE2RKVK.js.map → chunk-5UGSCO4K.js.map} +1 -1
- package/{chunk-4XKL6TLO.mjs → chunk-6LGS5W4B.mjs} +2 -2
- package/{chunk-4XKL6TLO.mjs.map → chunk-6LGS5W4B.mjs.map} +1 -1
- package/{chunk-WU4GN63P.mjs → chunk-B2LB3L3X.mjs} +2 -2
- package/{chunk-WU4GN63P.mjs.map → chunk-B2LB3L3X.mjs.map} +1 -1
- package/{chunk-SKRDEKL2.mjs → chunk-EPUUJE7V.mjs} +4 -4
- package/{chunk-SKRDEKL2.mjs.map → chunk-EPUUJE7V.mjs.map} +1 -1
- package/{chunk-CCO6GDG2.mjs → chunk-HOAJ3EFI.mjs} +3 -3
- package/{chunk-CCO6GDG2.mjs.map → chunk-HOAJ3EFI.mjs.map} +1 -1
- package/chunk-HZASW2B2.js +2 -0
- package/{chunk-DJ6KVZRK.js.map → chunk-HZASW2B2.js.map} +1 -1
- package/{chunk-OGCKLRYP.js → chunk-ISVY5ION.js} +2 -2
- package/{chunk-OGCKLRYP.js.map → chunk-ISVY5ION.js.map} +1 -1
- package/{chunk-IBV5SFIT.js → chunk-K4YPVDEE.js} +2 -2
- package/{chunk-IBV5SFIT.js.map → chunk-K4YPVDEE.js.map} +1 -1
- package/{chunk-QM3W7EYS.js → chunk-KSZ35TPK.js} +2 -2
- package/{chunk-QM3W7EYS.js.map → chunk-KSZ35TPK.js.map} +1 -1
- package/{chunk-WFHA2FPC.js → chunk-MVNOUM3G.js} +5 -5
- package/{chunk-WFHA2FPC.js.map → chunk-MVNOUM3G.js.map} +1 -1
- package/{chunk-BC4366GN.mjs → chunk-NLCBOGTI.mjs} +2 -2
- package/{chunk-BC4366GN.mjs.map → chunk-NLCBOGTI.mjs.map} +1 -1
- package/{chunk-Y7BIYTQP.mjs → chunk-P46UX5ND.mjs} +2 -2
- package/{chunk-Y7BIYTQP.mjs.map → chunk-P46UX5ND.mjs.map} +1 -1
- package/{chunk-GYUGYOVP.mjs → chunk-P4O3IKAQ.mjs} +2 -2
- package/{chunk-GYUGYOVP.mjs.map → chunk-P4O3IKAQ.mjs.map} +1 -1
- package/{chunk-73KLK4QU.mjs → chunk-QFADUEGX.mjs} +2 -2
- package/{chunk-73KLK4QU.mjs.map → chunk-QFADUEGX.mjs.map} +1 -1
- package/{chunk-PKXJEXKI.mjs → chunk-UL5LQB3G.mjs} +2 -2
- package/{chunk-PKXJEXKI.mjs.map → chunk-UL5LQB3G.mjs.map} +1 -1
- package/{chunk-U3VFRU6R.js → chunk-VUHZVVMS.js} +2 -2
- package/{chunk-U3VFRU6R.js.map → chunk-VUHZVVMS.js.map} +1 -1
- package/{chunk-ZSSCZTW3.js → chunk-W5NVHMWX.js} +2 -2
- package/{chunk-ZSSCZTW3.js.map → chunk-W5NVHMWX.js.map} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/{nonStaticVideoTag-6OHMSJEH.js → nonStaticVideoTag-5HEUBWAN.js} +2 -2
- package/{nonStaticVideoTag-6OHMSJEH.js.map → nonStaticVideoTag-5HEUBWAN.js.map} +1 -1
- package/{nonStaticVideoTag-J6JNATM6.mjs → nonStaticVideoTag-P47FI6UV.mjs} +2 -2
- package/{nonStaticVideoTag-J6JNATM6.mjs.map → nonStaticVideoTag-P47FI6UV.mjs.map} +1 -1
- package/package.json +1 -1
- package/staticPlayer-7LS2DPUR.js +2 -0
- package/{staticPlayer-TNS4JFRP.js.map → staticPlayer-7LS2DPUR.js.map} +1 -1
- package/{staticPlayer-2IO6XEKM.mjs → staticPlayer-J7Q3JXQ2.mjs} +2 -2
- package/{staticPlayer-2IO6XEKM.mjs.map → staticPlayer-J7Q3JXQ2.mjs.map} +1 -1
- package/{staticVideoTag-2YYZBRPY.mjs → staticVideoTag-JOPHGL3R.mjs} +2 -2
- package/{staticVideoTag-2YYZBRPY.mjs.map → staticVideoTag-JOPHGL3R.mjs.map} +1 -1
- package/{staticVideoTag-VLNCYNKV.js → staticVideoTag-OZZU5MWF.js} +2 -2
- package/{staticVideoTag-VLNCYNKV.js.map → staticVideoTag-OZZU5MWF.js.map} +1 -1
- package/videoArea-BVYEZUSL.mjs +2 -0
- package/{videoArea-2F2NDD76.mjs.map → videoArea-BVYEZUSL.mjs.map} +1 -1
- package/videoArea-M6ZAWJQW.js +2 -0
- package/{videoArea-35ABV3CM.js.map → videoArea-M6ZAWJQW.js.map} +1 -1
- package/videoPlayerStyles.css +4 -4
- package/{vodPlayer-337TYSU4.js → vodPlayer-B5JRKEU3.js} +2 -2
- package/{vodPlayer-337TYSU4.js.map → vodPlayer-B5JRKEU3.js.map} +1 -1
- package/{vodPlayer-JTS4WVOB.mjs → vodPlayer-GQETGYFT.mjs} +2 -2
- package/{vodPlayer-JTS4WVOB.mjs.map → vodPlayer-GQETGYFT.mjs.map} +1 -1
- package/chunk-BFE2RKVK.js +0 -3
- package/chunk-DJ6KVZRK.js +0 -2
- package/chunk-ZWGZGWEB.js +0 -2
- package/staticPlayer-TNS4JFRP.js +0 -2
- package/videoArea-2F2NDD76.mjs +0 -2
- package/videoArea-35ABV3CM.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/soundVolume/soundVolume.tsx","../src/videoPlayerLibrary/components/custom-components/footer/controllbar/controllbarTooltip.tsx","../src/videoPlayerLibrary/components/custom-components/fullScreen/fullScreen.tsx"],"names":["init_esm_shims","ControllbarTooltip","title","className","jsx","conditions","controllbarTooltip_default","SoundVolume","width","height","showTooltip","setShowTooltip","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryVolumeRef","useRef","handleMouseUp","store_default","sendFluentLog","volumeLog","setUserSettings","handleMute","type","handleChangeSoundVolume","jsxs","tw","event","Image","importImages_default","soundVolume_default","FullScreen","firstPlay","isFullScreen","e","handleFullScreen","handleLockOrientation","fullScreen_default"],"mappings":"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","file":"chunk-WU4GN63P.mjs","sourcesContent":["import { useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport ControllbarTooltip from \"../footer/controllbar/controllbarTooltip\";\r\nimport Image from \"next/image\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { handleChangeSoundVolume } from \"../../../helpers/redux/actions/controller.actions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport { tw } from \"../../../helpers/helpers\";\r\n\r\nconst SoundVolume = ({ width, height }: { width?: number; height?: number }) => {\r\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryVolumeRef = useRef<number>(settings.volume);\r\n\r\n const handleMouseUp = () => {\r\n if (primaryVolumeRef.current !== settings.volume) {\r\n const { settings } = store.getState().user;\r\n sendFluentLog(volumeLog(primaryVolumeRef.current, settings.volume));\r\n primaryVolumeRef.current = settings.volume;\r\n // createSettings({ ...settings, volume: settings.volume });\r\n dispatch(setUserSettings({ ...settings, volume: settings.volume }));\r\n }\r\n };\r\n\r\n const handleMute = (type: string) => {\r\n const { settings } = store.getState().user;\r\n if (type === \"mute\") {\r\n handleChangeSoundVolume(0);\r\n sendFluentLog(volumeLog(settings.volume, 0));\r\n // createSettings({ ...settings, volume: 0 });\r\n } else {\r\n sendFluentLog(volumeLog(settings.volume, 100));\r\n handleChangeSoundVolume(100);\r\n // createSettings({ ...settings, volume: 100 });\r\n }\r\n };\r\n\r\n return (\r\n <div\r\n onMouseOver={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(true)}\r\n onMouseLeave={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(false)}\r\n id={conditions(ConditionName.hasSound) ? \"mute\" : \"unmute\"}\r\n className={tw(`pl-relative pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group pl-bg-black/75 pl-sound-icon`, {\r\n desktop: \"pl-min-w-[34px] pl-h-[34px] pl-p-1\",\r\n desktopFullScreen: \"pl-min-w-[48px] pl-h-[48px] pl-p-0 pl-px-1.5\",\r\n })}\r\n >\r\n <div\r\n className={tw(\"pl-flex pl-items-center pl-justify-center pl-rounded-full group-hover:pl-bg-[#5E5E5E] pl-transition-all\", {\r\n desktop: \"pl-h-[26px] pl-min-w-[26px] group-hover:pl-ps-1 pl-gap-1\",\r\n desktopFullScreen: \"pl-h-[36px] pl-min-w-[36px] group-hover:pl-ps-1.5 pl-gap-1.5\",\r\n })}\r\n >\r\n {!conditions(ConditionName.isTouchScreen) && (\r\n <input\r\n onMouseUp={handleMouseUp}\r\n type=\"range\"\r\n min=\"0\"\r\n max=\"100\"\r\n value={settings.volume}\r\n onChange={(event) => handleChangeSoundVolume(+event.target.value)}\r\n className={`pl-soundVolume ${conditions(ConditionName.isFullScreen) && \"pl-soundVolume-fullscreen\"} pl-cursor-pointer rounded-full`}\r\n style={{ background: `linear-gradient(to right, white ${settings.volume}%, rgba(255,255,255,0.3) 0)` }}\r\n />\r\n )}\r\n <div\r\n onClick={() => (conditions(ConditionName.hasSound) ? handleMute(\"mute\") : handleMute(\"unmute\"))}\r\n onDoubleClick={(event: any) => event.stopPropagation()}\r\n className={tw(\"pl-relative pl-flex pl-items-center pl-shrink-0 pl-me-[5px]\", { desktop: \"\", desktopFullScreen: \"\" })}\r\n >\r\n <Image\r\n src={conditions(ConditionName.hasSound) ? (settings.volume >= 50 ? IMAGES.unMute : IMAGES.lowSound) : IMAGES.mute}\r\n alt={conditions(ConditionName.hasSound) ? \"unmute-icon\" : \"mute-icon\"}\r\n className={`pl-flex pl-items-center pl-cursor-pointer`}\r\n width={width}\r\n height={height}\r\n />\r\n </div>\r\n </div>\r\n {showTooltip && <ControllbarTooltip className=\"pl-left-0\" title={conditions(ConditionName.hasSound) ? \"صدا (M)\" : \"بیصدا (M)\"} />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default SoundVolume;\r\n","import { conditions } from \"../../../../helpers/conditions/conditions\";\nimport { ConditionName } from \"../../../../helpers/interfaces/enums\";\nimport { IControllbarTooltipProps } from \"../../../../helpers/interfaces/interfaces\";\n\nconst ControllbarTooltip = ({ title, className }: IControllbarTooltipProps) => (\n <span\n className={`pl-absolute pl-w-max pl-bg-black/75 pl-text-white pl-rounded-[8px] pl-leading-[18px] pl-flex pl-items-center pl-justify-center pl-font-normal ${\n conditions(ConditionName.isFullScreen)\n ? \"pl-bottom-[150%] pl-h-[34px] pl-px-[9.5px] pl-text-[15px]\"\n : \"pl-h-6 pl-bottom-[130%] pl-px-[9px] pl-text-[12px]\"\n } ${className}`}\n >\n {title}\n </span>\n);\n\nexport default ControllbarTooltip;\n","import { useEffect, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport ControllbarTooltip from \"../footer/controllbar/controllbarTooltip\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { handleFullScreen, handleLockOrientation } from \"../../../helpers/redux/actions/controller.actions\";\r\nimport Image from \"next/image\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport { tw } from \"../../../helpers/helpers\";\r\n\r\nconst FullScreen = ({ width, height, className }: { width?: number; height?: number; className?: string }) => {\r\n useAppSelector(({ controller: { firstPlay, isFullScreen } }) => ({ firstPlay, isFullScreen }), shallowEqual);\r\n\r\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\r\n\r\n // useEffect(() => {\r\n // if (!conditions(ConditionName.isFirstPlay)) dispatch(setActiveElements(false));\r\n // }, [isFullScreen]);\r\n\r\n return (\r\n <div\r\n onDoubleClick={(e) => e.preventDefault()}\r\n onMouseOver={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(true)}\r\n onMouseLeave={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(false)}\r\n onClick={() => {\r\n handleFullScreen();\r\n handleLockOrientation();\r\n }}\r\n id={conditions(ConditionName.isFullScreen) ? \"exit-full-s\" : \"full-s\"}\r\n className={tw(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full pl-transition-all ${className}`, {\r\n desktop: \"pl-w-[40px] pl-h-[25px] hover:pl-bg-[#5E5E5E]\",\r\n desktopFullScreen: \"pl-w-[56px] pl-h-[36px]\",\r\n touch: \"pl-w-[32px] pl-h-[22px]\",\r\n touchFullScreen: \"pl-w-[48px] pl-h-[32px]\",\r\n })}\r\n >\r\n <Image\r\n src={conditions(ConditionName.isFullScreen) ? IMAGES.nonFullScreen : IMAGES.fullScreen}\r\n alt=\"fullScreen-icon\"\r\n width={width}\r\n height={height}\r\n />\r\n\r\n {showTooltip && (\r\n <ControllbarTooltip className=\"pl-right-5\" title={`${conditions(ConditionName.isFullScreen) ? \"خروج از\" : \"\"} تمام صفحه (F)`} />\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default FullScreen;\r\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/videoPlayerLibrary/components/custom-components/soundVolume/soundVolume.tsx","../src/videoPlayerLibrary/components/custom-components/footer/controllbar/controllbarTooltip.tsx","../src/videoPlayerLibrary/components/custom-components/fullScreen/fullScreen.tsx"],"names":["init_esm_shims","ControllbarTooltip","title","className","jsx","conditions","controllbarTooltip_default","SoundVolume","width","height","showTooltip","setShowTooltip","useState","dispatch","useAppDispatch","settings","useAppSelector","shallowEqual","primaryVolumeRef","useRef","handleMouseUp","store_default","sendFluentLog","volumeLog","setUserSettings","handleMute","type","handleChangeSoundVolume","jsxs","tw","event","Image","importImages_default","soundVolume_default","FullScreen","firstPlay","isFullScreen","e","handleFullScreen","handleLockOrientation","fullScreen_default"],"mappings":"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","file":"chunk-B2LB3L3X.mjs","sourcesContent":["import { useRef, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport ControllbarTooltip from \"../footer/controllbar/controllbarTooltip\";\r\nimport Image from \"next/image\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport store from \"../../../helpers/redux/store\";\r\nimport { volumeLog } from \"../../../helpers/logs/logs\";\r\nimport { sendFluentLog } from \"../../../helpers/logs/fluentdLogger\";\r\nimport { setUserSettings } from \"../../../helpers/redux/slices/userSlice\";\r\nimport { handleChangeSoundVolume } from \"../../../helpers/redux/actions/controller.actions\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport { tw } from \"../../../helpers/helpers\";\r\n\r\nconst SoundVolume = ({ width, height }: { width?: number; height?: number }) => {\r\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\r\n\r\n const dispatch = useAppDispatch();\r\n const { settings } = useAppSelector(({ user: { settings } }) => ({ settings }), shallowEqual);\r\n\r\n const primaryVolumeRef = useRef<number>(settings.volume);\r\n\r\n const handleMouseUp = () => {\r\n if (primaryVolumeRef.current !== settings.volume) {\r\n const { settings } = store.getState().user;\r\n sendFluentLog(volumeLog(primaryVolumeRef.current, settings.volume));\r\n primaryVolumeRef.current = settings.volume;\r\n // createSettings({ ...settings, volume: settings.volume });\r\n dispatch(setUserSettings({ ...settings, volume: settings.volume }));\r\n }\r\n };\r\n\r\n const handleMute = (type: string) => {\r\n const { settings } = store.getState().user;\r\n if (type === \"mute\") {\r\n handleChangeSoundVolume(0);\r\n sendFluentLog(volumeLog(settings.volume, 0));\r\n // createSettings({ ...settings, volume: 0 });\r\n } else {\r\n sendFluentLog(volumeLog(settings.volume, 100));\r\n handleChangeSoundVolume(100);\r\n // createSettings({ ...settings, volume: 100 });\r\n }\r\n };\r\n\r\n return (\r\n <div\r\n onMouseOver={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(true)}\r\n onMouseLeave={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(false)}\r\n id={conditions(ConditionName.hasSound) ? \"mute\" : \"unmute\"}\r\n className={tw(`pl-relative pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group pl-bg-black/75 pl-sound-icon`, {\r\n desktop: \"pl-min-w-[34px] pl-h-[34px] pl-p-1\",\r\n desktopFullScreen: \"pl-min-w-[48px] pl-h-[48px] pl-p-0 pl-px-1.5\",\r\n })}\r\n >\r\n <div\r\n className={tw(\"pl-flex pl-items-center pl-justify-center pl-rounded-full group-hover:pl-bg-[#5E5E5E] pl-transition-all\", {\r\n desktop: \"pl-h-[26px] pl-min-w-[26px] group-hover:pl-ps-1 pl-gap-1\",\r\n desktopFullScreen: \"pl-h-[36px] pl-min-w-[36px] group-hover:pl-ps-1.5 pl-gap-1.5\",\r\n })}\r\n >\r\n {!conditions(ConditionName.isTouchScreen) && (\r\n <input\r\n onMouseUp={handleMouseUp}\r\n type=\"range\"\r\n min=\"0\"\r\n max=\"100\"\r\n value={settings.volume}\r\n onChange={(event) => handleChangeSoundVolume(+event.target.value)}\r\n className={`pl-soundVolume ${conditions(ConditionName.isFullScreen) && \"pl-soundVolume-fullscreen\"} pl-cursor-pointer rounded-full`}\r\n style={{ background: `linear-gradient(to right, white ${settings.volume}%, rgba(255,255,255,0.3) 0)` }}\r\n />\r\n )}\r\n <div\r\n onClick={() => (conditions(ConditionName.hasSound) ? handleMute(\"mute\") : handleMute(\"unmute\"))}\r\n onDoubleClick={(event: any) => event.stopPropagation()}\r\n className={tw(\"pl-relative pl-flex pl-items-center pl-shrink-0 pl-pe-[5px]\", { desktop: \"\", desktopFullScreen: \"\" })}\r\n >\r\n <Image\r\n src={conditions(ConditionName.hasSound) ? (settings.volume >= 50 ? IMAGES.unMute : IMAGES.lowSound) : IMAGES.mute}\r\n alt={conditions(ConditionName.hasSound) ? \"unmute-icon\" : \"mute-icon\"}\r\n className={`pl-flex pl-items-center pl-cursor-pointer`}\r\n width={width}\r\n height={height}\r\n />\r\n </div>\r\n </div>\r\n {showTooltip && <ControllbarTooltip className=\"pl-left-0\" title={conditions(ConditionName.hasSound) ? \"صدا (M)\" : \"بیصدا (M)\"} />}\r\n </div>\r\n );\r\n};\r\n\r\nexport default SoundVolume;\r\n","import { conditions } from \"../../../../helpers/conditions/conditions\";\nimport { ConditionName } from \"../../../../helpers/interfaces/enums\";\nimport { IControllbarTooltipProps } from \"../../../../helpers/interfaces/interfaces\";\n\nconst ControllbarTooltip = ({ title, className }: IControllbarTooltipProps) => (\n <span\n className={`pl-absolute pl-w-max pl-bg-black/75 pl-text-white pl-rounded-[8px] pl-leading-[18px] pl-flex pl-items-center pl-justify-center pl-font-normal ${\n conditions(ConditionName.isFullScreen)\n ? \"pl-bottom-[150%] pl-h-[34px] pl-px-[9.5px] pl-text-[15px]\"\n : \"pl-h-6 pl-bottom-[130%] pl-px-[9px] pl-text-[12px]\"\n } ${className}`}\n >\n {title}\n </span>\n);\n\nexport default ControllbarTooltip;\n","import { useEffect, useState } from \"react\";\r\nimport { shallowEqual } from \"react-redux\";\r\nimport ControllbarTooltip from \"../footer/controllbar/controllbarTooltip\";\r\nimport { useAppDispatch, useAppSelector } from \"../../../helpers/redux/hooks\";\r\nimport { ConditionName } from \"../../../helpers/interfaces/enums\";\r\nimport { conditions } from \"../../../helpers/conditions/conditions\";\r\nimport { handleFullScreen, handleLockOrientation } from \"../../../helpers/redux/actions/controller.actions\";\r\nimport Image from \"next/image\";\r\nimport IMAGES from \"../../../images/importImages\";\r\nimport { tw } from \"../../../helpers/helpers\";\r\n\r\nconst FullScreen = ({ width, height, className }: { width?: number; height?: number; className?: string }) => {\r\n useAppSelector(({ controller: { firstPlay, isFullScreen } }) => ({ firstPlay, isFullScreen }), shallowEqual);\r\n\r\n const [showTooltip, setShowTooltip] = useState<boolean>(false);\r\n\r\n // useEffect(() => {\r\n // if (!conditions(ConditionName.isFirstPlay)) dispatch(setActiveElements(false));\r\n // }, [isFullScreen]);\r\n\r\n return (\r\n <div\r\n onDoubleClick={(e) => e.preventDefault()}\r\n onMouseOver={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(true)}\r\n onMouseLeave={() => !conditions(ConditionName.isTouchScreen) && setShowTooltip(false)}\r\n onClick={() => {\r\n handleFullScreen();\r\n handleLockOrientation();\r\n }}\r\n id={conditions(ConditionName.isFullScreen) ? \"exit-full-s\" : \"full-s\"}\r\n className={tw(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full pl-transition-all ${className}`, {\r\n desktop: \"pl-w-[40px] pl-h-[25px] hover:pl-bg-[#5E5E5E]\",\r\n desktopFullScreen: \"pl-w-[56px] pl-h-[36px]\",\r\n touch: \"pl-w-[32px] pl-h-[22px]\",\r\n touchFullScreen: \"pl-w-[48px] pl-h-[32px]\",\r\n })}\r\n >\r\n <Image\r\n src={conditions(ConditionName.isFullScreen) ? IMAGES.nonFullScreen : IMAGES.fullScreen}\r\n alt=\"fullScreen-icon\"\r\n width={width}\r\n height={height}\r\n />\r\n\r\n {showTooltip && (\r\n <ControllbarTooltip className=\"pl-right-5\" title={`${conditions(ConditionName.isFullScreen) ? \"خروج از\" : \"\"} تمام صفحه (F)`} />\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default FullScreen;\r\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-GYUGYOVP.mjs';import {b as b$1,c as c$1,a as a$4}from'./chunk-Y7BIYTQP.mjs';import {a as a$1,c,b}from'./chunk-WU4GN63P.mjs';import {b as b$3,a as a$5}from'./chunk-2DV7FRU5.mjs';import {a}from'./chunk-XKRBXZUB.mjs';import {b as b$2}from'./chunk-CCO6GDG2.mjs';import {ea,t,va,w,E,ya,q,k,x,j,N,m,r,o,fa,Aa,a as a$2,B,u,ba,z as z$1,O,D,p,ia,A as A$1,C,_,da,Y,X as X$1,V,Z as Z$1,ha,aa,ua,wa,ca,ka,F}from'./chunk-BC4366GN.mjs';import {e,A,z,v,k as k$1,q as q$1,p as p$1}from'./chunk-4QMWBTB5.mjs';import {memo,forwardRef,useState,useEffect,useRef}from'react';import {shallowEqual}from'react-redux';import re from'next/image';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import {createPortal}from'react-dom';import Do from'next/dynamic';e();e();e();var Xo=()=>jsxs("div",{className:`pl-relative animate__animated animate__faster ${t("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsx(re,{src:a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>aa("unlock")}),!localStorage.getItem("unlock-click")&&jsx("p",{className:"pl-text-[10px] pl-text-black/[0.87] pl-bg-[#F7F7F7] pl-absolute pl-left-0 pl-px-4 pl-py-3 pl-rounded-[8px] pl-w-max",children:"\u0628\u0631\u0627\u06CC \u0628\u0627\u0632 \u06A9\u0631\u062F\u0646 \u0642\u0641\u0644\u060C \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F"})]}),_t=Xo;var Qo=()=>{let{firstPlay:t$1}=A(({controller:{lock:l,activeElements:o,firstPlay:i}})=>({lock:l,activeElements:o,firstPlay:i}),shallowEqual);return jsx("div",{className:ea(`pl-duration-300 pl-transition-[opacity] ${t$1?"pl-opacity-0":"pl-opacity-100"}`,{desktop:"pl-rounded-t-[12px] pl-pt-8 pl-h-[45.5px]",touch:"pl-h-[16px]"}),children:jsx("div",{className:" pl-mx-8 pl-flex pl-items-start pl-justify-end pl-h-full",children:t("isLock")&&jsx(_t,{})})})},zt=Qo;e();var Zo=()=>{let{firstPlay:t$1,autoplay:l,play:o,isLoading:i}=A(({controller:{lock:a,firstPlay:h,play:v,activeElements:f,isLoading:n},videoData:{params:{autoplay:w}}})=>({lock:a,firstPlay:h,autoplay:w,play:v,activeElements:f,isLoading:n}),shallowEqual),[r,p]=useState(true),[s,d]=useState(!l);return useEffect(()=>{if(t$1||t("isTouchScreen"))return;let a=null;return d(true),a=setTimeout(()=>d(false),1e3),()=>{a&&clearTimeout(a);}},[o,t$1]),useEffect(()=>{let a;return i?a=setTimeout(()=>p(true),b$3):p(false),()=>{clearTimeout(a);}},[i,t$1]),jsx("main",{className:`pl-flex-1 pl-flex pl-flex-col ${ha()?"pl-absolute pl-inset-0":""}`,children:r?jsx(a$4,{}):jsx(Fragment,{children:!t("isLock")&&jsx("div",{id:"main-content",className:`pl-h-full pl-flex-1 pl-flex pl-justify-center pl-items-center pl-text-center ${t("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:t("isTouchScreen")?jsxs("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:2},children:[!t$1&&jsx("div",{onClick:a=>{a.stopPropagation(),Z$1("touchForward",10,a);},className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[56px]":"pl-size-[40px]"} pl-bg-black/75 ${t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,children:jsx(re,{src:a.forward2,alt:"",className:"!pl-cursor-pointer",width:t("isFullScreen")?28:16,height:t("isFullScreen")?28:16})}),jsx(b$1,{normalStyle:true,disableScale:true,disableTooltip:true,className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[68px]":"pl-size-[48px]"} pl-bg-black/75 ${t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,width:t("isFullScreen")?36:24,height:t("isFullScreen")?36:24}),!t$1&&jsx("div",{onClick:a=>{a.stopPropagation(),Z$1("touchBackward",10,a);},className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[56px]":"pl-size-[40px]"} pl-bg-black/75 ${t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,children:jsx(re,{src:a.backward2,alt:"",className:"!pl-cursor-pointer",width:t("isFullScreen")?28:16,height:t("isFullScreen")?28:16})})]}):jsx("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:2},children:jsx(b$1,{normalStyle:true,disableScale:true,disableTooltip:true,inverse:!t$1,width:t("isFullScreen")?81:48,height:t("isFullScreen")?81:48,className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[122px]":"pl-size-[72px]"} pl-bg-black/75 ${s?"pl-opacity-100":"pl-opacity-0 pl-scale-0"} ${t$1?"!pl-cursor-pointer":"!pl-cursor-default"}`})})})})})},Ht=Zo;e();e();e();e();var Jo=t=>{let{videoElementSizeInfo:l}=Aa.getState().videoData,o=t.clientX!==void 0?t.clientX:t.touches[0].clientX;if(o<=l.right&&o>0)return o-l.left};var me=t=>{t&&(t.style.opacity="0.0",t.style.pointerEvents="none",t.style.zIndex=-2,Ie());},Ko=t=>{t.style.display="block",t.style.zIndex=4,t.style.opacity=Aa.getState().videoData.details.vtt?"1.0":"0.6",t.style.pointerEvents="auto",t.style.transition="opacity 1s ease-out";},el=(t,l,o)=>{l&&Ko(l);let i=A$1()?.offsetLeft||0,r=i?0:16,p=Jo(t)-i,s=l.offsetWidth,d=l.parentElement.offsetWidth,a=Math.min(Math.max(p-s/2,0+r),d-s-r);l.style.left=`${a}px`,Aa.dispatch(v(Number(ue(t)))),o.textContent=`${ia(ue(t))}`;},de=(t,l=false)=>{let{videoElementSizeInfo:o}=Aa.getState().videoData,i=document.querySelector(".pl-progressTooltip"),r=document.querySelector(".pl-progressTimeTooltip"),p=t.clientX!==void 0?t.clientX:t.touches[0].clientX;i&&r&&p<=o.right&&p>o.left?(el(t,i,r),l&&setTimeout(()=>me(i),2e3)):me(i);},ue=t=>{let l=C(),{duration:o}=Aa.getState().controller;if(!l||!o)return 0;let i=t.clientX!==void 0?t.clientX:t.touches?.[0]?.clientX,r=l.getBoundingClientRect();return Math.max(0,Math.min(i-r.left,r.width))/r.width*o},Rt=t=>{let{duration:l}=Aa.getState().controller,o=z$1(),i=ue(t);o.style.width=`${i/l*100}%`;},Xt=(t,l,o)=>{t.preventDefault(),t.stopPropagation(),o(true);let i=Aa.dispatch,r=t.clientX!==void 0?t.clientX:t.touches[0].clientX;if(r<=t.view.innerWidth&&r>0){i(p$1(true)),i(q$1(true));let p=ue(t);sessionStorage.setItem("previousVideoTime",String(p)),C()?.setPointerCapture(t.pointerId),l.length>0&&l.map(s=>clearTimeout(s));}},Ie=t=>{},Ge=t=>{t.preventDefault(),t.stopPropagation();let l=Aa.dispatch,{activePointerProgressBar:o}=Aa.getState().controller,{left:i}=Aa.getState().videoData.videoElementSizeInfo,r=t.clientX!==void 0?t.clientX:t.touches[0].clientX,p=document.querySelector(".pl-progressTooltip");r>i?(p&&(p.style.display="block !important",p.style.pointerEvents="auto"),o&&(l(q$1(true)),de(t),Rt(t),x()?.pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},jt=(t$1,l,o,i)=>{i(false),t$1.preventDefault(),t$1.stopPropagation();let r=Aa.dispatch,{duration:p}=Aa.getState().controller,{left:s,right:d}=Aa.getState().videoData.videoElementSizeInfo,a=Aa.getState().videoData.params;t$1.target.removeEventListener("pointermove",Ge);let h=t$1.clientX!==void 0?t$1.clientX:t$1.touches[0].clientX,v=0;h>s&&h<d?v=ue(t$1):h<s?v=0:h>0&&(v=p),t("isStaticFormat")||ba(x().currentTime,v),x().currentTime=v,t("hasOnChangeCurrentTime")&&a.onChangeCurrentTime(v),Aa.getState().controller.activePointerProgressBar&&(r(p$1(false)),r(q$1(false)),x().play(),de(t$1,true),sessionStorage.setItem("current-time",String(v)),Rt(t$1),tl(t$1,r,l,o));},tl=(t,l,o,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:s}=Aa.getState().popovers,{delayTurnOffControlbar:d}=Aa.getState().controller;t.pointerType==="touch"&&!s&&d&&l(k$1(false));},a$5);r.push(p),o(r);},Ut=()=>{let t=Date.now();x().play().then(()=>w(F(Date.now()-t)));},Qt=t=>de(t),Wt=()=>{let t=document.querySelector(".pl-progressTooltip");me(t);},ol=t=>{let l=t?.split("."),i=l[0]?.split(":");return {milliseconds:parseInt(l[1],10)||0,seconds:parseInt(i.pop(),10)||0,minutes:parseInt(i.pop(),10)||0,hours:parseInt(i.pop(),10)||0}},qt=t=>{let l=ol(t);return parseInt(l.hours*3600+l.minutes*60+l.seconds+l.milliseconds/1e3,10)},ll=t=>{let l=t?.split(/#xywh=/i),o=l[0],r=l[1].match(/[0-9]+/gi);return {x:r[0],y:r[1],w:r[2],h:r[3],image:o}},il=(t,l)=>t.indexOf("//")>=0?t:l.indexOf("//")===0?[l.replace(/\/$/gi,""),t.trim()].join("/"):l.indexOf("//")>0?[l.trim(),t.trim()].join("/"):t,pl=(t,l)=>{let o={},i=l?.split(/\/\w+\.vtt\s?/)[0];if(t=il(t,i),!t.match(/#xywh=/i))return o.background='url("'+t+l?.split(/\/\w+\.vtt\s?/)[1]+'")',o;let r=ll(t);return o.background='url("'+r.image+l?.split(/\/\w+\.vtt\s?/)[1]+'") no-repeat -'+r.x+"px -"+r.y+"px",o.width=r.w+"px",o.height=r.h+"px",o.url=r.image,o},Zt=(t,l)=>{fetch(t).then(o=>{if(!o.ok)throw Aa.dispatch(a$2({...Aa.getState().videoData.details,vtt:void 0,vtt_mobile:void 0})),new Error("Network response was not ok");return o.text()}).then(o=>{let i=[];(o?.split(/[\r\n][\r\n]/i)).forEach(p=>{if(p.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3}).*/gi)){let s=p?.split(/[\r\n]/i),a=s[0]?.split(/ ?--> ?/i),h=a[0],v=a[1],f=s[1],n=pl(f,t);i.push({start:qt(h),end:qt(v),css:n});}}),l(i);}).catch(o=>{console.error("Error fetching file:",o);});},Gt=(t,l,o)=>{for(let i=0;i<l.length;++i){let r=l[i];if(t>=r.start&&t<r.end){if(r.css.url&&!o[r.css.url]){let p={background:r.css.background,width:r.css.width,height:r.css.height};return o[r.css.url]=p,p}else if(r.css.url)return o[r.css.url]}}};var sl=()=>{let{details:t$1}=A(({videoData:{details:d}})=>({details:d}),shallowEqual),{tooltipTime:l}=A(({controller:{tooltipTime:d,activeElements:a,isFullScreen:h}})=>({tooltipTime:d,activeElements:a,isFullScreen:h}),shallowEqual),o={},[i,r]=useState(void 0),[p,s]=useState(t("isTouchScreen")?t$1.vtt_mobile:t$1.vtt);if(useEffect(()=>{s(t$1.vtt_mobile);},[t$1.vtt_mobile]),useEffect(()=>{p&&Zt(t$1.vtt_mobile,r);},[p]),t("isActiveElements"))return jsxs("div",{className:"pl-flex pl-flex-col pl-items-center pl-justify-center pl-progressTooltip pl-absolute pl-bottom-[calc(100%+10px)] pl-text-white pl-text-[14px] pl-rounded-[6px] pl-opacity-0",children:[p&&!!i&&jsx("div",{className:ea("pl-flex-1 pl-border-[1.5px] pl-border-white pl-overflow-hidden pl-relative pl-rounded-[12px]",{desktopFullScreen:"pl-h-[164px] pl-w-[291px] pl-mb-1.5",desktop:"pl-h-[93px] pl-w-[165px] pl-mb-1",touch:"pl-h-[70px] pl-w-[135px] pl-mb-1",touchFullScreen:"pl-h-[137px] pl-w-[244px]"}),children:jsx("div",{style:Gt(l,i,o),className:ea("pl-absolute pl-inset-0 pl-top-1/2 pl-left-1/2 -pl-translate-x-1/2 -pl-translate-y-1/2 ",{desktop:"pl-scale-[170%]",touch:"pl-scale-[130%]",desktopFullScreen:"pl-scale-[290%]",touchFullScreen:"pl-scale-[250%]"})})}),jsx("div",{className:ea("pl-flex pl-items-center pl-mx-auto pl-w-fit pl-bg-black/75 pl-rounded-[24px] pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100 ",{desktop:"pl-text-[12px] pl-py-1 pl-px-2 pl-font-bold",desktopFullScreen:"pl-text-base pl-py-1.5 pl-px-3",touchFullScreen:"pl-text-base pl-py-1.5 pl-px-3",touch:"pl-text-[12px] pl-py-1 pl-px-2"})})]})},eo=memo(sl);e();e();var cl=(t,l)=>{useEffect(()=>{let o=i=>{!t.current||t.current.contains(i.target)||l(i);};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o);}},[t,l]);},X=cl;e();var ml=({name:t,className:l,dataMarker:o})=>jsx("img",{"data-marker":o,src:`${u()}/${t}.png`,alt:t,className:l}),Je=ml;var hl=()=>{z();let {duration:l,activeElements:o}=A(({controller:{duration:c,activeElements:x,isFullScreen:$}})=>({duration:c,activeElements:x,isFullScreen:$}),shallowEqual),{markers:i}=A(({videoData:{markers:c,videoElementSizeInfo:x}})=>({markers:c,videoElementSizeInfo:x}),shallowEqual),[r,p]=useState(void 0),[s,d]=useState([]),[a,h]=useState({}),[v,f]=useState(false),n=c=>l?B()*c/l:0,w$1=(c,x,$,A,_,Y,q,ee)=>{c.stopPropagation();let be=24*x/(B()+5),J=[],B$1=0;ee.map(we=>{we.time>x-be&&we.time<x+be&&(J.push(we),B$1+=we.time);}),J.length>1?d(J):(J=[],d([]),F(c,x,$,A,_,Y,q));},F=(c,x$1,$,A,_,Y,q)=>{c.stopPropagation(),de(c,q),ba(x().currentTime,x$1),x().currentTime=x$1,z$1()&&(z$1().style.width=n(x$1)),w(O($,x$1,A,_,Y));};useEffect(()=>{t("isActiveElements")||d([]);},[o]);let L=useRef(null);X(L,()=>d([])),useEffect(()=>{if(s.length>0){let c=va(document.getElementsByClassName("pl-overlapMarkers")[0]);if(c==="inViewport")return f(true),h({left:n(s[0].time)});if(c==="OutViewPortFromLeft")return f(false),h({left:0});if(c==="OutViewPortFromRight")return f(false),h({right:0})}},[s,document.getElementsByClassName("pl-overlapMarkers")[0]]);let k=c=>{c.preventDefault(),t("isTouchScreen")&&p(Number(c.target.getAttribute("data-marker")));};return jsxs(Fragment,{children:[i.map(c=>jsx("div",{onContextMenu:k,"data-marker":c.time,onClick:x=>w$1(x,c.time,c.id,c.title,c.description,c.sticker,true,i),onDoubleClick:x=>x.stopPropagation(),children:jsxs("div",{className:`pl-emoji-image pl-absolute pl-bottom-[200%] pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-p-1 ${t("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:n(c.time),zIndex:5},"data-marker":c.time,children:[c.isPersonal!==null&&c.isPersonal!==void 0&&jsx("div",{className:"pl-absolute pl-rounded-full pl-top-[-2px] pl-right-[-1px] pl-bg-main pl-w-2 pl-h-2"}),jsx(Je,{dataMarker:c.time,name:c.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},c.id)),s.length>0&&jsx("div",{className:`pl-overlapMarkers ${v?"pl-overlayMarkersInViewport":"pl-overlayMarkersOutViewport"} pl-absolute pl-bottom-[45px] pl-px-1 pl-py-2 pl-flex pl-gap-3 pl-flex-row-reverse pl-justify-end pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-ml-[-10px] animate__animated animate__fadeInUp pl-opacity-100`,ref:L,style:a,children:s.map(c=>jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":c.time,onClick:x=>F(x,c.time,c.id,c.title,c.description,c.sticker,true),onDoubleClick:x=>x.stopPropagation(),children:jsx(Je,{dataMarker:c.time,name:c.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},c.id))})]})},io=memo(hl);var gl=()=>{let[t$1,l]=useState(false),[o,i]=useState([]);useEffect(()=>{me(document.querySelector(".progressTooltip"));},[]);let{duration:r,currentTime:p,bufferedTimeWidth:s}=A(({controller:{duration:d,currentTime:a,bufferedTimeWidth:h,isFullScreen:v}})=>({duration:d,currentTime:a,bufferedTimeWidth:h,isFullScreen:v}),shallowEqual);return A(({videoData:{params:d,videoElementSizeInfo:a}})=>({params:d,videoElementSizeInfo:a}),shallowEqual),jsxs("div",{id:"time-progress-container",className:ea(`pl-relative ${t("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"}`,{desktop:"pl-px-4"}),children:[jsxs("div",{className:"pl-relative",children:[jsx(eo,{}),jsx(io,{})]}),jsx("div",{className:"pl-flex pl-items-end",onPointerDown:d=>Xt(d,o,l),onPointerMove:Ge,onPointerUp:d=>jt(d,i,o,l),onMouseMove:Qt,onMouseOut:Wt,onClick:Ut,children:jsx("div",{id:"progress-area",className:ea("pl-w-full"),children:jsxs("div",{id:"time-progress-area",className:ea("!pl-w-full pl-relative pl-transition-transform pl-duration-300 pl-m-auto pl-cursor-pointer !pl-bg-[#4A4A4A] ",{desktop:"pl-h-[3px] pl-rounded-[8px]",desktopFullScreen:"!pl-h-[6px]",touch:"pl-h-[3px]",touchFullScreen:""}),children:[jsx("div",{style:{width:`${s}%`},id:"time-progress-buffer",className:ea("pl-absolute pl-bg-[#C7C7C7] ",{desktop:"pl-h-[3px] pl-rounded-[8px]",desktopFullScreen:"!pl-h-[6px]",touch:"pl-h-[3px]",touchFullScreen:""})}),jsx("div",{style:{width:p===r?"0%":`${p/r*100}%`},id:"time-progress-bar",className:ea("pl-relative pl-cursor-pointer pl-bg-[#FF0033] before:pl-bg-[#FF0033] before:pl-inline-block",{desktop:`pl-h-[3px] before:pl-size-[9px] pl-rounded-[8px] ${t$1&&"before:pl-size-[11px]"}`,desktopFullScreen:`!pl-h-[6px] before:!pl-size-[20px] ${t$1&&"before:!pl-size-[22px]"}`,touch:"pl-h-[3px] before:pl-size-[8px]",touchFullScreen:"before:!pl-size-[9px]"})})]})})})]})},so=gl;e();e();e();var ao=forwardRef(({children:t,status:l,onClose:o,type:i,classNames:r,parentClassNames:p,styles:s,isBlurBackground:d,isFullHeight:a=false,isFullScreen:h,isHeader:v,isHasCatchUpLineOnTop:f=false,animation:n,scrollbar:w=false,isFocusOnInput:F=false},L)=>{let[k,c]=useState(l),[x,$]=useState(0),[A$1,_]=useState(0),[Y,q]=useState(0),{videoElementSizeInfo:ee}=A(({videoData:{videoElementSizeInfo:B}})=>({videoElementSizeInfo:B}),shallowEqual);useEffect(()=>{let B;return l?c(true):B=setTimeout(()=>{o(false),_(0),c(false);},500),()=>clearTimeout(B)},[l]);let st=B=>{B.touches[0].clientY>=ee.top?_(window.innerHeight-B.touches[0].clientY):_(window.innerHeight-ee.top),q(1005);},be=()=>{A$1!==0&&(A$1>x?A$1-x>(window.innerHeight-ee.top-x)/2?(_(window.innerHeight-ee.top),q(1005)):(_(0),setTimeout(()=>q(0),500)):(A$1>x/2?_(x):(_(0),$(0),o()),q(0)));},J=jsxs(Fragment,{children:[d&&jsx("div",{className:`pl-bg-black/[0.5] pl-w-screen pl-h-screen pl-fixed pl-top-0 pl-right-0 animate__animated animate__faster ${l?"animate__fadeIn":"animate__fadeOut"}`,style:{zIndex:1001,backdropFilter:"blur(4px)"}}),jsx("div",{className:`${i==="modal"&&"pl-fixed pl-top-0 pl-left-0 pl-flex pl-w-full pl-h-full pl-justify-center pl-items-end sm:pl-items-center"} ${p}`,style:{zIndex:a&&!F?Y:1004},children:jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9] dark:pl-bg-black/[0.7]
|
|
1
|
+
import {a as a$3}from'./chunk-P4O3IKAQ.mjs';import {b as b$1,c as c$1,a as a$4}from'./chunk-P46UX5ND.mjs';import {a as a$1,c,b}from'./chunk-B2LB3L3X.mjs';import {b as b$3,a as a$5}from'./chunk-2DV7FRU5.mjs';import {a}from'./chunk-XKRBXZUB.mjs';import {b as b$2}from'./chunk-HOAJ3EFI.mjs';import {ea,t,va,w,E,ya,q,k,x,j,N,m,r,o,fa,Aa,a as a$2,B,u,ba,z as z$1,O,D,p,ia,A as A$1,C,_,da,Y,X as X$1,V,Z as Z$1,ha,aa,ua,wa,ca,ka,F}from'./chunk-NLCBOGTI.mjs';import {e,A,z,v,k as k$1,q as q$1,p as p$1}from'./chunk-4QMWBTB5.mjs';import {memo,forwardRef,useState,useEffect,useRef}from'react';import {shallowEqual}from'react-redux';import re from'next/image';import {jsxs,Fragment,jsx}from'react/jsx-runtime';import {createPortal}from'react-dom';import Do from'next/dynamic';e();e();e();var Xo=()=>jsxs("div",{className:`pl-relative animate__animated animate__faster ${t("isActiveElements")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[jsx(re,{src:a.lock,alt:"lock-icon",width:20,height:20,onClick:()=>aa("unlock")}),!localStorage.getItem("unlock-click")&&jsx("p",{className:"pl-text-[10px] pl-text-black/[0.87] pl-bg-[#F7F7F7] pl-absolute pl-left-0 pl-px-4 pl-py-3 pl-rounded-[8px] pl-w-max",children:"\u0628\u0631\u0627\u06CC \u0628\u0627\u0632 \u06A9\u0631\u062F\u0646 \u0642\u0641\u0644\u060C \u06A9\u0644\u06CC\u06A9 \u06A9\u0646\u06CC\u062F"})]}),_t=Xo;var Qo=()=>{let{firstPlay:t$1}=A(({controller:{lock:l,activeElements:o,firstPlay:i}})=>({lock:l,activeElements:o,firstPlay:i}),shallowEqual);return jsx("div",{className:ea(`pl-duration-300 pl-transition-[opacity] ${t$1?"pl-opacity-0":"pl-opacity-100"}`,{desktop:"pl-rounded-t-[12px] pl-pt-8 pl-h-[45.5px]",touch:"pl-h-[16px]"}),children:jsx("div",{className:" pl-mx-8 pl-flex pl-items-start pl-justify-end pl-h-full",children:t("isLock")&&jsx(_t,{})})})},zt=Qo;e();var Zo=()=>{let{firstPlay:t$1,autoplay:l,play:o,isLoading:i}=A(({controller:{lock:a,firstPlay:h,play:v,activeElements:f,isLoading:n},videoData:{params:{autoplay:w}}})=>({lock:a,firstPlay:h,autoplay:w,play:v,activeElements:f,isLoading:n}),shallowEqual),[r,p]=useState(true),[s,d]=useState(!l);return useEffect(()=>{if(t$1||t("isTouchScreen"))return;let a=null;return d(true),a=setTimeout(()=>d(false),1e3),()=>{a&&clearTimeout(a);}},[o,t$1]),useEffect(()=>{let a;return i?a=setTimeout(()=>p(true),b$3):p(false),()=>{clearTimeout(a);}},[i,t$1]),jsx("main",{className:`pl-flex-1 pl-flex pl-flex-col ${ha()?"pl-absolute pl-inset-0":""}`,children:r?jsx(a$4,{}):jsx(Fragment,{children:!t("isLock")&&jsx("div",{id:"main-content",className:`pl-h-full pl-flex-1 pl-flex pl-justify-center pl-items-center pl-text-center ${t("isActiveElements")?"pl-pointer-events-auto":"pl-pointer-events-none"}`,children:t("isTouchScreen")?jsxs("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:2},children:[!t$1&&jsx("div",{onClick:a=>{a.stopPropagation(),Z$1("touchForward",10,a);},className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[56px]":"pl-size-[40px]"} pl-bg-black/75 ${t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,children:jsx(re,{src:a.forward2,alt:"",className:"!pl-cursor-pointer",width:t("isFullScreen")?28:16,height:t("isFullScreen")?28:16})}),jsx(b$1,{normalStyle:true,disableScale:true,disableTooltip:true,className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[68px]":"pl-size-[48px]"} pl-bg-black/75 ${t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,width:t("isFullScreen")?36:24,height:t("isFullScreen")?36:24}),!t$1&&jsx("div",{onClick:a=>{a.stopPropagation(),Z$1("touchBackward",10,a);},className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[56px]":"pl-size-[40px]"} pl-bg-black/75 ${t("isActiveElements")?"pl-opacity-100":"pl-opacity-0"}`,children:jsx(re,{src:a.backward2,alt:"",className:"!pl-cursor-pointer",width:t("isFullScreen")?28:16,height:t("isFullScreen")?28:16})})]}):jsx("div",{className:"pl-flex pl-justify-center pl-gap-8 pl-items-center pl-w-max",style:{zIndex:2},children:jsx(b$1,{normalStyle:true,disableScale:true,disableTooltip:true,inverse:!t$1,width:t("isFullScreen")?81:48,height:t("isFullScreen")?81:48,className:`pl-flex pl-transition-all pl-duration-300 pl-ease-in-out pl-items-center pl-justify-center pl-rounded-full ${t("isFullScreen")?"pl-size-[122px]":"pl-size-[72px]"} pl-bg-black/75 ${s?"pl-opacity-100":"pl-opacity-0 pl-scale-0"} ${t$1?"!pl-cursor-pointer":"!pl-cursor-default"}`})})})})})},Ht=Zo;e();e();e();e();var Jo=t=>{let{videoElementSizeInfo:l}=Aa.getState().videoData,o=t.clientX!==void 0?t.clientX:t.touches[0].clientX;if(o<=l.right&&o>0)return o-l.left};var me=t=>{t&&(t.style.opacity="0.0",t.style.pointerEvents="none",t.style.zIndex=-2,Ie());},Ko=t=>{t.style.display="block",t.style.zIndex=4,t.style.opacity=Aa.getState().videoData.details.vtt?"1.0":"0.6",t.style.pointerEvents="auto",t.style.transition="opacity 1s ease-out";},el=(t,l,o)=>{l&&Ko(l);let i=A$1()?.offsetLeft||0,r=i?0:16,p=Jo(t)-i,s=l.offsetWidth,d=l.parentElement.offsetWidth,a=Math.min(Math.max(p-s/2,0+r),d-s-r);l.style.left=`${a}px`,Aa.dispatch(v(Number(ue(t)))),o.textContent=`${ia(ue(t))}`;},de=(t,l=false)=>{let{videoElementSizeInfo:o}=Aa.getState().videoData,i=document.querySelector(".pl-progressTooltip"),r=document.querySelector(".pl-progressTimeTooltip"),p=t.clientX!==void 0?t.clientX:t.touches[0].clientX;i&&r&&p<=o.right&&p>o.left?(el(t,i,r),l&&setTimeout(()=>me(i),2e3)):me(i);},ue=t=>{let l=C(),{duration:o}=Aa.getState().controller;if(!l||!o)return 0;let i=t.clientX!==void 0?t.clientX:t.touches?.[0]?.clientX,r=l.getBoundingClientRect();return Math.max(0,Math.min(i-r.left,r.width))/r.width*o},Rt=t=>{let{duration:l}=Aa.getState().controller,o=z$1(),i=ue(t);o.style.width=`${i/l*100}%`;},Xt=(t,l,o)=>{t.preventDefault(),t.stopPropagation(),o(true);let i=Aa.dispatch,r=t.clientX!==void 0?t.clientX:t.touches[0].clientX;if(r<=t.view.innerWidth&&r>0){i(p$1(true)),i(q$1(true));let p=ue(t);sessionStorage.setItem("previousVideoTime",String(p)),C()?.setPointerCapture(t.pointerId),l.length>0&&l.map(s=>clearTimeout(s));}},Ie=t=>{},Ge=t=>{t.preventDefault(),t.stopPropagation();let l=Aa.dispatch,{activePointerProgressBar:o}=Aa.getState().controller,{left:i}=Aa.getState().videoData.videoElementSizeInfo,r=t.clientX!==void 0?t.clientX:t.touches[0].clientX,p=document.querySelector(".pl-progressTooltip");r>i?(p&&(p.style.display="block !important",p.style.pointerEvents="auto"),o&&(l(q$1(true)),de(t),Rt(t),x()?.pause())):p&&(p.style.display="none !important",p.style.pointerEvents="none");},jt=(t$1,l,o,i)=>{i(false),t$1.preventDefault(),t$1.stopPropagation();let r=Aa.dispatch,{duration:p}=Aa.getState().controller,{left:s,right:d}=Aa.getState().videoData.videoElementSizeInfo,a=Aa.getState().videoData.params;t$1.target.removeEventListener("pointermove",Ge);let h=t$1.clientX!==void 0?t$1.clientX:t$1.touches[0].clientX,v=0;h>s&&h<d?v=ue(t$1):h<s?v=0:h>0&&(v=p),t("isStaticFormat")||ba(x().currentTime,v),x().currentTime=v,t("hasOnChangeCurrentTime")&&a.onChangeCurrentTime(v),Aa.getState().controller.activePointerProgressBar&&(r(p$1(false)),r(q$1(false)),x().play(),de(t$1,true),sessionStorage.setItem("current-time",String(v)),Rt(t$1),tl(t$1,r,l,o));},tl=(t,l,o,i)=>{let r=i,p=setTimeout(()=>{let{settingPopover:s}=Aa.getState().popovers,{delayTurnOffControlbar:d}=Aa.getState().controller;t.pointerType==="touch"&&!s&&d&&l(k$1(false));},a$5);r.push(p),o(r);},Ut=()=>{let t=Date.now();x().play().then(()=>w(F(Date.now()-t)));},Qt=t=>de(t),Wt=()=>{let t=document.querySelector(".pl-progressTooltip");me(t);},ol=t=>{let l=t?.split("."),i=l[0]?.split(":");return {milliseconds:parseInt(l[1],10)||0,seconds:parseInt(i.pop(),10)||0,minutes:parseInt(i.pop(),10)||0,hours:parseInt(i.pop(),10)||0}},qt=t=>{let l=ol(t);return parseInt(l.hours*3600+l.minutes*60+l.seconds+l.milliseconds/1e3,10)},ll=t=>{let l=t?.split(/#xywh=/i),o=l[0],r=l[1].match(/[0-9]+/gi);return {x:r[0],y:r[1],w:r[2],h:r[3],image:o}},il=(t,l)=>t.indexOf("//")>=0?t:l.indexOf("//")===0?[l.replace(/\/$/gi,""),t.trim()].join("/"):l.indexOf("//")>0?[l.trim(),t.trim()].join("/"):t,pl=(t,l)=>{let o={},i=l?.split(/\/\w+\.vtt\s?/)[0];if(t=il(t,i),!t.match(/#xywh=/i))return o.background='url("'+t+l?.split(/\/\w+\.vtt\s?/)[1]+'")',o;let r=ll(t);return o.background='url("'+r.image+l?.split(/\/\w+\.vtt\s?/)[1]+'") no-repeat -'+r.x+"px -"+r.y+"px",o.width=r.w+"px",o.height=r.h+"px",o.url=r.image,o},Zt=(t,l)=>{fetch(t).then(o=>{if(!o.ok)throw Aa.dispatch(a$2({...Aa.getState().videoData.details,vtt:void 0,vtt_mobile:void 0})),new Error("Network response was not ok");return o.text()}).then(o=>{let i=[];(o?.split(/[\r\n][\r\n]/i)).forEach(p=>{if(p.match(/([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3})?( ?--> ?)([0-9]{2}:)?([0-9]{2}:)?[0-9]{2}(.[0-9]{3}).*/gi)){let s=p?.split(/[\r\n]/i),a=s[0]?.split(/ ?--> ?/i),h=a[0],v=a[1],f=s[1],n=pl(f,t);i.push({start:qt(h),end:qt(v),css:n});}}),l(i);}).catch(o=>{console.error("Error fetching file:",o);});},Gt=(t,l,o)=>{for(let i=0;i<l.length;++i){let r=l[i];if(t>=r.start&&t<r.end){if(r.css.url&&!o[r.css.url]){let p={background:r.css.background,width:r.css.width,height:r.css.height};return o[r.css.url]=p,p}else if(r.css.url)return o[r.css.url]}}};var sl=()=>{let{details:t$1}=A(({videoData:{details:d}})=>({details:d}),shallowEqual),{tooltipTime:l}=A(({controller:{tooltipTime:d,activeElements:a,isFullScreen:h}})=>({tooltipTime:d,activeElements:a,isFullScreen:h}),shallowEqual),o={},[i,r]=useState(void 0),[p,s]=useState(t("isTouchScreen")?t$1.vtt_mobile:t$1.vtt);if(useEffect(()=>{s(t$1.vtt_mobile);},[t$1.vtt_mobile]),useEffect(()=>{p&&Zt(t$1.vtt_mobile,r);},[p]),t("isActiveElements"))return jsxs("div",{className:"pl-flex pl-flex-col pl-items-center pl-justify-center pl-progressTooltip pl-absolute pl-bottom-[calc(100%+10px)] pl-text-white pl-text-[14px] pl-rounded-[6px] pl-opacity-0",children:[p&&!!i&&jsx("div",{className:ea("pl-flex-1 pl-border-[1.5px] pl-border-white pl-overflow-hidden pl-relative pl-rounded-[12px]",{desktopFullScreen:"pl-h-[164px] pl-w-[291px] pl-mb-1.5",desktop:"pl-h-[93px] pl-w-[165px] pl-mb-1",touch:"pl-h-[70px] pl-w-[135px] pl-mb-1",touchFullScreen:"pl-h-[137px] pl-w-[244px]"}),children:jsx("div",{style:Gt(l,i,o),className:ea("pl-absolute pl-inset-0 pl-top-1/2 pl-left-1/2 -pl-translate-x-1/2 -pl-translate-y-1/2 ",{desktop:"pl-scale-[170%]",touch:"pl-scale-[130%]",desktopFullScreen:"pl-scale-[290%]",touchFullScreen:"pl-scale-[250%]"})})}),jsx("div",{className:ea("pl-flex pl-items-center pl-mx-auto pl-w-fit pl-bg-black/75 pl-rounded-[24px] pl-justify-center pl-progressTimeTooltip pl-text-white !pl-opacity-100 ",{desktop:"pl-text-[12px] pl-py-1 pl-px-2 pl-font-bold",desktopFullScreen:"pl-text-base pl-py-1.5 pl-px-3",touchFullScreen:"pl-text-base pl-py-1.5 pl-px-3",touch:"pl-text-[12px] pl-py-1 pl-px-2"})})]})},eo=memo(sl);e();e();var cl=(t,l)=>{useEffect(()=>{let o=i=>{!t.current||t.current.contains(i.target)||l(i);};return document.addEventListener("mousedown",o),document.addEventListener("touchstart",o),()=>{document.removeEventListener("mousedown",o),document.removeEventListener("touchstart",o);}},[t,l]);},X=cl;e();var ml=({name:t,className:l,dataMarker:o})=>jsx("img",{"data-marker":o,src:`${u()}/${t}.png`,alt:t,className:l}),Je=ml;var hl=()=>{z();let {duration:l,activeElements:o}=A(({controller:{duration:c,activeElements:x,isFullScreen:$}})=>({duration:c,activeElements:x,isFullScreen:$}),shallowEqual),{markers:i}=A(({videoData:{markers:c,videoElementSizeInfo:x}})=>({markers:c,videoElementSizeInfo:x}),shallowEqual),[r,p]=useState(void 0),[s,d]=useState([]),[a,h]=useState({}),[v,f]=useState(false),n=c=>l?B()*c/l:0,w$1=(c,x,$,A,_,Y,q,ee)=>{c.stopPropagation();let be=24*x/(B()+5),J=[],B$1=0;ee.map(we=>{we.time>x-be&&we.time<x+be&&(J.push(we),B$1+=we.time);}),J.length>1?d(J):(J=[],d([]),F(c,x,$,A,_,Y,q));},F=(c,x$1,$,A,_,Y,q)=>{c.stopPropagation(),de(c,q),ba(x().currentTime,x$1),x().currentTime=x$1,z$1()&&(z$1().style.width=n(x$1)),w(O($,x$1,A,_,Y));};useEffect(()=>{t("isActiveElements")||d([]);},[o]);let L=useRef(null);X(L,()=>d([])),useEffect(()=>{if(s.length>0){let c=va(document.getElementsByClassName("pl-overlapMarkers")[0]);if(c==="inViewport")return f(true),h({left:n(s[0].time)});if(c==="OutViewPortFromLeft")return f(false),h({left:0});if(c==="OutViewPortFromRight")return f(false),h({right:0})}},[s,document.getElementsByClassName("pl-overlapMarkers")[0]]);let k=c=>{c.preventDefault(),t("isTouchScreen")&&p(Number(c.target.getAttribute("data-marker")));};return jsxs(Fragment,{children:[i.map(c=>jsx("div",{onContextMenu:k,"data-marker":c.time,onClick:x=>w$1(x,c.time,c.id,c.title,c.description,c.sticker,true,i),onDoubleClick:x=>x.stopPropagation(),children:jsxs("div",{className:`pl-emoji-image pl-absolute pl-bottom-[200%] pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-p-1 ${t("isTouchScreenPortrait"),"pl-mb-5"} pl-ml-[-12px] pl-cursor-pointer`,style:{left:n(c.time),zIndex:5},"data-marker":c.time,children:[c.isPersonal!==null&&c.isPersonal!==void 0&&jsx("div",{className:"pl-absolute pl-rounded-full pl-top-[-2px] pl-right-[-1px] pl-bg-main pl-w-2 pl-h-2"}),jsx(Je,{dataMarker:c.time,name:c.sticker,className:"pl-w-[16px] pl-h-[16px] !pl-max-w-max"})]})},c.id)),s.length>0&&jsx("div",{className:`pl-overlapMarkers ${v?"pl-overlayMarkersInViewport":"pl-overlayMarkersOutViewport"} pl-absolute pl-bottom-[45px] pl-px-1 pl-py-2 pl-flex pl-gap-3 pl-flex-row-reverse pl-justify-end pl-bg-z-gray-700/[0.4] pl-rounded-[6px] pl-ml-[-10px] animate__animated animate__fadeInUp pl-opacity-100`,ref:L,style:a,children:s.map(c=>jsx("div",{className:"pl-emoji-image pl-rounded-[6px] pl-cursor-pointer","data-marker":c.time,onClick:x=>F(x,c.time,c.id,c.title,c.description,c.sticker,true),onDoubleClick:x=>x.stopPropagation(),children:jsx(Je,{dataMarker:c.time,name:c.sticker,className:"pl-w-[24px] pl-h-[24px] !pl-max-w-max"})},c.id))})]})},io=memo(hl);var gl=()=>{let[t$1,l]=useState(false),[o,i]=useState([]);useEffect(()=>{me(document.querySelector(".progressTooltip"));},[]);let{duration:r,currentTime:p,bufferedTimeWidth:s}=A(({controller:{duration:d,currentTime:a,bufferedTimeWidth:h,isFullScreen:v}})=>({duration:d,currentTime:a,bufferedTimeWidth:h,isFullScreen:v}),shallowEqual);return A(({videoData:{params:d,videoElementSizeInfo:a}})=>({params:d,videoElementSizeInfo:a}),shallowEqual),jsxs("div",{id:"time-progress-container",className:ea(`pl-relative ${t("isTouchScreenPortrait")?"pl-order-1":"pl-order-none"}`,{desktop:"pl-px-4"}),children:[jsxs("div",{className:"pl-relative",children:[jsx(eo,{}),jsx(io,{})]}),jsx("div",{className:"pl-flex pl-items-end",onPointerDown:d=>Xt(d,o,l),onPointerMove:Ge,onPointerUp:d=>jt(d,i,o,l),onMouseMove:Qt,onMouseOut:Wt,onClick:Ut,children:jsx("div",{id:"progress-area",className:ea("pl-w-full"),children:jsxs("div",{id:"time-progress-area",className:ea("!pl-w-full pl-relative pl-transition-transform pl-duration-300 pl-m-auto pl-cursor-pointer !pl-bg-[#4A4A4A] ",{desktop:"pl-h-[3px] pl-rounded-[8px]",desktopFullScreen:"!pl-h-[6px]",touch:"pl-h-[3px]",touchFullScreen:""}),children:[jsx("div",{style:{width:`${s}%`},id:"time-progress-buffer",className:ea("pl-absolute pl-bg-[#C7C7C7] ",{desktop:"pl-h-[3px] pl-rounded-[8px]",desktopFullScreen:"!pl-h-[6px]",touch:"pl-h-[3px]",touchFullScreen:""})}),jsx("div",{style:{width:p===r?"0%":`${p/r*100}%`},id:"time-progress-bar",className:ea("pl-relative pl-cursor-pointer pl-bg-[#FF0033] before:pl-bg-[#FF0033] before:pl-inline-block",{desktop:`pl-h-[3px] before:pl-size-[9px] pl-rounded-[8px] ${t$1&&"before:pl-size-[11px]"}`,desktopFullScreen:`!pl-h-[6px] before:!pl-size-[20px] ${t$1&&"before:!pl-size-[22px]"}`,touch:"pl-h-[3px] before:pl-size-[8px]",touchFullScreen:"before:!pl-size-[9px]"})})]})})})]})},so=gl;e();e();e();var ao=forwardRef(({children:t,status:l,onClose:o,type:i,classNames:r,parentClassNames:p,styles:s,isBlurBackground:d,isFullHeight:a=false,isFullScreen:h,isHeader:v,isHasCatchUpLineOnTop:f=false,animation:n,scrollbar:w=false,isFocusOnInput:F=false},L)=>{let[k,c]=useState(l),[x,$]=useState(0),[A$1,_]=useState(0),[Y,q]=useState(0),{videoElementSizeInfo:ee}=A(({videoData:{videoElementSizeInfo:B}})=>({videoElementSizeInfo:B}),shallowEqual);useEffect(()=>{let B;return l?c(true):B=setTimeout(()=>{o(false),_(0),c(false);},500),()=>clearTimeout(B)},[l]);let st=B=>{B.touches[0].clientY>=ee.top?_(window.innerHeight-B.touches[0].clientY):_(window.innerHeight-ee.top),q(1005);},be=()=>{A$1!==0&&(A$1>x?A$1-x>(window.innerHeight-ee.top-x)/2?(_(window.innerHeight-ee.top),q(1005)):(_(0),setTimeout(()=>q(0),500)):(A$1>x/2?_(x):(_(0),$(0),o()),q(0)));},J=jsxs(Fragment,{children:[d&&jsx("div",{className:`pl-bg-black/[0.5] pl-w-screen pl-h-screen pl-fixed pl-top-0 pl-right-0 animate__animated animate__faster ${l?"animate__fadeIn":"animate__fadeOut"}`,style:{zIndex:1001,backdropFilter:"blur(4px)"}}),jsx("div",{className:`${i==="modal"&&"pl-fixed pl-top-0 pl-left-0 pl-flex pl-w-full pl-h-full pl-justify-center pl-items-end sm:pl-items-center"} ${p}`,style:{zIndex:a&&!F?Y:1004},children:jsx("div",{className:`pl-flex pl-flex-col pl-rounded-[8px] animate__animated animate__faster pl-bg-white/[0.9] dark:pl-bg-black/[0.7]
|
|
2
2
|
${a&&"pl-h-full"}
|
|
3
3
|
${n||(window.innerWidth>768&&i==="modal"?l?"animate__fadeIn":"animate__fadeOut":l?"animate__fadeInUp":"animate__fadeOutDown")}
|
|
4
4
|
before:pl-hidden
|
|
5
5
|
${i!=="modal"&&`pl-absolute ${ea("",{desktop:"pl-bottom-[20px]",desktopFullScreen:"pl-bottom-[60px]"})} pl-overflow-auto no-scrollbar`}
|
|
6
6
|
${r}
|
|
7
|
-
`,style:{maxHeight:h?"unset":A$1||x||"",zIndex:1004,...s},ref:L,id:"popover-content",children:jsxs(Fragment,{children:[v&&jsx("div",{onTouchMove:f?st:()=>{},onTouchEndCapture:f?be:()=>{},className:"pl-py-4",children:f&&jsx("div",{className:"pl-absolute pl-top-[10px] pl-right-[50%] pl-mr-[-25px] pl-text-center pl-w-8 pl-h-1 pl-rounded-[20px] pl-bg-gray-highLight"})}),jsx("div",{id:"popover-content",className:`pl-overflow-y-auto pl-h-full pl-w-full ${!w&&"no-scrollbar"}`,onTouchMove:B=>B.stopPropagation(),children:t})]})})})]});return jsx(Fragment,{children:k&&jsx(Fragment,{children:i==="modal"?createPortal(jsx("div",{style:{fontFamily:"IRANSansXFaNum",direction:"rtl",overflowX:"hidden"},children:J}),document.getElementById("dialog-react-root-videoPlayer")):jsx("div",{id:"player-popover",children:J})})})});ao.displayName="popover";var Z=ao;e();var Nl=({setSection:t$1,showQualityLevelsIcon:l})=>{let o=z(),{qualityLevels:i}=A(({controller:{qualityLevels:n,manualQuality:w,autoQuality:F}})=>({qualityLevels:n,manualQuality:w,autoQuality:F}),shallowEqual),{settings:r}=A(({user:{settings:n}})=>({settings:n}),shallowEqual),{qualityLevelsPopover:p}=A(({popovers:{qualityLevelsPopover:n}})=>({qualityLevelsPopover:n}),shallowEqual),{videoElementSizeInfo:s}=A(({videoData:{params:n,videoElementSizeInfo:w}})=>({params:n,videoElementSizeInfo:w}),shallowEqual),[d,a$2]=useState(false);i=[-1,...i];let h=(n,w)=>t("isAutoQuality")&&w===-1?true:!t("isAutoQuality")&&r.quality===n,v=useRef(null);X(v,()=>o(q(false)));let f=jsx("div",{id:"qualityLevels",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:s.height-200-70},children:i.map((n,w$1)=>jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10 pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${h(w$1-1,n)&&"!pl-cursor-default"}`,onClick:()=>{h(w$1-1,n)||(w(E(n===-1?"auto":`${n}P`)),o(ya({...r,quality:n===-1?-1:w$1-1})),t$1&&t$1("main"));},children:[!!h(w$1-1,n)&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,alt:"",className:t("isTouchScreen")?"pl-brightness-0":"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:n===-1?jsxs("span",{children:[jsx("span",{children:"\u062E\u0648\u062F\u06A9\u0627\u0631 "}),jsx("span",{className:`pl-text-[10px] pl-font-normal ${t("isTouchScreen")?"pl-text-[#737373]":"pl-text-[#C7C7C7]"}`,children:"(\u0628\u0631 \u0627\u0633\u0627\u0633 \u0633\u0631\u0639\u062A \u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0634\u0645\u0627)"})]}):`${n}p`})]},w$1))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:v,children:[jsx(re,{src:a.qualitySetting,alt:"speed-icon",width:20,height:20,onClick:()=>o(q(!p)),onMouseOver:()=>!t("isTouchScreen")&&!t("showQualityLevelsPopover")&&a$2(true),onMouseLeave:()=>!t("isTouchScreen")&&a$2(false),className:"pl-cursor-pointer"}),d&&jsx(a$1,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-black/[75%] ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"pl-right-0 pl-mb-[33px] !pl-rounded-[12px] pl-w-[230px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(q(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?v:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&s.height-(t("isTouchScreenLandscape")?120:75)},children:f})]}):jsx(Fragment,{children:f})})},co=memo(Nl);e();e();var Pl=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i,width:r,height:p})=>jsx("svg",{width:"20",height:"20",fill:"none",onClick:l,viewBox:"0 0 20 20",className:t,onMouseOver:o,style:{width:r,height:p},onMouseLeave:i,xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8.83613 12.7885C9.13211 13.0844 9.51329 13.2249 9.97967 13.21C10.4459 13.195 10.7881 13.0267 11.0061 12.7052L15.5284 6.15396L8.96113 10.6602C8.63433 10.8783 8.4578 11.2135 8.43155 11.6658C8.40544 12.1183 8.5403 12.4926 8.83613 12.7885ZM9.99967 3.75C10.7925 3.75 11.5352 3.85389 12.228 4.06167C12.9209 4.26944 13.59 4.58382 14.2353 5.00479L13.0605 5.76438C12.5862 5.51229 12.0945 5.32188 11.5855 5.19313C11.0763 5.06438 10.5477 5 9.99967 5C8.15245 5 6.57954 5.64931 5.28092 6.94792C3.98231 8.24653 3.33301 9.81944 3.33301 11.6667C3.33301 12.25 3.41287 12.8264 3.57259 13.3958C3.73231 13.9653 3.95801 14.5 4.24967 15H15.7497C16.0691 14.4722 16.3018 13.9236 16.4476 13.3542C16.5934 12.7847 16.6663 12.1944 16.6663 11.5833C16.6663 11.0833 16.6047 10.5772 16.4813 10.065C16.3579 9.55264 16.1674 9.06625 15.9099 8.60583L16.6695 7.43104C17.0809 8.10521 17.3894 8.77965 17.5951 9.45438C17.8006 10.1291 17.9077 10.8302 17.9163 11.5577C17.9248 12.312 17.8399 13.0249 17.6616 13.6963C17.4831 14.3678 17.2144 15.0246 16.8555 15.6667C16.7454 15.8472 16.5904 15.9896 16.3907 16.0938C16.1909 16.1979 15.9772 16.25 15.7497 16.25H4.24967C4.02745 16.25 3.8178 16.1966 3.62072 16.0898C3.42363 15.9828 3.26467 15.8311 3.14384 15.6346C2.82551 15.079 2.56912 14.4733 2.37467 13.8173C2.18023 13.1613 2.08301 12.4444 2.08301 11.6667C2.08301 10.5781 2.28954 9.55465 2.70259 8.59646C3.11565 7.63826 3.67947 6.79903 4.39405 6.07875C5.10877 5.35847 5.94898 4.79028 6.91467 4.37417C7.88051 3.95806 8.90884 3.75 9.99967 3.75Z",fill:"currentColor"})}),_e=Pl;var Fl=[.5,.75,1,1.25,1.5,1.75,2],$l=({setSection:t$1,showSpeedIcon:l})=>{let o=z(),{videoElementSizeInfo:i,params:r}=A(({videoData:{videoElementSizeInfo:f,params:n}})=>({videoElementSizeInfo:f,params:n}),shallowEqual),{speedPopover:p$1}=A(({popovers:{speedPopover:f}})=>({speedPopover:f}),shallowEqual),{settings:s}=A(({user:{settings:f}})=>({settings:f}),shallowEqual),d=useRef(null),[a$2,h]=useState(false);X(d,()=>o(p(false))),useEffect(()=>{x()&&(x().playbackRate=s.speed);},[]);let v=jsx("div",{id:"speed",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0633\u0631\u0639\u062A"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:i.height-200-70},children:Fl.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${s.speed===f&&" !pl-cursor-default"}`,onClick:s.speed===f?()=>{}:()=>{t("isStaticFormat")||w(D(f)),o(ya({...s,speed:f})),x().playbackRate=f,t$1&&t$1("main"),r.onSpeedChange&&r.onSpeedChange(s.speed,f);},children:[s.speed===f&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("p",{className:`pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px] pl-w-10 pl-text-center`,children:f})]},n))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsx(_e,{width:20,height:20,className:`pl-cursor-pointer size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(p(!p$1)),onMouseOver:()=>!t("isTouchScreen")&&!t("showSpeedPopover")&&h(true),onMouseLeave:()=>!t("isTouchScreen")&&h(false)}),a$2&&jsx(a$1,{title:"\u0633\u0631\u0639\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"} !pl-z-[100000]`,status:p$1,onClose:()=>o(p(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?d:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&i.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},fo=$l;e();var Dl=({setSection:t$1})=>{let l=z(),{subtitles:o,selectedSubtitle:i,videoElementSizeInfo:r}=A(({videoData:{subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}})=>({subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}),shallowEqual);return jsx("div",{id:"subtitles",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0632\u06CC\u0631 \u0646\u0648\u06CC\u0633"})]}),jsxs("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:r.height-200-70},children:[jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer ${!i&&`${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} !pl-cursor-default`}`,onClick:()=>{l(k(void 0)),t$1("main");let p=Object.values(x().textTracks).find(s=>s.mode==="showing");p&&(p.mode="disabled"),l(j("")),w(N("empty"));},children:[!i&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]}),o.map((p,s)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${i&&i.language===p.language&&" !pl-cursor-default"}`,onClick:()=>{l(k(p)),x().textTracks[s].mode="showing",t$1("main"),w(N(p.language));},children:[!!i&&i.language===p.language&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:p.label})]},s))]})]})})},ho=memo(Dl);e();var _l=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M10 2.29395C10.3314 2.29395 10.6 2.56257 10.6 2.89395V17.1052C10.6 17.4366 10.3314 17.7052 10 17.7052C9.66866 17.7052 9.40002 17.4366 9.40002 17.1052V2.89395C9.40002 2.56257 9.66866 2.29395 10 2.29395Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M6.41258 4.95498C6.74396 4.95498 7.01258 5.22361 7.01258 5.55498V14.5565C7.01258 14.8879 6.74396 15.1565 6.41258 15.1565C6.08121 15.1565 5.81258 14.8879 5.81258 14.5565V5.55498C5.81258 5.22361 6.08121 4.95498 6.41258 4.95498Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M13.5858 4.84247C13.9172 4.84247 14.1858 5.1111 14.1858 5.44247V14.444C14.1858 14.7754 13.9172 15.044 13.5858 15.044C13.2545 15.044 12.9858 14.7754 12.9858 14.444V5.44247C12.9858 5.1111 13.2545 4.84247 13.5858 4.84247Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M17.1735 7.60177C17.5048 7.60177 17.7735 7.8704 17.7735 8.20177V11.5709C17.7735 11.9023 17.5048 12.1709 17.1735 12.1709C16.8421 12.1709 16.5735 11.9023 16.5735 11.5709V8.20177C16.5735 7.8704 16.8421 7.60177 17.1735 7.60177Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M2.82656 7.82841C3.15794 7.82841 3.42656 8.09703 3.42656 8.42844V11.7976C3.42656 12.1289 3.15794 12.3976 2.82656 12.3976C2.49519 12.3976 2.22656 12.1289 2.22656 11.7976V8.42844C2.22656 8.09703 2.49519 7.82841 2.82656 7.82841Z"})]}),Oe=_l;e();var Hl=({setSection:t$1,showMultiAudioIcon:l})=>{let o=z(),{multiAudioPopover:i}=A(({popovers:{multiAudioPopover:f}})=>({multiAudioPopover:f}),shallowEqual),[r$1,p]=useState(false),s=useRef(null),{multiAudio:d,selectedAudioId:a$2,videoElementSizeInfo:h}=A(({videoData:{multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}})=>({multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}),shallowEqual);X(s,()=>o(r(false)));let v=jsx("div",{className:`${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:h.height-200-70},children:t("hasMultiAudio")&&d.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${a$2===n&&" !pl-cursor-default"}`,onClick:()=>{o(m(n)),t$1&&t$1("main");},children:[a$2===n&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxs("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:["\u0632\u0628\u0627\u0646 ",f.name]})]},f.id))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:s,children:[jsx(Oe,{className:`pl-size-5 pl-fill-white pl-cursor-pointer ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(r(!i)),onMouseOver:()=>!t("isTouchScreen")&&p(true),onMouseLeave:()=>!t("isTouchScreen")&&p(false)}),r$1&&jsx(a$1,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx(Z,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-black/[75%] !pl-pb-0 ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[200px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(r(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?s:void 0,isHeader:t("isTouchScreen"),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&h.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},So=memo(Hl);e();var jl=({className:t$1,disableTooltip:l,height:o,width:i,normalStyle:r})=>{let[p,s]=useState(false);return A(({videoData:{selectedSubtitle:d,videoElementSizeInfo:a,params:h}})=>({selectedSubtitle:d,videoElementSizeInfo:a,params:h}),shallowEqual),jsxs("div",{onClick:d=>{d.stopPropagation(),b$2();},onDoubleClick:d=>d.stopPropagation(),onMouseOver:l?void 0:()=>!t("isTouchScreen")&&s(true),onMouseLeave:l?void 0:()=>!t("isTouchScreen")&&s(false),className:ea(`pl-relative ${r?"":"pl-rounded-full hover:pl-bg-[#5E5E5E]"} pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-transition-all ${t$1} ${t("hasSubtitles")?"":"pl-pointer-events-none"}`,{desktop:r?void 0:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:r?void 0:"pl-w-[56px] pl-h-[36px]"}),children:[jsx(re,{alt:"subtitle-icon",src:t("hasSubtitles")?t("isSelectedSubtitle")?a.subtitleFill:a.subtitleOutline:a.subtitleDisable,width:i,height:o}),p&&!l&&jsx(a$1,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},pe=jl;var Zl=({width:t$1,height:l,normalStyle:o$1})=>{let i=z();A(({controller:{isFullScreen:k}})=>({isFullScreen:k}),shallowEqual);let{selectedSubtitle:r,multiAudio:p,selectedAudioId:s,subtitles:d,settingPopover:a$2,settings:h,qualityLevels:v}=A(({user:{settings:k},popovers:{settingPopover:c},controller:{qualityLevels:x},videoData:{params:$,subtitles:A,multiAudio:_,selectedSubtitle:Y,selectedAudioId:q}})=>({params:$,settings:k,subtitles:A,multiAudio:_,qualityLevels:x,settingPopover:c,selectedAudioId:q,selectedSubtitle:Y}),shallowEqual),[f,n]=useState("main"),[w,F]=useState(false),L=useRef(null);return X(L,()=>{i(o(false)),setTimeout(()=>{n("main");},500);}),jsxs("div",{className:`pl-inline-flex ${t("isLandscape")&&"pl-relative"}`,ref:L,children:[jsxs("div",{className:ea(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full ${o$1?"":"hover:pl-bg-[#5E5E5E] pl-transition-all"}`,o$1?void 0:{desktop:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:"pl-w-[56px] pl-h-[36px]"}),onDoubleClick:k=>k.preventDefault(),onClick:k=>{k.stopPropagation(),i(o(!a$2));},onMouseOver:()=>!t("isTouchScreen")&&!t("showSettingPopover")&&F(true),onMouseLeave:()=>!t("isTouchScreen")&&F(false),children:[jsx(re,{src:a.settings,alt:"",width:t$1,height:l}),w&&jsx(a$1,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none !pl-bg-white":"!pl-w-[272px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px] !pl-bg-black/[75%]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"} !overflow-auto`,status:a$2,onClose:()=>{i(o(false)),setTimeout(()=>n("main"),500);},type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?L:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),children:jsxs("div",{children:[f==="main"&&jsxs("div",{id:"main",className:"pl-py-2 pl-rounded-[10px] pl-flex pl-flex-col animate__animated animate__fadeIn",children:[!t("isStaticFormat")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("qualityLevels"),children:[jsx(re,{width:20,height:20,className:t("isTouchScreen")?"pl-brightness-[0.3]":"",src:a.qualitySetting,alt:""}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h.quality===-1?"\u062E\u0648\u062F\u06A9\u0627\u0631":`${v.find((k,c)=>c===h.quality)}p`}),jsx(re,{className:t("isTouchScreen")?"pl-brightness-50":"",src:a.chevronLeft,alt:"",width:16,height:16})]}),t("hasSubtitles")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("subtitles"),children:[jsx(pe,{className:`${t("isTouchScreen")?"pl-brightness-[0.3]":""}`,normalStyle:true,width:20,height:20,disableTooltip:true}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:r?!!d&&d.find(k=>k.language===r.language)?.label:"\u062E\u0627\u0645\u0648\u0634"}),jsx(re,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("speed"),children:[jsx(_e,{className:`${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,width:20,height:20}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0633\u0631\u0639\u062A"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h?.speed?h.speed===1?"\u0645\u0639\u0645\u0648\u0644\u06CC":`${h.speed}`:"\u0645\u0639\u0645\u0648\u0644\u06CC"}),jsx(re,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),t("hasMultiAudio")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("multiAudio"),children:[jsx(Oe,{className:`pl-size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:p?.find((k,c)=>c===s)?.name}),jsx(re,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]})]}),f==="qualityLevels"&&jsx(co,{setSection:n}),f==="subtitles"&&jsx(ho,{setSection:n}),f==="speed"&&jsx(fo,{setSection:n}),f==="multiAudio"&&jsx(So,{setSection:n})]})})]})},Be=memo(Zl);e();var Jl=({className:t=""})=>{let{duration:l,currentTime:o}=A(({controller:{duration:p,currentTime:s}})=>({duration:p,currentTime:s}),shallowEqual);A(({videoData:{videoElementSizeInfo:p,params:s}})=>({videoElementSizeInfo:p,params:s}),shallowEqual);let[i,r]=useState(false);return jsx("div",{onDoubleClick:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),r(s=>!s);},className:ea(`pl-cursor-pointer pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group ${t}`,{desktop:"pl-min-w-[34px] pl-h-[34px] pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-min-w-[48px] pl-h-[48px] pl-px-1.5",touch:"pl-min-w-[78px] pl-h-[22px] pl-py-1 pl-px-1.5 pl-bg-[#282828]",touchFullScreen:"pl-min-w-[103px] pl-h-[32px] pl-px-2"}),children:jsx("div",{className:ea("pl-flex pl-gap-0.5 pl-items-center pl-justify-center pl-rounded-full pl-transition-all",{desktop:"pl-h-[26px] pl-min-w-[26px] pl-p-1.5 group-hover:pl-bg-[#5E5E5E]",desktopFullScreen:"pl-h-[36px] pl-min-w-[36px] pl-px-3"}),children:jsxs("p",{className:ea("pl-text-white pl-flex pl-items-center pl-justify-center pl-gap-0.5 ",{desktop:"pl-text-[12px] pl-leading-5 pl-font-bold",desktopFullScreen:"pl-text-base",touch:"pl-font-medium pl-text-[12px] pl-pt-0.5",touchFullScreen:"pl-text-[16px] pl-font-normal pl-pt-1"}),children:[jsx("span",{className:ea("",{touch:"pl-text-[#C4C4C4]"}),children:ia(l||0)}),jsx("span",{children:"/"}),i?jsxs(Fragment,{children:[jsx("span",{children:ia((l||0)-(o||0))}),jsx("span",{className:"pl-mt-0.5",children:"-"})]}):jsx("span",{children:ia(o||0)})]})})})},ko=Jl;var ti=()=>(A(({controller:{isFullScreen:t}})=>({isFullScreen:t}),shallowEqual),A(({videoData:{videoElementSizeInfo:t,params:l,subtitles:o}})=>({videoElementSizeInfo:t,params:l,subtitles:o}),shallowEqual),jsxs("div",{id:"player-controllbar",className:ea("pl-flex pl-justify-between pl-items-center",{desktop:"pl-px-4",desktopFullScreen:"pl-px-6",touch:"pl-px-4 ",touchFullScreen:"pl-px-6 pl-absolute pl-w-full pl-bottom-[51px]"}),children:[jsxs("div",{className:ea("pl-rounded-full pl-flex pl-items-center pl-justify-center ",{desktop:"pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-p-1.5",touch:"pl-bg-[#282828]"}),children:[jsx(c,{width:fa({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24}),height:fa({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24})}),t("showSettingIcon")&&!t("isTouchScreen")&&jsx(Be,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),!t("isTouchScreen")&&jsx(pe,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]}),jsxs("div",{className:"pl-flex pl-items-center pl-gap-4",children:[jsx(ko,{className:"pl-relative z-10"}),!t("isTouchScreen")&&jsxs(Fragment,{children:[!t("isIOS")&&jsx(b,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),jsx(b$1,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]})]})]})),Po=memo(ti);e();var li=()=>{let{subtitleText:t$1}=A(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),shallowEqual);return A(({controller:{isFullScreen:o,activeElements:i}})=>({isFullScreen:o,activeElements:i}),shallowEqual),jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:ea(`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-white pl-font-semibold ${(()=>{let o="";return t("isLock")?o="pl-bottom-[50px]":t("isActiveElements")?t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[64px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[30px]":o="pl-bottom-[60px]":t("isActiveElements")||(t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[20px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[16px]":o="pl-bottom-[60px]"),o})()}`,{desktop:"pl-text-[14px] pl-leading-6",desktopFullScreen:"pl-text-base",touch:"pl-text-[10px] pl-leading-4"}),children:ua(t$1)?.map((o,i)=>{let r=wa(o);if(r)return jsx("p",{className:ea(`pl-mx-auto pl-bg-[#000000]/[70%] ${t("isTouchScreen")&&t("isActiveElements")&&"pl-opacity-50"} pl-text-wrap pl-max-w-full pl-w-max `,{desktop:"pl-px-2 pl-py-1.5",desktopFullScreen:"",touch:"pl-p-1",touchFullScreen:""}),children:r},i)})})},Io=li;var ii=()=>{let{firstPlay:t$1}=A(({controller:{lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}})=>({lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}),shallowEqual);A(({videoData:{subtitles:o,selectedSubtitle:i}})=>({subtitles:o,selectedSubtitle:i}),shallowEqual);let l="";return t("isTouchScreen")?t("isFullScreen")?l="pl-gap-2.5 pl-mb-8":l="pl-gap-3":t("isFullScreen")?l="pl-gap-3 pl-mb-3":l="pl-gap-1.5 pl-mb-1.5",jsx("div",{id:"footer",className:ea("pl-relative pl-rounded-b-[12px] pl-duration-300"),onDoubleClick:o=>t("isActiveElements")&&o.stopPropagation(),onClick:o=>t("isActiveElements")&&o.stopPropagation(),style:{zIndex:3,backgroundBlendMode:"multiply",backgroundSize:"cover",backgroundPosition:"center"},children:jsxs(Fragment,{children:[t("showSubtitle")&&jsx(Io,{}),!t("isLock")&&jsx(Fragment,{children:jsxs("div",{className:`pl-flex pl-flex-col pl-w-full pl-mx-auto animate__animated animate__faster ${l} ${t("isActiveElements")&&!t("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[t("showProgressbar")&&jsx(so,{}),jsx(Po,{})]})})]})})},Lo=ii;e();var pi=Do(()=>import('./staticVideoTag-2YYZBRPY.mjs')),ri=Do(()=>import('./nonStaticVideoTag-J6JNATM6.mjs')),si=()=>jsx(Fragment,{children:t("isStaticFormat")?jsx(pi,{}):jsx(ri,{})}),_o=si;e();var ci=(t,l)=>{let o=z(),{activeElements:i,play:r}=A(({controller:{activeElements:a,play:h}})=>({activeElements:a,play:h}),shallowEqual),p=useRef(null),s=useRef(t),d=useRef(l);useEffect(()=>{s.current=t;},[t]),useEffect(()=>{d.current=l;},[l]),useEffect(()=>{let a=false,h=n=>{let{activeElements:w,isEnded:F}=Aa.getState().controller;F?o(k$1(true)):n.pointerType==="mouse"&&(clearTimeout(p.current),w?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward","backward","forward"].includes(n.target.id)&&(a=true):o(k$1(true)),p.current=setTimeout(()=>{let{settingPopover:L,speedPopover:k,qualityLevelsPopover:c,multiAudioPopover:x}=Aa.getState().popovers,{play:$}=Aa.getState().controller;!L&&!k&&!c&&!x&&$&&a&&o(k$1(false));},a$5));},v=n=>{setTimeout(()=>{let{activeElements:w,isEnded:F,firstPlay:L}=Aa.getState().controller;if(clearTimeout(p.current),F)return o(k$1(true));ha()&&!L&&!s.current&&!d.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward","backward","forward"].includes(n.target.id)||ka(n,"playerElements")?p.current=setTimeout(()=>{let{play:k}=Aa.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Aa.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$5):p.current=setTimeout(()=>{let{play:k}=Aa.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Aa.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$5));},200);},f=()=>{clearTimeout(p.current),p.current=setTimeout(()=>{let{activeElements:n,isEnded:w,play:F}=Aa.getState().controller,{settingPopover:L,speedPopover:k,qualityLevelsPopover:c}=Aa.getState().popovers;w?o(k$1(true)):!L&&!k&&!c&&n&&!w&&F&&o(k$1(false));},a$5);};return document.getElementById("video-area").addEventListener("touchstart",v),document.getElementById("video-area").addEventListener("touchmove",f),document.getElementById("video-area").addEventListener("pointermove",h),()=>{let n=document.getElementById("video-area");n&&(n.removeEventListener("touchstart",v),n.removeEventListener("touchmove",f),n.removeEventListener("pointermove",h));}},[i,t,l]),useEffect(()=>{let a;return r?a=setTimeout(()=>o(k$1(false)),a$5):o(k$1(true)),()=>{a&&clearTimeout(a);}},[r]);},zo=ci;e();var di=()=>{let{firstPlay:t,isFullScreen:l}=A(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),shallowEqual);useEffect(()=>{if(x()){let o,i=()=>{o=setTimeout(()=>{ca();},ha()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[t,l,x()]);},Oo=di;e();var fi=({className:t,onClick:l})=>jsxs("svg",{className:t,onClick:o=>{o.stopPropagation(),l?.();},width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{"clip-path":"url(#clip0_372_39317)",children:jsx("path",{d:"M10.649 9.01462L17.658 2.00555C18.1141 1.54963 18.1141 0.812452 17.658 0.356588C17.2021 -0.0993313 16.4649 -0.0993313 16.009 0.356588L8.99992 7.3656L1.99107 0.356588C1.53493 -0.0993313 0.798022 -0.0993313 0.342103 0.356588C-0.114034 0.812507 -0.114034 1.54963 0.342103 2.00555L7.3509 9.01462L0.342158 16.0236C-0.11398 16.4796 -0.11398 17.2167 0.342158 17.6726C0.450304 17.7811 0.578815 17.8671 0.720306 17.9257C0.861797 17.9843 1.01348 18.0144 1.16664 18.0143C1.46512 18.0143 1.76371 17.9 1.99112 17.6726L8.99992 10.6636L16.009 17.6726C16.1172 17.781 16.2457 17.867 16.3872 17.9257C16.5287 17.9843 16.6804 18.0144 16.8335 18.0143C17.132 18.0143 17.4306 17.9 17.658 17.6726C18.1141 17.2167 18.1141 16.4796 17.658 16.0236L10.649 9.01462Z",fill:"white"})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_372_39317",children:jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),Bo=fi;var qo=Do(()=>import('./backwardForward-ZUVULGGJ.mjs')),vi=()=>{let[t$1,l]=useState(false),[o,i]=useState(false),r=z();A(({videoData:{details:a,params:h,videoElementSizeInfo:v}})=>({details:a,params:h,videoElementSizeInfo:v}),shallowEqual);let{firstMute:p,firstPlay:s,activeElements:d}=A(({controller:{firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}})=>({firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}),shallowEqual);return a$3(),Oo(),zo(t$1,o),jsxs("div",{id:"video-area",style:{zIndex:t("isFullScreen")?1e3:"unset"},onClick:a=>{if(!(t$1||o||document.getElementById("popover-content"))){if(p){Y(50),X$1();return}t("isTouchScreen")?s?V(a):r(k$1(!d)):V(a);}},onDoubleClick:a=>da(a),className:ea(`pl-bg-contain pl-bg-center pl-w-full pl-relative pl-bg-no-repeat pl-h-full pl-max-h-screen pl-aspect-video pl-flex pl-items-center ${!t("isActiveElements")&&"pl-cursor-none"}`,{desktop:"pl-rounded-[12px] pl-overflow-hidden",touchFullScreen:"pl-fixed pl-w-screen dvh",desktopFullScreen:"pl-fixed pl-w-screen dvh"}),children:[t("isTouchScreen")&&jsx("div",{id:"video-opacity",style:{zIndex:0},className:`pl-absolute pl-bg-black/20 pl-size-full pl-aspect-video pl-transition-all pl-duration-500 ${t("isActiveElements")?"pl-opacity-100 pl-visible":"pl-opacity-0 pl-invisible"} `}),t("showSoundVolumeAlert")&&jsx(c$1,{className:ea("",{touch:"pl-absolute pl-z-10 pl-top-[12px] pl-left-[16px]",touchFullScreen:"pl-top-[16px] pl-left-[24px]"})}),!s&&t("isActiveElements")&&jsxs("div",{className:ea("pl-absolute pl-z-10 pl-flex pl-items-center pl-justify-center pl-gap-4",{touch:"pl-top-3 pl-right-4",touchFullScreen:"pl-top-5 pl-right-6"}),children:[t("isTouchScreen")&&t("isFullScreen")&&jsx(Bo,{onClick:_,className:"pl-text-white pl-size-[18px]"}),t("showSettingIcon")&&t("isTouchScreen")&&jsx(Be,{normalStyle:true,width:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})}),t("isTouchScreen")&&jsx(pe,{normalStyle:true,width:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})})]}),t("showBackwardForward")&&jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-overflow-hidden pl-flex pl-items-center",style:{zIndex:o||t$1?1002:1},children:[jsx(qo,{type:t("isTouchScreen")?"touchForward":"forward",isRightForward:t$1,setIsRightForward:l}),jsx(qo,{type:t("isTouchScreen")?"touchBackward":"backward",isLeftBackward:o,setIsLeftBackward:i})]}),jsx(_o,{}),jsx("div",{id:"playerElements",className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full",children:jsxs("div",{className:"pl-flex pl-flex-col pl-justify-between pl-w-full pl-h-full",children:[t("showHeader")&&jsx(zt,{}),t("showMain")&&jsx(Ht,{}),t("showFooter")&&jsx(Lo,{})]})})]})},Ya=vi;
|
|
8
|
-
export{Ya as a};//# sourceMappingURL=chunk-
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
`,style:{maxHeight:h?"unset":A$1||x||"",zIndex:1004,...s},ref:L,id:"popover-content",children:jsxs(Fragment,{children:[v&&jsx("div",{onTouchMove:f?st:()=>{},onTouchEndCapture:f?be:()=>{},className:"pl-py-4",children:f&&jsx("div",{className:"pl-absolute pl-top-[10px] pl-right-[50%] pl-mr-[-25px] pl-text-center pl-w-8 pl-h-1 pl-rounded-[20px] pl-bg-gray-highLight"})}),jsx("div",{id:"popover-content",className:`pl-overflow-y-auto pl-h-full pl-w-full ${!w&&"no-scrollbar"}`,onTouchMove:B=>B.stopPropagation(),children:t})]})})})]});return jsx(Fragment,{children:k&&jsx(Fragment,{children:i==="modal"?createPortal(jsx("div",{style:{fontFamily:"IRANSansXFaNum",direction:"rtl",overflowX:"hidden"},children:J}),document.getElementById("dialog-react-root-videoPlayer")):jsx("div",{id:"player-popover",children:J})})})});ao.displayName="popover";var Z=ao;e();var Nl=({setSection:t$1,showQualityLevelsIcon:l})=>{let o=z(),{qualityLevels:i}=A(({controller:{qualityLevels:n,manualQuality:w,autoQuality:F}})=>({qualityLevels:n,manualQuality:w,autoQuality:F}),shallowEqual),{settings:r}=A(({user:{settings:n}})=>({settings:n}),shallowEqual),{qualityLevelsPopover:p}=A(({popovers:{qualityLevelsPopover:n}})=>({qualityLevelsPopover:n}),shallowEqual),{videoElementSizeInfo:s}=A(({videoData:{params:n,videoElementSizeInfo:w}})=>({params:n,videoElementSizeInfo:w}),shallowEqual),[d,a$2]=useState(false);i=[-1,...i];let h=(n,w)=>t("isAutoQuality")&&w===-1?true:!t("isAutoQuality")&&r.quality===n,v=useRef(null);X(v,()=>o(q(false)));let f=jsx("div",{id:"qualityLevels",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:s.height-200-70},children:i.map((n,w$1)=>jsxs("li",{className:`pl-flex pl-items-center pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10 pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${h(w$1-1,n)&&"!pl-cursor-default"}`,onClick:()=>{h(w$1-1,n)||(w(E(n===-1?"auto":`${n}P`)),o(ya({...r,quality:n===-1?-1:w$1-1})),t$1&&t$1("main"));},children:[!!h(w$1-1,n)&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,alt:"",className:t("isTouchScreen")?"pl-brightness-0":"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:n===-1?jsxs("span",{children:[jsx("span",{children:"\u062E\u0648\u062F\u06A9\u0627\u0631 "}),jsx("span",{className:`pl-text-[10px] pl-font-normal ${t("isTouchScreen")?"pl-text-[#737373]":"pl-text-[#C7C7C7]"}`,children:"(\u0628\u0631 \u0627\u0633\u0627\u0633 \u0633\u0631\u0639\u062A \u0627\u06CC\u0646\u062A\u0631\u0646\u062A \u0634\u0645\u0627)"})]}):`${n}p`})]},w$1))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:v,children:[jsx(re,{src:a.qualitySetting,alt:"speed-icon",width:20,height:20,onClick:()=>o(q(!p)),onMouseOver:()=>!t("isTouchScreen")&&!t("showQualityLevelsPopover")&&a$2(true),onMouseLeave:()=>!t("isTouchScreen")&&a$2(false),className:"pl-cursor-pointer"}),d&&jsx(a$1,{title:"\u06A9\u06CC\u0641\u06CC\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-black/[75%] ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"pl-right-0 pl-mb-[33px] !pl-rounded-[12px] pl-w-[230px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:pl-max-w-[440px]"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:p,onClose:()=>o(q(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?v:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&s.height-(t("isTouchScreenLandscape")?120:75)},children:f})]}):jsx(Fragment,{children:f})})},co=memo(Nl);e();e();var Pl=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i,width:r,height:p})=>jsx("svg",{width:"20",height:"20",fill:"none",onClick:l,viewBox:"0 0 20 20",className:t,onMouseOver:o,style:{width:r,height:p},onMouseLeave:i,xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8.83613 12.7885C9.13211 13.0844 9.51329 13.2249 9.97967 13.21C10.4459 13.195 10.7881 13.0267 11.0061 12.7052L15.5284 6.15396L8.96113 10.6602C8.63433 10.8783 8.4578 11.2135 8.43155 11.6658C8.40544 12.1183 8.5403 12.4926 8.83613 12.7885ZM9.99967 3.75C10.7925 3.75 11.5352 3.85389 12.228 4.06167C12.9209 4.26944 13.59 4.58382 14.2353 5.00479L13.0605 5.76438C12.5862 5.51229 12.0945 5.32188 11.5855 5.19313C11.0763 5.06438 10.5477 5 9.99967 5C8.15245 5 6.57954 5.64931 5.28092 6.94792C3.98231 8.24653 3.33301 9.81944 3.33301 11.6667C3.33301 12.25 3.41287 12.8264 3.57259 13.3958C3.73231 13.9653 3.95801 14.5 4.24967 15H15.7497C16.0691 14.4722 16.3018 13.9236 16.4476 13.3542C16.5934 12.7847 16.6663 12.1944 16.6663 11.5833C16.6663 11.0833 16.6047 10.5772 16.4813 10.065C16.3579 9.55264 16.1674 9.06625 15.9099 8.60583L16.6695 7.43104C17.0809 8.10521 17.3894 8.77965 17.5951 9.45438C17.8006 10.1291 17.9077 10.8302 17.9163 11.5577C17.9248 12.312 17.8399 13.0249 17.6616 13.6963C17.4831 14.3678 17.2144 15.0246 16.8555 15.6667C16.7454 15.8472 16.5904 15.9896 16.3907 16.0938C16.1909 16.1979 15.9772 16.25 15.7497 16.25H4.24967C4.02745 16.25 3.8178 16.1966 3.62072 16.0898C3.42363 15.9828 3.26467 15.8311 3.14384 15.6346C2.82551 15.079 2.56912 14.4733 2.37467 13.8173C2.18023 13.1613 2.08301 12.4444 2.08301 11.6667C2.08301 10.5781 2.28954 9.55465 2.70259 8.59646C3.11565 7.63826 3.67947 6.79903 4.39405 6.07875C5.10877 5.35847 5.94898 4.79028 6.91467 4.37417C7.88051 3.95806 8.90884 3.75 9.99967 3.75Z",fill:"currentColor"})}),_e=Pl;var Fl=[.5,.75,1,1.25,1.5,1.75,2],$l=({setSection:t$1,showSpeedIcon:l})=>{let o=z(),{videoElementSizeInfo:i,params:r}=A(({videoData:{videoElementSizeInfo:f,params:n}})=>({videoElementSizeInfo:f,params:n}),shallowEqual),{speedPopover:p$1}=A(({popovers:{speedPopover:f}})=>({speedPopover:f}),shallowEqual),{settings:s}=A(({user:{settings:f}})=>({settings:f}),shallowEqual),d=useRef(null),[a$2,h]=useState(false);X(d,()=>o(p(false))),useEffect(()=>{x()&&(x().playbackRate=s.speed);},[]);let v=jsx("div",{id:"speed",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0633\u0631\u0639\u062A"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:i.height-200-70},children:Fl.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${s.speed===f&&" !pl-cursor-default"}`,onClick:s.speed===f?()=>{}:()=>{t("isStaticFormat")||w(D(f)),o(ya({...s,speed:f})),x().playbackRate=f,t$1&&t$1("main"),r.onSpeedChange&&r.onSpeedChange(s.speed,f);},children:[s.speed===f&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("p",{className:`pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px] pl-w-10 pl-text-center`,children:f})]},n))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:d,children:[jsx(_e,{width:20,height:20,className:`pl-cursor-pointer size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(p(!p$1)),onMouseOver:()=>!t("isTouchScreen")&&!t("showSpeedPopover")&&h(true),onMouseLeave:()=>!t("isTouchScreen")&&h(false)}),a$2&&jsx(a$1,{title:"\u0633\u0631\u0639\u062A"}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden !pl-bg-white ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[230px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"} !pl-z-[100000]`,status:p$1,onClose:()=>o(p(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?d:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&i.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},fo=$l;e();var Dl=({setSection:t$1})=>{let l=z(),{subtitles:o,selectedSubtitle:i,videoElementSizeInfo:r}=A(({videoData:{subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}})=>({subtitles:p,selectedSubtitle:s,videoElementSizeInfo:d}),shallowEqual);return jsx("div",{id:"subtitles",className:`animate__animated animate__fadeIn ${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-h-10`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0632\u06CC\u0631 \u0646\u0648\u06CC\u0633"})]}),jsxs("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:r.height-200-70},children:[jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer ${!i&&`${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} !pl-cursor-default`}`,onClick:()=>{l(k(void 0)),t$1("main");let p=Object.values(x().textTracks).find(s=>s.mode==="showing");p&&(p.mode="disabled"),l(j("")),w(N("empty"));},children:[!i&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u0628\u062F\u0648\u0646 \u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]}),o.map((p,s)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${i&&i.language===p.language&&" !pl-cursor-default"}`,onClick:()=>{l(k(p)),x().textTracks[s].mode="showing",t$1("main"),w(N(p.language));},children:[!!i&&i.language===p.language&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:p.label})]},s))]})]})})},ho=memo(Dl);e();var _l=({className:t,onClick:l,onMouseOver:o,onMouseLeave:i})=>jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,onClick:l,onMouseOver:o,onMouseLeave:i,children:[jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M10 2.29395C10.3314 2.29395 10.6 2.56257 10.6 2.89395V17.1052C10.6 17.4366 10.3314 17.7052 10 17.7052C9.66866 17.7052 9.40002 17.4366 9.40002 17.1052V2.89395C9.40002 2.56257 9.66866 2.29395 10 2.29395Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M6.41258 4.95498C6.74396 4.95498 7.01258 5.22361 7.01258 5.55498V14.5565C7.01258 14.8879 6.74396 15.1565 6.41258 15.1565C6.08121 15.1565 5.81258 14.8879 5.81258 14.5565V5.55498C5.81258 5.22361 6.08121 4.95498 6.41258 4.95498Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M13.5858 4.84247C13.9172 4.84247 14.1858 5.1111 14.1858 5.44247V14.444C14.1858 14.7754 13.9172 15.044 13.5858 15.044C13.2545 15.044 12.9858 14.7754 12.9858 14.444V5.44247C12.9858 5.1111 13.2545 4.84247 13.5858 4.84247Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M17.1735 7.60177C17.5048 7.60177 17.7735 7.8704 17.7735 8.20177V11.5709C17.7735 11.9023 17.5048 12.1709 17.1735 12.1709C16.8421 12.1709 16.5735 11.9023 16.5735 11.5709V8.20177C16.5735 7.8704 16.8421 7.60177 17.1735 7.60177Z"}),jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"currentColor",d:"M2.82656 7.82841C3.15794 7.82841 3.42656 8.09703 3.42656 8.42844V11.7976C3.42656 12.1289 3.15794 12.3976 2.82656 12.3976C2.49519 12.3976 2.22656 12.1289 2.22656 11.7976V8.42844C2.22656 8.09703 2.49519 7.82841 2.82656 7.82841Z"})]}),Oe=_l;e();var Hl=({setSection:t$1,showMultiAudioIcon:l})=>{let o=z(),{multiAudioPopover:i}=A(({popovers:{multiAudioPopover:f}})=>({multiAudioPopover:f}),shallowEqual),[r$1,p]=useState(false),s=useRef(null),{multiAudio:d,selectedAudioId:a$2,videoElementSizeInfo:h}=A(({videoData:{multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}})=>({multiAudio:f,selectedAudioId:n,videoElementSizeInfo:w}),shallowEqual);X(s,()=>o(r(false)));let v=jsx("div",{className:`${t("isTouchScreen")?"pl-pb-2":"pl-py-2"}`,children:jsxs("ul",{className:"pl-flex pl-flex-col pl-gap-1",children:[jsxs("li",{className:`pl-flex pl-items-center pl-border-b ${t("isTouchScreen")?"pl-border-b-[#D9D9D9]":"pl-border-b-[#4A4A4A]"} pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer`,onClick:()=>t$1&&t$1("main"),children:[jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.chevronRight,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:16,height:16})}),jsx("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"})]}),jsx("div",{className:"pl-overflow-y-auto no-scrollbar",style:{maxHeight:t("isTouchScreenPortrait")?void 0:h.height-200-70},children:t("hasMultiAudio")&&d.map((f,n)=>jsxs("li",{className:`pl-flex pl-items-center pl-h-10 pl-ps-[24.2px] pl-leading-[28px] pl-text-[12px] pl-font-medium pl-relative pl-cursor-pointer pl-transition-all ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} ${a$2===n&&" !pl-cursor-default"}`,onClick:()=>{o(m(n)),t$1&&t$1("main");},children:[a$2===n&&jsx("div",{className:"pl-absolute pl-right-[10px] pl-top-1/2 -pl-translate-y-1/2 pl-flex pl-items-center pl-justify-center",children:jsx(re,{src:a.tick,className:t("isTouchScreen")?"pl-brightness-0":"",alt:"",width:20,height:20})}),jsxs("span",{className:`pl-w-full pl-text-[12px] ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"} pl-pr-[10px]`,children:["\u0632\u0628\u0627\u0646 ",f.name]})]},f.id))})]})});return jsx(Fragment,{children:l?jsxs("div",{className:"pl-relative pl-flex pl-items-center",ref:s,children:[jsx(Oe,{className:`pl-size-5 pl-fill-white pl-cursor-pointer ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,onClick:()=>o(r(!i)),onMouseOver:()=>!t("isTouchScreen")&&p(true),onMouseLeave:()=>!t("isTouchScreen")&&p(false)}),r$1&&jsx(a$1,{title:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx(Z,{classNames:`!pl-px-0 pl-overflow-hidden !pl-bg-black/[75%] !pl-pb-0 ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none":"!pl-w-[200px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[440px]"}`,status:i,onClose:()=>o(r(false)),type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?s:void 0,isHeader:t("isTouchScreen"),isHasCatchUpLineOnTop:t("isTouchScreen"),styles:{maxHeight:!t("isTouchScreenPortrait")&&h.height-(t("isTouchScreenLandscape")?120:75)},children:v})]}):jsx(Fragment,{children:v})})},So=memo(Hl);e();var jl=({className:t$1,disableTooltip:l,height:o,width:i,normalStyle:r})=>{let[p,s]=useState(false);return A(({videoData:{selectedSubtitle:d,videoElementSizeInfo:a,params:h}})=>({selectedSubtitle:d,videoElementSizeInfo:a,params:h}),shallowEqual),jsxs("div",{onClick:d=>{d.stopPropagation(),b$2();},onDoubleClick:d=>d.stopPropagation(),onMouseOver:l?void 0:()=>!t("isTouchScreen")&&s(true),onMouseLeave:l?void 0:()=>!t("isTouchScreen")&&s(false),className:ea(`pl-relative ${r?"":"pl-rounded-full hover:pl-bg-[#5E5E5E]"} pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-transition-all ${t$1} ${t("hasSubtitles")?"":"pl-pointer-events-none"}`,{desktop:r?void 0:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:r?void 0:"pl-w-[56px] pl-h-[36px]"}),children:[jsx(re,{alt:"subtitle-icon",src:t("hasSubtitles")?t("isSelectedSubtitle")?a.subtitleFill:a.subtitleOutline:a.subtitleDisable,width:i,height:o}),p&&!l&&jsx(a$1,{title:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"})]})},pe=jl;var Zl=({width:t$1,height:l,normalStyle:o$1})=>{let i=z();A(({controller:{isFullScreen:k}})=>({isFullScreen:k}),shallowEqual);let{selectedSubtitle:r,multiAudio:p,selectedAudioId:s,subtitles:d,settingPopover:a$2,settings:h,qualityLevels:v}=A(({user:{settings:k},popovers:{settingPopover:c},controller:{qualityLevels:x},videoData:{params:$,subtitles:A,multiAudio:_,selectedSubtitle:Y,selectedAudioId:q}})=>({params:$,settings:k,subtitles:A,multiAudio:_,qualityLevels:x,settingPopover:c,selectedAudioId:q,selectedSubtitle:Y}),shallowEqual),[f,n]=useState("main"),[w,F]=useState(false),L=useRef(null);return X(L,()=>{i(o(false)),setTimeout(()=>{n("main");},500);}),jsxs("div",{className:`pl-inline-flex ${t("isLandscape")&&"pl-relative"}`,ref:L,children:[jsxs("div",{className:ea(`pl-relative pl-cursor-pointer pl-flex pl-items-center pl-justify-center pl-rounded-full ${o$1?"":"hover:pl-bg-[#5E5E5E] pl-transition-all"}`,o$1?void 0:{desktop:"pl-w-[40px] pl-h-[25px]",desktopFullScreen:"pl-w-[56px] pl-h-[36px]"}),onDoubleClick:k=>k.preventDefault(),onClick:k=>{k.stopPropagation(),i(o(!a$2));},onMouseOver:()=>!t("isTouchScreen")&&!t("showSettingPopover")&&F(true),onMouseLeave:()=>!t("isTouchScreen")&&F(false),children:[jsx(re,{src:a.settings,alt:"",width:t$1,height:l}),w&&jsx(a$1,{title:"\u062A\u0646\u0638\u06CC\u0645\u0627\u062A "})]}),jsx(Z,{classNames:`!pl-p-0 pl-overflow-hidden ${t("isTouchScreen")?"!pl-fixed !pl-bottom-0 !pl-rounded-t-[20px] pl-rounded-b-none !pl-bg-white":"!pl-w-[272px] pl-right-0 pl-mb-[33px] !pl-rounded-[12px] !pl-bg-black/[75%]"} ${t("isTouchScreenPortrait")&&"!pl-w-screen tablet:!pl-max-w-[440px] tablet:!pl-mx-auto"} ${t("isTouchScreenLandscape")&&"pl-w-full pl-max-w-[285px]"} !overflow-auto`,status:a$2,onClose:()=>{i(o(false)),setTimeout(()=>n("main"),500);},type:t("isTouchScreen")?"modal":"popover",isBlurBackground:t("isTouchScreen"),ref:t("isTouchScreen")?L:void 0,isHeader:t("isTouchScreen"),customHeader:jsx(Fragment,{}),isHasCatchUpLineOnTop:t("isTouchScreen"),children:jsxs("div",{children:[f==="main"&&jsxs("div",{id:"main",className:"pl-py-2 pl-rounded-[10px] pl-flex pl-flex-col animate__animated animate__fadeIn",children:[!t("isStaticFormat")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("qualityLevels"),children:[jsx(re,{width:20,height:20,className:t("isTouchScreen")?"pl-brightness-[0.3]":"",src:a.qualitySetting,alt:""}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u06A9\u06CC\u0641\u06CC\u062A \u067E\u062E\u0634"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h.quality===-1?"\u062E\u0648\u062F\u06A9\u0627\u0631":`${v.find((k,c)=>c===h.quality)}p`}),jsx(re,{className:t("isTouchScreen")?"pl-brightness-50":"",src:a.chevronLeft,alt:"",width:16,height:16})]}),t("hasSubtitles")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("subtitles"),children:[jsx(pe,{className:`${t("isTouchScreen")?"pl-brightness-[0.3]":""}`,normalStyle:true,width:20,height:20,disableTooltip:true}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0632\u06CC\u0631\u0646\u0648\u06CC\u0633"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:r?!!d&&d.find(k=>k.language===r.language)?.label:"\u062E\u0627\u0645\u0648\u0634"}),jsx(re,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("speed"),children:[jsx(_e,{className:`${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`,width:20,height:20}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u0633\u0631\u0639\u062A"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:h?.speed?h.speed===1?"\u0645\u0639\u0645\u0648\u0644\u06CC":`${h.speed}`:"\u0645\u0639\u0645\u0648\u0644\u06CC"}),jsx(re,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]}),t("hasMultiAudio")&&jsxs("div",{className:`pl-flex pl-items-center pl-gap-2 pl-cursor-pointer pl-h-10 pl-px-2 ${t("isTouchScreen")?"":"hover:pl-bg-[#4A4A4A]"} pl-transition-all`,onClick:()=>n("multiAudio"),children:[jsx(Oe,{className:`pl-size-5 ${t("isTouchScreen")?"pl-text-[#4A4A4A]":"pl-text-white"}`}),jsx("p",{className:`pl-ml-auto pl-text-[12px] pl-font-medium ${t("isTouchScreen")?"pl-text-[#212121]":"pl-text-white"}`,children:"\u062A\u063A\u06CC\u06CC\u0631 \u0635\u062F\u0627"}),jsx("span",{className:`pl-ml-1 pl-leading-6 pl-font-normal ${t("isTouchScreen")?"pl-text-[#212121] pl-text-[11px]":"pl-text-white pl-text-[12px]"}`,children:p?.find((k,c)=>c===s)?.name}),jsx(re,{src:a.chevronLeft,className:t("isTouchScreen")?"pl-brightness-50":"",alt:"",width:16,height:16})]})]}),f==="qualityLevels"&&jsx(co,{setSection:n}),f==="subtitles"&&jsx(ho,{setSection:n}),f==="speed"&&jsx(fo,{setSection:n}),f==="multiAudio"&&jsx(So,{setSection:n})]})})]})},Be=memo(Zl);e();var Jl=({className:t=""})=>{let{duration:l,currentTime:o}=A(({controller:{duration:p,currentTime:s}})=>({duration:p,currentTime:s}),shallowEqual);A(({videoData:{videoElementSizeInfo:p,params:s}})=>({videoElementSizeInfo:p,params:s}),shallowEqual);let[i,r]=useState(false);return jsx("div",{onDoubleClick:p=>{p.preventDefault(),p.stopPropagation();},onClick:p=>{p.preventDefault(),p.stopPropagation(),r(s=>!s);},className:ea(`pl-cursor-pointer pl-rounded-full pl-inline-flex pl-items-center pl-justify-center pl-group ${t}`,{desktop:"pl-min-w-[34px] pl-h-[34px] pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-min-w-[48px] pl-h-[48px] pl-px-1.5",touch:"pl-min-w-[78px] pl-h-[22px] pl-py-1 pl-px-1.5 pl-bg-[#282828]",touchFullScreen:"pl-min-w-[103px] pl-h-[32px] pl-px-2"}),children:jsx("div",{className:ea("pl-flex pl-gap-0.5 pl-items-center pl-justify-center pl-rounded-full pl-transition-all",{desktop:"pl-h-[26px] pl-min-w-[26px] pl-p-1.5 group-hover:pl-bg-[#5E5E5E]",desktopFullScreen:"pl-h-[36px] pl-min-w-[36px] pl-px-3"}),children:jsxs("p",{className:ea("pl-text-white pl-flex pl-items-center pl-justify-center pl-gap-0.5 ",{desktop:"pl-text-[12px] pl-leading-5 pl-font-bold",desktopFullScreen:"pl-text-base",touch:"pl-font-medium pl-text-[12px] pl-pt-0.5",touchFullScreen:"pl-text-[16px] pl-font-normal pl-pt-1"}),children:[jsx("span",{className:ea("",{touch:"pl-text-[#C4C4C4]"}),children:ia(l||0)}),jsx("span",{children:"/"}),i?jsxs(Fragment,{children:[jsx("span",{children:ia((l||0)-(o||0))}),jsx("span",{className:"pl-mt-0.5",children:"-"})]}):jsx("span",{children:ia(o||0)})]})})})},ko=Jl;var ti=()=>(A(({controller:{isFullScreen:t}})=>({isFullScreen:t}),shallowEqual),A(({videoData:{videoElementSizeInfo:t,params:l,subtitles:o}})=>({videoElementSizeInfo:t,params:l,subtitles:o}),shallowEqual),jsxs("div",{id:"player-controllbar",className:ea("pl-flex pl-justify-between pl-items-center",{desktop:"pl-px-4",desktopFullScreen:"pl-px-6",touch:"pl-px-4 ",touchFullScreen:"pl-px-6 pl-absolute pl-w-full pl-bottom-[51px]"}),children:[jsxs("div",{className:ea("pl-rounded-full pl-flex pl-items-center pl-justify-center ",{desktop:"pl-p-1 pl-bg-black/75",desktopFullScreen:"pl-p-1.5",touch:"pl-bg-[#282828]"}),children:[jsx(c,{width:fa({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24}),height:fa({desktop:16,desktopFullScreen:24,touch:16,touchFullScreen:24})}),t("showSettingIcon")&&!t("isTouchScreen")&&jsx(Be,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),!t("isTouchScreen")&&jsx(pe,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]}),jsxs("div",{className:"pl-flex pl-items-center pl-gap-4",children:[jsx(ko,{className:"pl-relative z-10"}),!t("isTouchScreen")&&jsxs(Fragment,{children:[!t("isIOS")&&jsx(b,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16}),jsx(b$1,{width:t("isFullScreen")?24:16,height:t("isFullScreen")?24:16})]})]})]})),Po=memo(ti);e();var li=()=>{let{subtitleText:t$1}=A(({videoData:{subtitleText:o,selectedSubtitle:i}})=>({subtitleText:o,selectedSubtitle:i}),shallowEqual);return A(({controller:{isFullScreen:o,activeElements:i}})=>({isFullScreen:o,activeElements:i}),shallowEqual),jsx("div",{id:"subtitle-id",style:{direction:"ltr"},className:ea(`pl-z-0 pl-absolute pl-w-full pl-text-center pl-text-white pl-font-semibold ${(()=>{let o="";return t("isLock")?o="pl-bottom-[50px]":t("isActiveElements")?t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[64px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[30px]":o="pl-bottom-[60px]":t("isActiveElements")||(t("isTouchScreen")&&t("isFullScreen")?o="pl-bottom-[20px]":t("isFullScreen")?o="pl-bottom-[130px]":t("isTouchScreen")?o="pl-bottom-[16px]":o="pl-bottom-[60px]"),o})()}`,{desktop:"pl-text-[14px] pl-leading-6",desktopFullScreen:"pl-text-base",touch:"pl-text-[10px] pl-leading-4"}),children:ua(t$1)?.map((o,i)=>{let r=wa(o);if(r)return jsx("p",{className:ea(`pl-mx-auto pl-bg-[#000000]/[70%] ${t("isTouchScreen")&&t("isActiveElements")&&"pl-opacity-50"} pl-text-wrap pl-max-w-full pl-w-max `,{desktop:"pl-px-2 pl-py-1.5",desktopFullScreen:"",touch:"pl-p-1",touchFullScreen:""}),children:r},i)})})},Io=li;var ii=()=>{let{firstPlay:t$1}=A(({controller:{lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}})=>({lock:o,isFullScreen:i,isLoading:r,activeElements:p,firstPlay:s}),shallowEqual);A(({videoData:{subtitles:o,selectedSubtitle:i}})=>({subtitles:o,selectedSubtitle:i}),shallowEqual);let l="";return t("isTouchScreen")?t("isFullScreen")?l="pl-gap-2.5 pl-mb-8":l="pl-gap-3":t("isFullScreen")?l="pl-gap-3 pl-mb-3":l="pl-gap-1.5 pl-mb-1.5",jsx("div",{id:"footer",className:ea("pl-relative pl-rounded-b-[12px] pl-duration-300"),onDoubleClick:o=>t("isActiveElements")&&o.stopPropagation(),onClick:o=>t("isActiveElements")&&o.stopPropagation(),style:{zIndex:3,backgroundBlendMode:"multiply",backgroundSize:"cover",backgroundPosition:"center"},children:jsxs(Fragment,{children:[t("showSubtitle")&&jsx(Io,{}),!t("isLock")&&jsx(Fragment,{children:jsxs("div",{className:`pl-flex pl-flex-col pl-w-full pl-mx-auto animate__animated animate__faster ${l} ${t("isActiveElements")&&!t("isLoading")?"animate__fadeIn pl-pointer-events-auto":"animate__fadeOut pl-pointer-events-none"}`,children:[t("showProgressbar")&&jsx(so,{}),jsx(Po,{})]})})]})})},Lo=ii;e();var pi=Do(()=>import('./staticVideoTag-JOPHGL3R.mjs')),ri=Do(()=>import('./nonStaticVideoTag-P47FI6UV.mjs')),si=()=>jsx(Fragment,{children:t("isStaticFormat")?jsx(pi,{}):jsx(ri,{})}),_o=si;e();var ci=(t,l)=>{let o=z(),{activeElements:i,play:r}=A(({controller:{activeElements:a,play:h}})=>({activeElements:a,play:h}),shallowEqual),p=useRef(null),s=useRef(t),d=useRef(l);useEffect(()=>{s.current=t;},[t]),useEffect(()=>{d.current=l;},[l]),useEffect(()=>{let a=false,h=n=>{let{activeElements:w,isEnded:F}=Aa.getState().controller;F?o(k$1(true)):n.pointerType==="mouse"&&(clearTimeout(p.current),w?["player-tag","main-content","player-controllbar","video-opacity","playerElements","touchBackward","touchForward","backward","forward"].includes(n.target.id)&&(a=true):o(k$1(true)),p.current=setTimeout(()=>{let{settingPopover:L,speedPopover:k,qualityLevelsPopover:c,multiAudioPopover:x}=Aa.getState().popovers,{play:$}=Aa.getState().controller;!L&&!k&&!c&&!x&&$&&a&&o(k$1(false));},a$5));},v=n=>{setTimeout(()=>{let{activeElements:w,isEnded:F,firstPlay:L}=Aa.getState().controller;if(clearTimeout(p.current),F)return o(k$1(true));ha()&&!L&&!s.current&&!d.current&&(["player-tag","main-content","video-opacity","touchBackward","touchForward","backward","forward"].includes(n.target.id)||ka(n,"playerElements")?p.current=setTimeout(()=>{let{play:k}=Aa.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Aa.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$5):p.current=setTimeout(()=>{let{play:k}=Aa.getState().controller,{settingPopover:c,speedPopover:x,qualityLevelsPopover:$,multiAudioPopover:A}=Aa.getState().popovers;!c&&!x&&!$&&!A&&k&&o(k$1(false));},a$5));},200);},f=()=>{clearTimeout(p.current),p.current=setTimeout(()=>{let{activeElements:n,isEnded:w,play:F}=Aa.getState().controller,{settingPopover:L,speedPopover:k,qualityLevelsPopover:c}=Aa.getState().popovers;w?o(k$1(true)):!L&&!k&&!c&&n&&!w&&F&&o(k$1(false));},a$5);};return document.getElementById("video-area").addEventListener("touchstart",v),document.getElementById("video-area").addEventListener("touchmove",f),document.getElementById("video-area").addEventListener("pointermove",h),()=>{let n=document.getElementById("video-area");n&&(n.removeEventListener("touchstart",v),n.removeEventListener("touchmove",f),n.removeEventListener("pointermove",h));}},[i,t,l]),useEffect(()=>{let a;return r?a=setTimeout(()=>o(k$1(false)),a$5):o(k$1(true)),()=>{a&&clearTimeout(a);}},[r]);},zo=ci;e();var di=()=>{let{firstPlay:t,isFullScreen:l}=A(({controller:{firstPlay:o,isFullScreen:i}})=>({firstPlay:o,isFullScreen:i}),shallowEqual);useEffect(()=>{if(x()){let o,i=()=>{o=setTimeout(()=>{ca();},ha()?0:300);};return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i),clearTimeout(o);}}},[t,l,x()]);},Oo=di;e();var fi=({className:t,onClick:l})=>jsxs("svg",{className:t,onClick:o=>{o.stopPropagation(),l?.();},width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsx("g",{"clip-path":"url(#clip0_372_39317)",children:jsx("path",{d:"M10.649 9.01462L17.658 2.00555C18.1141 1.54963 18.1141 0.812452 17.658 0.356588C17.2021 -0.0993313 16.4649 -0.0993313 16.009 0.356588L8.99992 7.3656L1.99107 0.356588C1.53493 -0.0993313 0.798022 -0.0993313 0.342103 0.356588C-0.114034 0.812507 -0.114034 1.54963 0.342103 2.00555L7.3509 9.01462L0.342158 16.0236C-0.11398 16.4796 -0.11398 17.2167 0.342158 17.6726C0.450304 17.7811 0.578815 17.8671 0.720306 17.9257C0.861797 17.9843 1.01348 18.0144 1.16664 18.0143C1.46512 18.0143 1.76371 17.9 1.99112 17.6726L8.99992 10.6636L16.009 17.6726C16.1172 17.781 16.2457 17.867 16.3872 17.9257C16.5287 17.9843 16.6804 18.0144 16.8335 18.0143C17.132 18.0143 17.4306 17.9 17.658 17.6726C18.1141 17.2167 18.1141 16.4796 17.658 16.0236L10.649 9.01462Z",fill:"white"})}),jsx("defs",{children:jsx("clipPath",{id:"clip0_372_39317",children:jsx("rect",{width:"18",height:"18",fill:"white"})})})]}),Bo=fi;var qo=Do(()=>import('./backwardForward-3X63XNNJ.mjs')),vi=()=>{let[t$1,l]=useState(false),[o,i]=useState(false),r=z();A(({videoData:{details:a,params:h,videoElementSizeInfo:v}})=>({details:a,params:h,videoElementSizeInfo:v}),shallowEqual);let{firstMute:p,firstPlay:s,activeElements:d}=A(({controller:{firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}})=>({firstPlay:a,isFullScreen:h,isLoading:v,canPlayVideo:f,firstMute:n,activeElements:w}),shallowEqual);return a$3(),Oo(),zo(t$1,o),jsxs("div",{id:"video-area",style:{zIndex:t("isFullScreen")?1e3:"unset"},onClick:a=>{if(!(t$1||o||document.getElementById("popover-content"))){if(p){Y(50),X$1();return}t("isTouchScreen")?s?V(a):r(k$1(!d)):V(a);}},onDoubleClick:a=>da(a),className:ea(`pl-bg-contain pl-bg-center pl-w-full pl-relative pl-bg-no-repeat pl-h-full pl-max-h-screen pl-aspect-video pl-flex pl-items-center ${!t("isActiveElements")&&"pl-cursor-none"}`,{desktop:"pl-rounded-[12px] pl-overflow-hidden",touchFullScreen:"pl-fixed pl-w-screen dvh",desktopFullScreen:"pl-fixed pl-w-screen dvh"}),children:[t("isTouchScreen")&&jsx("div",{id:"video-opacity",style:{zIndex:0},className:`pl-absolute pl-bg-black/20 pl-size-full pl-aspect-video pl-transition-all pl-duration-500 ${t("isActiveElements")?"pl-opacity-100 pl-visible":"pl-opacity-0 pl-invisible"} `}),t("showSoundVolumeAlert")&&jsx(c$1,{className:ea("",{touch:"pl-absolute pl-z-10 pl-top-[12px] pl-left-[16px]",touchFullScreen:"pl-top-[16px] pl-left-[24px]"})}),!s&&t("isActiveElements")&&jsxs("div",{className:ea("pl-absolute pl-z-10 pl-flex pl-items-center pl-justify-center pl-gap-4",{touch:"pl-top-3 pl-right-4",touchFullScreen:"pl-top-5 pl-right-6"}),children:[t("isTouchScreen")&&t("isFullScreen")&&jsx(Bo,{onClick:_,className:"pl-text-white pl-size-[18px]"}),t("showSettingIcon")&&t("isTouchScreen")&&jsx(Be,{normalStyle:true,width:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})}),t("isTouchScreen")&&jsx(pe,{normalStyle:true,width:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24}),height:fa({desktop:16,desktopFullScreen:24,touch:20,touchFullScreen:24})})]}),t("showBackwardForward")&&jsxs("div",{className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full pl-overflow-hidden pl-flex pl-items-center",style:{zIndex:o||t$1?1002:1},children:[jsx(qo,{type:t("isTouchScreen")?"touchForward":"forward",isRightForward:t$1,setIsRightForward:l}),jsx(qo,{type:t("isTouchScreen")?"touchBackward":"backward",isLeftBackward:o,setIsLeftBackward:i})]}),jsx(_o,{}),jsx("div",{id:"playerElements",className:"pl-absolute pl-top-0 pl-right-0 pl-w-full pl-h-full",children:jsxs("div",{className:"pl-flex pl-flex-col pl-justify-between pl-w-full pl-h-full",children:[t("showHeader")&&jsx(zt,{}),t("showMain")&&jsx(Ht,{}),t("showFooter")&&jsx(Lo,{})]})})]})},Ya=vi;
|
|
8
|
+
export{Ya as a};//# sourceMappingURL=chunk-EPUUJE7V.mjs.map
|
|
9
|
+
//# sourceMappingURL=chunk-EPUUJE7V.mjs.map
|