@openrails/contentkit-ui 0.0.0-placeholder → 0.68.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/README.md +424 -1
  2. package/dist/appearance.d.ts +38 -0
  3. package/dist/appearance.js +15 -0
  4. package/dist/appearance.js.map +1 -0
  5. package/dist/assets/hash.worker-BYfo-7MQ.js.map +1 -0
  6. package/dist/client/aspect.d.ts +6 -0
  7. package/dist/client/aspect.js +17 -0
  8. package/dist/client/aspect.js.map +1 -0
  9. package/dist/client/client.d.ts +51 -0
  10. package/dist/client/client.js +35 -0
  11. package/dist/client/client.js.map +1 -0
  12. package/dist/client/codes.d.ts +12 -0
  13. package/dist/client/codes.js +19 -0
  14. package/dist/client/codes.js.map +1 -0
  15. package/dist/client/content/bans.d.ts +15 -0
  16. package/dist/client/content/bans.js +40 -0
  17. package/dist/client/content/bans.js.map +1 -0
  18. package/dist/client/content/comments.d.ts +36 -0
  19. package/dist/client/content/comments.js +93 -0
  20. package/dist/client/content/comments.js.map +1 -0
  21. package/dist/client/content/favorites.d.ts +14 -0
  22. package/dist/client/content/favorites.js +42 -0
  23. package/dist/client/content/favorites.js.map +1 -0
  24. package/dist/client/content/moderation.d.ts +18 -0
  25. package/dist/client/content/moderation.js +37 -0
  26. package/dist/client/content/moderation.js.map +1 -0
  27. package/dist/client/content/polls.d.ts +47 -0
  28. package/dist/client/content/polls.js +148 -0
  29. package/dist/client/content/polls.js.map +1 -0
  30. package/dist/client/content/posts.d.ts +44 -0
  31. package/dist/client/content/posts.js +91 -0
  32. package/dist/client/content/posts.js.map +1 -0
  33. package/dist/client/content/reactions.d.ts +12 -0
  34. package/dist/client/content/reactions.js +36 -0
  35. package/dist/client/content/reactions.js.map +1 -0
  36. package/dist/client/content/types.d.ts +91 -0
  37. package/dist/client/content/types.js +8 -0
  38. package/dist/client/content/types.js.map +1 -0
  39. package/dist/client/crop.d.ts +32 -0
  40. package/dist/client/crop.js +103 -0
  41. package/dist/client/crop.js.map +1 -0
  42. package/dist/client/errors.d.ts +54 -0
  43. package/dist/client/errors.js +80 -0
  44. package/dist/client/errors.js.map +1 -0
  45. package/dist/client/gallery.d.ts +43 -0
  46. package/dist/client/gallery.js +86 -0
  47. package/dist/client/gallery.js.map +1 -0
  48. package/dist/client/generated/error-codes.d.ts +5 -0
  49. package/dist/client/generated/error-codes.js +131 -0
  50. package/dist/client/generated/error-codes.js.map +1 -0
  51. package/dist/client/generated/routes.d.ts +1086 -0
  52. package/dist/client/generated/routes.js +1400 -0
  53. package/dist/client/generated/routes.js.map +1 -0
  54. package/dist/client/generated/wire.d.ts +630 -0
  55. package/dist/client/generated/wire.js +6 -0
  56. package/dist/client/generated/wire.js.map +1 -0
  57. package/dist/client/http.d.ts +79 -0
  58. package/dist/client/http.js +74 -0
  59. package/dist/client/http.js.map +1 -0
  60. package/dist/client/image.d.ts +24 -0
  61. package/dist/client/image.js +65 -0
  62. package/dist/client/image.js.map +1 -0
  63. package/dist/client/index.d.ts +33 -0
  64. package/dist/client/media/api.d.ts +36 -0
  65. package/dist/client/media/api.js +61 -0
  66. package/dist/client/media/api.js.map +1 -0
  67. package/dist/client/media/client.d.ts +247 -0
  68. package/dist/client/media/client.js +407 -0
  69. package/dist/client/media/client.js.map +1 -0
  70. package/dist/client/media/encode.d.ts +3 -0
  71. package/dist/client/media/encode.js +8 -0
  72. package/dist/client/media/encode.js.map +1 -0
  73. package/dist/client/media/hash-stream.d.ts +6 -0
  74. package/dist/client/media/hash-stream.js +16 -0
  75. package/dist/client/media/hash-stream.js.map +1 -0
  76. package/dist/client/media/hash.d.ts +12 -0
  77. package/dist/client/media/hash.js +48 -0
  78. package/dist/client/media/hash.js.map +1 -0
  79. package/dist/client/media/hash.worker-inline.js +18 -0
  80. package/dist/client/media/hash.worker-inline.js.map +1 -0
  81. package/dist/client/media/pacer.d.ts +21 -0
  82. package/dist/client/media/pacer.js +25 -0
  83. package/dist/client/media/pacer.js.map +1 -0
  84. package/dist/client/media/queue.d.ts +112 -0
  85. package/dist/client/media/queue.js +274 -0
  86. package/dist/client/media/queue.js.map +1 -0
  87. package/dist/client/media/ref.d.ts +6 -0
  88. package/dist/client/media/ref.js +10 -0
  89. package/dist/client/media/ref.js.map +1 -0
  90. package/dist/client/media/rules.d.ts +52 -0
  91. package/dist/client/media/rules.js +139 -0
  92. package/dist/client/media/rules.js.map +1 -0
  93. package/dist/client/media/transport.d.ts +13 -0
  94. package/dist/client/media/transport.js +33 -0
  95. package/dist/client/media/transport.js.map +1 -0
  96. package/dist/client/media/windows.d.ts +15 -0
  97. package/dist/client/media/windows.js +39 -0
  98. package/dist/client/media/windows.js.map +1 -0
  99. package/dist/client/playback.d.ts +200 -0
  100. package/dist/client/playback.js +142 -0
  101. package/dist/client/playback.js.map +1 -0
  102. package/dist/client/player.d.ts +102 -0
  103. package/dist/client/player.js +155 -0
  104. package/dist/client/player.js.map +1 -0
  105. package/dist/client/public.d.ts +25 -0
  106. package/dist/client/public.js +18 -0
  107. package/dist/client/public.js.map +1 -0
  108. package/dist/client/rendition.d.ts +19 -0
  109. package/dist/client/rendition.js +16 -0
  110. package/dist/client/rendition.js.map +1 -0
  111. package/dist/client/route.d.ts +39 -0
  112. package/dist/client/route.js +31 -0
  113. package/dist/client/route.js.map +1 -0
  114. package/dist/client/taxonomy.d.ts +30 -0
  115. package/dist/client/taxonomy.js +77 -0
  116. package/dist/client/taxonomy.js.map +1 -0
  117. package/dist/client.js +33 -0
  118. package/dist/components/encode-progress.d.ts +15 -0
  119. package/dist/components/encode-progress.js +49 -0
  120. package/dist/components/encode-progress.js.map +1 -0
  121. package/dist/components/hover-preview.d.ts +29 -0
  122. package/dist/components/hover-preview.js +49 -0
  123. package/dist/components/hover-preview.js.map +1 -0
  124. package/dist/components/image-crop-dialog.d.ts +48 -0
  125. package/dist/components/image-crop-dialog.js +359 -0
  126. package/dist/components/image-crop-dialog.js.map +1 -0
  127. package/dist/components/lazy-mount.d.ts +10 -0
  128. package/dist/components/lazy-mount.js +22 -0
  129. package/dist/components/lazy-mount.js.map +1 -0
  130. package/dist/components/media-folder-editor.d.ts +45 -0
  131. package/dist/components/media-folder-editor.js +564 -0
  132. package/dist/components/media-folder-editor.js.map +1 -0
  133. package/dist/components/media-gallery.d.ts +54 -0
  134. package/dist/components/media-gallery.js +597 -0
  135. package/dist/components/media-gallery.js.map +1 -0
  136. package/dist/components/media-readiness-notice.d.ts +24 -0
  137. package/dist/components/media-readiness-notice.js +61 -0
  138. package/dist/components/media-readiness-notice.js.map +1 -0
  139. package/dist/components/player-controls.d.ts +71 -0
  140. package/dist/components/player-controls.js +264 -0
  141. package/dist/components/player-controls.js.map +1 -0
  142. package/dist/components/progress.d.ts +5 -0
  143. package/dist/components/progress.js +14 -0
  144. package/dist/components/progress.js.map +1 -0
  145. package/dist/components/rendition-img.d.ts +34 -0
  146. package/dist/components/rendition-img.js +78 -0
  147. package/dist/components/rendition-img.js.map +1 -0
  148. package/dist/components/slot-editor.d.ts +95 -0
  149. package/dist/components/slot-editor.js +182 -0
  150. package/dist/components/slot-editor.js.map +1 -0
  151. package/dist/components/slot-image.d.ts +23 -0
  152. package/dist/components/slot-image.js +48 -0
  153. package/dist/components/slot-image.js.map +1 -0
  154. package/dist/components/slot-upload.d.ts +41 -0
  155. package/dist/components/slot-upload.js +213 -0
  156. package/dist/components/slot-upload.js.map +1 -0
  157. package/dist/components/social/bans.d.ts +42 -0
  158. package/dist/components/social/bans.js +300 -0
  159. package/dist/components/social/bans.js.map +1 -0
  160. package/dist/components/social/comments.d.ts +42 -0
  161. package/dist/components/social/comments.js +517 -0
  162. package/dist/components/social/comments.js.map +1 -0
  163. package/dist/components/social/engagement.d.ts +45 -0
  164. package/dist/components/social/engagement.js +129 -0
  165. package/dist/components/social/engagement.js.map +1 -0
  166. package/dist/components/social/index.d.ts +6 -0
  167. package/dist/components/social/moderation.d.ts +32 -0
  168. package/dist/components/social/moderation.js +383 -0
  169. package/dist/components/social/moderation.js.map +1 -0
  170. package/dist/components/social/parts.d.ts +50 -0
  171. package/dist/components/social/parts.js +106 -0
  172. package/dist/components/social/parts.js.map +1 -0
  173. package/dist/components/social/poll-editor.d.ts +34 -0
  174. package/dist/components/social/poll-editor.js +567 -0
  175. package/dist/components/social/poll-editor.js.map +1 -0
  176. package/dist/components/social/poll.d.ts +30 -0
  177. package/dist/components/social/poll.js +252 -0
  178. package/dist/components/social/poll.js.map +1 -0
  179. package/dist/components/sortable-list.d.ts +29 -0
  180. package/dist/components/sortable-list.js +121 -0
  181. package/dist/components/sortable-list.js.map +1 -0
  182. package/dist/components/video-mini-player.d.ts +35 -0
  183. package/dist/components/video-mini-player.js +236 -0
  184. package/dist/components/video-mini-player.js.map +1 -0
  185. package/dist/components/video-player.d.ts +146 -0
  186. package/dist/components/video-player.js +630 -0
  187. package/dist/components/video-player.js.map +1 -0
  188. package/dist/components/video-poster-picker.d.ts +59 -0
  189. package/dist/components/video-poster-picker.js +335 -0
  190. package/dist/components/video-poster-picker.js.map +1 -0
  191. package/dist/components/video-poster.d.ts +24 -0
  192. package/dist/components/video-poster.js +46 -0
  193. package/dist/components/video-poster.js.map +1 -0
  194. package/dist/i18n/context.d.ts +4 -0
  195. package/dist/i18n/context.js +11 -0
  196. package/dist/i18n/context.js.map +1 -0
  197. package/dist/i18n/messages.d.ts +40 -0
  198. package/dist/i18n/messages.js +94 -0
  199. package/dist/i18n/messages.js.map +1 -0
  200. package/dist/index.d.ts +23 -0
  201. package/dist/index.js +41 -0
  202. package/dist/locales/de.d.ts +2 -0
  203. package/dist/locales/de.js +271 -0
  204. package/dist/locales/de.js.map +1 -0
  205. package/dist/locales/en.d.ts +457 -0
  206. package/dist/locales/en.js +271 -0
  207. package/dist/locales/en.js.map +1 -0
  208. package/dist/locales/es.d.ts +2 -0
  209. package/dist/locales/es.js +271 -0
  210. package/dist/locales/es.js.map +1 -0
  211. package/dist/locales/ja.d.ts +2 -0
  212. package/dist/locales/ja.js +271 -0
  213. package/dist/locales/ja.js.map +1 -0
  214. package/dist/locales/ko.d.ts +2 -0
  215. package/dist/locales/ko.js +271 -0
  216. package/dist/locales/ko.js.map +1 -0
  217. package/dist/locales/social/de.d.ts +2 -0
  218. package/dist/locales/social/de.js +198 -0
  219. package/dist/locales/social/de.js.map +1 -0
  220. package/dist/locales/social/en.d.ts +195 -0
  221. package/dist/locales/social/en.js +198 -0
  222. package/dist/locales/social/en.js.map +1 -0
  223. package/dist/locales/social/es.d.ts +2 -0
  224. package/dist/locales/social/es.js +198 -0
  225. package/dist/locales/social/es.js.map +1 -0
  226. package/dist/locales/social/ja.d.ts +2 -0
  227. package/dist/locales/social/ja.js +198 -0
  228. package/dist/locales/social/ja.js.map +1 -0
  229. package/dist/locales/social/ko.d.ts +2 -0
  230. package/dist/locales/social/ko.js +198 -0
  231. package/dist/locales/social/ko.js.map +1 -0
  232. package/dist/locales/social/zh.d.ts +2 -0
  233. package/dist/locales/social/zh.js +198 -0
  234. package/dist/locales/social/zh.js.map +1 -0
  235. package/dist/locales/zh.d.ts +2 -0
  236. package/dist/locales/zh.js +271 -0
  237. package/dist/locales/zh.js.map +1 -0
  238. package/dist/provider.d.ts +22 -0
  239. package/dist/provider.js +59 -0
  240. package/dist/provider.js.map +1 -0
  241. package/dist/react/canonical.d.ts +33 -0
  242. package/dist/react/canonical.js +88 -0
  243. package/dist/react/canonical.js.map +1 -0
  244. package/dist/react/comments.d.ts +82 -0
  245. package/dist/react/comments.js +147 -0
  246. package/dist/react/comments.js.map +1 -0
  247. package/dist/react/config.d.ts +13 -0
  248. package/dist/react/config.js +14 -0
  249. package/dist/react/config.js.map +1 -0
  250. package/dist/react/context.d.ts +48 -0
  251. package/dist/react/context.js +37 -0
  252. package/dist/react/context.js.map +1 -0
  253. package/dist/react/crop.d.ts +49 -0
  254. package/dist/react/crop.js +107 -0
  255. package/dist/react/crop.js.map +1 -0
  256. package/dist/react/engagement.d.ts +38 -0
  257. package/dist/react/engagement.js +88 -0
  258. package/dist/react/engagement.js.map +1 -0
  259. package/dist/react/folder.d.ts +83 -0
  260. package/dist/react/folder.js +183 -0
  261. package/dist/react/folder.js.map +1 -0
  262. package/dist/react/gallery.d.ts +140 -0
  263. package/dist/react/gallery.js +477 -0
  264. package/dist/react/gallery.js.map +1 -0
  265. package/dist/react/index.d.ts +21 -0
  266. package/dist/react/inline-preview.d.ts +24 -0
  267. package/dist/react/inline-preview.js +76 -0
  268. package/dist/react/inline-preview.js.map +1 -0
  269. package/dist/react/player.d.ts +70 -0
  270. package/dist/react/player.js +214 -0
  271. package/dist/react/player.js.map +1 -0
  272. package/dist/react/polls.d.ts +74 -0
  273. package/dist/react/polls.js +176 -0
  274. package/dist/react/polls.js.map +1 -0
  275. package/dist/react/posts.d.ts +59 -0
  276. package/dist/react/posts.js +149 -0
  277. package/dist/react/posts.js.map +1 -0
  278. package/dist/react/provider.d.ts +23 -0
  279. package/dist/react/provider.js +35 -0
  280. package/dist/react/provider.js.map +1 -0
  281. package/dist/react/public.d.ts +39 -0
  282. package/dist/react/public.js +70 -0
  283. package/dist/react/public.js.map +1 -0
  284. package/dist/react/read.d.ts +52 -0
  285. package/dist/react/read.js +143 -0
  286. package/dist/react/read.js.map +1 -0
  287. package/dist/react/resources.d.ts +70 -0
  288. package/dist/react/resources.js +247 -0
  289. package/dist/react/resources.js.map +1 -0
  290. package/dist/react/slot.d.ts +102 -0
  291. package/dist/react/slot.js +181 -0
  292. package/dist/react/slot.js.map +1 -0
  293. package/dist/react/store.d.ts +51 -0
  294. package/dist/react/store.js +164 -0
  295. package/dist/react/store.js.map +1 -0
  296. package/dist/react/upload.d.ts +85 -0
  297. package/dist/react/upload.js +150 -0
  298. package/dist/react/upload.js.map +1 -0
  299. package/dist/react/use-resource.d.ts +43 -0
  300. package/dist/react/use-resource.js +66 -0
  301. package/dist/react/use-resource.js.map +1 -0
  302. package/dist/react/video.d.ts +118 -0
  303. package/dist/react/video.js +184 -0
  304. package/dist/react/video.js.map +1 -0
  305. package/dist/react/viewport.d.ts +19 -0
  306. package/dist/react/viewport.js +30 -0
  307. package/dist/react/viewport.js.map +1 -0
  308. package/dist/react.js +21 -0
  309. package/dist/scope.d.ts +14 -0
  310. package/dist/scope.js +30 -0
  311. package/dist/scope.js.map +1 -0
  312. package/dist/styles.css +3 -0
  313. package/dist/ui/alert-dialog.d.ts +18 -0
  314. package/dist/ui/alert-dialog.js +86 -0
  315. package/dist/ui/alert-dialog.js.map +1 -0
  316. package/dist/ui/alert.d.ts +10 -0
  317. package/dist/ui/alert.js +38 -0
  318. package/dist/ui/alert.js.map +1 -0
  319. package/dist/ui/avatar.d.ts +11 -0
  320. package/dist/ui/avatar.js +31 -0
  321. package/dist/ui/avatar.js.map +1 -0
  322. package/dist/ui/badge.d.ts +7 -0
  323. package/dist/ui/badge.js +31 -0
  324. package/dist/ui/badge.js.map +1 -0
  325. package/dist/ui/button.d.ts +8 -0
  326. package/dist/ui/button.js +46 -0
  327. package/dist/ui/button.js.map +1 -0
  328. package/dist/ui/dialog.d.ts +17 -0
  329. package/dist/ui/dialog.js +91 -0
  330. package/dist/ui/dialog.js.map +1 -0
  331. package/dist/ui/dropdown-menu.d.ts +15 -0
  332. package/dist/ui/dropdown-menu.js +105 -0
  333. package/dist/ui/dropdown-menu.js.map +1 -0
  334. package/dist/ui/input.d.ts +3 -0
  335. package/dist/ui/input.js +17 -0
  336. package/dist/ui/input.js.map +1 -0
  337. package/dist/ui/label.d.ts +3 -0
  338. package/dist/ui/label.js +15 -0
  339. package/dist/ui/label.js.map +1 -0
  340. package/dist/ui/progress.d.ts +7 -0
  341. package/dist/ui/progress.js +31 -0
  342. package/dist/ui/progress.js.map +1 -0
  343. package/dist/ui/select.d.ts +15 -0
  344. package/dist/ui/select.js +98 -0
  345. package/dist/ui/select.js.map +1 -0
  346. package/dist/ui/skeleton.d.ts +2 -0
  347. package/dist/ui/skeleton.js +14 -0
  348. package/dist/ui/skeleton.js.map +1 -0
  349. package/dist/ui/slider.d.ts +3 -0
  350. package/dist/ui/slider.js +35 -0
  351. package/dist/ui/slider.js.map +1 -0
  352. package/dist/ui/switch.d.ts +5 -0
  353. package/dist/ui/switch.js +20 -0
  354. package/dist/ui/switch.js.map +1 -0
  355. package/dist/ui/tabs.d.ts +10 -0
  356. package/dist/ui/tabs.js +47 -0
  357. package/dist/ui/tabs.js.map +1 -0
  358. package/dist/ui/textarea.d.ts +3 -0
  359. package/dist/ui/textarea.js +15 -0
  360. package/dist/ui/textarea.js.map +1 -0
  361. package/dist/ui/toggle-group.d.ts +5 -0
  362. package/dist/ui/toggle-group.js +23 -0
  363. package/dist/ui/toggle-group.js.map +1 -0
  364. package/dist/urls/index.d.ts +100 -0
  365. package/dist/urls.js +118 -0
  366. package/dist/urls.js.map +1 -0
  367. package/package.json +113 -3
@@ -0,0 +1,630 @@
1
+ import { useInlinePreview as e } from "../react/inline-preview.js";
2
+ import { RenditionImg as t } from "./rendition-img.js";
3
+ import { publicRenditions as n } from "../client/public.js";
4
+ import { useMessages as r } from "../i18n/context.js";
5
+ import { ContentKitUiRoot as i } from "../scope.js";
6
+ import { EncodeProgress as a } from "./encode-progress.js";
7
+ import { Button as o } from "../ui/button.js";
8
+ import { formatDuration as ee } from "../client/gallery.js";
9
+ import { PLAYBACK_SPEEDS as te, PLAYER_VOLUME_KEY as ne, nextSpeed as re, playerKeyAction as ie, resumeAt as ae, writeVolume as oe } from "../client/player.js";
10
+ import { useHlsPlayer as se } from "../react/gallery.js";
11
+ import { useActiveCues as ce, useFullscreen as le, useMediaState as ue, usePictureInPicture as de, useProgressReports as fe, useSprite as pe } from "../react/player.js";
12
+ import { Captions as me, ControlButton as s, SeekBar as he, SeekFlash as ge, SettingsMenu as _e, Spinner as ve, VolumeControl as ye, clock as be } from "./player-controls.js";
13
+ import { useCallback as c, useEffect as l, useRef as u, useState as d } from "react";
14
+ import { Fragment as xe, jsx as f, jsxs as p } from "react/jsx-runtime";
15
+ import { cn as m } from "cn";
16
+ import { AlertCircleIcon as h, ArrowShrink02Icon as Se, ClosedCaptionIcon as Ce, FullScreenIcon as we, PauseIcon as Te, PictureInPicture01Icon as Ee, PictureInPictureExitIcon as De, PictureInPictureOnIcon as Oe, PlayIcon as ke, RectangularIcon as Ae, Refresh01Icon as g, Settings01Icon as je } from "@hugeicons/core-free-icons";
17
+ import { HugeiconsIcon as _ } from "@hugeicons/react";
18
+ //#region src/components/video-player.tsx
19
+ function Me({ vtt: e, xhrSetup: t, fit: n = "contain", className: r }) {
20
+ let i = pe(e, t), a = i?.cues[0];
21
+ return !i || !a ? null : /* @__PURE__ */ f("svg", {
22
+ "aria-hidden": !0,
23
+ className: m("pointer-events-none absolute inset-0 size-full", r),
24
+ viewBox: `${a.x} ${a.y} ${a.w} ${a.h}`,
25
+ preserveAspectRatio: n === "cover" ? "xMidYMid slice" : "xMidYMid meet",
26
+ "data-ckui": "sprite-frame",
27
+ children: /* @__PURE__ */ f("image", {
28
+ href: a.url,
29
+ width: i.width,
30
+ height: i.height
31
+ })
32
+ });
33
+ }
34
+ var Ne = 2500, Pe = 300, Fe = 700, Ie = 650, v = "textarea, select, [contenteditable]:not([contenteditable=\"false\"]), [role=textbox], [role=combobox], [role=searchbox], input:not([type=range]):not([type=button]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=reset])", y = "[role=menu], [role=menuitem], [role=menuitemradio], [role=menuitemcheckbox], [role=listbox], [role=option]", b = "a, button, input, [role=button], [role=dialog], [role=alertdialog]";
35
+ function Le(e, t, n) {
36
+ return e instanceof Element ? e.closest(v) || e.closest(y) || e.closest("input[type=range], [role=slider]") && /^(Arrow|Page|Home$|End$)/.test(t) ? !1 : n.contains(e) || !e.closest(b) : !0;
37
+ }
38
+ var Re = (e, t) => e instanceof Element && t.contains(e) && !!e.closest("button") && !e.closest(y);
39
+ function x({ base: o, poster: h, width: v, height: y, duration: b, pending: x, progress: We, failed: S, layout: Ge = "frame", maxHeight: Ke = "80svh", inlinePreview: qe, previewStart: Je, keyboard: C = "focus", onProgress: Ye, progressInterval: Xe = 1e4, onEvent: Ze, theater: w, onTheaterChange: Qe, onMiniPlayer: T, renderDownloads: $e, menuItems: et, crossOrigin: tt, label: nt, className: rt, style: it, appearance: at, startAt: ot, ...E }) {
40
+ let { t: D } = r(), st = !!o && !x && !S, ct = st ? `${o}master.m3u8` : null, O = ae(ot, b), k = se({
41
+ ...E,
42
+ src: ct,
43
+ startAt: O
44
+ }), { status: A, error: j, started: M, previewing: N, audio: P, subtitles: F, quality: I } = k, [L, lt] = d(null), [R, ut] = d(null), dt = k.ref, ft = c((e) => {
45
+ dt(e), ut(e);
46
+ }, [dt]);
47
+ e({
48
+ setting: qe,
49
+ available: st && !M && !j && E.active !== !1 && !E.autoPlay,
50
+ target: L,
51
+ playing: M && A === "playing",
52
+ start: () => k.preview(Ve(Je, b)),
53
+ stop: k.unload
54
+ });
55
+ let z = ue(R), B = le(L, R), V = de(R), pt = ce(R), mt = pe(M && o ? `${o}sprite.vtt` : null, E.xhrSetup), H = !N && M;
56
+ fe(R, {
57
+ enabled: H,
58
+ source: H ? ct : null,
59
+ interval: Xe,
60
+ onProgress: Ye
61
+ });
62
+ let ht = u(Ze);
63
+ ht.current = Ze;
64
+ let gt = u(!1);
65
+ gt.current = !N && A !== "idle";
66
+ let U = c((e, t = !1) => {
67
+ (t || gt.current) && ht.current && ht.current({
68
+ ...e,
69
+ time: R?.currentTime ?? 0
70
+ });
71
+ }, [R]);
72
+ l(() => {
73
+ if (!R) return;
74
+ let e = 0, t = {
75
+ play: () => U({ type: "play" }),
76
+ playing: () => U({ type: "playing" }),
77
+ pause: () => !R.ended && U({ type: "pause" }),
78
+ waiting: () => U({ type: "waiting" }),
79
+ ended: () => U({ type: "ended" }),
80
+ timeupdate: () => {
81
+ R.seeking || (e = R.currentTime);
82
+ },
83
+ seeked: () => {
84
+ U({
85
+ type: "seek",
86
+ from: e
87
+ }), e = R.currentTime;
88
+ },
89
+ ratechange: () => U({
90
+ type: "rate",
91
+ rate: R.playbackRate
92
+ })
93
+ };
94
+ for (let [e, n] of Object.entries(t)) R.addEventListener(e, n);
95
+ return () => {
96
+ for (let [e, n] of Object.entries(t)) R.removeEventListener(e, n);
97
+ };
98
+ }, [R, U]), l(() => {
99
+ j && !N && U({
100
+ type: "error",
101
+ error: j
102
+ }, !0);
103
+ }, [
104
+ j,
105
+ N,
106
+ U
107
+ ]);
108
+ let _t = u({
109
+ fs: !1,
110
+ pip: !1
111
+ });
112
+ l(() => {
113
+ _t.current.fs !== B.active && U({
114
+ type: "fullscreen",
115
+ on: B.active
116
+ }), _t.current.pip !== V.active && U({
117
+ type: "pip",
118
+ on: V.active
119
+ }), _t.current = {
120
+ fs: B.active,
121
+ pip: V.active
122
+ };
123
+ }, [
124
+ B.active,
125
+ V.active,
126
+ U
127
+ ]);
128
+ let vt = u(O);
129
+ l(() => {
130
+ vt.current !== O && (vt.current = O, R && M && (R.currentTime = O));
131
+ }, [
132
+ O,
133
+ R,
134
+ M
135
+ ]);
136
+ let [yt, W] = d(!1), G = u(void 0), K = c(() => {
137
+ W(!0), clearTimeout(G.current), G.current = setTimeout(() => W(!1), Ne);
138
+ }, []), bt = c(() => {
139
+ clearTimeout(G.current), W(!1);
140
+ }, []);
141
+ l(() => () => clearTimeout(G.current), []), l(() => {
142
+ M && K();
143
+ }, [M, K]);
144
+ let [xt, St] = d(!1), [Ct, wt] = d(!1), [Tt, Et] = d(!1), q = M && !j && (yt || z.paused || z.ended || xt || Ct || Tt), [Dt, Ot] = d(null), J = u(void 0), kt = c((e, t) => {
145
+ let n = J.current !== void 0;
146
+ clearTimeout(J.current), Ot((r) => ({
147
+ direction: e,
148
+ seconds: n && r?.direction === e ? r.seconds + t : t
149
+ })), J.current = setTimeout(() => {
150
+ Ot(null), J.current = void 0;
151
+ }, Ie);
152
+ }, []);
153
+ l(() => () => clearTimeout(J.current), []);
154
+ let At = E.volumeKey === void 0 ? ne : E.volumeKey, Y = z.duration || b || 0, jt = (e) => {
155
+ R && (R.currentTime = Math.min(Y || e, Math.max(0, e)));
156
+ }, Mt = (e) => {
157
+ R && (jt(R.currentTime + e), kt(e < 0 ? -1 : 1, Math.abs(e)));
158
+ }, X = () => {
159
+ R && (!M || R.ended ? (R.ended && (R.currentTime = 0), k.play()) : R.paused ? k.play() : R.pause());
160
+ }, Nt = (e) => {
161
+ R && (R.volume = Math.min(1, Math.max(0, e)), R.volume > 0 && R.muted && (R.muted = !1), oe(At, {
162
+ volume: R.volume,
163
+ muted: R.muted
164
+ }), U({
165
+ type: "volume",
166
+ volume: R.volume,
167
+ muted: R.muted
168
+ }));
169
+ }, Pt = () => {
170
+ R && (R.muted = !R.muted, !R.muted && R.volume === 0 && (R.volume = 1), oe(At, {
171
+ volume: R.volume,
172
+ muted: R.muted
173
+ }), U({
174
+ type: "volume",
175
+ volume: R.volume,
176
+ muted: R.muted
177
+ }));
178
+ }, Ft = (e) => {
179
+ P.select(e);
180
+ let t = P.list[e];
181
+ t && U({
182
+ type: "audio",
183
+ track: t
184
+ });
185
+ }, It = u(-1);
186
+ F.selected >= 0 && (It.current = F.selected);
187
+ let Lt = (e) => {
188
+ F.select(e), U({
189
+ type: "subtitles",
190
+ track: F.list[e] ?? null
191
+ });
192
+ }, Rt = () => Lt(F.selected >= 0 ? -1 : It.current >= 0 ? It.current : 0), zt = (e) => {
193
+ I.select(e), U({
194
+ type: "quality",
195
+ height: I.levels.find((t) => t.index === e)?.height ?? null
196
+ });
197
+ }, Bt = () => {
198
+ Qe?.(!w), U({
199
+ type: "theater",
200
+ on: !w
201
+ });
202
+ }, Vt = () => {
203
+ if (!T || !o || !R) return;
204
+ let e = P.list[P.selected], t = F.list[F.selected], n = {
205
+ base: o,
206
+ time: R.currentTime,
207
+ playing: !R.paused && !R.ended,
208
+ width: v ?? (R.videoWidth || void 0),
209
+ height: y ?? (R.videoHeight || void 0),
210
+ duration: Y || void 0,
211
+ poster: h,
212
+ audioLanguage: e?.lang,
213
+ subtitleLanguage: t?.lang ?? null
214
+ };
215
+ R.pause(), B.active && B.toggle(), T(n);
216
+ }, Ht = (e) => {
217
+ if (!R || !M && e.type !== "toggle") return !1;
218
+ switch (e.type) {
219
+ case "toggle":
220
+ X();
221
+ break;
222
+ case "seekBy":
223
+ Mt(e.seconds);
224
+ break;
225
+ case "seekTo":
226
+ if (!Y) return !1;
227
+ jt(Y * e.fraction);
228
+ break;
229
+ case "volumeBy":
230
+ Nt((R.muted ? 0 : R.volume) + e.delta);
231
+ break;
232
+ case "mute":
233
+ Pt();
234
+ break;
235
+ case "captions":
236
+ if (!F.list.length) return !1;
237
+ Rt();
238
+ break;
239
+ case "fullscreen":
240
+ if (!B.supported) return !1;
241
+ B.toggle();
242
+ break;
243
+ case "theater":
244
+ if (!Qe) return !1;
245
+ Bt();
246
+ break;
247
+ case "miniPlayer":
248
+ if (!T) return !1;
249
+ Vt();
250
+ break;
251
+ case "speed": R.playbackRate = re(R.playbackRate, e.step);
252
+ }
253
+ return M && K(), !0;
254
+ }, Ut = u(Ht);
255
+ Ut.current = Ht;
256
+ let Wt = E.active !== !1;
257
+ l(() => {
258
+ if (!C || !L || !Wt) return;
259
+ let e = C === "global" ? document : L, t = (e) => {
260
+ let t = e;
261
+ if (t.defaultPrevented) return;
262
+ let n = ie(t);
263
+ n && Le(t.target, t.key, L) && Ut.current(n) && t.preventDefault();
264
+ }, n = (e) => {
265
+ let t = e;
266
+ t.key === " " && Re(t.target, L) && t.preventDefault();
267
+ };
268
+ return e.addEventListener("keydown", t), e.addEventListener("keyup", n), () => {
269
+ e.removeEventListener("keydown", t), e.removeEventListener("keyup", n);
270
+ };
271
+ }, [
272
+ C,
273
+ L,
274
+ Wt
275
+ ]);
276
+ let Gt = u("mouse"), Kt = u(null), Z = u(0), qt = (e) => {
277
+ if (Gt.current === "mouse") {
278
+ X(), K();
279
+ return;
280
+ }
281
+ let t = e.currentTarget.getBoundingClientRect(), n = t.width ? (e.clientX - t.left) / t.width : .5, r = n < .4 ? -1 : n > .6 ? 1 : null, i = Date.now(), a = Kt.current;
282
+ if (Kt.current = r ? {
283
+ at: i,
284
+ side: r
285
+ } : null, r && a?.side === r && (i < Z.current || i - a.at <= Pe)) {
286
+ Z.current = i + Fe, Mt(r * 10);
287
+ return;
288
+ }
289
+ q && !z.paused ? bt() : K();
290
+ }, Jt = () => {
291
+ Date.now() >= Z.current && B.supported && B.toggle();
292
+ }, Yt = v && y ? v / y : z.aspect ?? 16 / 9, Xt = B.active ? {
293
+ width: "100%",
294
+ height: "100%",
295
+ borderRadius: 0
296
+ } : Ge === "frame" ? {
297
+ aspectRatio: String(Yt),
298
+ width: `min(100%, calc(${Ke} * ${Yt}))`,
299
+ marginInline: "auto"
300
+ } : {}, Zt = typeof h == "string" ? [] : n(h), Q = !j && !N && (A === "loading" || A === "buffering"), $ = m("transition-opacity duration-300 motion-reduce:transition-none", N && A === "playing" && "opacity-0"), Qt = B.active && L ? L : void 0, $t = tn();
301
+ function en(e) {
302
+ let t = e.label || D("player.track", { number: e.index + 1 });
303
+ return e.forced ? D("player.forced", { label: t }) : t;
304
+ }
305
+ function tn() {
306
+ let e = [];
307
+ if (P.list.length > 1 && e.push({
308
+ key: "audio",
309
+ label: D("player.audio"),
310
+ value: String(P.selected),
311
+ options: P.list.map((e) => ({
312
+ value: String(e.index),
313
+ label: en(e)
314
+ })),
315
+ onChange: (e) => Ft(Number(e))
316
+ }), F.list.length && e.push({
317
+ key: "subtitles",
318
+ label: D("player.subtitles"),
319
+ value: String(F.selected),
320
+ options: [{
321
+ value: "-1",
322
+ label: D("player.subtitlesOff")
323
+ }, ...F.list.map((e) => ({
324
+ value: String(e.index),
325
+ label: en(e)
326
+ }))],
327
+ onChange: (e) => Lt(Number(e))
328
+ }), I.levels.length > 1) {
329
+ let t = I.levels.find((e) => e.index === I.current);
330
+ e.push({
331
+ key: "quality",
332
+ label: D("player.quality"),
333
+ value: String(I.selected),
334
+ options: [...[...I.levels].reverse().map((e) => ({
335
+ value: String(e.index),
336
+ label: He(e.height)
337
+ })), {
338
+ value: "-1",
339
+ label: t && I.selected === -1 ? D("player.autoCurrent", { quality: He(t.height).split(" ")[0] }) : D("player.auto")
340
+ }],
341
+ onChange: (e) => zt(Number(e))
342
+ });
343
+ }
344
+ return e.push({
345
+ key: "speed",
346
+ label: D("player.speed"),
347
+ value: String(z.rate),
348
+ options: te.map((e) => ({
349
+ value: String(e),
350
+ label: e === 1 ? D("player.normal") : `${e}×`
351
+ })),
352
+ onChange: (e) => {
353
+ R && (R.playbackRate = Number(e));
354
+ }
355
+ }), et?.forEach((t, n) => {
356
+ "options" in t && e.push({
357
+ key: `host-${n}`,
358
+ label: t.label,
359
+ value: t.value,
360
+ options: t.options,
361
+ onChange: t.onChange
362
+ });
363
+ }), e;
364
+ }
365
+ let nn = et?.filter((e) => "onSelect" in e);
366
+ return /* @__PURE__ */ f(i, {
367
+ appearance: at,
368
+ className: m("@container relative w-full touch-manipulation overflow-hidden bg-black text-white outline-none", Ge === "fill" ? "size-full" : !B.active && "rounded-lg", M && !q && "cursor-none", rt),
369
+ style: {
370
+ ...Xt,
371
+ ...it
372
+ },
373
+ "data-ckui": "video-player",
374
+ "data-status": S ? "failed" : x ? "pending" : A,
375
+ "data-previewing": N ? "" : void 0,
376
+ "data-fullscreen": B.active ? "" : void 0,
377
+ "data-controls": q ? "" : void 0,
378
+ ref: lt,
379
+ role: "group",
380
+ "aria-label": nt ?? D("player.label"),
381
+ tabIndex: st ? -1 : void 0,
382
+ onPointerDown: (e) => Gt.current = e.pointerType || "mouse",
383
+ onPointerMove: (e) => e.pointerType === "mouse" && M && K(),
384
+ onPointerLeave: (e) => e.pointerType === "mouse" && !Ct && !xt && bt(),
385
+ onFocus: (e) => Et(ze(e.target)),
386
+ onBlur: () => Et(!1),
387
+ children: S ? /* @__PURE__ */ f(Ue, {
388
+ icon: !0,
389
+ children: D("player.failed")
390
+ }) : x || !o ? /* @__PURE__ */ f("div", {
391
+ className: "absolute inset-0 flex items-center justify-center bg-muted p-6 text-foreground",
392
+ children: /* @__PURE__ */ f(a, {
393
+ progress: We,
394
+ className: "max-w-xs"
395
+ })
396
+ }) : /* @__PURE__ */ p(xe, { children: [
397
+ /* @__PURE__ */ f("video", {
398
+ ref: ft,
399
+ className: "absolute inset-0 size-full object-contain",
400
+ playsInline: !0,
401
+ preload: "none",
402
+ crossOrigin: tt,
403
+ "aria-label": nt
404
+ }),
405
+ M && !j && /* @__PURE__ */ f("div", {
406
+ "data-ckui": "surface",
407
+ className: "absolute inset-0",
408
+ onClick: qt,
409
+ onDoubleClick: Jt
410
+ }),
411
+ !M && !j && /* @__PURE__ */ p(xe, { children: [
412
+ typeof h == "string" ? /* @__PURE__ */ f("img", {
413
+ alt: "",
414
+ src: h,
415
+ decoding: "async",
416
+ className: m("pointer-events-none absolute inset-0 size-full object-contain", $)
417
+ }) : Zt.length ? /* @__PURE__ */ f(t, {
418
+ outputs: Zt,
419
+ className: m("pointer-events-none absolute inset-0 size-full object-contain", $)
420
+ }) : /* @__PURE__ */ f(Me, {
421
+ vtt: `${o}sprite.vtt`,
422
+ xhrSetup: E.xhrSetup,
423
+ className: $
424
+ }),
425
+ /* @__PURE__ */ f(Be, {
426
+ label: D("player.play"),
427
+ onClick: k.play,
428
+ disabled: Q,
429
+ className: $,
430
+ children: Q ? /* @__PURE__ */ f(ve, {}) : /* @__PURE__ */ f(_, {
431
+ icon: ke,
432
+ className: "ml-1 size-7 fill-current",
433
+ strokeWidth: 1.5
434
+ })
435
+ }),
436
+ b ? /* @__PURE__ */ f("span", {
437
+ className: "pointer-events-none absolute right-2 bottom-2 rounded bg-black/65 px-1.5 py-0.5 text-xs font-medium tabular-nums",
438
+ children: ee(b)
439
+ }) : null
440
+ ] }),
441
+ M && !j && z.ended && /* @__PURE__ */ f(Be, {
442
+ label: D("player.replay"),
443
+ onClick: X,
444
+ children: /* @__PURE__ */ f(_, {
445
+ icon: g,
446
+ className: "size-7",
447
+ strokeWidth: 1.75
448
+ })
449
+ }),
450
+ /* @__PURE__ */ f(me, {
451
+ cues: H ? pt : [],
452
+ bottom: q ? "4.75rem" : "1.25rem"
453
+ }),
454
+ M && Q && /* @__PURE__ */ f("div", {
455
+ className: "pointer-events-none absolute inset-0 flex items-center justify-center",
456
+ children: /* @__PURE__ */ f("span", {
457
+ className: "flex size-14 items-center justify-center rounded-full bg-black/45",
458
+ children: /* @__PURE__ */ f(ve, {})
459
+ })
460
+ }),
461
+ /* @__PURE__ */ f(ge, { flash: Dt }),
462
+ M && !j && /* @__PURE__ */ p("div", {
463
+ "data-ckui": "controls",
464
+ "data-ckui-noswipe": "",
465
+ className: m("pointer-events-none absolute inset-x-0 bottom-0 z-10 flex flex-col bg-linear-to-t from-black/75 via-black/35 to-transparent px-2 pt-12 pb-1 transition-opacity duration-200 motion-reduce:transition-none", q ? "opacity-100 *:pointer-events-auto" : "opacity-0"),
466
+ children: [/* @__PURE__ */ f(he, {
467
+ time: z.time,
468
+ duration: Y,
469
+ buffered: z.buffered,
470
+ onSeek: jt,
471
+ onScrub: (e) => wt(e !== null),
472
+ sprite: mt
473
+ }), /* @__PURE__ */ p("div", {
474
+ className: "flex items-center gap-0.5",
475
+ children: [
476
+ /* @__PURE__ */ f(s, {
477
+ label: z.ended ? D("player.replay") : z.paused ? D("player.resume") : D("player.pause"),
478
+ shortcut: "k",
479
+ icon: z.ended ? g : z.paused ? ke : Te,
480
+ onClick: X,
481
+ "data-ckui": "play"
482
+ }),
483
+ /* @__PURE__ */ f(ye, {
484
+ volume: z.volume,
485
+ muted: z.muted,
486
+ onVolume: Nt,
487
+ onMute: Pt
488
+ }),
489
+ /* @__PURE__ */ p("span", {
490
+ className: "ml-1 shrink-0 text-xs font-medium whitespace-nowrap text-white/90 tabular-nums",
491
+ "data-ckui": "time",
492
+ children: [
493
+ be(z.time),
494
+ " / ",
495
+ be(Y)
496
+ ]
497
+ }),
498
+ /* @__PURE__ */ f("div", { className: "min-w-0 flex-1" }),
499
+ F.list.length > 0 && /* @__PURE__ */ f(s, {
500
+ label: D("player.subtitles"),
501
+ shortcut: "c",
502
+ icon: Ce,
503
+ "aria-pressed": F.selected >= 0,
504
+ onClick: Rt,
505
+ "data-ckui": "captions-toggle"
506
+ }),
507
+ $e?.({
508
+ container: Qt,
509
+ className: "inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-white outline-none transition-colors hover:bg-white/15 focus-visible:ring-2 focus-visible:ring-white/80 motion-reduce:transition-none data-popup-open:bg-white/15 [&_svg]:size-5 relative aria-pressed:after:absolute aria-pressed:after:bottom-1 aria-pressed:after:h-0.5 aria-pressed:after:w-4 aria-pressed:after:rounded-full aria-pressed:after:bg-player-accent"
510
+ }),
511
+ /* @__PURE__ */ f(_e, {
512
+ icon: je,
513
+ label: D("player.settings"),
514
+ sections: $t,
515
+ actions: nn,
516
+ container: Qt,
517
+ onOpenChange: St
518
+ }),
519
+ T && /* @__PURE__ */ f(s, {
520
+ className: "@max-sm:hidden",
521
+ label: D("player.miniPlayer"),
522
+ shortcut: "i",
523
+ icon: Oe,
524
+ onClick: Vt,
525
+ "data-ckui": "mini-player-open"
526
+ }),
527
+ V.supported && /* @__PURE__ */ f(s, {
528
+ className: "@max-md:hidden",
529
+ label: V.active ? D("player.exitPip") : D("player.pip"),
530
+ icon: V.active ? De : Ee,
531
+ onClick: V.toggle,
532
+ "data-ckui": "pip"
533
+ }),
534
+ Qe && /* @__PURE__ */ f(s, {
535
+ className: "max-lg:hidden",
536
+ label: D("player.theater"),
537
+ shortcut: "t",
538
+ icon: Ae,
539
+ "aria-pressed": !!w,
540
+ onClick: Bt,
541
+ "data-ckui": "theater"
542
+ }),
543
+ B.supported && /* @__PURE__ */ f(s, {
544
+ label: B.active ? D("player.exitFullscreen") : D("player.fullscreen"),
545
+ shortcut: "f",
546
+ icon: B.active ? Se : we,
547
+ onClick: B.toggle,
548
+ "data-ckui": "fullscreen"
549
+ })
550
+ ]
551
+ })]
552
+ }),
553
+ /* @__PURE__ */ f("span", {
554
+ className: "sr-only",
555
+ "aria-live": "polite",
556
+ children: Q ? D("player.loading") : ""
557
+ }),
558
+ j && /* @__PURE__ */ f(Ue, {
559
+ icon: !0,
560
+ code: j.code,
561
+ onRetry: k.retry,
562
+ children: D(`player.errors.${j.kind}`)
563
+ })
564
+ ] })
565
+ });
566
+ }
567
+ function ze(e) {
568
+ try {
569
+ return e instanceof Element && e.matches(":focus-visible") && !!e.closest("[data-ckui=controls]");
570
+ } catch {
571
+ return !1;
572
+ }
573
+ }
574
+ function Be({ label: e, onClick: t, disabled: n, className: r, children: i }) {
575
+ return /* @__PURE__ */ f("button", {
576
+ type: "button",
577
+ className: "absolute inset-0 z-[7] flex items-center justify-center outline-none focus-visible:[&>span]:ring-4 focus-visible:[&>span]:ring-white/60",
578
+ onClick: t,
579
+ "aria-label": e,
580
+ disabled: n,
581
+ children: /* @__PURE__ */ f("span", {
582
+ className: m("flex size-16 items-center justify-center rounded-full bg-black/55 shadow-lg backdrop-blur-sm transition motion-safe:hover:scale-105", r),
583
+ children: i
584
+ })
585
+ });
586
+ }
587
+ function Ve(e, t) {
588
+ let n = t ?? 0, r = e ?? n * .1;
589
+ return Math.max(0, n > 1 ? Math.min(r, n - 1) : 0);
590
+ }
591
+ function He(e) {
592
+ return `${e}p${e >= 2160 ? " 4K" : e === 1080 ? " HD" : ""}`;
593
+ }
594
+ function Ue({ children: e, icon: t, code: n, onRetry: i }) {
595
+ let { t: a } = r();
596
+ return /* @__PURE__ */ p("div", {
597
+ role: "alert",
598
+ "data-ckui": "player-error",
599
+ "data-ckui-noswipe": "",
600
+ className: "absolute inset-0 z-20 flex flex-col items-center justify-center gap-3 bg-black/80 p-6 text-center",
601
+ children: [
602
+ t && /* @__PURE__ */ f(_, {
603
+ icon: h,
604
+ className: "size-7 text-white/80",
605
+ strokeWidth: 1.75
606
+ }),
607
+ /* @__PURE__ */ f("p", {
608
+ className: "max-w-sm text-sm font-medium text-balance",
609
+ children: e
610
+ }),
611
+ i && /* @__PURE__ */ p(o, {
612
+ size: "sm",
613
+ variant: "secondary",
614
+ onClick: i,
615
+ children: [/* @__PURE__ */ f(_, {
616
+ icon: g,
617
+ "data-icon": "inline-start"
618
+ }), a("player.retry")]
619
+ }),
620
+ n && /* @__PURE__ */ f("p", {
621
+ className: "font-mono text-[11px] text-white/55",
622
+ children: a("player.code", { code: n })
623
+ })
624
+ ]
625
+ });
626
+ }
627
+ //#endregion
628
+ export { Me as SpriteFrame, x as VideoPlayer, Le as keyAllowed, Ve as previewStartAt, He as qualityLabel };
629
+
630
+ //# sourceMappingURL=video-player.js.map