@therealtinhtute/baroiplayer 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -7
  3. package/dist/index.mjs +1 -2
  4. package/dist/package.json +1 -1
  5. package/package.json +1 -1
  6. package/dist/context/media.js +0 -2
  7. package/dist/context/media.js.map +0 -1
  8. package/dist/context/media.mjs +0 -15
  9. package/dist/context/media.mjs.map +0 -1
  10. package/dist/context/store.js +0 -2
  11. package/dist/context/store.js.map +0 -1
  12. package/dist/context/store.mjs +0 -5
  13. package/dist/context/store.mjs.map +0 -1
  14. package/dist/context-Af84FynT.js +0 -1179
  15. package/dist/context-Af84FynT.js.map +0 -1
  16. package/dist/context-CwZnPdz0.cjs +0 -23
  17. package/dist/context-CwZnPdz0.cjs.map +0 -1
  18. package/dist/core-events-B5W_j8yU.js +0 -480
  19. package/dist/core-events-B5W_j8yU.js.map +0 -1
  20. package/dist/core-events-CN0-Vhhq.cjs +0 -2
  21. package/dist/core-events-CN0-Vhhq.cjs.map +0 -1
  22. package/dist/core-plugins-Bq9KLany.js +0 -696
  23. package/dist/core-plugins-Bq9KLany.js.map +0 -1
  24. package/dist/core-plugins-CPDSHMiQ.cjs +0 -2
  25. package/dist/core-plugins-CPDSHMiQ.cjs.map +0 -1
  26. package/dist/core.js +0 -37
  27. package/dist/core.js.map +0 -1
  28. package/dist/core.mjs +0 -1217
  29. package/dist/core.mjs.map +0 -1
  30. package/dist/enhanced-components-CXnYiOt6.cjs +0 -2
  31. package/dist/enhanced-components-CXnYiOt6.cjs.map +0 -1
  32. package/dist/enhanced-components-Da0TSvKe.js +0 -1073
  33. package/dist/enhanced-components-Da0TSvKe.js.map +0 -1
  34. package/dist/hooks-BCMilGRf.cjs +0 -4
  35. package/dist/hooks-BCMilGRf.cjs.map +0 -1
  36. package/dist/hooks-BPtHV1ZT.js +0 -2042
  37. package/dist/hooks-BPtHV1ZT.js.map +0 -1
  38. package/dist/index.js.map +0 -1
  39. package/dist/index.mjs.map +0 -1
  40. package/dist/minimal-components-BHJMuaL7.cjs +0 -2
  41. package/dist/minimal-components-BHJMuaL7.cjs.map +0 -1
  42. package/dist/minimal-components-BmqRefl1.js +0 -2002
  43. package/dist/minimal-components-BmqRefl1.js.map +0 -1
  44. package/dist/mona-loading.gif +0 -0
  45. package/dist/performance-monitor--rzKTlbj.js +0 -302
  46. package/dist/performance-monitor--rzKTlbj.js.map +0 -1
  47. package/dist/performance-monitor-cjIvZE2D.cjs +0 -2
  48. package/dist/performance-monitor-cjIvZE2D.cjs.map +0 -1
  49. package/dist/src/adapters/videojs-adapter.d.ts.map +0 -1
  50. package/dist/src/adapters/videojs-adapter.js +0 -350
  51. package/dist/src/assets/mona-loading.gif +0 -0
  52. package/dist/src/components/AnimateLoading.d.ts.map +0 -1
  53. package/dist/src/components/AnimateLoading.js +0 -41
  54. package/dist/src/components/LoadingState.d.ts.map +0 -1
  55. package/dist/src/components/LoadingState.js +0 -111
  56. package/dist/src/components/accessibility/keyboard-help-overlay.d.ts.map +0 -1
  57. package/dist/src/components/accessibility/keyboard-help-overlay.js +0 -90
  58. package/dist/src/components/audio-player.d.ts.map +0 -1
  59. package/dist/src/components/audio-player.js +0 -31
  60. package/dist/src/components/basic/index.d.ts.map +0 -1
  61. package/dist/src/components/basic/index.js +0 -29
  62. package/dist/src/components/enhanced/advanced-features.d.ts.map +0 -1
  63. package/dist/src/components/enhanced/advanced-features.js +0 -64
  64. package/dist/src/components/enhanced/debug-panel.d.ts.map +0 -1
  65. package/dist/src/components/enhanced/debug-panel.js +0 -94
  66. package/dist/src/components/enhanced/enhanced-controls.d.ts.map +0 -1
  67. package/dist/src/components/enhanced/enhanced-controls.js +0 -233
  68. package/dist/src/components/enhanced/enhanced-media-player.d.ts.map +0 -1
  69. package/dist/src/components/enhanced/enhanced-media-player.js +0 -316
  70. package/dist/src/components/enhanced/error-handling.d.ts.map +0 -1
  71. package/dist/src/components/enhanced/error-handling.js +0 -153
  72. package/dist/src/components/enhanced/index.d.ts.map +0 -1
  73. package/dist/src/components/enhanced/index.js +0 -10
  74. package/dist/src/components/enhanced/media-player-enhanced.d.ts.map +0 -1
  75. package/dist/src/components/enhanced/media-player-enhanced.js +0 -250
  76. package/dist/src/components/examples/basic-video-player.d.ts.map +0 -1
  77. package/dist/src/components/examples/basic-video-player.js +0 -16
  78. package/dist/src/components/examples/custom-controls-example.d.ts.map +0 -1
  79. package/dist/src/components/examples/custom-controls-example.js +0 -12
  80. package/dist/src/components/examples/enhanced-controls-example.d.ts.map +0 -1
  81. package/dist/src/components/examples/enhanced-controls-example.js +0 -18
  82. package/dist/src/components/examples/enhanced-media-player-example.d.ts.map +0 -1
  83. package/dist/src/components/examples/enhanced-media-player-example.js +0 -13
  84. package/dist/src/components/examples/loading-states-demo.d.ts.map +0 -1
  85. package/dist/src/components/examples/loading-states-demo.js +0 -41
  86. package/dist/src/components/examples/react-19-demo.d.ts.map +0 -1
  87. package/dist/src/components/examples/react-19-demo.js +0 -104
  88. package/dist/src/components/examples/volume-orientation-demo.d.ts.map +0 -1
  89. package/dist/src/components/examples/volume-orientation-demo.js +0 -31
  90. package/dist/src/components/icon-demo.d.ts.map +0 -1
  91. package/dist/src/components/icon-demo.js +0 -16
  92. package/dist/src/components/icons/index.d.ts.map +0 -1
  93. package/dist/src/components/icons/index.js +0 -59
  94. package/dist/src/components/icons/svg-icons/ArrowLeftIcon.d.ts.map +0 -1
  95. package/dist/src/components/icons/svg-icons/ArrowLeftIcon.js +0 -3
  96. package/dist/src/components/icons/svg-icons/ArrowRightIcon.d.ts.map +0 -1
  97. package/dist/src/components/icons/svg-icons/ArrowRightIcon.js +0 -3
  98. package/dist/src/components/icons/svg-icons/AudioIcon.d.ts.map +0 -1
  99. package/dist/src/components/icons/svg-icons/AudioIcon.js +0 -4
  100. package/dist/src/components/icons/svg-icons/BackwardIcon.d.ts.map +0 -1
  101. package/dist/src/components/icons/svg-icons/BackwardIcon.js +0 -3
  102. package/dist/src/components/icons/svg-icons/CameraIcon.d.ts.map +0 -1
  103. package/dist/src/components/icons/svg-icons/CameraIcon.js +0 -4
  104. package/dist/src/components/icons/svg-icons/CheckIcon.d.ts.map +0 -1
  105. package/dist/src/components/icons/svg-icons/CheckIcon.js +0 -4
  106. package/dist/src/components/icons/svg-icons/EnablePiPIcon.d.ts.map +0 -1
  107. package/dist/src/components/icons/svg-icons/EnablePiPIcon.js +0 -5
  108. package/dist/src/components/icons/svg-icons/ForwardIcon.d.ts.map +0 -1
  109. package/dist/src/components/icons/svg-icons/ForwardIcon.js +0 -3
  110. package/dist/src/components/icons/svg-icons/FullscreenEnterIcon.d.ts.map +0 -1
  111. package/dist/src/components/icons/svg-icons/FullscreenEnterIcon.js +0 -3
  112. package/dist/src/components/icons/svg-icons/FullscreenExitIcon.d.ts.map +0 -1
  113. package/dist/src/components/icons/svg-icons/FullscreenExitIcon.js +0 -3
  114. package/dist/src/components/icons/svg-icons/LoadingIcon.d.ts.map +0 -1
  115. package/dist/src/components/icons/svg-icons/LoadingIcon.js +0 -3
  116. package/dist/src/components/icons/svg-icons/PauseIcon.d.ts.map +0 -1
  117. package/dist/src/components/icons/svg-icons/PauseIcon.js +0 -3
  118. package/dist/src/components/icons/svg-icons/PlayIcon.d.ts.map +0 -1
  119. package/dist/src/components/icons/svg-icons/PlayIcon.js +0 -3
  120. package/dist/src/components/icons/svg-icons/PlaybackSpeedIcon.d.ts.map +0 -1
  121. package/dist/src/components/icons/svg-icons/PlaybackSpeedIcon.js +0 -3
  122. package/dist/src/components/icons/svg-icons/QualityIcon.d.ts.map +0 -1
  123. package/dist/src/components/icons/svg-icons/QualityIcon.js +0 -3
  124. package/dist/src/components/icons/svg-icons/SettingsIcon.d.ts.map +0 -1
  125. package/dist/src/components/icons/svg-icons/SettingsIcon.js +0 -3
  126. package/dist/src/components/icons/svg-icons/SliderIcon.d.ts.map +0 -1
  127. package/dist/src/components/icons/svg-icons/SliderIcon.js +0 -3
  128. package/dist/src/components/icons/svg-icons/SubtitleIcon.d.ts.map +0 -1
  129. package/dist/src/components/icons/svg-icons/SubtitleIcon.js +0 -3
  130. package/dist/src/components/icons/svg-icons/SubtitleOffIcon.d.ts.map +0 -1
  131. package/dist/src/components/icons/svg-icons/SubtitleOffIcon.js +0 -3
  132. package/dist/src/components/icons/svg-icons/UnPiPIcon.d.ts.map +0 -1
  133. package/dist/src/components/icons/svg-icons/UnPiPIcon.js +0 -5
  134. package/dist/src/components/icons/svg-icons/VolumeMutedIcon.d.ts.map +0 -1
  135. package/dist/src/components/icons/svg-icons/VolumeMutedIcon.js +0 -3
  136. package/dist/src/components/icons/svg-icons/VolumeOneIcon.d.ts.map +0 -1
  137. package/dist/src/components/icons/svg-icons/VolumeOneIcon.js +0 -3
  138. package/dist/src/components/icons/svg-icons/VolumeThreeIcon.d.ts.map +0 -1
  139. package/dist/src/components/icons/svg-icons/VolumeThreeIcon.js +0 -3
  140. package/dist/src/components/icons/svg-icons/VolumeTwoIcon.d.ts.map +0 -1
  141. package/dist/src/components/icons/svg-icons/VolumeTwoIcon.js +0 -3
  142. package/dist/src/components/legacy.d.ts.map +0 -1
  143. package/dist/src/components/legacy.js +0 -52
  144. package/dist/src/components/media-metadata-display.d.ts.map +0 -1
  145. package/dist/src/components/media-metadata-display.js +0 -20
  146. package/dist/src/components/media-player-audio.d.ts.map +0 -1
  147. package/dist/src/components/media-player-audio.js +0 -18
  148. package/dist/src/components/media-player-controls.d.ts.map +0 -1
  149. package/dist/src/components/media-player-controls.js +0 -150
  150. package/dist/src/components/media-player-error.d.ts.map +0 -1
  151. package/dist/src/components/media-player-error.js +0 -85
  152. package/dist/src/components/media-player-fullscreen.d.ts.map +0 -1
  153. package/dist/src/components/media-player-fullscreen.js +0 -68
  154. package/dist/src/components/media-player-hls.d.ts.map +0 -1
  155. package/dist/src/components/media-player-hls.js +0 -20
  156. package/dist/src/components/media-player-loading.d.ts.map +0 -1
  157. package/dist/src/components/media-player-loading.js +0 -53
  158. package/dist/src/components/media-player-play.d.ts.map +0 -1
  159. package/dist/src/components/media-player-play.js +0 -44
  160. package/dist/src/components/media-player-root.d.ts.map +0 -1
  161. package/dist/src/components/media-player-root.js +0 -243
  162. package/dist/src/components/media-player-seek.d.ts.map +0 -1
  163. package/dist/src/components/media-player-seek.js +0 -92
  164. package/dist/src/components/media-player-time.d.ts.map +0 -1
  165. package/dist/src/components/media-player-time.js +0 -57
  166. package/dist/src/components/media-player-tooltip.d.ts.map +0 -1
  167. package/dist/src/components/media-player-tooltip.js +0 -14
  168. package/dist/src/components/media-player-video.d.ts.map +0 -1
  169. package/dist/src/components/media-player-video.js +0 -18
  170. package/dist/src/components/media-player-volume.d.ts.map +0 -1
  171. package/dist/src/components/media-player-volume.js +0 -88
  172. package/dist/src/components/media-player.d.ts.map +0 -1
  173. package/dist/src/components/media-player.js +0 -67
  174. package/dist/src/components/media-suspense.d.ts.map +0 -1
  175. package/dist/src/components/media-suspense.js +0 -173
  176. package/dist/src/components/player-settings-form.d.ts.map +0 -1
  177. package/dist/src/components/player-settings-form.js +0 -46
  178. package/dist/src/components/react-player-wrapper.d.ts.map +0 -1
  179. package/dist/src/components/react-player-wrapper.js +0 -163
  180. package/dist/src/components/simple-video-player.d.ts.map +0 -1
  181. package/dist/src/components/simple-video-player.js +0 -41
  182. package/dist/src/components/ui/enhanced-seek-bar.d.ts.map +0 -1
  183. package/dist/src/components/ui/enhanced-seek-bar.js +0 -112
  184. package/dist/src/components/ui/fullscreen-button.d.ts.map +0 -1
  185. package/dist/src/components/ui/fullscreen-button.js +0 -21
  186. package/dist/src/components/ui/media-resource-preloader.d.ts.map +0 -1
  187. package/dist/src/components/ui/media-resource-preloader.js +0 -295
  188. package/dist/src/components/ui/play-button.d.ts.map +0 -1
  189. package/dist/src/components/ui/play-button.js +0 -26
  190. package/dist/src/components/ui/seek-bar.d.ts.map +0 -1
  191. package/dist/src/components/ui/seek-bar.js +0 -54
  192. package/dist/src/components/ui/time-display.d.ts.map +0 -1
  193. package/dist/src/components/ui/time-display.js +0 -18
  194. package/dist/src/components/ui/volume-control.d.ts.map +0 -1
  195. package/dist/src/components/ui/volume-control.js +0 -71
  196. package/dist/src/components/unified/base-media-player.d.ts.map +0 -1
  197. package/dist/src/components/unified/base-media-player.js +0 -104
  198. package/dist/src/components/unified/media-player.d.ts.map +0 -1
  199. package/dist/src/components/unified/media-player.js +0 -41
  200. package/dist/src/components/variants/minimal/AccessibleMinimalPlayer.d.ts.map +0 -1
  201. package/dist/src/components/variants/minimal/AccessibleMinimalPlayer.js +0 -322
  202. package/dist/src/components/variants/minimal/EnhancedMinimalMediaPlayer.d.ts.map +0 -1
  203. package/dist/src/components/variants/minimal/EnhancedMinimalMediaPlayer.js +0 -280
  204. package/dist/src/components/variants/minimal/MinimalControls.d.ts.map +0 -1
  205. package/dist/src/components/variants/minimal/MinimalControls.js +0 -19
  206. package/dist/src/components/variants/minimal/MinimalLoading.d.ts.map +0 -1
  207. package/dist/src/components/variants/minimal/MinimalLoading.js +0 -6
  208. package/dist/src/components/variants/minimal/MinimalMediaPlayer.d.ts.map +0 -1
  209. package/dist/src/components/variants/minimal/MinimalMediaPlayer.js +0 -135
  210. package/dist/src/components/variants/minimal/MinimalOverlay.d.ts.map +0 -1
  211. package/dist/src/components/variants/minimal/MinimalOverlay.js +0 -15
  212. package/dist/src/components/variants/minimal/MinimalPlayButton.d.ts.map +0 -1
  213. package/dist/src/components/variants/minimal/MinimalPlayButton.js +0 -29
  214. package/dist/src/components/variants/minimal/MinimalSeekBar.d.ts.map +0 -1
  215. package/dist/src/components/variants/minimal/MinimalSeekBar.js +0 -73
  216. package/dist/src/components/variants/minimal/MinimalVolumeControl.d.ts.map +0 -1
  217. package/dist/src/components/variants/minimal/MinimalVolumeControl.js +0 -29
  218. package/dist/src/components/variants/minimal/SimpleMinimalPlayer.d.ts.map +0 -1
  219. package/dist/src/components/variants/minimal/SimpleMinimalPlayer.js +0 -51
  220. package/dist/src/components/variants/minimal/components/CenterPlayButton.d.ts.map +0 -1
  221. package/dist/src/components/variants/minimal/components/CenterPlayButton.js +0 -8
  222. package/dist/src/components/variants/minimal/components/ControlBar.d.ts.map +0 -1
  223. package/dist/src/components/variants/minimal/components/ControlBar.js +0 -10
  224. package/dist/src/components/variants/minimal/components/EnhancedSettingsMenu.d.ts.map +0 -1
  225. package/dist/src/components/variants/minimal/components/EnhancedSettingsMenu.js +0 -68
  226. package/dist/src/components/variants/minimal/components/PlaybackControls.d.ts.map +0 -1
  227. package/dist/src/components/variants/minimal/components/PlaybackControls.js +0 -9
  228. package/dist/src/components/variants/minimal/components/RightControls.d.ts.map +0 -1
  229. package/dist/src/components/variants/minimal/components/RightControls.js +0 -40
  230. package/dist/src/components/variants/minimal/components/SeekBar.d.ts.map +0 -1
  231. package/dist/src/components/variants/minimal/components/SeekBar.js +0 -43
  232. package/dist/src/components/variants/minimal/components/SettingsDropdown.d.ts.map +0 -1
  233. package/dist/src/components/variants/minimal/components/SettingsDropdown.js +0 -18
  234. package/dist/src/components/variants/minimal/components/SubtitleDisplay.d.ts.map +0 -1
  235. package/dist/src/components/variants/minimal/components/SubtitleDisplay.js +0 -6
  236. package/dist/src/components/variants/minimal/components/TimeDisplay.d.ts.map +0 -1
  237. package/dist/src/components/variants/minimal/components/TimeDisplay.js +0 -5
  238. package/dist/src/components/variants/minimal/components/VideoElement.d.ts.map +0 -1
  239. package/dist/src/components/variants/minimal/components/VideoElement.js +0 -4
  240. package/dist/src/components/variants/minimal/components/VolumeControl.d.ts.map +0 -1
  241. package/dist/src/components/variants/minimal/components/VolumeControl.js +0 -99
  242. package/dist/src/components/variants/minimal/index.d.ts.map +0 -1
  243. package/dist/src/components/variants/minimal/index.js +0 -8
  244. package/dist/src/components/video-player.d.ts.map +0 -1
  245. package/dist/src/components/video-player.js +0 -38
  246. package/dist/src/context/error-handling.d.ts.map +0 -1
  247. package/dist/src/context/error-handling.js +0 -300
  248. package/dist/src/context/media-context.d.ts.map +0 -1
  249. package/dist/src/context/media-context.js +0 -121
  250. package/dist/src/context/media-provider.d.ts.map +0 -1
  251. package/dist/src/context/media-provider.js +0 -164
  252. package/dist/src/context/media-store.d.ts.map +0 -1
  253. package/dist/src/context/media-store.js +0 -273
  254. package/dist/src/context/persistence.d.ts.map +0 -1
  255. package/dist/src/context/persistence.js +0 -356
  256. package/dist/src/core/events/event-system.d.ts.map +0 -1
  257. package/dist/src/core/events/event-system.js +0 -288
  258. package/dist/src/core/events/hooks.d.ts.map +0 -1
  259. package/dist/src/core/events/hooks.js +0 -198
  260. package/dist/src/core/events/index.d.ts.map +0 -1
  261. package/dist/src/core/events/index.js +0 -7
  262. package/dist/src/core/events/middleware.d.ts.map +0 -1
  263. package/dist/src/core/events/middleware.js +0 -219
  264. package/dist/src/core/index.d.ts.map +0 -1
  265. package/dist/src/core/index.js +0 -15
  266. package/dist/src/core/optimization/bundle-optimizer.d.ts.map +0 -1
  267. package/dist/src/core/optimization/bundle-optimizer.js +0 -217
  268. package/dist/src/core/performance/cicd.d.ts.map +0 -1
  269. package/dist/src/core/performance/cicd.js +0 -83
  270. package/dist/src/core/performance/index.d.ts.map +0 -1
  271. package/dist/src/core/performance/index.js +0 -14
  272. package/dist/src/core/performance/media-loading-optimizer.d.ts.map +0 -1
  273. package/dist/src/core/performance/media-loading-optimizer.js +0 -404
  274. package/dist/src/core/performance/performance-budgets.d.ts.map +0 -1
  275. package/dist/src/core/performance/performance-budgets.js +0 -326
  276. package/dist/src/core/performance/performance-monitor.d.ts.map +0 -1
  277. package/dist/src/core/performance/performance-monitor.js +0 -297
  278. package/dist/src/core/performance/performance-testing.d.ts.map +0 -1
  279. package/dist/src/core/performance/performance-testing.js +0 -314
  280. package/dist/src/core/plugins/base-plugin.d.ts.map +0 -1
  281. package/dist/src/core/plugins/base-plugin.js +0 -151
  282. package/dist/src/core/plugins/enhanced-plugin-system.d.ts.map +0 -1
  283. package/dist/src/core/plugins/enhanced-plugin-system.js +0 -305
  284. package/dist/src/core/plugins/examples/analytics-plugin.d.ts.map +0 -1
  285. package/dist/src/core/plugins/examples/analytics-plugin.js +0 -191
  286. package/dist/src/core/plugins/index.d.ts.map +0 -1
  287. package/dist/src/core/plugins/index.js +0 -9
  288. package/dist/src/core/plugins/registry.d.ts.map +0 -1
  289. package/dist/src/core/plugins/registry.js +0 -261
  290. package/dist/src/core/plugins/types.d.ts.map +0 -1
  291. package/dist/src/core/plugins/types.js +0 -31
  292. package/dist/src/core/plugins/utils.d.ts.map +0 -1
  293. package/dist/src/core/plugins/utils.js +0 -274
  294. package/dist/src/core/progressive-loading.d.ts.map +0 -1
  295. package/dist/src/core/progressive-loading.js +0 -239
  296. package/dist/src/core/providers/enhanced-hls-provider.d.ts.map +0 -1
  297. package/dist/src/core/providers/enhanced-hls-provider.js +0 -273
  298. package/dist/src/core/providers/service-provider.d.ts.map +0 -1
  299. package/dist/src/core/providers/service-provider.js +0 -105
  300. package/dist/src/core/utils.d.ts.map +0 -1
  301. package/dist/src/core/utils.js +0 -21
  302. package/dist/src/features/media-session/media-session-manager.d.ts.map +0 -1
  303. package/dist/src/features/media-session/media-session-manager.js +0 -331
  304. package/dist/src/features/picture-in-picture/pip-manager.d.ts.map +0 -1
  305. package/dist/src/features/picture-in-picture/pip-manager.js +0 -353
  306. package/dist/src/features/playlist/playlist-manager.d.ts.map +0 -1
  307. package/dist/src/features/playlist/playlist-manager.js +0 -475
  308. package/dist/src/features/subtitles/subtitle-manager.d.ts.map +0 -1
  309. package/dist/src/features/subtitles/subtitle-manager.js +0 -335
  310. package/dist/src/features/subtitles/subtitle-parser.d.ts.map +0 -1
  311. package/dist/src/features/subtitles/subtitle-parser.js +0 -217
  312. package/dist/src/features/thumbnails/thumbnail-generator.d.ts.map +0 -1
  313. package/dist/src/features/thumbnails/thumbnail-generator.js +0 -388
  314. package/dist/src/hooks/accessibility/index.d.ts.map +0 -1
  315. package/dist/src/hooks/accessibility/index.js +0 -4
  316. package/dist/src/hooks/accessibility/use-accessibility-preferences.d.ts.map +0 -1
  317. package/dist/src/hooks/accessibility/use-accessibility-preferences.js +0 -156
  318. package/dist/src/hooks/accessibility/use-focus-management.d.ts.map +0 -1
  319. package/dist/src/hooks/accessibility/use-focus-management.js +0 -142
  320. package/dist/src/hooks/accessibility/use-keyboard-shortcuts.d.ts.map +0 -1
  321. package/dist/src/hooks/accessibility/use-keyboard-shortcuts.js +0 -101
  322. package/dist/src/hooks/accessibility/use-screen-reader.d.ts.map +0 -1
  323. package/dist/src/hooks/accessibility/use-screen-reader.js +0 -148
  324. package/dist/src/hooks/core/index.d.ts.map +0 -1
  325. package/dist/src/hooks/core/index.js +0 -19
  326. package/dist/src/hooks/legacy.d.ts.map +0 -1
  327. package/dist/src/hooks/legacy.js +0 -17
  328. package/dist/src/hooks/use-enhanced-media-player.d.ts.map +0 -1
  329. package/dist/src/hooks/use-enhanced-media-player.js +0 -395
  330. package/dist/src/hooks/use-intelligent-preloading.d.ts.map +0 -1
  331. package/dist/src/hooks/use-intelligent-preloading.js +0 -258
  332. package/dist/src/hooks/use-keyboard-controls.d.ts.map +0 -1
  333. package/dist/src/hooks/use-keyboard-controls.js +0 -83
  334. package/dist/src/hooks/use-media-actions.d.ts.map +0 -1
  335. package/dist/src/hooks/use-media-actions.js +0 -121
  336. package/dist/src/hooks/use-media-metadata.d.ts.map +0 -1
  337. package/dist/src/hooks/use-media-metadata.js +0 -74
  338. package/dist/src/hooks/use-media-optimistic.d.ts.map +0 -1
  339. package/dist/src/hooks/use-media-optimistic.js +0 -205
  340. package/dist/src/hooks/use-media-player.d.ts.map +0 -1
  341. package/dist/src/hooks/use-media-player.js +0 -251
  342. package/dist/src/hooks/use-media-state.d.ts.map +0 -1
  343. package/dist/src/hooks/use-media-state.js +0 -162
  344. package/dist/src/hooks/use-memory-optimization.d.ts.map +0 -1
  345. package/dist/src/hooks/use-memory-optimization.js +0 -288
  346. package/dist/src/hooks/use-optimistic-controls.d.ts.map +0 -1
  347. package/dist/src/hooks/use-optimistic-controls.js +0 -60
  348. package/dist/src/hooks/use-optimized-media.d.ts.map +0 -1
  349. package/dist/src/hooks/use-optimized-media.js +0 -211
  350. package/dist/src/hooks/use-touch-gestures.d.ts.map +0 -1
  351. package/dist/src/hooks/use-touch-gestures.js +0 -289
  352. package/dist/src/hooks/useEnhancedSubtitles.d.ts.map +0 -1
  353. package/dist/src/hooks/useEnhancedSubtitles.js +0 -205
  354. package/dist/src/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  355. package/dist/src/hooks/useKeyboardShortcuts.js +0 -59
  356. package/dist/src/hooks/useMediaControls.d.ts.map +0 -1
  357. package/dist/src/hooks/useMediaControls.js +0 -44
  358. package/dist/src/hooks/useScreenshot.d.ts.map +0 -1
  359. package/dist/src/hooks/useScreenshot.js +0 -56
  360. package/dist/src/hooks/useSubtitles.d.ts.map +0 -1
  361. package/dist/src/hooks/useSubtitles.js +0 -73
  362. package/dist/src/hooks/useVideoPlayer.d.ts.map +0 -1
  363. package/dist/src/hooks/useVideoPlayer.js +0 -184
  364. package/dist/src/icons/components/FullscreenIcon.d.ts.map +0 -1
  365. package/dist/src/icons/components/FullscreenIcon.js +0 -11
  366. package/dist/src/icons/components/SettingsIcon.d.ts.map +0 -1
  367. package/dist/src/icons/components/SettingsIcon.js +0 -11
  368. package/dist/src/icons/components/animated/LoadingIcon.d.ts.map +0 -1
  369. package/dist/src/icons/components/animated/LoadingIcon.js +0 -11
  370. package/dist/src/icons/components/animated/PlayPauseIcon.d.ts.map +0 -1
  371. package/dist/src/icons/components/animated/PlayPauseIcon.js +0 -9
  372. package/dist/src/icons/components/media/PauseIcon.d.ts.map +0 -1
  373. package/dist/src/icons/components/media/PauseIcon.js +0 -12
  374. package/dist/src/icons/components/media/PlayIcon.d.ts.map +0 -1
  375. package/dist/src/icons/components/media/PlayIcon.js +0 -12
  376. package/dist/src/icons/components/volume/VolumeIcon.d.ts.map +0 -1
  377. package/dist/src/icons/components/volume/VolumeIcon.js +0 -11
  378. package/dist/src/icons/components/volume/VolumeOffIcon.d.ts.map +0 -1
  379. package/dist/src/icons/components/volume/VolumeOffIcon.js +0 -11
  380. package/dist/src/icons/index.d.ts.map +0 -1
  381. package/dist/src/icons/index.js +0 -45
  382. package/dist/src/icons/provider.d.ts.map +0 -1
  383. package/dist/src/icons/provider.js +0 -37
  384. package/dist/src/icons/types.d.ts.map +0 -1
  385. package/dist/src/icons/types.js +0 -1
  386. package/dist/src/index-enhanced.d.ts.map +0 -1
  387. package/dist/src/index-enhanced.js +0 -16
  388. package/dist/src/index-legacy.d.ts.map +0 -1
  389. package/dist/src/index-legacy.js +0 -97
  390. package/dist/src/index.d.ts.map +0 -1
  391. package/dist/src/index.js +0 -90
  392. package/dist/src/index.minimal.d.ts.map +0 -1
  393. package/dist/src/index.minimal.js +0 -3
  394. package/dist/src/lib/deprecation.d.ts.map +0 -1
  395. package/dist/src/lib/deprecation.js +0 -31
  396. package/dist/src/lib/format-time.d.ts.map +0 -1
  397. package/dist/src/lib/format-time.js +0 -32
  398. package/dist/src/lib/index.d.ts.map +0 -1
  399. package/dist/src/lib/index.js +0 -3
  400. package/dist/src/lib/utils.d.ts.map +0 -1
  401. package/dist/src/lib/utils.js +0 -5
  402. package/dist/src/test/setup.d.ts.map +0 -1
  403. package/dist/src/test/setup.js +0 -65
  404. package/dist/src/types/events.d.ts.map +0 -1
  405. package/dist/src/types/events.js +0 -2
  406. package/dist/src/types/formats.d.ts.map +0 -1
  407. package/dist/src/types/formats.js +0 -63
  408. package/dist/src/types/index.d.ts.map +0 -1
  409. package/dist/src/types/index.js +0 -4
  410. package/dist/utils-Db13763z.cjs +0 -9
  411. package/dist/utils-Db13763z.cjs.map +0 -1
  412. package/dist/utils-nTO4AnHo.js +0 -2809
  413. package/dist/utils-nTO4AnHo.js.map +0 -1
  414. package/dist/utils.js +0 -2
  415. package/dist/utils.js.map +0 -1
  416. package/dist/utils.mjs +0 -7
  417. package/dist/utils.mjs.map +0 -1
  418. package/src/adapters/videojs-adapter.js +0 -350
  419. package/src/components/AnimateLoading.js +0 -41
  420. package/src/components/LoadingState.js +0 -111
  421. package/src/components/accessibility/keyboard-help-overlay.js +0 -90
  422. package/src/components/audio-player.js +0 -31
  423. package/src/components/basic/index.js +0 -29
  424. package/src/components/enhanced/advanced-features.js +0 -64
  425. package/src/components/enhanced/debug-panel.js +0 -94
  426. package/src/components/enhanced/enhanced-controls.js +0 -233
  427. package/src/components/enhanced/enhanced-media-player.js +0 -316
  428. package/src/components/enhanced/error-handling.js +0 -153
  429. package/src/components/enhanced/index.js +0 -10
  430. package/src/components/enhanced/media-player-enhanced.js +0 -250
  431. package/src/components/examples/basic-video-player.js +0 -16
  432. package/src/components/examples/custom-controls-example.js +0 -12
  433. package/src/components/examples/enhanced-controls-example.js +0 -18
  434. package/src/components/examples/enhanced-media-player-example.js +0 -13
  435. package/src/components/examples/loading-states-demo.js +0 -41
  436. package/src/components/examples/react-19-demo.js +0 -104
  437. package/src/components/examples/volume-orientation-demo.js +0 -31
  438. package/src/components/icon-demo.js +0 -16
  439. package/src/components/icons/index.js +0 -59
  440. package/src/components/icons/svg-icons/ArrowLeftIcon.js +0 -3
  441. package/src/components/icons/svg-icons/ArrowRightIcon.js +0 -3
  442. package/src/components/icons/svg-icons/AudioIcon.js +0 -4
  443. package/src/components/icons/svg-icons/BackwardIcon.js +0 -3
  444. package/src/components/icons/svg-icons/CameraIcon.js +0 -4
  445. package/src/components/icons/svg-icons/CheckIcon.js +0 -4
  446. package/src/components/icons/svg-icons/EnablePiPIcon.js +0 -5
  447. package/src/components/icons/svg-icons/ForwardIcon.js +0 -3
  448. package/src/components/icons/svg-icons/FullscreenEnterIcon.js +0 -3
  449. package/src/components/icons/svg-icons/FullscreenExitIcon.js +0 -3
  450. package/src/components/icons/svg-icons/LoadingIcon.js +0 -3
  451. package/src/components/icons/svg-icons/PauseIcon.js +0 -3
  452. package/src/components/icons/svg-icons/PlayIcon.js +0 -3
  453. package/src/components/icons/svg-icons/PlaybackSpeedIcon.js +0 -3
  454. package/src/components/icons/svg-icons/QualityIcon.js +0 -3
  455. package/src/components/icons/svg-icons/SettingsIcon.js +0 -3
  456. package/src/components/icons/svg-icons/SliderIcon.js +0 -3
  457. package/src/components/icons/svg-icons/SubtitleIcon.js +0 -3
  458. package/src/components/icons/svg-icons/SubtitleOffIcon.js +0 -3
  459. package/src/components/icons/svg-icons/UnPiPIcon.js +0 -5
  460. package/src/components/icons/svg-icons/VolumeMutedIcon.js +0 -3
  461. package/src/components/icons/svg-icons/VolumeOneIcon.js +0 -3
  462. package/src/components/icons/svg-icons/VolumeThreeIcon.js +0 -3
  463. package/src/components/icons/svg-icons/VolumeTwoIcon.js +0 -3
  464. package/src/components/legacy.js +0 -52
  465. package/src/components/media-metadata-display.js +0 -20
  466. package/src/components/media-player-audio.js +0 -18
  467. package/src/components/media-player-controls.js +0 -150
  468. package/src/components/media-player-error.js +0 -85
  469. package/src/components/media-player-fullscreen.js +0 -68
  470. package/src/components/media-player-hls.js +0 -20
  471. package/src/components/media-player-loading.js +0 -53
  472. package/src/components/media-player-play.js +0 -44
  473. package/src/components/media-player-root.js +0 -243
  474. package/src/components/media-player-seek.js +0 -92
  475. package/src/components/media-player-time.js +0 -57
  476. package/src/components/media-player-tooltip.js +0 -14
  477. package/src/components/media-player-video.js +0 -18
  478. package/src/components/media-player-volume.js +0 -88
  479. package/src/components/media-player.js +0 -67
  480. package/src/components/media-suspense.js +0 -173
  481. package/src/components/player-settings-form.js +0 -46
  482. package/src/components/react-player-wrapper.js +0 -163
  483. package/src/components/simple-video-player.js +0 -41
  484. package/src/components/ui/enhanced-seek-bar.js +0 -112
  485. package/src/components/ui/fullscreen-button.js +0 -21
  486. package/src/components/ui/media-resource-preloader.js +0 -295
  487. package/src/components/ui/play-button.js +0 -26
  488. package/src/components/ui/seek-bar.js +0 -54
  489. package/src/components/ui/time-display.js +0 -18
  490. package/src/components/ui/volume-control.js +0 -71
  491. package/src/components/unified/base-media-player.js +0 -104
  492. package/src/components/unified/media-player.js +0 -41
  493. package/src/components/variants/minimal/AccessibleMinimalPlayer.js +0 -322
  494. package/src/components/variants/minimal/EnhancedMinimalMediaPlayer.js +0 -280
  495. package/src/components/variants/minimal/MinimalControls.js +0 -19
  496. package/src/components/variants/minimal/MinimalLoading.js +0 -6
  497. package/src/components/variants/minimal/MinimalMediaPlayer.js +0 -135
  498. package/src/components/variants/minimal/MinimalOverlay.js +0 -15
  499. package/src/components/variants/minimal/MinimalPlayButton.js +0 -29
  500. package/src/components/variants/minimal/MinimalSeekBar.js +0 -73
  501. package/src/components/variants/minimal/MinimalVolumeControl.js +0 -29
  502. package/src/components/variants/minimal/SimpleMinimalPlayer.js +0 -51
  503. package/src/components/variants/minimal/components/CenterPlayButton.js +0 -8
  504. package/src/components/variants/minimal/components/ControlBar.js +0 -10
  505. package/src/components/variants/minimal/components/EnhancedSettingsMenu.js +0 -68
  506. package/src/components/variants/minimal/components/PlaybackControls.js +0 -9
  507. package/src/components/variants/minimal/components/RightControls.js +0 -40
  508. package/src/components/variants/minimal/components/SeekBar.js +0 -43
  509. package/src/components/variants/minimal/components/SettingsDropdown.js +0 -18
  510. package/src/components/variants/minimal/components/SubtitleDisplay.js +0 -6
  511. package/src/components/variants/minimal/components/TimeDisplay.js +0 -5
  512. package/src/components/variants/minimal/components/VideoElement.js +0 -4
  513. package/src/components/variants/minimal/components/VolumeControl.js +0 -99
  514. package/src/components/variants/minimal/index.js +0 -8
  515. package/src/components/video-player.js +0 -38
  516. package/src/context/error-handling.js +0 -300
  517. package/src/context/media-context.js +0 -121
  518. package/src/context/media-provider.js +0 -164
  519. package/src/context/media-store.js +0 -273
  520. package/src/context/persistence.js +0 -356
  521. package/src/core/events/event-system.js +0 -288
  522. package/src/core/events/hooks.js +0 -198
  523. package/src/core/events/index.js +0 -7
  524. package/src/core/events/middleware.js +0 -219
  525. package/src/core/index.js +0 -15
  526. package/src/core/optimization/bundle-optimizer.js +0 -217
  527. package/src/core/performance/cicd.js +0 -83
  528. package/src/core/performance/index.js +0 -14
  529. package/src/core/performance/media-loading-optimizer.js +0 -404
  530. package/src/core/performance/performance-budgets.js +0 -326
  531. package/src/core/performance/performance-monitor.js +0 -297
  532. package/src/core/performance/performance-testing.js +0 -314
  533. package/src/core/plugins/base-plugin.js +0 -151
  534. package/src/core/plugins/enhanced-plugin-system.js +0 -305
  535. package/src/core/plugins/examples/analytics-plugin.js +0 -191
  536. package/src/core/plugins/index.js +0 -9
  537. package/src/core/plugins/registry.js +0 -261
  538. package/src/core/plugins/types.js +0 -31
  539. package/src/core/plugins/utils.js +0 -274
  540. package/src/core/progressive-loading.js +0 -239
  541. package/src/core/providers/enhanced-hls-provider.js +0 -273
  542. package/src/core/providers/service-provider.js +0 -105
  543. package/src/core/utils.js +0 -21
  544. package/src/features/media-session/media-session-manager.js +0 -331
  545. package/src/features/picture-in-picture/pip-manager.js +0 -353
  546. package/src/features/playlist/playlist-manager.js +0 -475
  547. package/src/features/subtitles/subtitle-manager.js +0 -335
  548. package/src/features/subtitles/subtitle-parser.js +0 -217
  549. package/src/features/thumbnails/thumbnail-generator.js +0 -388
  550. package/src/hooks/accessibility/index.js +0 -4
  551. package/src/hooks/accessibility/use-accessibility-preferences.js +0 -156
  552. package/src/hooks/accessibility/use-focus-management.js +0 -142
  553. package/src/hooks/accessibility/use-keyboard-shortcuts.js +0 -101
  554. package/src/hooks/accessibility/use-screen-reader.js +0 -148
  555. package/src/hooks/core/index.js +0 -19
  556. package/src/hooks/legacy.js +0 -17
  557. package/src/hooks/use-enhanced-media-player.js +0 -395
  558. package/src/hooks/use-intelligent-preloading.js +0 -258
  559. package/src/hooks/use-keyboard-controls.js +0 -83
  560. package/src/hooks/use-media-actions.js +0 -121
  561. package/src/hooks/use-media-metadata.js +0 -74
  562. package/src/hooks/use-media-optimistic.js +0 -205
  563. package/src/hooks/use-media-player.js +0 -251
  564. package/src/hooks/use-media-state.js +0 -162
  565. package/src/hooks/use-memory-optimization.js +0 -288
  566. package/src/hooks/use-optimistic-controls.js +0 -60
  567. package/src/hooks/use-optimized-media.js +0 -211
  568. package/src/hooks/use-touch-gestures.js +0 -289
  569. package/src/hooks/useEnhancedSubtitles.js +0 -205
  570. package/src/hooks/useKeyboardShortcuts.js +0 -59
  571. package/src/hooks/useMediaControls.js +0 -44
  572. package/src/hooks/useScreenshot.js +0 -56
  573. package/src/hooks/useSubtitles.js +0 -73
  574. package/src/hooks/useVideoPlayer.js +0 -184
  575. package/src/icons/components/FullscreenIcon.js +0 -11
  576. package/src/icons/components/SettingsIcon.js +0 -11
  577. package/src/icons/components/animated/LoadingIcon.js +0 -11
  578. package/src/icons/components/animated/PlayPauseIcon.js +0 -9
  579. package/src/icons/components/media/PauseIcon.js +0 -12
  580. package/src/icons/components/media/PlayIcon.js +0 -12
  581. package/src/icons/components/volume/VolumeIcon.js +0 -11
  582. package/src/icons/components/volume/VolumeOffIcon.js +0 -11
  583. package/src/icons/index.js +0 -45
  584. package/src/icons/provider.js +0 -37
  585. package/src/icons/types.js +0 -1
  586. package/src/index-enhanced.js +0 -16
  587. package/src/index-legacy.js +0 -97
  588. package/src/index.js +0 -90
  589. package/src/index.minimal.js +0 -3
  590. package/src/lib/deprecation.js +0 -31
  591. package/src/lib/format-time.js +0 -32
  592. package/src/lib/index.js +0 -3
  593. package/src/lib/utils.js +0 -5
  594. package/src/test/setup.js +0 -65
  595. package/src/types/events.js +0 -2
  596. package/src/types/formats.js +0 -63
  597. package/src/types/index.js +0 -4
@@ -1,1073 +0,0 @@
1
- import { u as U, a as L, b, j as e, M as f } from "./context-Af84FynT.js";
2
- import r, { useMemo as $ } from "react";
3
- import { c as p, f as D, a as _ } from "./utils-nTO4AnHo.js";
4
- function X(d, l, s, n) {
5
- const [t, o] = r.useState(!0), [a, i] = r.useState(!1), [c, m] = r.useState(!1), u = r.useRef(null), w = r.useCallback(() => {
6
- u.current && clearTimeout(u.current), d && (u.current = setTimeout(() => {
7
- !a && !c && o(!1);
8
- }, l));
9
- }, [d, l, a, c]), C = r.useCallback(() => {
10
- o(!0), w();
11
- }, [w]);
12
- r.useEffect(() => (d ? w() : o(!0), () => {
13
- u.current && clearTimeout(u.current);
14
- }), [d, w]);
15
- const g = r.useCallback(() => {
16
- s && (i(!0), o(!0));
17
- }, [s]), y = r.useCallback(() => {
18
- s && (i(!1), w());
19
- }, [s, w]), h = r.useCallback(() => {
20
- n && (m(!0), C());
21
- }, [n, C]), N = r.useCallback(() => {
22
- n && (m(!1), w());
23
- }, [n, w]);
24
- return {
25
- showControls: t,
26
- showControlsTemporarily: C,
27
- handleMouseEnter: g,
28
- handleMouseLeave: y,
29
- handleTouchStart: h,
30
- handleTouchEnd: N
31
- };
32
- }
33
- function G(d) {
34
- const l = L(), s = b((g) => g.isPlaying), n = b((g) => g.currentTime), t = b((g) => g.duration), o = b((g) => g.volume), [a, i] = r.useState(null), [c, m] = r.useState(!1), u = r.useCallback((g) => {
35
- if (!d) return;
36
- const y = g.touches[0];
37
- if (!y) return;
38
- const h = Date.now();
39
- a && h - a.time < 300 ? (m(!0), l({
40
- type: s ? f.PAUSE : f.PLAY
41
- })) : (i({
42
- x: y.clientX,
43
- y: y.clientY,
44
- time: h
45
- }), m(!1));
46
- }, [d, a, s, l]), w = r.useCallback((g) => {
47
- if (!d || !a || c) return;
48
- const y = g.touches[0];
49
- if (!y) return;
50
- const h = y.clientX - a.x, N = y.clientY - a.y;
51
- if (Math.abs(h) > Math.abs(N) && Math.abs(h) > 50) {
52
- const E = h / window.innerWidth * 30, T = Math.max(0, Math.min(t, n + E));
53
- l({
54
- type: f.SEEK,
55
- detail: T
56
- });
57
- }
58
- if (Math.abs(N) > Math.abs(h) && Math.abs(N) > 50 && a.x > window.innerWidth / 2) {
59
- const E = -(N / window.innerHeight) * 1, T = Math.max(0, Math.min(1, o + E));
60
- l({
61
- type: f.SET_VOLUME,
62
- detail: T
63
- });
64
- }
65
- }, [d, a, c, t, n, o, l]), C = r.useCallback(() => {
66
- d && setTimeout(() => {
67
- i(null), m(!1);
68
- }, 300);
69
- }, [d]);
70
- return {
71
- handleTouchStart: u,
72
- handleTouchMove: w,
73
- handleTouchEnd: C
74
- };
75
- }
76
- const Y = function({
77
- children: l,
78
- className: s,
79
- autoHide: n = !0,
80
- autoHideDelay: t = 3e3,
81
- showControlsOnHover: o = !0,
82
- showControlsOnTouch: a = !0,
83
- enableKeyboardControls: i = !0,
84
- enableTouchGestures: c = !0,
85
- onPlay: m,
86
- onPause: u,
87
- onTimeUpdate: w,
88
- onVolumeChange: C,
89
- onFullscreenChange: g
90
- }) {
91
- const y = U(), h = L(), N = b(r.useCallback((k) => k.isPlaying, [])), E = b(r.useCallback((k) => k.isFullscreen, [])), T = b(r.useCallback((k) => k.currentTime, [])), S = b(r.useCallback((k) => k.volume, [])), x = b(r.useCallback((k) => k.error, [])), {
92
- showControls: v,
93
- showControlsTemporarily: B,
94
- handleMouseEnter: z,
95
- handleMouseLeave: A,
96
- handleTouchStart: j,
97
- handleTouchEnd: M
98
- } = X(n, t, o, a), {
99
- handleTouchStart: F,
100
- handleTouchMove: V,
101
- handleTouchEnd: R
102
- } = G(c), H = r.useCallback((k) => {
103
- j(), F(k);
104
- }, [j, F]), O = r.useCallback(() => {
105
- M(), R();
106
- }, [M, R]), K = r.useCallback(() => {
107
- B();
108
- }, [B]);
109
- return r.useEffect(() => {
110
- if (!i) return;
111
- const k = (P) => {
112
- if (!(P.target instanceof HTMLInputElement || P.target instanceof HTMLTextAreaElement))
113
- switch (P.code) {
114
- case "Space":
115
- case "KeyK":
116
- P.preventDefault(), h({
117
- type: N ? f.PAUSE : f.PLAY
118
- });
119
- break;
120
- case "KeyF":
121
- P.preventDefault(), h({
122
- type: E ? f.EXIT_FULLSCREEN : f.ENTER_FULLSCREEN
123
- });
124
- break;
125
- case "KeyM":
126
- P.preventDefault(), h({ type: f.TOGGLE_MUTE });
127
- break;
128
- case "ArrowLeft":
129
- P.preventDefault(), h({
130
- type: f.SEEK,
131
- detail: Math.max(0, T - 10)
132
- });
133
- break;
134
- case "ArrowRight":
135
- P.preventDefault(), h({
136
- type: f.SEEK,
137
- detail: T + 10
138
- });
139
- break;
140
- case "ArrowUp":
141
- P.preventDefault(), h({
142
- type: f.SET_VOLUME,
143
- detail: Math.min(1, S + 0.1)
144
- });
145
- break;
146
- case "ArrowDown":
147
- P.preventDefault(), h({
148
- type: f.SET_VOLUME,
149
- detail: Math.max(0, S - 0.1)
150
- });
151
- break;
152
- }
153
- };
154
- return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
155
- }, [i, h, N, E, T, S]), r.useEffect(() => {
156
- N ? m?.() : u?.();
157
- }, [N, m, u]), r.useEffect(() => {
158
- w?.(T);
159
- }, [T, w]), r.useEffect(() => {
160
- C?.(S);
161
- }, [S, C]), r.useEffect(() => {
162
- g?.(E);
163
- }, [E, g]), /* @__PURE__ */ e.jsx(
164
- "div",
165
- {
166
- ref: y.rootRef,
167
- className: p(
168
- "relative isolate flex flex-col overflow-hidden rounded-lg bg-black outline-none",
169
- "focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
170
- "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
171
- E && "fixed inset-0 z-50 rounded-none",
172
- s
173
- ),
174
- "data-state": E ? "fullscreen" : "inline",
175
- "data-disabled": x ? "" : void 0,
176
- "data-controls-visible": v ? "" : void 0,
177
- tabIndex: 0,
178
- onMouseEnter: z,
179
- onMouseLeave: A,
180
- onTouchStart: H,
181
- onTouchMove: V,
182
- onTouchEnd: O,
183
- onClick: K,
184
- children: l
185
- }
186
- );
187
- };
188
- Y.displayName = "EnhancedMediaPlayer";
189
- const W = function({
190
- qualities: l,
191
- currentQuality: s,
192
- onQualityChange: n,
193
- className: t
194
- }) {
195
- const [o, a] = r.useState(!1), i = r.useMemo(() => l.find((c) => c.id === s)?.label || "Auto", [l, s]);
196
- return /* @__PURE__ */ e.jsxs("div", { className: p("relative", t), children: [
197
- /* @__PURE__ */ e.jsxs(
198
- "button",
199
- {
200
- type: "button",
201
- onClick: () => a(!o),
202
- className: "flex items-center gap-2 rounded-lg bg-black/50 px-3 py-2 text-white transition-colors hover:bg-black/70",
203
- "aria-label": "Select quality",
204
- children: [
205
- /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-4 w-4", children: /* @__PURE__ */ e.jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) }),
206
- /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: i }),
207
- /* @__PURE__ */ e.jsx(
208
- "svg",
209
- {
210
- viewBox: "0 0 24 24",
211
- fill: "currentColor",
212
- className: p("h-4 w-4 transition-transform", o && "rotate-180"),
213
- children: /* @__PURE__ */ e.jsx("path", { d: "M7 10l5 5 5-5z" })
214
- }
215
- )
216
- ]
217
- }
218
- ),
219
- o && /* @__PURE__ */ e.jsx("div", { className: "absolute right-0 bottom-full mb-2 min-w-32 rounded-lg border border-white/20 bg-black/90 py-2 backdrop-blur-sm", children: l.map((c) => /* @__PURE__ */ e.jsxs(
220
- "button",
221
- {
222
- onClick: () => {
223
- n(c.id), a(!1);
224
- },
225
- className: p(
226
- "w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
227
- c.id === s && "bg-primary/20 text-primary"
228
- ),
229
- children: [
230
- c.label,
231
- c.bitrate && /* @__PURE__ */ e.jsxs("span", { className: "ml-2 text-white/60 text-xs", children: [
232
- "(",
233
- Math.round(c.bitrate / 1e3),
234
- "k)"
235
- ] })
236
- ]
237
- },
238
- c.id
239
- )) })
240
- ] });
241
- }, Q = function({
242
- subtitles: l,
243
- currentSubtitle: s,
244
- onSubtitleChange: n,
245
- className: t
246
- }) {
247
- const [o, a] = r.useState(!1), i = r.useMemo(() => s && l.find((c) => c.id === s)?.label || "Off", [l, s]);
248
- return /* @__PURE__ */ e.jsxs("div", { className: p("relative", t), children: [
249
- /* @__PURE__ */ e.jsxs(
250
- "button",
251
- {
252
- type: "button",
253
- onClick: () => a(!o),
254
- className: "flex items-center gap-2 rounded-lg bg-black/50 px-3 py-2 text-white transition-colors hover:bg-black/70",
255
- "aria-label": "Select subtitles",
256
- children: [
257
- /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-4 w-4", children: /* @__PURE__ */ e.jsx("path", { d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z" }) }),
258
- /* @__PURE__ */ e.jsx("span", { className: "text-sm", children: i }),
259
- /* @__PURE__ */ e.jsx(
260
- "svg",
261
- {
262
- viewBox: "0 0 24 24",
263
- fill: "currentColor",
264
- className: p("h-4 w-4 transition-transform", o && "rotate-180"),
265
- children: /* @__PURE__ */ e.jsx("path", { d: "M7 10l5 5 5-5z" })
266
- }
267
- )
268
- ]
269
- }
270
- ),
271
- o && /* @__PURE__ */ e.jsxs("div", { className: "absolute right-0 bottom-full mb-2 min-w-32 rounded-lg border border-white/20 bg-black/90 py-2 backdrop-blur-sm", children: [
272
- /* @__PURE__ */ e.jsx(
273
- "button",
274
- {
275
- onClick: () => {
276
- n(null), a(!1);
277
- },
278
- className: p(
279
- "w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
280
- !s && "bg-primary/20 text-primary"
281
- ),
282
- children: "Off"
283
- }
284
- ),
285
- l.map((c) => /* @__PURE__ */ e.jsx(
286
- "button",
287
- {
288
- onClick: () => {
289
- n(c.id), a(!1);
290
- },
291
- className: p(
292
- "w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
293
- c.id === s && "bg-primary/20 text-primary"
294
- ),
295
- children: c.label
296
- },
297
- c.id
298
- ))
299
- ] })
300
- ] });
301
- }, J = function({
302
- className: l
303
- }) {
304
- const s = L(), n = b((c) => c.playbackRate), [t, o] = r.useState(!1), a = [0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2], i = r.useCallback((c) => {
305
- s({ type: f.SET_PLAYBACK_RATE, detail: c }), o(!1);
306
- }, [s]);
307
- return /* @__PURE__ */ e.jsxs("div", { className: p("relative", l), children: [
308
- /* @__PURE__ */ e.jsxs(
309
- "button",
310
- {
311
- type: "button",
312
- onClick: () => o(!t),
313
- className: "flex items-center gap-2 rounded-lg bg-black/50 px-3 py-2 text-white transition-colors hover:bg-black/70",
314
- "aria-label": "Select playback speed",
315
- children: [
316
- /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-4 w-4", children: /* @__PURE__ */ e.jsx("path", { d: "M13,8A4,4 0 0,0 9,12A4,4 0 0,0 13,16A4,4 0 0,0 17,12A4,4 0 0,0 13,8M13,14A2,2 0 0,1 11,12A2,2 0 0,1 13,10A2,2 0 0,1 15,12A2,2 0 0,1 13,14M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4Z" }) }),
317
- /* @__PURE__ */ e.jsxs("span", { className: "text-sm", children: [
318
- n,
319
- "x"
320
- ] }),
321
- /* @__PURE__ */ e.jsx(
322
- "svg",
323
- {
324
- viewBox: "0 0 24 24",
325
- fill: "currentColor",
326
- className: p("h-4 w-4 transition-transform", t && "rotate-180"),
327
- children: /* @__PURE__ */ e.jsx("path", { d: "M7 10l5 5 5-5z" })
328
- }
329
- )
330
- ]
331
- }
332
- ),
333
- t && /* @__PURE__ */ e.jsx("div", { className: "absolute right-0 bottom-full mb-2 min-w-20 rounded-lg border border-white/20 bg-black/90 py-2 backdrop-blur-sm", children: a.map((c) => /* @__PURE__ */ e.jsxs(
334
- "button",
335
- {
336
- onClick: () => i(c),
337
- className: p(
338
- "w-full px-4 py-2 text-left text-sm text-white transition-colors hover:bg-white/10",
339
- c === n && "bg-primary/20 text-primary"
340
- ),
341
- children: [
342
- c,
343
- "x"
344
- ]
345
- },
346
- c
347
- )) })
348
- ] });
349
- }, Z = function({
350
- chapters: l,
351
- onChapterSelect: s,
352
- className: n
353
- }) {
354
- const t = b((a) => a.currentTime), o = r.useMemo(() => l.find(
355
- (a) => t >= a.startTime && t < a.endTime
356
- ), [l, t]);
357
- return /* @__PURE__ */ e.jsxs("div", { className: p("rounded-lg border border-white/20 bg-black/90 p-4 backdrop-blur-sm", n), children: [
358
- /* @__PURE__ */ e.jsx("h3", { className: "mb-3 font-semibold text-white", children: "Chapters" }),
359
- /* @__PURE__ */ e.jsx("div", { className: "max-h-64 space-y-2 overflow-y-auto", children: l.map((a) => /* @__PURE__ */ e.jsxs(
360
- "button",
361
- {
362
- onClick: () => s(a),
363
- className: p(
364
- "flex w-full items-center gap-3 rounded-lg p-3 text-left transition-colors",
365
- "hover:bg-white/10",
366
- a.id === o?.id && "border border-primary/30 bg-primary/20"
367
- ),
368
- children: [
369
- a.thumbnail && /* @__PURE__ */ e.jsx(
370
- "img",
371
- {
372
- src: a.thumbnail,
373
- alt: a.title,
374
- className: "h-9 w-16 rounded object-cover"
375
- }
376
- ),
377
- /* @__PURE__ */ e.jsxs("div", { className: "min-w-0 flex-1", children: [
378
- /* @__PURE__ */ e.jsx("div", { className: "truncate font-medium text-white", children: a.title }),
379
- /* @__PURE__ */ e.jsxs("div", { className: "text-sm text-white/60", children: [
380
- D(a.startTime),
381
- " - ",
382
- D(a.endTime)
383
- ] })
384
- ] })
385
- ]
386
- },
387
- a.id
388
- )) })
389
- ] });
390
- }, q = function({
391
- className: l
392
- }) {
393
- const s = L(), n = b((o) => o.isPictureInPicture), t = r.useCallback(() => {
394
- s({
395
- type: n ? f.EXIT_PIP : f.ENTER_PIP
396
- });
397
- }, [s, n]);
398
- return /* @__PURE__ */ e.jsx(
399
- "button",
400
- {
401
- type: "button",
402
- onClick: t,
403
- className: p(
404
- "flex h-10 w-10 items-center justify-center rounded-full text-white",
405
- "transition-colors hover:bg-white/10",
406
- l
407
- ),
408
- "aria-label": n ? "Exit Picture-in-Picture" : "Enter Picture-in-Picture",
409
- children: /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14z" }) })
410
- }
411
- );
412
- }, ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
413
- __proto__: null,
414
- ChaptersPanel: Z,
415
- PictureInPictureButton: q,
416
- PlaybackSpeedSelector: J,
417
- QualitySelector: W,
418
- SubtitleSelector: Q
419
- }, Symbol.toStringTag, { value: "Module" })), ee = function({
420
- className: l,
421
- size: s = "md"
422
- }) {
423
- const n = L(), t = b((m) => m.isPlaying), o = b((m) => m.isLoading), a = {
424
- sm: "h-8 w-8",
425
- md: "h-10 w-10",
426
- lg: "h-12 w-12",
427
- xl: "h-16 w-16"
428
- }, i = {
429
- sm: "h-4 w-4",
430
- md: "h-5 w-5",
431
- lg: "h-6 w-6",
432
- xl: "h-8 w-8"
433
- }, c = r.useCallback(() => {
434
- n({
435
- type: t ? f.PAUSE : f.PLAY
436
- });
437
- }, [n, t]);
438
- return /* @__PURE__ */ e.jsx(
439
- "button",
440
- {
441
- type: "button",
442
- onClick: c,
443
- disabled: o,
444
- className: p(
445
- "group relative flex items-center justify-center rounded-full bg-white/10 backdrop-blur-sm",
446
- "border border-white/20 text-white transition-all duration-200",
447
- "hover:scale-105 hover:bg-white/20 active:scale-95",
448
- "focus:outline-none focus:ring-2 focus:ring-white/50",
449
- "disabled:cursor-not-allowed disabled:opacity-50",
450
- a[s],
451
- l
452
- ),
453
- "aria-label": t ? "Pause" : "Play",
454
- children: o ? /* @__PURE__ */ e.jsx("div", { className: p("animate-spin rounded-full border-2 border-white/30 border-t-white", i[s]) }) : /* @__PURE__ */ e.jsx("div", { className: p("transition-transform duration-200", i[s]), children: t ? /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-full w-full", children: /* @__PURE__ */ e.jsx("path", { d: "M6 4h4v16H6V4zm8 0h4v16h-4V4z" }) }) : /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "ml-0.5 h-full w-full", children: /* @__PURE__ */ e.jsx("path", { d: "M8 5v14l11-7z" }) }) })
455
- }
456
- );
457
- }, se = function({
458
- className: l
459
- }) {
460
- const s = L(), n = b((x) => x.currentTime), t = b((x) => x.duration), o = b((x) => x.buffered), a = b((x) => x.previewTime), [i, c] = r.useState(!1), [m, u] = r.useState(null), w = r.useRef(null), C = t > 0 ? n / t * 100 : 0, g = t > 0 && a !== null ? a / t * 100 : null, y = r.useMemo(() => {
461
- if (!o || t === 0) return [];
462
- const x = [];
463
- for (let v = 0; v < o.length; v++)
464
- x.push({
465
- start: o.start(v) / t * 100,
466
- end: o.end(v) / t * 100
467
- });
468
- return x;
469
- }, [o, t]), h = r.useCallback((x) => {
470
- if (!w.current) return 0;
471
- const v = w.current.getBoundingClientRect();
472
- return Math.max(0, Math.min(1, (x - v.left) / v.width)) * t;
473
- }, [t]), N = r.useCallback((x) => {
474
- if (!i) {
475
- const v = h(x.clientX);
476
- u(v), s({ type: f.PREVIEW_TIME, detail: v });
477
- }
478
- }, [i, h, s]), E = r.useCallback(() => {
479
- i || (u(null), s({ type: f.CLEAR_PREVIEW }));
480
- }, [i, s]), T = r.useCallback((x) => {
481
- c(!0);
482
- const v = h(x.clientX);
483
- s({ type: f.SEEK, detail: v });
484
- }, [h, s]), S = r.useCallback((x) => {
485
- c(!0);
486
- const v = h(x.touches[0]?.clientX || 0);
487
- s({ type: f.SEEK, detail: v });
488
- }, [h, s]);
489
- return r.useEffect(() => {
490
- const x = (z) => {
491
- if (i) {
492
- const A = h(z.clientX);
493
- s({ type: f.SEEK, detail: A });
494
- }
495
- }, v = () => {
496
- c(!1), u(null), s({ type: f.CLEAR_PREVIEW });
497
- }, B = (z) => {
498
- if (i) {
499
- const A = h(z.touches[0]?.clientX || 0);
500
- s({ type: f.SEEK, detail: A });
501
- }
502
- };
503
- return i && (document.addEventListener("mousemove", x), document.addEventListener("mouseup", v), document.addEventListener("touchmove", B), document.addEventListener("touchend", v)), () => {
504
- document.removeEventListener("mousemove", x), document.removeEventListener("mouseup", v), document.removeEventListener("touchmove", B), document.removeEventListener("touchend", v);
505
- };
506
- }, [i, h, s]), /* @__PURE__ */ e.jsxs("div", { className: p("group relative flex items-center", l), children: [
507
- (m !== null || a !== null) && /* @__PURE__ */ e.jsx(
508
- "div",
509
- {
510
- className: "pointer-events-none absolute bottom-full mb-2 rounded bg-black/80 px-2 py-1 text-white text-xs",
511
- style: {
512
- left: `${g || (m || 0) / t * 100}%`,
513
- transform: "translateX(-50%)"
514
- },
515
- children: D(m || a || 0)
516
- }
517
- ),
518
- /* @__PURE__ */ e.jsxs(
519
- "div",
520
- {
521
- ref: w,
522
- className: "relative h-2 w-full cursor-pointer rounded-full bg-white/20 transition-all duration-200 group-hover:h-3",
523
- onMouseMove: N,
524
- onMouseLeave: E,
525
- onMouseDown: T,
526
- onTouchStart: S,
527
- children: [
528
- y.map((x, v) => /* @__PURE__ */ e.jsx(
529
- "div",
530
- {
531
- className: "absolute top-0 h-full rounded-full bg-white/30",
532
- style: {
533
- left: `${x.start}%`,
534
- width: `${x.end - x.start}%`
535
- }
536
- },
537
- v
538
- )),
539
- /* @__PURE__ */ e.jsx(
540
- "div",
541
- {
542
- className: "absolute top-0 h-full rounded-full bg-primary transition-all duration-100",
543
- style: { width: `${C}%` }
544
- }
545
- ),
546
- g !== null && /* @__PURE__ */ e.jsx(
547
- "div",
548
- {
549
- className: "absolute top-0 h-full w-1 rounded-full bg-white/80",
550
- style: { left: `${g}%` }
551
- }
552
- ),
553
- /* @__PURE__ */ e.jsx(
554
- "div",
555
- {
556
- className: "-translate-y-1/2 absolute top-1/2 h-4 w-4 rounded-full border-2 border-white bg-primary opacity-0 shadow-lg transition-all duration-200 group-hover:opacity-100",
557
- style: { left: `${C}%`, transform: "translateX(-50%) translateY(-50%)" }
558
- }
559
- )
560
- ]
561
- }
562
- )
563
- ] });
564
- }, te = function({
565
- className: l
566
- }) {
567
- const s = L(), n = b((u) => u.volume), t = b((u) => u.isMuted), [o, a] = r.useState(!1), i = r.useCallback(() => {
568
- s({ type: f.TOGGLE_MUTE });
569
- }, [s]), c = r.useCallback((u) => {
570
- s({ type: f.SET_VOLUME, detail: u });
571
- }, [s]), m = r.useMemo(() => t || n === 0 ? /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z" }) }) : n < 0.5 ? /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z" }) }) : /* @__PURE__ */ e.jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-5 w-5", children: /* @__PURE__ */ e.jsx("path", { d: "M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z" }) }), [t, n]);
572
- return /* @__PURE__ */ e.jsxs(
573
- "div",
574
- {
575
- className: p("relative flex items-center", l),
576
- onMouseEnter: () => a(!0),
577
- onMouseLeave: () => a(!1),
578
- children: [
579
- /* @__PURE__ */ e.jsx(
580
- "button",
581
- {
582
- type: "button",
583
- onClick: i,
584
- className: "flex h-10 w-10 items-center justify-center rounded-full text-white transition-colors hover:bg-white/10",
585
- "aria-label": t ? "Unmute" : "Mute",
586
- children: m
587
- }
588
- ),
589
- /* @__PURE__ */ e.jsx("div", { className: p(
590
- "absolute left-full ml-2 flex items-center transition-all duration-200",
591
- o ? "translate-x-0 opacity-100" : "-translate-x-2 pointer-events-none opacity-0"
592
- ), children: /* @__PURE__ */ e.jsx(
593
- "input",
594
- {
595
- type: "range",
596
- min: "0",
597
- max: "1",
598
- step: "0.01",
599
- value: t ? 0 : n,
600
- onChange: (u) => c(parseFloat(u.target.value)),
601
- className: "slider h-1 w-20 cursor-pointer appearance-none rounded-lg bg-white/20"
602
- }
603
- ) })
604
- ]
605
- }
606
- );
607
- }, ne = function({
608
- className: l,
609
- size: s = "md",
610
- skipTime: n = 10
611
- }) {
612
- const t = L(), o = b((m) => m.currentTime), a = {
613
- sm: "h-8 w-8",
614
- md: "h-10 w-10",
615
- lg: "h-12 w-12"
616
- }, i = {
617
- sm: "h-4 w-4",
618
- md: "h-5 w-5",
619
- lg: "h-6 w-6"
620
- }, c = r.useCallback(() => {
621
- const m = Math.max(0, o - n);
622
- t({ type: f.SEEK, detail: m });
623
- }, [t, o, n]);
624
- return /* @__PURE__ */ e.jsx(
625
- "button",
626
- {
627
- type: "button",
628
- onClick: c,
629
- className: p(
630
- "group relative flex items-center justify-center rounded-full bg-white/10 backdrop-blur-sm",
631
- "border border-white/20 text-white transition-all duration-200",
632
- "hover:scale-105 hover:bg-white/20 active:scale-95",
633
- "focus:outline-none focus:ring-2 focus:ring-white/50",
634
- a[s],
635
- l
636
- ),
637
- "aria-label": `Backward ${n} seconds`,
638
- title: `Backward ${n}s`,
639
- children: /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center transition-transform duration-200", i[s]), children: [
640
- /* @__PURE__ */ e.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-full w-full", children: [
641
- /* @__PURE__ */ e.jsx("path", { d: "M7 6c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1s-1-.45-1-1V7c0-.55.45-1 1-1zM15.5 7.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v9c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5v-9z" }),
642
- /* @__PURE__ */ e.jsx("path", { d: "M5.5 12l7-4.5v9l-7-4.5z", opacity: "0.8" })
643
- ] }),
644
- n && /* @__PURE__ */ e.jsx("span", { className: "-bottom-1 absolute font-bold text-[10px]", children: n })
645
- ] })
646
- }
647
- );
648
- }, ae = function({
649
- className: l,
650
- size: s = "md",
651
- skipTime: n = 10
652
- }) {
653
- const t = L(), o = b((u) => u.currentTime), a = b((u) => u.duration), i = {
654
- sm: "h-8 w-8",
655
- md: "h-10 w-10",
656
- lg: "h-12 w-12"
657
- }, c = {
658
- sm: "h-4 w-4",
659
- md: "h-5 w-5",
660
- lg: "h-6 w-6"
661
- }, m = r.useCallback(() => {
662
- const u = Math.min(a, o + n);
663
- t({ type: f.SEEK, detail: u });
664
- }, [t, o, a, n]);
665
- return /* @__PURE__ */ e.jsx(
666
- "button",
667
- {
668
- type: "button",
669
- onClick: m,
670
- className: p(
671
- "group relative flex items-center justify-center rounded-full bg-white/10 backdrop-blur-sm",
672
- "border border-white/20 text-white transition-all duration-200",
673
- "hover:scale-105 hover:bg-white/20 active:scale-95",
674
- "focus:outline-none focus:ring-2 focus:ring-white/50",
675
- i[s],
676
- l
677
- ),
678
- "aria-label": `Forward ${n} seconds`,
679
- title: `Forward ${n}s`,
680
- children: /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center transition-transform duration-200", c[s]), children: [
681
- /* @__PURE__ */ e.jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", className: "h-full w-full", children: [
682
- /* @__PURE__ */ e.jsx("path", { d: "M17 6c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1s-1-.45-1-1V7c0-.55.45-1 1-1zM8.5 7.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v9c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5v-9z" }),
683
- /* @__PURE__ */ e.jsx("path", { d: "M18.5 12l-7-4.5v9l7-4.5z", opacity: "0.8" })
684
- ] }),
685
- n && /* @__PURE__ */ e.jsx("span", { className: "-bottom-1 absolute font-bold text-[10px]", children: n })
686
- ] })
687
- }
688
- );
689
- }, I = function({
690
- variant: l = "current",
691
- className: s
692
- }) {
693
- const n = b((a) => a.currentTime), t = b((a) => a.duration), o = r.useMemo(() => {
694
- switch (l) {
695
- case "current":
696
- return D(n);
697
- case "duration":
698
- return D(t);
699
- case "remaining":
700
- return `-${D(t - n)}`;
701
- default:
702
- return D(n);
703
- }
704
- }, [l, n, t]);
705
- return /* @__PURE__ */ e.jsx("div", { className: p("font-mono text-sm text-white tabular-nums", s), children: o });
706
- }, le = function({
707
- metrics: l,
708
- className: s
709
- }) {
710
- if (!l || process.env.NODE_ENV !== "development")
711
- return null;
712
- const n = (o) => o >= 50 ? "text-green-400" : o >= 30 ? "text-yellow-400" : "text-red-400", t = (o) => o >= 5 ? "text-green-400" : o >= 2 ? "text-yellow-400" : "text-red-400";
713
- return /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center gap-3 font-mono text-xs", s), children: [
714
- l.fps !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center gap-1", n(l.fps)), children: [
715
- /* @__PURE__ */ e.jsx("div", { className: "h-2 w-2 rounded-full bg-current" }),
716
- /* @__PURE__ */ e.jsxs("span", { children: [
717
- l.fps,
718
- " FPS"
719
- ] })
720
- ] }),
721
- l.bufferHealth !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: p("flex items-center gap-1", t(l.bufferHealth)), children: [
722
- /* @__PURE__ */ e.jsx("div", { className: "h-2 w-2 rounded-full bg-current" }),
723
- /* @__PURE__ */ e.jsxs("span", { children: [
724
- l.bufferHealth.toFixed(1),
725
- "s"
726
- ] })
727
- ] }),
728
- l.quality !== void 0 && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1 text-blue-400", children: [
729
- /* @__PURE__ */ e.jsx("div", { className: "h-2 w-2 rounded-full bg-current" }),
730
- /* @__PURE__ */ e.jsxs("span", { children: [
731
- l.quality,
732
- "p"
733
- ] })
734
- ] })
735
- ] });
736
- }, de = function({
737
- className: l,
738
- showSkipButtons: s = !0,
739
- showVolumeControl: n = !0,
740
- showTimeDisplay: t = !0,
741
- playButtonSize: o = "xl",
742
- skipButtonSize: a = "md",
743
- skipTime: i = 10,
744
- showPerformanceIndicators: c = process.env.NODE_ENV === "development",
745
- performanceMetrics: m
746
- }) {
747
- return /* @__PURE__ */ e.jsxs("div", { className: p("flex flex-col gap-4 bg-gradient-to-t from-black/80 to-transparent p-4", l), children: [
748
- /* @__PURE__ */ e.jsx(se, { className: "w-full" }),
749
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between", children: [
750
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [
751
- s && /* @__PURE__ */ e.jsx(
752
- ne,
753
- {
754
- size: a,
755
- skipTime: i,
756
- className: "shrink-0"
757
- }
758
- ),
759
- /* @__PURE__ */ e.jsx(
760
- ee,
761
- {
762
- size: o,
763
- className: "shrink-0"
764
- }
765
- ),
766
- s && /* @__PURE__ */ e.jsx(
767
- ae,
768
- {
769
- size: a,
770
- skipTime: i,
771
- className: "shrink-0"
772
- }
773
- ),
774
- n && /* @__PURE__ */ e.jsx(te, { className: "shrink-0" }),
775
- t && /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1 font-mono text-sm", children: [
776
- /* @__PURE__ */ e.jsx(I, { variant: "current" }),
777
- /* @__PURE__ */ e.jsx("span", { className: "text-white/60", children: "/" }),
778
- /* @__PURE__ */ e.jsx(I, { variant: "duration" })
779
- ] })
780
- ] }),
781
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-2", children: c && /* @__PURE__ */ e.jsx(
782
- le,
783
- {
784
- metrics: m,
785
- className: "text-white/80"
786
- }
787
- ) })
788
- ] })
789
- ] });
790
- }, ue = ({
791
- performanceMetrics: d = {},
792
- preloadingStats: l = {},
793
- playbackState: s = {},
794
- hlsMetrics: n = {},
795
- pluginInfo: t = {},
796
- debugInfo: o = {},
797
- className: a,
798
- position: i = "top-right",
799
- defaultCollapsed: c = !1,
800
- title: m = "BaroiPlayer Debug Panel"
801
- }) => {
802
- const [u, w] = r.useState(c), [C, g] = r.useState("performance"), y = $(() => {
803
- switch (i) {
804
- case "top-left":
805
- return "top-4 left-4";
806
- case "top-right":
807
- return "top-4 right-4";
808
- case "bottom-left":
809
- return "bottom-4 left-4";
810
- case "bottom-right":
811
- return "bottom-4 right-4";
812
- default:
813
- return "top-4 right-4";
814
- }
815
- }, [i]), h = (j) => {
816
- if (j === 0) return "0 B";
817
- const M = 1024, F = ["B", "KB", "MB", "GB"], V = Math.floor(Math.log(j) / Math.log(M));
818
- return parseFloat((j / Math.pow(M, V)).toFixed(2)) + " " + F[V];
819
- }, N = (j) => {
820
- const M = Math.floor(j / 60), F = Math.floor(j % 60);
821
- return `${M}:${F.toString().padStart(2, "0")}`;
822
- }, E = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-2 text-xs", children: [
823
- /* @__PURE__ */ e.jsxs("div", { children: [
824
- /* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "FPS:" }),
825
- /* @__PURE__ */ e.jsx("span", { className: "ml-2 font-mono", children: d.fps || 0 })
826
- ] }),
827
- /* @__PURE__ */ e.jsxs("div", { children: [
828
- /* @__PURE__ */ e.jsx("span", { className: "text-blue-400", children: "Memory:" }),
829
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
830
- ((d.memoryUsage || 0) / 1024 / 1024).toFixed(1),
831
- " MB"
832
- ] })
833
- ] }),
834
- /* @__PURE__ */ e.jsxs("div", { children: [
835
- /* @__PURE__ */ e.jsx("span", { className: "text-yellow-400", children: "Buffer:" }),
836
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
837
- (d.bufferHealth || 0).toFixed(2),
838
- "s"
839
- ] })
840
- ] }),
841
- /* @__PURE__ */ e.jsxs("div", { children: [
842
- /* @__PURE__ */ e.jsx("span", { className: "text-purple-400", children: "Bandwidth:" }),
843
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
844
- h(d.networkBandwidth || 0),
845
- "/s"
846
- ] })
847
- ] }),
848
- /* @__PURE__ */ e.jsxs("div", { children: [
849
- /* @__PURE__ */ e.jsx("span", { className: "text-red-400", children: "Dropped:" }),
850
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
851
- d.droppedFrames || 0,
852
- " frames"
853
- ] })
854
- ] }),
855
- /* @__PURE__ */ e.jsxs("div", { children: [
856
- /* @__PURE__ */ e.jsx("span", { className: "text-cyan-400", children: "Decoded:" }),
857
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
858
- d.decodedFrames || 0,
859
- " frames"
860
- ] })
861
- ] })
862
- ] }) }), T = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-2 text-xs", children: [
863
- /* @__PURE__ */ e.jsxs("div", { children: [
864
- /* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "Status:" }),
865
- /* @__PURE__ */ e.jsx("span", { className: "ml-2 font-mono", children: s.isPlaying ? /* @__PURE__ */ e.jsx("span", { className: "text-green-300", children: "Playing" }) : /* @__PURE__ */ e.jsx("span", { className: "text-red-300", children: "Paused" }) })
866
- ] }),
867
- /* @__PURE__ */ e.jsxs("div", { children: [
868
- /* @__PURE__ */ e.jsx("span", { className: "text-blue-400", children: "Time:" }),
869
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
870
- N(s.currentTime || 0),
871
- " / ",
872
- N(s.duration || 0)
873
- ] })
874
- ] }),
875
- /* @__PURE__ */ e.jsxs("div", { children: [
876
- /* @__PURE__ */ e.jsx("span", { className: "text-yellow-400", children: "Volume:" }),
877
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
878
- Math.round((s.volume || 0) * 100),
879
- "%"
880
- ] })
881
- ] }),
882
- /* @__PURE__ */ e.jsxs("div", { children: [
883
- /* @__PURE__ */ e.jsx("span", { className: "text-purple-400", children: "Quality:" }),
884
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
885
- s.quality || 0,
886
- "p"
887
- ] })
888
- ] }),
889
- /* @__PURE__ */ e.jsxs("div", { children: [
890
- /* @__PURE__ */ e.jsx("span", { className: "text-red-400", children: "Buffering:" }),
891
- /* @__PURE__ */ e.jsx("span", { className: "ml-2 font-mono", children: s.isBuffering ? /* @__PURE__ */ e.jsx("span", { className: "text-yellow-300", children: "Yes" }) : /* @__PURE__ */ e.jsx("span", { className: "text-green-300", children: "No" }) })
892
- ] }),
893
- s.error && /* @__PURE__ */ e.jsxs("div", { className: "col-span-2", children: [
894
- /* @__PURE__ */ e.jsx("span", { className: "text-red-400", children: "Error:" }),
895
- /* @__PURE__ */ e.jsx("span", { className: "ml-2 break-all font-mono text-red-300 text-xs", children: s.error })
896
- ] })
897
- ] }) }), S = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-2 text-xs", children: [
898
- /* @__PURE__ */ e.jsxs("div", { children: [
899
- /* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "Preloaded:" }),
900
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
901
- l.preloadedItems || 0,
902
- " items"
903
- ] })
904
- ] }),
905
- /* @__PURE__ */ e.jsxs("div", { children: [
906
- /* @__PURE__ */ e.jsx("span", { className: "text-blue-400", children: "Engagement:" }),
907
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
908
- (l.engagementScore || 0).toFixed(1),
909
- "%"
910
- ] })
911
- ] }),
912
- /* @__PURE__ */ e.jsxs("div", { children: [
913
- /* @__PURE__ */ e.jsx("span", { className: "text-yellow-400", children: "Queue:" }),
914
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
915
- l.queueLength || 0,
916
- " items"
917
- ] })
918
- ] }),
919
- /* @__PURE__ */ e.jsxs("div", { children: [
920
- /* @__PURE__ */ e.jsx("span", { className: "text-purple-400", children: "Hit Rate:" }),
921
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
922
- (l.hitRate || 0).toFixed(1),
923
- "%"
924
- ] })
925
- ] }),
926
- /* @__PURE__ */ e.jsxs("div", { className: "col-span-2", children: [
927
- /* @__PURE__ */ e.jsx("span", { className: "text-cyan-400", children: "Saved:" }),
928
- /* @__PURE__ */ e.jsx("span", { className: "ml-2 font-mono", children: h(l.totalSaved || 0) })
929
- ] })
930
- ] }) }), x = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-2 text-xs", children: [
931
- /* @__PURE__ */ e.jsxs("div", { children: [
932
- /* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "Level:" }),
933
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
934
- n.currentLevel || 0,
935
- " / ",
936
- n.availableLevels || 0
937
- ] })
938
- ] }),
939
- /* @__PURE__ */ e.jsxs("div", { children: [
940
- /* @__PURE__ */ e.jsx("span", { className: "text-blue-400", children: "Bandwidth:" }),
941
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
942
- h(n.bandwidthEstimate || 0),
943
- "/s"
944
- ] })
945
- ] }),
946
- /* @__PURE__ */ e.jsxs("div", { children: [
947
- /* @__PURE__ */ e.jsx("span", { className: "text-red-400", children: "Dropped:" }),
948
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
949
- n.droppedFrames || 0,
950
- " frames"
951
- ] })
952
- ] })
953
- ] }) }), v = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsxs("div", { className: "text-xs", children: [
954
- /* @__PURE__ */ e.jsxs("div", { children: [
955
- /* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "Total:" }),
956
- /* @__PURE__ */ e.jsxs("span", { className: "ml-2 font-mono", children: [
957
- t.pluginCount || 0,
958
- " plugins"
959
- ] })
960
- ] }),
961
- /* @__PURE__ */ e.jsxs("div", { className: "mt-2", children: [
962
- /* @__PURE__ */ e.jsx("span", { className: "text-blue-400", children: "Active:" }),
963
- /* @__PURE__ */ e.jsx("div", { className: "ml-2 space-y-1 font-mono text-xs", children: t.activePlugins?.map((j, M) => /* @__PURE__ */ e.jsxs("div", { className: "text-green-300", children: [
964
- "• ",
965
- j
966
- ] }, M)) || /* @__PURE__ */ e.jsx("div", { className: "text-gray-400", children: "None" }) })
967
- ] }),
968
- t.loadedPlugins && t.loadedPlugins.length > (t.activePlugins?.length ?? 0) && /* @__PURE__ */ e.jsxs("div", { className: "mt-2", children: [
969
- /* @__PURE__ */ e.jsx("span", { className: "text-yellow-400", children: "Loaded (inactive):" }),
970
- /* @__PURE__ */ e.jsx("div", { className: "ml-2 space-y-1 font-mono text-xs", children: t.loadedPlugins.filter((j) => !t.activePlugins?.includes(j)).map((j, M) => /* @__PURE__ */ e.jsxs("div", { className: "text-yellow-300", children: [
971
- "• ",
972
- j
973
- ] }, M)) })
974
- ] })
975
- ] }) }), B = () => /* @__PURE__ */ e.jsx("div", { className: "space-y-2", children: /* @__PURE__ */ e.jsx("div", { className: "space-y-1 font-mono text-xs", children: Object.entries(o).map(([j, M]) => /* @__PURE__ */ e.jsxs("div", { children: [
976
- /* @__PURE__ */ e.jsxs("span", { className: "text-yellow-400", children: [
977
- j,
978
- ":"
979
- ] }),
980
- /* @__PURE__ */ e.jsx("span", { className: "ml-2 text-gray-300", children: typeof M == "object" ? JSON.stringify(M, null, 2) : String(M) })
981
- ] }, j)) }) }), z = () => /* @__PURE__ */ e.jsx("div", { className: "flex space-x-1 border-gray-600 border-b", children: [
982
- { id: "performance", label: "Performance" },
983
- { id: "hls", label: "HLS" },
984
- { id: "plugins", label: "Plugins" },
985
- { id: "debug", label: "Debug" }
986
- ].map((j) => /* @__PURE__ */ e.jsx(
987
- "button",
988
- {
989
- onClick: () => g(j.id),
990
- className: _(
991
- "px-2 py-1 font-medium text-xs transition-colors",
992
- C === j.id ? "border-blue-400 border-b text-blue-400" : "text-gray-400 hover:text-white"
993
- ),
994
- children: j.label
995
- },
996
- j.id
997
- )) }), A = () => {
998
- switch (C) {
999
- case "performance":
1000
- return /* @__PURE__ */ e.jsxs("div", { className: "space-y-3", children: [
1001
- E(),
1002
- /* @__PURE__ */ e.jsx("hr", { className: "border-gray-600" }),
1003
- T(),
1004
- /* @__PURE__ */ e.jsx("hr", { className: "border-gray-600" }),
1005
- S()
1006
- ] });
1007
- case "hls":
1008
- return x();
1009
- case "plugins":
1010
- return v();
1011
- case "debug":
1012
- return B();
1013
- default:
1014
- return E();
1015
- }
1016
- };
1017
- return process.env.NODE_ENV !== "development" ? null : /* @__PURE__ */ e.jsxs(
1018
- "div",
1019
- {
1020
- className: _(
1021
- "fixed z-50 min-w-80 max-w-96 rounded-lg border border-gray-700 bg-black/90 p-3 font-mono text-white text-xs backdrop-blur-sm",
1022
- y,
1023
- a
1024
- ),
1025
- children: [
1026
- /* @__PURE__ */ e.jsxs("div", { className: "mb-3 flex items-center justify-between", children: [
1027
- /* @__PURE__ */ e.jsx("h3", { className: "font-bold text-blue-400 text-sm", children: m }),
1028
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e.jsx(
1029
- "button",
1030
- {
1031
- onClick: () => w(!u),
1032
- className: "text-gray-400 transition-colors hover:text-white",
1033
- "aria-label": u ? "Expand" : "Collapse",
1034
- children: u ? /* @__PURE__ */ e.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e.jsx("path", { d: "M3 4.5L6 7.5L9 4.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) }) : /* @__PURE__ */ e.jsx("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e.jsx("path", { d: "M3 7.5L6 4.5L9 7.5", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
1035
- }
1036
- ) })
1037
- ] }),
1038
- u ? /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 gap-2 text-xs", children: [
1039
- /* @__PURE__ */ e.jsxs("div", { children: [
1040
- /* @__PURE__ */ e.jsx("span", { className: "text-green-400", children: "FPS:" }),
1041
- /* @__PURE__ */ e.jsx("span", { className: "ml-1 font-mono", children: d.fps || 0 })
1042
- ] }),
1043
- /* @__PURE__ */ e.jsxs("div", { children: [
1044
- /* @__PURE__ */ e.jsx("span", { className: "text-blue-400", children: "Memory:" }),
1045
- /* @__PURE__ */ e.jsxs("span", { className: "ml-1 font-mono", children: [
1046
- ((d.memoryUsage || 0) / 1024 / 1024).toFixed(1),
1047
- "MB"
1048
- ] })
1049
- ] })
1050
- ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1051
- z(),
1052
- /* @__PURE__ */ e.jsx("div", { className: "mt-3 max-h-64 overflow-y-auto", children: A() })
1053
- ] })
1054
- ]
1055
- }
1056
- );
1057
- };
1058
- export {
1059
- Z as C,
1060
- ue as D,
1061
- Y as E,
1062
- q as P,
1063
- W as Q,
1064
- Q as S,
1065
- J as a,
1066
- ee as b,
1067
- se as c,
1068
- I as d,
1069
- te as e,
1070
- de as f,
1071
- ie as g
1072
- };
1073
- //# sourceMappingURL=enhanced-components-Da0TSvKe.js.map