@btndprojects/loam-ui-native 0.2.1 → 0.3.1

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 (365) hide show
  1. package/dist/accordion/index.js +4 -2
  2. package/dist/adaptive/index.js +12 -2
  3. package/dist/address-block/index.js +23 -0
  4. package/dist/alert/index.js +5 -2
  5. package/dist/analyzer/index.js +13 -5
  6. package/dist/announcement/index.js +15 -5
  7. package/dist/appearance-picker/index.js +15 -0
  8. package/dist/audio-player/index.js +26 -2
  9. package/dist/avatar/index.js +2 -2
  10. package/dist/avatar-group/index.js +5 -3
  11. package/dist/badge/index.js +6 -3
  12. package/dist/banner/index.js +3 -2
  13. package/dist/board/index.js +13 -6
  14. package/dist/button/index.js +6 -3
  15. package/dist/camera-permission/index.js +19 -11
  16. package/dist/capture-result/index.js +26 -16
  17. package/dist/card/index.js +7 -3
  18. package/dist/card-form/index.js +15 -9
  19. package/dist/carousel/index.js +3 -1
  20. package/dist/chart/index.js +15 -5
  21. package/dist/charts/index.js +18 -5
  22. package/dist/chat/index.js +35 -10
  23. package/dist/checkbox/index.js +6 -4
  24. package/dist/checklist/index.js +16 -7
  25. package/dist/checkout/index.js +25 -12
  26. package/dist/chip/index.js +7 -4
  27. package/dist/chunk-2BZD3NAP.js +1110 -0
  28. package/dist/chunk-2YKVID2V.js +35 -0
  29. package/dist/{chunk-H7DWSL4O.js → chunk-36DA3IPO.js} +115 -27
  30. package/dist/chunk-3A56MIAN.js +599 -0
  31. package/dist/{chunk-AEB7KCHQ.js → chunk-3SCKCWF5.js} +39 -28
  32. package/dist/chunk-3TZNDHKO.js +187 -0
  33. package/dist/chunk-43K3BLXV.js +9 -0
  34. package/dist/chunk-46ZJIQ2Z.js +208 -0
  35. package/dist/{chunk-PMMTGBBS.js → chunk-4CZMQDQL.js} +75 -22
  36. package/dist/chunk-4QCR3K2J.js +1 -0
  37. package/dist/{chunk-E2E3I5W2.js → chunk-5DTKORLI.js} +54 -45
  38. package/dist/{chunk-5VFZRGVD.js → chunk-5J4WFXFA.js} +32 -15
  39. package/dist/{chunk-JBMLWFSJ.js → chunk-5KJ7TEQ6.js} +83 -48
  40. package/dist/chunk-5NU33TXK.js +529 -0
  41. package/dist/chunk-6KSUS7DF.js +690 -0
  42. package/dist/{chunk-3WEZCGHX.js → chunk-6RV6UW2J.js} +140 -56
  43. package/dist/chunk-6RZM7RP2.js +520 -0
  44. package/dist/{chunk-JJLPBRVZ.js → chunk-75BDCC7K.js} +2 -0
  45. package/dist/{chunk-U5NLHYV6.js → chunk-7CGJBQUA.js} +333 -22
  46. package/dist/{chunk-I4FHVKEC.js → chunk-7IVF6JLJ.js} +16 -5
  47. package/dist/chunk-7IWCGXYA.js +143 -0
  48. package/dist/chunk-7LM4ASFH.js +172 -0
  49. package/dist/chunk-7MCEJFWV.js +341 -0
  50. package/dist/{chunk-2SY63FCH.js → chunk-7NGMUVNU.js} +66 -30
  51. package/dist/chunk-7PBSIXT7.js +355 -0
  52. package/dist/chunk-7QOYGENL.js +443 -0
  53. package/dist/{chunk-TDMG26JI.js → chunk-A7SWYDE5.js} +40 -9
  54. package/dist/chunk-ADHPJALR.js +3051 -0
  55. package/dist/{chunk-ZLTO5VQI.js → chunk-ALJYZLNQ.js} +131 -61
  56. package/dist/{chunk-GDKVKNR2.js → chunk-AQ5FIG74.js} +110 -30
  57. package/dist/chunk-B2MMZZQB.js +426 -0
  58. package/dist/{chunk-QYPE5JX3.js → chunk-B7JZ3N5G.js} +142 -105
  59. package/dist/{chunk-QHTVYA65.js → chunk-BL37SW6G.js} +388 -102
  60. package/dist/chunk-BTRMA7GC.js +21 -0
  61. package/dist/{chunk-FUMHAAF3.js → chunk-C7IUWIUZ.js} +243 -92
  62. package/dist/chunk-CA3DUVYD.js +10 -0
  63. package/dist/{chunk-FYWNRX4F.js → chunk-CBCJSO2B.js} +143 -13
  64. package/dist/chunk-CHPX4MFI.js +239 -0
  65. package/dist/chunk-CLGAMIOT.js +648 -0
  66. package/dist/chunk-CUE7VML6.js +1141 -0
  67. package/dist/{chunk-D5N5QWI7.js → chunk-CVU6S2E5.js} +497 -235
  68. package/dist/{chunk-U23FYWME.js → chunk-CXPQMA6Z.js} +101 -34
  69. package/dist/{chunk-36EC2T6P.js → chunk-D2LN4I7I.js} +1 -1
  70. package/dist/{chunk-TLCIR6RG.js → chunk-D34LNBO5.js} +411 -155
  71. package/dist/{chunk-FV6HMP7W.js → chunk-D4BCQICM.js} +207 -65
  72. package/dist/chunk-EABKIIA4.js +1 -0
  73. package/dist/chunk-EICSYRAG.js +341 -0
  74. package/dist/chunk-EMWAJMAS.js +83 -0
  75. package/dist/chunk-EOLZWRV6.js +149 -0
  76. package/dist/chunk-EOQVTGB6.js +350 -0
  77. package/dist/{chunk-ZVATDZOM.js → chunk-ESGUHNB2.js} +106 -28
  78. package/dist/{chunk-46MMSDGL.js → chunk-F2KNBPKY.js} +104 -73
  79. package/dist/{chunk-KQZ3GLHR.js → chunk-G7H3NX3G.js} +40 -17
  80. package/dist/{chunk-3QMEOFW5.js → chunk-GM7YIPB7.js} +421 -207
  81. package/dist/{chunk-QHAITQIF.js → chunk-GVQQG435.js} +256 -86
  82. package/dist/chunk-HE43OMEL.js +1056 -0
  83. package/dist/{chunk-XIDTBCBA.js → chunk-HHOMFQ7R.js} +1049 -207
  84. package/dist/chunk-HNAKS4Z3.js +207 -0
  85. package/dist/chunk-HP6ST2OW.js +352 -0
  86. package/dist/chunk-HW3OWDTU.js +1 -0
  87. package/dist/{chunk-QP3KMOVF.js → chunk-HZDB44K4.js} +24 -14
  88. package/dist/chunk-I6CUP2LW.js +1155 -0
  89. package/dist/chunk-ICV4Y2WY.js +27 -0
  90. package/dist/chunk-IHSIENOE.js +3950 -0
  91. package/dist/{chunk-T5LTPKX6.js → chunk-IMMALLRU.js} +53 -25
  92. package/dist/{chunk-C4GTDLRC.js → chunk-JA6TK7H2.js} +154 -67
  93. package/dist/{chunk-EVOIGUBI.js → chunk-JAVZ5JPV.js} +43 -13
  94. package/dist/{chunk-CPTOADB2.js → chunk-JCMTP3E4.js} +527 -201
  95. package/dist/{chunk-OJQUBQWA.js → chunk-JCXFFK64.js} +73 -16
  96. package/dist/{chunk-V2OEB75Z.js → chunk-JWCVBFDU.js} +75 -35
  97. package/dist/chunk-JXRTD5RI.js +414 -0
  98. package/dist/chunk-JYIUZUIQ.js +1567 -0
  99. package/dist/chunk-K3TK3GIV.js +219 -0
  100. package/dist/chunk-KEVZIHM2.js +1511 -0
  101. package/dist/{chunk-VAOAKWUK.js → chunk-KHZDNQQD.js} +42 -8
  102. package/dist/chunk-KL4GDV4V.js +131 -0
  103. package/dist/{chunk-Q6NKEPRE.js → chunk-KNILMM4H.js} +73 -28
  104. package/dist/chunk-KRBUZV45.js +25 -0
  105. package/dist/{chunk-7BUIKDD6.js → chunk-KXLDK6HB.js} +91 -30
  106. package/dist/chunk-KZ3X7TSL.js +196 -0
  107. package/dist/{chunk-5UTRIXQ6.js → chunk-L2WMOA2V.js} +187 -43
  108. package/dist/chunk-L4D5LHCH.js +109 -0
  109. package/dist/{chunk-W63AJTM7.js → chunk-LAUJPLDB.js} +236 -71
  110. package/dist/{chunk-TN2ZNJUI.js → chunk-LGNTP5XA.js} +47 -13
  111. package/dist/chunk-LUZFCCSD.js +271 -0
  112. package/dist/{chunk-XTORZWRF.js → chunk-LXJCP4PL.js} +111 -30
  113. package/dist/chunk-MCOZJWPU.js +731 -0
  114. package/dist/{chunk-SATMR6SG.js → chunk-MG4SKWLL.js} +780 -142
  115. package/dist/{chunk-JUYWSSKW.js → chunk-MPEPTSER.js} +95 -16
  116. package/dist/chunk-MWPJ4YGP.js +1 -0
  117. package/dist/{chunk-LUMVGO2K.js → chunk-N7AX4OA4.js} +80 -29
  118. package/dist/chunk-NHSLM6SE.js +523 -0
  119. package/dist/{chunk-IT6FUXXG.js → chunk-NNJLVA7M.js} +43 -11
  120. package/dist/{chunk-TQVAIKFD.js → chunk-NZG75DGA.js} +102 -62
  121. package/dist/chunk-O76QXRBV.js +431 -0
  122. package/dist/chunk-OANH27AK.js +223 -0
  123. package/dist/chunk-OCHPK5YV.js +609 -0
  124. package/dist/chunk-OMHVEVX4.js +436 -0
  125. package/dist/{chunk-SWS5JQIF.js → chunk-ONKQUJWD.js} +187 -60
  126. package/dist/chunk-OVTK7A6T.js +615 -0
  127. package/dist/{chunk-UXGIW7OK.js → chunk-PCEFCOLN.js} +5 -1
  128. package/dist/{chunk-QIKT7LIB.js → chunk-PFLNFIVB.js} +91 -23
  129. package/dist/chunk-PHSZY37H.js +300 -0
  130. package/dist/chunk-PJLTKDVY.js +18 -0
  131. package/dist/{chunk-SHHY5OMK.js → chunk-PK7BN3MI.js} +83 -15
  132. package/dist/{chunk-YXOAPXMU.js → chunk-PWFRDRGS.js} +101 -14
  133. package/dist/{chunk-TY4MTKQJ.js → chunk-PYPMD46W.js} +332 -66
  134. package/dist/chunk-Q6CCHDI7.js +331 -0
  135. package/dist/chunk-QFA5WS2A.js +750 -0
  136. package/dist/chunk-QJMMM4RC.js +124 -0
  137. package/dist/chunk-QYWEVAM6.js +407 -0
  138. package/dist/chunk-R5T4VZ7Z.js +126 -0
  139. package/dist/chunk-R77HFLZD.js +1 -0
  140. package/dist/{chunk-LMPHCVJJ.js → chunk-RAESDNU5.js} +162 -68
  141. package/dist/chunk-RBYQUXNL.js +1 -0
  142. package/dist/chunk-RCM3DT5E.js +1 -0
  143. package/dist/chunk-RGNY56L7.js +282 -0
  144. package/dist/chunk-RIK6UX2K.js +344 -0
  145. package/dist/{chunk-5LAAAXFP.js → chunk-RJA3RXO3.js} +63 -54
  146. package/dist/chunk-RJYRJ3LD.js +1 -0
  147. package/dist/chunk-RMA3NOY4.js +599 -0
  148. package/dist/{chunk-VDPK5CY4.js → chunk-RSWKKAHK.js} +143 -61
  149. package/dist/{chunk-B7N4ASYE.js → chunk-RVOIIX3V.js} +17 -45
  150. package/dist/chunk-SA2RRBGT.js +1077 -0
  151. package/dist/{chunk-7OVVSVEZ.js → chunk-SG3J4R45.js} +440 -169
  152. package/dist/chunk-SPUK7JD4.js +238 -0
  153. package/dist/chunk-SWXV2K5N.js +434 -0
  154. package/dist/chunk-SYJEPXP6.js +1303 -0
  155. package/dist/{chunk-LKFC4CS7.js → chunk-SZLI34TA.js} +18 -9
  156. package/dist/{chunk-NBEF4EPJ.js → chunk-T77WJA74.js} +131 -16
  157. package/dist/chunk-TDWWVJA4.js +630 -0
  158. package/dist/chunk-TFHI5XDR.js +610 -0
  159. package/dist/chunk-TH4PW2WU.js +17 -0
  160. package/dist/chunk-TTQ24HQX.js +12 -0
  161. package/dist/chunk-TUACVJNG.js +12 -0
  162. package/dist/{chunk-F5B3UINI.js → chunk-TUL5RUIA.js} +171 -62
  163. package/dist/{chunk-C6APNDVA.js → chunk-TYOSA7JG.js} +63 -34
  164. package/dist/chunk-TYQTMMEV.js +1 -0
  165. package/dist/{chunk-DW3L54DQ.js → chunk-TZO6YDS7.js} +53 -12
  166. package/dist/{chunk-67IZZ2MJ.js → chunk-U3ETF22F.js} +75 -30
  167. package/dist/{chunk-EDCBJV7J.js → chunk-U6BYHD2N.js} +87 -31
  168. package/dist/{chunk-ENP3BMZU.js → chunk-UF6EJXPQ.js} +16 -1
  169. package/dist/{chunk-IPUNJMAQ.js → chunk-UNNQIPGK.js} +304 -68
  170. package/dist/chunk-UQVO6AJV.js +171 -0
  171. package/dist/{chunk-FZGAAOKS.js → chunk-VFDQAAIW.js} +138 -32
  172. package/dist/chunk-VIUE3VQT.js +1 -0
  173. package/dist/{chunk-5RENVKBQ.js → chunk-VJLSSSGC.js} +126 -30
  174. package/dist/chunk-VLMT6KYT.js +350 -0
  175. package/dist/chunk-VMHGBUGS.js +35 -0
  176. package/dist/{chunk-4IZXHVFJ.js → chunk-VQKPBYW6.js} +228 -172
  177. package/dist/{chunk-G6UESEVN.js → chunk-VSSTWLC5.js} +49 -11
  178. package/dist/{chunk-TRGFFU6A.js → chunk-VZYYZRPN.js} +866 -330
  179. package/dist/{chunk-JLC6PM5S.js → chunk-WAIJCD2V.js} +128 -54
  180. package/dist/chunk-WFMQ3WKM.js +378 -0
  181. package/dist/chunk-WJ2KDRMY.js +66 -0
  182. package/dist/chunk-WKFZJO54.js +437 -0
  183. package/dist/{chunk-QEYFDRHR.js → chunk-WVVD3XOV.js} +146 -84
  184. package/dist/chunk-XAIWMSLB.js +1 -0
  185. package/dist/chunk-XBXUBBJZ.js +98 -0
  186. package/dist/chunk-XCU7MYBJ.js +1 -0
  187. package/dist/chunk-XHE4PGCI.js +717 -0
  188. package/dist/chunk-XRSJ32M3.js +331 -0
  189. package/dist/chunk-XTCVOEAW.js +1 -0
  190. package/dist/chunk-XWGXVQF6.js +58 -0
  191. package/dist/{chunk-MKSNFG7H.js → chunk-Y3XKKO5K.js} +191 -109
  192. package/dist/chunk-Y4QNMBLO.js +533 -0
  193. package/dist/chunk-Y5H4CTKO.js +1 -0
  194. package/dist/chunk-YBQIN75A.js +403 -0
  195. package/dist/{chunk-PNF3NKB5.js → chunk-YJ5PXOX3.js} +28 -11
  196. package/dist/{chunk-M656FYNH.js → chunk-YLRSRUPS.js} +63 -49
  197. package/dist/chunk-YM6MPJ4A.js +1 -0
  198. package/dist/chunk-YV7KZENV.js +200 -0
  199. package/dist/chunk-Z7I4ZSO6.js +316 -0
  200. package/dist/{chunk-EY4DD67D.js → chunk-ZIRMWD2B.js} +199 -126
  201. package/dist/chunk-ZPMG3FWU.js +75 -0
  202. package/dist/{chunk-QRUMA22E.js → chunk-ZTXMK2G7.js} +92 -43
  203. package/dist/{chunk-2OLKPG4E.js → chunk-ZVJCWXAL.js} +189 -87
  204. package/dist/{chunk-YAAHPATV.js → chunk-ZYQ23DPT.js} +49 -34
  205. package/dist/coachmark/index.js +7 -3
  206. package/dist/code-block/index.js +4 -3
  207. package/dist/color-field/index.js +12 -4
  208. package/dist/color-picker/index.js +23 -0
  209. package/dist/commerce/index.js +27 -16
  210. package/dist/confirm/index.js +31 -0
  211. package/dist/connection-card/index.js +34 -0
  212. package/dist/connectivity/index.js +3 -2
  213. package/dist/context-menu/index.js +10 -2
  214. package/dist/copy-button/index.js +3 -2
  215. package/dist/data-grid/index.js +30 -17
  216. package/dist/date-range-picker/index.js +19 -9
  217. package/dist/description-list/index.js +4 -1
  218. package/dist/device-frame/index.js +30 -0
  219. package/dist/dialog/index.js +8 -2
  220. package/dist/divider/index.js +2 -0
  221. package/dist/empty-state/index.js +13 -2
  222. package/dist/error-summary/index.js +7 -2
  223. package/dist/fab/index.js +4 -2
  224. package/dist/file-manager/index.js +33 -17
  225. package/dist/file-upload/index.js +12 -6
  226. package/dist/filter-bar/index.js +10 -6
  227. package/dist/flow-run/index.js +19 -12
  228. package/dist/form/index.js +30 -3
  229. package/dist/gallery/index.js +5 -2
  230. package/dist/hold-to-confirm/index.js +4 -2
  231. package/dist/hover-card/index.js +18 -0
  232. package/dist/icon-tile/index.js +10 -0
  233. package/dist/image/index.js +9 -0
  234. package/dist/index.d.ts +29826 -17941
  235. package/dist/index.js +197 -141
  236. package/dist/infinite-list/index.js +4 -2
  237. package/dist/inline-edit/index.js +5 -4
  238. package/dist/input/index.js +4 -3
  239. package/dist/interactions/index.js +4 -1
  240. package/dist/invoice/index.js +18 -9
  241. package/dist/job-row/index.js +22 -0
  242. package/dist/json-inspector/index.js +20 -0
  243. package/dist/kbd/index.js +2 -2
  244. package/dist/keyboard/index.js +7 -2
  245. package/dist/level-meter/index.js +9 -0
  246. package/dist/list-row/index.js +11 -3
  247. package/dist/log-viewer/index.js +9 -2
  248. package/dist/map-view/index.js +13 -2
  249. package/dist/markdown/index.js +8 -5
  250. package/dist/metric/index.js +6 -3
  251. package/dist/metric-strip/index.js +12 -0
  252. package/dist/money/index.js +11 -4
  253. package/dist/nav-drawer/index.js +6 -2
  254. package/dist/nav-header/index.js +10 -4
  255. package/dist/navigation/index.js +29 -2
  256. package/dist/notification-center/index.js +24 -10
  257. package/dist/number-roll/index.js +3 -1
  258. package/dist/onboarding-pager/index.js +22 -0
  259. package/dist/one-handed/index.js +2 -2
  260. package/dist/os-surfaces/index.js +6 -3
  261. package/dist/otp/index.js +5 -4
  262. package/dist/page-header/index.js +2 -1
  263. package/dist/pagination/index.js +4 -2
  264. package/dist/payment-method/index.js +17 -11
  265. package/dist/payment-status/index.js +22 -14
  266. package/dist/permission/index.js +18 -2
  267. package/dist/picker/index.js +17 -6
  268. package/dist/progress/index.js +7 -2
  269. package/dist/provenance/index.js +16 -0
  270. package/dist/pull-to-refresh/index.js +2 -2
  271. package/dist/qr-code/index.js +16 -0
  272. package/dist/query-builder/index.js +30 -0
  273. package/dist/radio-group/index.js +6 -4
  274. package/dist/rating/index.js +7 -2
  275. package/dist/receivables/index.js +31 -18
  276. package/dist/recording-indicator/index.js +21 -0
  277. package/dist/refund/index.js +24 -15
  278. package/dist/repeatable-rows/index.js +19 -0
  279. package/dist/save-status/index.js +5 -3
  280. package/dist/screen/index.js +3 -0
  281. package/dist/scroll-area/index.js +1 -1
  282. package/dist/search-field/index.js +8 -3
  283. package/dist/secret-field/index.js +19 -0
  284. package/dist/section-header/index.js +4 -0
  285. package/dist/segmented-control/index.js +2 -2
  286. package/dist/sheet/index.js +9 -3
  287. package/dist/shortcuts-sheet/index.js +2 -0
  288. package/dist/sign-in-screen/index.js +25 -0
  289. package/dist/skeleton/index.js +3 -1
  290. package/dist/slider/index.js +2 -1
  291. package/dist/sortable/index.js +4 -3
  292. package/dist/spinner/index.js +2 -1
  293. package/dist/split-button/index.js +17 -5
  294. package/dist/spotlight/index.js +7 -1
  295. package/dist/stack/index.js +2 -0
  296. package/dist/stage-timeline/index.js +6 -3
  297. package/dist/status-dot/index.js +6 -2
  298. package/dist/stepper/index.js +7 -3
  299. package/dist/streaming-text/index.js +2 -1
  300. package/dist/survey/index.js +24 -14
  301. package/dist/switch/index.js +6 -2
  302. package/dist/system-state/index.js +12 -4
  303. package/dist/tab-bar/index.js +10 -2
  304. package/dist/tabs/index.js +10 -2
  305. package/dist/tags-input/index.js +8 -5
  306. package/dist/text/index.js +4 -0
  307. package/dist/textarea/index.js +5 -4
  308. package/dist/thinking/index.js +4 -1
  309. package/dist/tile-rail/index.js +10 -0
  310. package/dist/time-field/index.js +15 -7
  311. package/dist/time-range-control/index.js +26 -12
  312. package/dist/timeline/index.js +2 -2
  313. package/dist/toast/index.js +4 -2
  314. package/dist/toolbar/index.js +3 -2
  315. package/dist/tour/index.js +12 -10
  316. package/dist/transcript/index.js +28 -0
  317. package/dist/truncation-notice/index.js +2 -2
  318. package/dist/update-notice/index.js +15 -8
  319. package/dist/video-player/index.js +26 -2
  320. package/dist/viewfinder/index.js +12 -4
  321. package/dist/widget/index.js +11 -4
  322. package/dist/wizard/index.js +7 -4
  323. package/package.json +13 -13
  324. package/dist/chunk-2PKYGLQ6.js +0 -268
  325. package/dist/chunk-2SWKL3AJ.js +0 -466
  326. package/dist/chunk-2TXERVVA.js +0 -1081
  327. package/dist/chunk-3DUWIYV5.js +0 -437
  328. package/dist/chunk-3NMD74ZU.js +0 -4
  329. package/dist/chunk-4DS5ZWVC.js +0 -83
  330. package/dist/chunk-6YAQBXB3.js +0 -93
  331. package/dist/chunk-74FLKD24.js +0 -237
  332. package/dist/chunk-CMTVNF3D.js +0 -104
  333. package/dist/chunk-DN7MNQIP.js +0 -799
  334. package/dist/chunk-DVGBZ3TX.js +0 -455
  335. package/dist/chunk-F3H33DQX.js +0 -300
  336. package/dist/chunk-FAJI7BSC.js +0 -443
  337. package/dist/chunk-G3AFC24V.js +0 -60
  338. package/dist/chunk-HJLPZA4X.js +0 -369
  339. package/dist/chunk-HYEOQWT7.js +0 -647
  340. package/dist/chunk-IDM7JJMO.js +0 -110
  341. package/dist/chunk-IVKMZ7BB.js +0 -326
  342. package/dist/chunk-IXKWIFWZ.js +0 -334
  343. package/dist/chunk-JV5YOTOB.js +0 -164
  344. package/dist/chunk-KFJGFLMW.js +0 -158
  345. package/dist/chunk-LQP4KEXZ.js +0 -214
  346. package/dist/chunk-NTQ2F3AU.js +0 -257
  347. package/dist/chunk-O5V4TG3V.js +0 -329
  348. package/dist/chunk-OWAMM2DK.js +0 -280
  349. package/dist/chunk-PID3NJB7.js +0 -405
  350. package/dist/chunk-QDZGFXQD.js +0 -176
  351. package/dist/chunk-QPWDDJJ4.js +0 -385
  352. package/dist/chunk-ROCUG24E.js +0 -416
  353. package/dist/chunk-RU3ZPNL6.js +0 -1986
  354. package/dist/chunk-RXSCIO6W.js +0 -153
  355. package/dist/chunk-SKWO3SZF.js +0 -2284
  356. package/dist/chunk-UQGBTPXH.js +0 -218
  357. package/dist/chunk-UYGDJWMN.js +0 -273
  358. package/dist/chunk-W74TXYFB.js +0 -107
  359. package/dist/chunk-WRDSPUE7.js +0 -417
  360. package/dist/chunk-XBZGDDMR.js +0 -105
  361. package/dist/chunk-XN4KG3P4.js +0 -1040
  362. package/dist/chunk-XQXMLMH3.js +0 -211
  363. package/dist/chunk-ZECZOOSB.js +0 -245
  364. /package/dist/{chunk-VFCUIDRT.js → chunk-3BKLBYPK.js} +0 -0
  365. /package/dist/{chunk-GEIGMWNF.js → chunk-QNZII37O.js} +0 -0
@@ -0,0 +1,1141 @@
1
+ import { TranscriptSlot } from './chunk-3A56MIAN.js';
2
+ import { formatTime } from './chunk-CA3DUVYD.js';
3
+ import { Skeleton } from './chunk-YJ5PXOX3.js';
4
+ import { Spinner } from './chunk-G7H3NX3G.js';
5
+ import { useLabels } from './chunk-APCWFOZW.js';
6
+ import { Icon } from './chunk-PCEFCOLN.js';
7
+ import { useResolvedMotion, springConfig } from './chunk-J64KGCGX.js';
8
+ import * as React from 'react';
9
+ import { Animated, Platform, BackHandler, View, Text, Pressable, Image } from 'react-native';
10
+ import { createStyleSheet, useStyles, useLoamTheme } from '@btndprojects/loam-theme-native';
11
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
12
+
13
+ var DEFAULT_LABELS = {
14
+ play: "Play",
15
+ pause: "Pause",
16
+ mute: "Mute",
17
+ unmute: "Unmute",
18
+ captions: "Captions",
19
+ captionsMark: "CC",
20
+ fullscreen: "Fullscreen",
21
+ seek: "Seek",
22
+ seekValue: (current, total) => `${current} of ${total}`,
23
+ poster: (aspectRatio) => `Poster ${aspectRatio}`,
24
+ buffering: "Buffering",
25
+ error: "This video couldn\u2019t be played.",
26
+ retry: "Retry",
27
+ volume: (percent) => `Volume ${percent}%`,
28
+ speed: (rate) => `Speed ${rate}\xD7`,
29
+ settings: "Settings",
30
+ speedRow: "Speed",
31
+ qualityRow: "Quality",
32
+ captionsOff: "Off",
33
+ back: "Back",
34
+ close: "Close",
35
+ exitFullscreen: "Exit fullscreen",
36
+ skipped: (seconds) => `${seconds > 0 ? "+" : "\u2212"}${Math.abs(seconds)} s`,
37
+ skipIntro: "Skip intro",
38
+ watched: (w, t) => `You watched ${w} of ${t}`,
39
+ resume: "Resume",
40
+ startOver: "Start over",
41
+ upNextIn: (n) => `Up next \xB7 in ${n}`,
42
+ playNow: "Play now",
43
+ replay: "Replay",
44
+ live: "LIVE",
45
+ goLive: (b) => `Go to live \xB7 -${b}`
46
+ };
47
+ var DOUBLE_TAP_SEEK = 10;
48
+ var DOUBLE_TAP_MS = 280;
49
+ var CHROME_HIDE_MS = 3e3;
50
+ var UP_NEXT_SECONDS = 5;
51
+ var RATES = [0.5, 0.75, 1, 1.25, 1.5, 2];
52
+ var POSTER = {
53
+ /** Inset from the top of the stage. */
54
+ padTop: 10,
55
+ /** Label size. Matches `type.caption2` on both platforms, but stated for clarity. */
56
+ fontSize: 11,
57
+ // loam-allow-raw: ramp key, read via theme.fontSize at the use site
58
+ /**
59
+ * Tracking as an `em` multiple. `theme.tracking` steps either side are `wide`
60
+ * (0.04) and `caps` (0.12), so the doc's 0.08em has no token — the value is
61
+ * kept and scaled by the font size, since RN `letterSpacing` is absolute.
62
+ */
63
+ trackingEm: 0.08
64
+ };
65
+ var PLAY_GLYPH_NUDGE = -1;
66
+ function VideoPlayer({
67
+ duration,
68
+ position,
69
+ playing,
70
+ title,
71
+ meta,
72
+ aspectRatio = 16 / 9,
73
+ captions = false,
74
+ quality,
75
+ qualities,
76
+ onQualityChange,
77
+ playbackRate = 1,
78
+ onPlaybackRateChange,
79
+ captionsOn,
80
+ onCaptionsChange,
81
+ fullscreen,
82
+ onFullscreenChange,
83
+ onTogglePlay,
84
+ onSeek,
85
+ transcript,
86
+ children,
87
+ motion = "full",
88
+ labels: labelsProp,
89
+ loading = false,
90
+ size = "md",
91
+ captionText,
92
+ chapters,
93
+ thumbnails,
94
+ skipIntro,
95
+ upNext,
96
+ resumeAt,
97
+ live = false,
98
+ liveOffset = 0,
99
+ onGoLive,
100
+ onRetry,
101
+ failed = false,
102
+ buffering = false,
103
+ buffered = 0,
104
+ defaultSettingsOpen,
105
+ previewAt,
106
+ feedback
107
+ }) {
108
+ const labels = useLabels("videoPlayer", DEFAULT_LABELS, labelsProp);
109
+ const { styles } = useStyles(sheet);
110
+ const theme = useLoamTheme("video-player");
111
+ const [ownPlaying, setOwnPlaying] = React.useState(false);
112
+ const [ownPosition, setOwnPosition] = React.useState(0);
113
+ const [trackWidth, setTrackWidth] = React.useState(0);
114
+ const [controlsHeight, setControlsHeight] = React.useState(0);
115
+ const [ownCaptions, setOwnCaptions] = React.useState(false);
116
+ const [ownFullscreen, setOwnFullscreen] = React.useState(false);
117
+ const [chromeVisible, setChromeVisible] = React.useState(true);
118
+ const [settingsPage, setSettingsPage] = React.useState(
119
+ defaultSettingsOpen ?? null
120
+ );
121
+ const [pill, setPill] = React.useState(null);
122
+ const [scrubAt, setScrubAt] = React.useState(null);
123
+ const [resumeOpen, setResumeOpen] = React.useState(resumeAt != null && resumeAt > 0);
124
+ const [countdown, setCountdown] = React.useState(UP_NEXT_SECONDS);
125
+ const isCaptionsOn = captionsOn ?? ownCaptions;
126
+ const isFullscreen = fullscreen ?? ownFullscreen;
127
+ const isPlaying = playing ?? ownPlaying;
128
+ const current = position ?? ownPosition;
129
+ const pct = duration > 0 ? Math.min(1, Math.max(0, current / duration)) : 0;
130
+ const ended = duration > 0 && current >= duration && !isPlaying;
131
+ const showUpNext = ended && !!upNext && !failed;
132
+ const showResume = resumeOpen && !isPlaying && !failed && !showUpNext;
133
+ const showSkipIntro = !!skipIntro && current >= skipIntro.start && current < skipIntro.end;
134
+ const previewT = previewAt ?? scrubAt;
135
+ const segments = React.useMemo(() => {
136
+ const starts = [
137
+ 0,
138
+ ...(chapters ?? []).map((c) => c.start).filter((t) => t > 0 && t < duration)
139
+ ];
140
+ return starts.map((start, i) => ({ start, end: starts[i + 1] ?? duration }));
141
+ }, [chapters, duration]);
142
+ const chapterAt = (t) => {
143
+ let at = chapters?.[0];
144
+ chapters?.forEach((c) => {
145
+ if (t >= c.start) at = c;
146
+ });
147
+ return at;
148
+ };
149
+ const upNextPlay = upNext?.onPlay;
150
+ React.useEffect(() => {
151
+ if (!showUpNext) {
152
+ setCountdown(UP_NEXT_SECONDS);
153
+ return void 0;
154
+ }
155
+ if (countdown <= 0) {
156
+ upNextPlay?.();
157
+ return void 0;
158
+ }
159
+ const id = setTimeout(() => setCountdown((n) => n - 1), 1e3);
160
+ return () => clearTimeout(id);
161
+ }, [showUpNext, countdown, upNextPlay]);
162
+ const level = useResolvedMotion(motion, "video-player");
163
+ const chrome = React.useRef(new Animated.Value(isPlaying ? 0 : 1)).current;
164
+ const wasPlaying = React.useRef(isPlaying);
165
+ React.useEffect(() => {
166
+ if (wasPlaying.current === isPlaying) return;
167
+ wasPlaying.current = isPlaying;
168
+ const to = isPlaying ? 0 : 1;
169
+ if (level === "none") chrome.setValue(to);
170
+ else
171
+ Animated.spring(chrome, {
172
+ ...springConfig(theme, "de"),
173
+ toValue: to,
174
+ useNativeDriver: true
175
+ }).start();
176
+ }, [isPlaying, level, chrome, theme]);
177
+ const hideTimer = React.useRef();
178
+ const showChrome = React.useCallback(() => {
179
+ setChromeVisible(true);
180
+ clearTimeout(hideTimer.current);
181
+ if (isPlaying && settingsPage == null) {
182
+ hideTimer.current = setTimeout(() => setChromeVisible(false), CHROME_HIDE_MS);
183
+ }
184
+ }, [isPlaying, settingsPage]);
185
+ React.useEffect(() => {
186
+ showChrome();
187
+ return () => clearTimeout(hideTimer.current);
188
+ }, [showChrome]);
189
+ const visible = chromeVisible || !isPlaying || settingsPage != null;
190
+ const fade = React.useRef(new Animated.Value(1)).current;
191
+ React.useEffect(() => {
192
+ const to = visible ? 1 : 0;
193
+ if (level === "none") fade.setValue(to);
194
+ else
195
+ Animated.timing(fade, {
196
+ toValue: to,
197
+ duration: theme.duration.base,
198
+ useNativeDriver: true
199
+ }).start();
200
+ }, [visible, level, fade, theme.duration.base]);
201
+ const setFullscreen = (next) => {
202
+ if (fullscreen == null) setOwnFullscreen(next);
203
+ onFullscreenChange?.(next);
204
+ };
205
+ React.useEffect(() => {
206
+ if (Platform.OS !== "android" || !isFullscreen && settingsPage == null) return void 0;
207
+ const sub = BackHandler.addEventListener("hardwareBackPress", () => {
208
+ if (settingsPage != null) setSettingsPage(null);
209
+ else setFullscreen(false);
210
+ return true;
211
+ });
212
+ return () => sub.remove();
213
+ }, [isFullscreen, settingsPage]);
214
+ const setCaptions = (on) => {
215
+ if (captionsOn == null) setOwnCaptions(on);
216
+ onCaptionsChange?.(on);
217
+ };
218
+ const lastTap = React.useRef(null);
219
+ const tapTimer = React.useRef();
220
+ const pillTimer = React.useRef();
221
+ React.useEffect(
222
+ () => () => {
223
+ clearTimeout(tapTimer.current);
224
+ clearTimeout(pillTimer.current);
225
+ },
226
+ []
227
+ );
228
+ const [stageWidth, setStageWidth] = React.useState(0);
229
+ const onStagePress = (x) => {
230
+ const side = stageWidth > 0 && x < stageWidth / 2 ? -1 : 1;
231
+ const now = Date.now();
232
+ const prev = lastTap.current;
233
+ if (prev && now - prev.at < DOUBLE_TAP_MS && prev.side === side) {
234
+ lastTap.current = null;
235
+ clearTimeout(tapTimer.current);
236
+ const next = Math.min(duration, Math.max(0, current + side * DOUBLE_TAP_SEEK));
237
+ if (position == null) setOwnPosition(next);
238
+ onSeek?.(next);
239
+ setPill(labels.skipped(side * DOUBLE_TAP_SEEK));
240
+ clearTimeout(pillTimer.current);
241
+ pillTimer.current = setTimeout(() => setPill(null), 800);
242
+ return;
243
+ }
244
+ lastTap.current = { at: now, side };
245
+ clearTimeout(tapTimer.current);
246
+ tapTimer.current = setTimeout(() => {
247
+ lastTap.current = null;
248
+ if (visible && isPlaying) {
249
+ clearTimeout(hideTimer.current);
250
+ setChromeVisible(false);
251
+ } else showChrome();
252
+ }, DOUBLE_TAP_MS);
253
+ };
254
+ const toggle = () => {
255
+ const next = !isPlaying;
256
+ if (playing == null) setOwnPlaying(next);
257
+ onTogglePlay?.(next);
258
+ };
259
+ const seekTo = (seconds) => {
260
+ const next = Math.min(duration, Math.max(0, seconds));
261
+ if (position == null) setOwnPosition(next);
262
+ onSeek?.(next);
263
+ };
264
+ const seekFromX = (x) => {
265
+ if (trackWidth <= 0 || duration <= 0) return;
266
+ const next = Math.min(duration, Math.max(0, x / trackWidth * duration));
267
+ setScrubAt(next);
268
+ seekTo(next);
269
+ };
270
+ const play = () => {
271
+ if (playing == null) setOwnPlaying(true);
272
+ onTogglePlay?.(true);
273
+ };
274
+ if (loading) {
275
+ return /* @__PURE__ */ jsx(View, { style: styles.root, accessibilityState: { busy: true }, "aria-busy": true, children: /* @__PURE__ */ jsx(View, { style: [styles.stage, { aspectRatio }], children: /* @__PURE__ */ jsx(Skeleton, { variant: "rect", style: { width: "100%", height: "100%" } }) }) });
276
+ }
277
+ return /* @__PURE__ */ jsxs(View, { style: styles.root, children: [
278
+ /* @__PURE__ */ jsxs(
279
+ View,
280
+ {
281
+ style: [styles.stage, { aspectRatio }],
282
+ onLayout: (e) => setStageWidth(e.nativeEvent.layout.width),
283
+ children: [
284
+ children ?? /* @__PURE__ */ jsx(View, { style: styles.placeholder, children: /* @__PURE__ */ jsx(Text, { style: styles.placeholderLabel, children: labels.poster(String(Math.round(aspectRatio * 100) / 100)) }) }),
285
+ /* @__PURE__ */ jsxs(
286
+ Pressable,
287
+ {
288
+ testID: "video-stage",
289
+ accessible: false,
290
+ onPress: (e) => onStagePress(e.nativeEvent.locationX),
291
+ style: styles.stagePress,
292
+ children: [
293
+ /* @__PURE__ */ jsx(Animated.View, { style: [styles.scrimTall, { opacity: fade, pointerEvents: "none" }] }),
294
+ /* @__PURE__ */ jsx(Animated.View, { style: [styles.scrim, { opacity: fade, pointerEvents: "none" }] }),
295
+ /* @__PURE__ */ jsx(
296
+ Animated.View,
297
+ {
298
+ pointerEvents: "box-none",
299
+ accessibilityElementsHidden: isPlaying,
300
+ importantForAccessibility: isPlaying ? "no-hide-descendants" : "auto",
301
+ style: [
302
+ styles.playSlot,
303
+ {
304
+ bottom: controlsHeight,
305
+ opacity: chrome,
306
+ transform: level === "full" ? [{ scale: chrome.interpolate({ inputRange: [0, 1], outputRange: [0.9, 1] }) }] : []
307
+ }
308
+ ],
309
+ children: isPlaying && level === "none" || showResume || failed || showUpNext ? null : /* @__PURE__ */ jsx(
310
+ Pressable,
311
+ {
312
+ accessible: false,
313
+ onPress: toggle,
314
+ style: [styles.playButton, { pointerEvents: "auto" }],
315
+ children: /* @__PURE__ */ jsx(
316
+ Icon,
317
+ {
318
+ name: "play",
319
+ size: theme.icon.lg,
320
+ color: theme.media.onInk,
321
+ strokeWidth: theme.icon.stroke
322
+ }
323
+ )
324
+ }
325
+ )
326
+ }
327
+ )
328
+ ]
329
+ }
330
+ ),
331
+ buffering && !failed ? /* @__PURE__ */ jsx(View, { style: [styles.centre, { pointerEvents: "none" }], children: /* @__PURE__ */ jsx(Spinner, { size: "lg", color: theme.media.ink, accessibilityLabel: labels.buffering }) }) : null,
332
+ feedback || pill ? /* @__PURE__ */ jsxs(View, { style: [styles.pill, { pointerEvents: "none" }], children: [
333
+ feedback?.icon ? /* @__PURE__ */ jsx(Icon, { name: feedback.icon, size: theme.icon.md, color: theme.media.ink }) : null,
334
+ /* @__PURE__ */ jsx(Text, { style: styles.pillText, children: feedback ? feedback.text : pill }),
335
+ feedback?.pct != null ? /* @__PURE__ */ jsx(View, { style: styles.pillBar, children: /* @__PURE__ */ jsx(View, { style: [styles.pillBarFill, { width: `${feedback.pct}%` }] }) }) : null
336
+ ] }) : null,
337
+ isCaptionsOn && captionText ? /* @__PURE__ */ jsx(
338
+ View,
339
+ {
340
+ style: [
341
+ styles.captionSlot,
342
+ { bottom: visible ? controlsHeight + theme.space.s2 : theme.space.s4 },
343
+ { pointerEvents: "none" }
344
+ ],
345
+ children: /* @__PURE__ */ jsx(Text, { style: styles.captionText, children: captionText })
346
+ }
347
+ ) : null,
348
+ showResume ? /* @__PURE__ */ jsxs(View, { style: [styles.promptSlot, { bottom: controlsHeight }], children: [
349
+ /* @__PURE__ */ jsx(Text, { style: styles.promptNote, children: labels.watched(formatTime(resumeAt ?? 0), formatTime(duration)) }),
350
+ /* @__PURE__ */ jsxs(View, { style: styles.promptRow, children: [
351
+ /* @__PURE__ */ jsx(
352
+ MediaButton,
353
+ {
354
+ label: labels.resume,
355
+ tone: "solid",
356
+ styles,
357
+ onPress: () => {
358
+ setResumeOpen(false);
359
+ seekTo(resumeAt ?? 0);
360
+ play();
361
+ }
362
+ }
363
+ ),
364
+ /* @__PURE__ */ jsx(
365
+ MediaButton,
366
+ {
367
+ label: labels.startOver,
368
+ tone: "glass",
369
+ styles,
370
+ onPress: () => {
371
+ setResumeOpen(false);
372
+ seekTo(0);
373
+ play();
374
+ }
375
+ }
376
+ )
377
+ ] })
378
+ ] }) : null,
379
+ showUpNext ? null : /* @__PURE__ */ jsxs(
380
+ Animated.View,
381
+ {
382
+ style: [
383
+ styles.controls,
384
+ { opacity: fade, pointerEvents: visible ? "box-none" : "none" }
385
+ ],
386
+ onLayout: (e) => setControlsHeight(e.nativeEvent.layout.height),
387
+ children: [
388
+ showSkipIntro ? /* @__PURE__ */ jsx(
389
+ MediaButton,
390
+ {
391
+ label: labels.skipIntro,
392
+ tone: "glass",
393
+ styles,
394
+ onPress: () => seekTo(skipIntro?.end ?? 0),
395
+ style: styles.endSelf
396
+ }
397
+ ) : null,
398
+ live && liveOffset > 0 ? /* @__PURE__ */ jsx(
399
+ MediaButton,
400
+ {
401
+ label: labels.goLive(formatTime(liveOffset)),
402
+ tone: "glass",
403
+ round: true,
404
+ styles,
405
+ onPress: () => onGoLive?.(),
406
+ style: styles.endSelf
407
+ }
408
+ ) : null,
409
+ previewT != null && duration > 0 ? /* @__PURE__ */ jsxs(
410
+ View,
411
+ {
412
+ style: [
413
+ styles.preview,
414
+ { start: `${Math.max(0.1, Math.min(0.9, previewT / duration)) * 100}%` },
415
+ { pointerEvents: "none" }
416
+ ],
417
+ children: [
418
+ thumbnails ? /* @__PURE__ */ jsx(Image, { source: { uri: thumbnails(previewT) }, style: styles.previewFrame }) : null,
419
+ /* @__PURE__ */ jsxs(View, { style: styles.previewPill, children: [
420
+ /* @__PURE__ */ jsx(Text, { style: styles.previewTime, children: formatTime(previewT) }),
421
+ chapterAt(previewT) ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: styles.previewChapter, children: chapterAt(previewT)?.title }) : null
422
+ ] })
423
+ ]
424
+ }
425
+ ) : null,
426
+ /* @__PURE__ */ jsx(
427
+ Pressable,
428
+ {
429
+ accessibilityRole: "adjustable",
430
+ accessibilityLabel: labels.seek,
431
+ "aria-valuemin": 0,
432
+ "aria-valuemax": Math.round(duration),
433
+ "aria-valuenow": Math.round(current),
434
+ "aria-valuetext": labels.seekValue(formatTime(current), formatTime(duration)),
435
+ accessibilityActions: [{ name: "increment" }, { name: "decrement" }],
436
+ onAccessibilityAction: (e) => {
437
+ const delta = e.nativeEvent.actionName === "increment" ? 5 : -5;
438
+ const next = Math.min(duration, Math.max(0, current + delta));
439
+ if (position == null) setOwnPosition(next);
440
+ onSeek?.(next);
441
+ },
442
+ onLayout: (e) => setTrackWidth(e.nativeEvent.layout.width),
443
+ onPress: (e) => seekFromX(e.nativeEvent.locationX),
444
+ onTouchMove: (e) => seekFromX(e.nativeEvent.locationX),
445
+ onTouchEnd: () => setScrubAt(null),
446
+ onTouchCancel: () => setScrubAt(null),
447
+ hitSlop: theme.space.s3,
448
+ style: styles.seek,
449
+ children: /* @__PURE__ */ jsxs(View, { style: [styles.track, { pointerEvents: "none" }], children: [
450
+ segments.map((seg) => {
451
+ const share = (v) => `${Math.min(1, Math.max(0, (v - seg.start) / (seg.end - seg.start))) * 100}%`;
452
+ return /* @__PURE__ */ jsxs(
453
+ View,
454
+ {
455
+ style: [styles.segment, { flexGrow: seg.end - seg.start }],
456
+ children: [
457
+ /* @__PURE__ */ jsx(View, { style: [styles.buffered, { width: share(buffered) }] }),
458
+ /* @__PURE__ */ jsx(View, { style: [styles.fill, { width: share(current) }] })
459
+ ]
460
+ },
461
+ seg.start
462
+ );
463
+ }),
464
+ /* @__PURE__ */ jsx(View, { style: [styles.knob, { start: `${pct * 100}%` }] })
465
+ ] })
466
+ }
467
+ ),
468
+ /* @__PURE__ */ jsxs(View, { style: styles.bar, children: [
469
+ /* @__PURE__ */ jsx(
470
+ Pressable,
471
+ {
472
+ accessibilityRole: "button",
473
+ accessibilityLabel: isPlaying ? labels.pause : labels.play,
474
+ accessibilityState: { selected: isPlaying },
475
+ onPress: toggle,
476
+ style: styles.barBtn,
477
+ children: /* @__PURE__ */ jsx(
478
+ Icon,
479
+ {
480
+ name: isPlaying ? "pause" : "play",
481
+ size: theme.icon.md,
482
+ color: theme.media.ink
483
+ }
484
+ )
485
+ }
486
+ ),
487
+ live ? /* @__PURE__ */ jsxs(View, { style: styles.liveBadge, children: [
488
+ /* @__PURE__ */ jsx(View, { style: styles.liveDot }),
489
+ /* @__PURE__ */ jsx(Text, { style: styles.liveText, children: labels.live })
490
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
491
+ /* @__PURE__ */ jsx(Text, { style: styles.metaText, children: formatTime(current) }),
492
+ /* @__PURE__ */ jsx(Text, { style: styles.metaText, children: "/" }),
493
+ /* @__PURE__ */ jsx(Text, { style: styles.metaText, children: formatTime(duration) })
494
+ ] }),
495
+ chapterAt(current) ? /* @__PURE__ */ jsx(Text, { numberOfLines: 1, style: [styles.metaText, styles.chapterName], children: chapterAt(current)?.title }) : null,
496
+ /* @__PURE__ */ jsxs(View, { style: styles.barEnd, children: [
497
+ captions ? /* @__PURE__ */ jsx(
498
+ Pressable,
499
+ {
500
+ accessibilityRole: "button",
501
+ accessibilityLabel: labels.captions,
502
+ accessibilityState: { selected: isCaptionsOn },
503
+ "aria-pressed": isCaptionsOn,
504
+ onPress: () => setCaptions(!isCaptionsOn),
505
+ style: styles.barBtn,
506
+ children: /* @__PURE__ */ jsx(
507
+ Icon,
508
+ {
509
+ name: "captions",
510
+ size: theme.icon.md,
511
+ color: isCaptionsOn ? theme.color.accent : theme.media.ink
512
+ }
513
+ )
514
+ }
515
+ ) : null,
516
+ /* @__PURE__ */ jsx(
517
+ Pressable,
518
+ {
519
+ accessibilityRole: "button",
520
+ accessibilityLabel: labels.speed(playbackRate),
521
+ onPress: () => setSettingsPage("speed"),
522
+ style: styles.barBtn,
523
+ children: /* @__PURE__ */ jsxs(Text, { style: styles.metaText, children: [
524
+ playbackRate,
525
+ "\xD7"
526
+ ] })
527
+ }
528
+ ),
529
+ /* @__PURE__ */ jsx(
530
+ Pressable,
531
+ {
532
+ accessibilityRole: "button",
533
+ accessibilityLabel: labels.settings,
534
+ onPress: () => setSettingsPage("root"),
535
+ style: styles.barBtn,
536
+ children: /* @__PURE__ */ jsx(Icon, { name: "settings", size: theme.icon.md, color: theme.media.ink })
537
+ }
538
+ ),
539
+ /* @__PURE__ */ jsx(
540
+ Pressable,
541
+ {
542
+ accessibilityRole: "button",
543
+ accessibilityLabel: isFullscreen ? labels.exitFullscreen : labels.fullscreen,
544
+ onPress: () => setFullscreen(!isFullscreen),
545
+ style: styles.barBtn,
546
+ children: /* @__PURE__ */ jsx(Icon, { name: "maximize", size: theme.icon.md, color: theme.media.ink })
547
+ }
548
+ )
549
+ ] })
550
+ ] })
551
+ ]
552
+ }
553
+ ),
554
+ showUpNext && upNext ? /* @__PURE__ */ jsxs(View, { style: styles.overlay, children: [
555
+ /* @__PURE__ */ jsx(Text, { style: styles.overline, children: labels.upNextIn(countdown) }),
556
+ /* @__PURE__ */ jsxs(View, { style: styles.promptRow, children: [
557
+ upNext.poster ? /* @__PURE__ */ jsx(Image, { source: { uri: upNext.poster }, style: styles.upNextPoster }) : null,
558
+ /* @__PURE__ */ jsxs(View, { children: [
559
+ /* @__PURE__ */ jsx(Text, { style: styles.upNextTitle, children: upNext.title }),
560
+ upNext.duration ? /* @__PURE__ */ jsx(Text, { style: styles.metaText, children: upNext.duration }) : null
561
+ ] })
562
+ ] }),
563
+ /* @__PURE__ */ jsxs(View, { style: styles.promptRow, children: [
564
+ /* @__PURE__ */ jsx(
565
+ MediaButton,
566
+ {
567
+ label: labels.playNow,
568
+ tone: "solid",
569
+ styles,
570
+ onPress: () => upNext.onPlay()
571
+ }
572
+ ),
573
+ /* @__PURE__ */ jsx(
574
+ MediaButton,
575
+ {
576
+ label: labels.replay,
577
+ tone: "outline",
578
+ styles,
579
+ onPress: () => {
580
+ seekTo(0);
581
+ play();
582
+ }
583
+ }
584
+ )
585
+ ] })
586
+ ] }) : null,
587
+ failed ? /* @__PURE__ */ jsxs(View, { accessibilityRole: "alert", style: styles.overlay, children: [
588
+ /* @__PURE__ */ jsx(Icon, { name: "alert-triangle", size: theme.icon.lg, color: theme.media.ink }),
589
+ /* @__PURE__ */ jsx(Text, { style: styles.errorText, children: labels.error }),
590
+ /* @__PURE__ */ jsx(
591
+ MediaButton,
592
+ {
593
+ label: labels.retry,
594
+ tone: "outline",
595
+ styles,
596
+ onPress: () => onRetry?.()
597
+ }
598
+ )
599
+ ] }) : null,
600
+ settingsPage != null ? /* @__PURE__ */ jsxs(View, { style: styles.sheetWrap, children: [
601
+ /* @__PURE__ */ jsx(
602
+ Pressable,
603
+ {
604
+ accessibilityRole: "button",
605
+ accessibilityLabel: labels.close,
606
+ onPress: () => setSettingsPage(null),
607
+ style: styles.sheetScrim
608
+ }
609
+ ),
610
+ /* @__PURE__ */ jsx(
611
+ View,
612
+ {
613
+ accessibilityViewIsModal: true,
614
+ style: styles.sheetPanel,
615
+ accessibilityLabel: labels.settings,
616
+ children: settingsPage === "root" ? /* @__PURE__ */ jsxs(Fragment, { children: [
617
+ /* @__PURE__ */ jsx(
618
+ SheetRow,
619
+ {
620
+ label: labels.speedRow,
621
+ value: `${playbackRate}\xD7`,
622
+ onPress: () => setSettingsPage("speed"),
623
+ styles
624
+ }
625
+ ),
626
+ qualities && qualities.length > 1 ? /* @__PURE__ */ jsx(
627
+ SheetRow,
628
+ {
629
+ label: labels.qualityRow,
630
+ value: quality,
631
+ onPress: () => setSettingsPage("quality"),
632
+ styles
633
+ }
634
+ ) : null,
635
+ captions ? /* @__PURE__ */ jsx(
636
+ SheetRow,
637
+ {
638
+ label: labels.captions,
639
+ value: isCaptionsOn ? void 0 : labels.captionsOff,
640
+ checked: isCaptionsOn,
641
+ onPress: () => setCaptions(!isCaptionsOn),
642
+ styles
643
+ }
644
+ ) : null
645
+ ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
646
+ /* @__PURE__ */ jsx(
647
+ SheetRow,
648
+ {
649
+ label: labels.back,
650
+ onPress: () => setSettingsPage("root"),
651
+ styles
652
+ }
653
+ ),
654
+ settingsPage === "speed" ? RATES.map((r) => /* @__PURE__ */ jsx(
655
+ SheetRow,
656
+ {
657
+ label: `${r}\xD7`,
658
+ checked: r === playbackRate,
659
+ onPress: () => {
660
+ onPlaybackRateChange?.(r);
661
+ setSettingsPage(null);
662
+ },
663
+ styles
664
+ },
665
+ r
666
+ )) : (qualities ?? []).map((q) => /* @__PURE__ */ jsx(
667
+ SheetRow,
668
+ {
669
+ label: q,
670
+ checked: q === quality,
671
+ onPress: () => {
672
+ onQualityChange?.(q);
673
+ setSettingsPage(null);
674
+ },
675
+ styles
676
+ },
677
+ q
678
+ ))
679
+ ] })
680
+ }
681
+ )
682
+ ] }) : null
683
+ ]
684
+ }
685
+ ),
686
+ title || meta ? /* @__PURE__ */ jsxs(View, { style: styles.footer, children: [
687
+ title ? /* @__PURE__ */ jsx(
688
+ Text,
689
+ {
690
+ style: [
691
+ styles.title,
692
+ size !== "md" && { fontSize: theme.fontSize[size === "sm" ? 13 : 17] }
693
+ ],
694
+ children: title
695
+ }
696
+ ) : null,
697
+ meta ? /* @__PURE__ */ jsx(
698
+ Text,
699
+ {
700
+ style: [
701
+ styles.metaLine,
702
+ size !== "md" && { fontSize: theme.fontSize[size === "sm" ? 12 : 14] }
703
+ ],
704
+ children: meta
705
+ }
706
+ ) : null
707
+ ] }) : null,
708
+ transcript ? /* @__PURE__ */ jsx(View, { style: styles.transcript, children: /* @__PURE__ */ jsx(
709
+ TranscriptSlot,
710
+ {
711
+ transcript,
712
+ currentTime: current,
713
+ onSeek: (t) => {
714
+ if (position == null) setOwnPosition(t);
715
+ onSeek?.(t);
716
+ }
717
+ }
718
+ ) }) : null
719
+ ] });
720
+ }
721
+ function MediaButton({
722
+ label,
723
+ tone,
724
+ round = false,
725
+ onPress,
726
+ style,
727
+ styles
728
+ }) {
729
+ return /* @__PURE__ */ jsx(
730
+ Pressable,
731
+ {
732
+ accessibilityRole: "button",
733
+ accessibilityLabel: label,
734
+ onPress,
735
+ style: [
736
+ styles.mediaBtn,
737
+ round && styles.mediaBtnRound,
738
+ tone === "solid" && styles.mediaBtnSolid,
739
+ tone === "glass" && styles.mediaBtnGlass,
740
+ tone === "outline" && styles.mediaBtnOutline,
741
+ style
742
+ ],
743
+ children: /* @__PURE__ */ jsx(Text, { style: [styles.mediaBtnText, tone === "solid" && styles.mediaBtnTextSolid], children: label })
744
+ }
745
+ );
746
+ }
747
+ function SheetRow({
748
+ label,
749
+ value,
750
+ checked,
751
+ onPress,
752
+ styles
753
+ }) {
754
+ const theme = useLoamTheme("video-player");
755
+ return /* @__PURE__ */ jsxs(
756
+ Pressable,
757
+ {
758
+ accessibilityRole: "button",
759
+ accessibilityLabel: value ? `${label}, ${value}` : label,
760
+ accessibilityState: checked == null ? void 0 : { selected: checked },
761
+ onPress,
762
+ style: styles.sheetRow,
763
+ children: [
764
+ /* @__PURE__ */ jsx(Text, { style: styles.sheetRowText, children: label }),
765
+ value ? /* @__PURE__ */ jsx(Text, { style: styles.sheetRowValue, children: value }) : null,
766
+ checked ? /* @__PURE__ */ jsx(Icon, { name: "check", size: theme.icon.md, color: theme.color.accent }) : null
767
+ ]
768
+ }
769
+ );
770
+ }
771
+ var sheet = createStyleSheet((theme) => ({
772
+ transcript: { padding: theme.space[12], paddingTop: 0 },
773
+ root: {
774
+ borderRadius: theme.radius.lg,
775
+ borderWidth: theme.borderWidth.base,
776
+ borderColor: theme.color.border,
777
+ backgroundColor: theme.color.surface,
778
+ overflow: "hidden"
779
+ },
780
+ // The video ground: dark in every theme, as the design draws it, so the white
781
+ // chrome never rests on a light poster.
782
+ stage: { position: "relative", width: "100%", backgroundColor: theme.black.a14 },
783
+ // Top-centre, not centred: the label captions the empty poster, it does not
784
+ // pretend to be the poster's content.
785
+ placeholder: {
786
+ ...cover(),
787
+ alignItems: "center",
788
+ justifyContent: "flex-start",
789
+ paddingTop: theme.space[POSTER.padTop]
790
+ },
791
+ placeholderLabel: {
792
+ fontFamily: theme.font.mono,
793
+ fontSize: theme.fontSize[POSTER.fontSize],
794
+ letterSpacing: theme.fontSize[POSTER.fontSize] * POSTER.trackingEm,
795
+ textTransform: "uppercase",
796
+ color: theme.media.ink,
797
+ opacity: theme.opacity[80]
798
+ },
799
+ stagePress: cover(),
800
+ // A scrim, so white control glyphs never sit on unknown pixels. Fixed black
801
+ // rather than the mode-aware `overlay.*`: what is underneath is video, and
802
+ // darkening it is the only direction that makes a white glyph legible.
803
+ scrim: {
804
+ position: "absolute",
805
+ left: 0,
806
+ right: 0,
807
+ bottom: 0,
808
+ height: theme.space[76],
809
+ // 0.55 black: the white time and speed labels clear 4.5:1 even over a light poster.
810
+ backgroundColor: theme.black.a12
811
+ },
812
+ scrimTall: {
813
+ position: "absolute",
814
+ left: 0,
815
+ right: 0,
816
+ bottom: 0,
817
+ height: theme.space[128],
818
+ backgroundColor: theme.black.a4
819
+ },
820
+ centre: { ...cover(), alignItems: "center", justifyContent: "center" },
821
+ endSelf: { alignSelf: "flex-end" },
822
+ overlay: {
823
+ ...cover(),
824
+ alignItems: "center",
825
+ justifyContent: "center",
826
+ gap: theme.space.s3,
827
+ backgroundColor: theme.black.a12
828
+ },
829
+ overline: {
830
+ fontFamily: theme.font.sans,
831
+ fontSize: theme.type.caption2.fontSize,
832
+ fontWeight: theme.fontWeight.semibold,
833
+ letterSpacing: theme.tracking.caps * theme.type.caption2.fontSize,
834
+ textTransform: "uppercase",
835
+ color: theme.media.ink
836
+ },
837
+ errorText: {
838
+ fontFamily: theme.font.sans,
839
+ fontSize: theme.type.footnote.fontSize,
840
+ color: theme.media.ink,
841
+ textAlign: "center"
842
+ },
843
+ upNextPoster: { width: theme.space[100], aspectRatio: 16 / 9, borderRadius: theme.radius.sm },
844
+ upNextTitle: {
845
+ fontFamily: theme.font.sans,
846
+ fontSize: theme.fontSize[14],
847
+ fontWeight: theme.fontWeight.semibold,
848
+ color: theme.media.ink
849
+ },
850
+ promptSlot: {
851
+ position: "absolute",
852
+ top: 0,
853
+ start: 0,
854
+ end: 0,
855
+ alignItems: "center",
856
+ justifyContent: "center",
857
+ gap: theme.space.s3
858
+ },
859
+ promptNote: {
860
+ fontFamily: theme.font.sans,
861
+ fontSize: theme.type.footnote.fontSize,
862
+ color: theme.media.ink,
863
+ paddingHorizontal: theme.space.s2,
864
+ paddingVertical: theme.space[2],
865
+ borderRadius: theme.radius.xs,
866
+ backgroundColor: theme.black.a12,
867
+ overflow: "hidden"
868
+ },
869
+ promptRow: { flexDirection: "row", alignItems: "center", gap: theme.space.s2 },
870
+ mediaBtn: {
871
+ height: theme.space[36],
872
+ paddingHorizontal: theme.space[14],
873
+ borderRadius: theme.radius.md,
874
+ alignItems: "center",
875
+ justifyContent: "center",
876
+ borderWidth: theme.borderWidth.base,
877
+ borderColor: "transparent"
878
+ },
879
+ mediaBtnRound: { borderRadius: theme.radius.full },
880
+ mediaBtnSolid: { backgroundColor: theme.media.ink },
881
+ mediaBtnGlass: { backgroundColor: theme.black.a8, borderColor: theme.white.a5 },
882
+ mediaBtnOutline: { borderColor: theme.white.a12 },
883
+ mediaBtnText: {
884
+ fontFamily: theme.font.sans,
885
+ fontSize: theme.type.footnote.fontSize,
886
+ fontWeight: theme.fontWeight.semibold,
887
+ color: theme.media.ink
888
+ },
889
+ mediaBtnTextSolid: { color: theme.media.onInk },
890
+ captionSlot: { position: "absolute", start: 0, end: 0, alignItems: "center" },
891
+ captionText: {
892
+ maxWidth: "80%",
893
+ fontFamily: theme.font.sans,
894
+ fontSize: theme.fontSize[16],
895
+ lineHeight: theme.fontSize[16] * 1.4,
896
+ textAlign: "center",
897
+ color: theme.media.ink,
898
+ paddingHorizontal: theme.space.s2,
899
+ paddingVertical: theme.space[2],
900
+ borderRadius: theme.radius.xs,
901
+ backgroundColor: theme.black.a12,
902
+ overflow: "hidden"
903
+ },
904
+ preview: {
905
+ position: "absolute",
906
+ bottom: "100%",
907
+ width: theme.space[160],
908
+ marginStart: -theme.space[160] / 2,
909
+ marginBottom: theme.space.s3,
910
+ alignItems: "center",
911
+ gap: theme.space.s1
912
+ },
913
+ previewFrame: {
914
+ width: "100%",
915
+ aspectRatio: 16 / 9,
916
+ borderRadius: theme.radius.sm,
917
+ backgroundColor: theme.black.a12
918
+ },
919
+ previewPill: {
920
+ height: theme.space[24],
921
+ maxWidth: "100%",
922
+ paddingHorizontal: theme.space[10],
923
+ flexDirection: "row",
924
+ alignItems: "center",
925
+ gap: theme.space.s2,
926
+ borderRadius: theme.radius.full,
927
+ backgroundColor: theme.black.a8,
928
+ borderWidth: theme.borderWidth.base,
929
+ borderColor: theme.white.a5
930
+ },
931
+ previewTime: {
932
+ fontFamily: theme.font.mono,
933
+ fontSize: theme.fontSize[12],
934
+ fontWeight: theme.fontWeight.semibold,
935
+ color: theme.media.ink
936
+ },
937
+ previewChapter: {
938
+ flexShrink: 1,
939
+ fontFamily: theme.font.sans,
940
+ fontSize: theme.fontSize[12],
941
+ color: theme.media.ink
942
+ },
943
+ segment: {
944
+ flexBasis: 0,
945
+ height: "100%",
946
+ overflow: "hidden",
947
+ borderRadius: theme.radius.full,
948
+ backgroundColor: theme.white.a9
949
+ },
950
+ buffered: {
951
+ position: "absolute",
952
+ start: 0,
953
+ top: 0,
954
+ bottom: 0,
955
+ backgroundColor: theme.white.a12
956
+ },
957
+ chapterName: { flexShrink: 1 },
958
+ liveBadge: {
959
+ flexDirection: "row",
960
+ alignItems: "center",
961
+ gap: theme.space.s1,
962
+ paddingHorizontal: theme.space.s2,
963
+ height: theme.space[24],
964
+ borderRadius: theme.radius.full,
965
+ backgroundColor: theme.black.a8,
966
+ borderWidth: theme.borderWidth.base,
967
+ borderColor: theme.white.a5
968
+ },
969
+ liveDot: {
970
+ width: theme.space.s2,
971
+ height: theme.space.s2,
972
+ borderRadius: theme.radius.full,
973
+ backgroundColor: theme.color.danger
974
+ },
975
+ liveText: {
976
+ fontFamily: theme.font.mono,
977
+ fontSize: theme.type.caption2.fontSize,
978
+ fontWeight: theme.fontWeight.semibold,
979
+ color: theme.media.ink
980
+ },
981
+ pillBar: {
982
+ width: theme.space[64],
983
+ height: theme.space.s1,
984
+ borderRadius: theme.radius.full,
985
+ overflow: "hidden",
986
+ backgroundColor: theme.white.a9
987
+ },
988
+ pillBarFill: { height: "100%", backgroundColor: theme.media.ink },
989
+ pill: {
990
+ position: "absolute",
991
+ alignSelf: "center",
992
+ top: "40%",
993
+ flexDirection: "row",
994
+ gap: theme.space.s2,
995
+ alignItems: "center",
996
+ height: theme.space[36],
997
+ paddingHorizontal: theme.space[16],
998
+ borderRadius: theme.radius.full,
999
+ backgroundColor: theme.black.a8,
1000
+ justifyContent: "center"
1001
+ },
1002
+ pillText: {
1003
+ fontFamily: theme.font.mono,
1004
+ fontSize: theme.fontSize[13],
1005
+ fontWeight: theme.fontWeight.semibold,
1006
+ color: theme.media.ink
1007
+ },
1008
+ bar: {
1009
+ height: theme.ctl.lg,
1010
+ flexDirection: "row",
1011
+ alignItems: "center",
1012
+ gap: theme.space[4]
1013
+ },
1014
+ barBtn: {
1015
+ minWidth: theme.ctl.lg,
1016
+ height: theme.ctl.lg,
1017
+ alignItems: "center",
1018
+ justifyContent: "center"
1019
+ },
1020
+ barEnd: { marginStart: "auto", flexDirection: "row", alignItems: "center" },
1021
+ sheetWrap: { ...cover(), justifyContent: "flex-end" },
1022
+ sheetScrim: { ...cover(), backgroundColor: theme.black.a8 },
1023
+ sheetPanel: {
1024
+ backgroundColor: theme.color.surface,
1025
+ borderTopLeftRadius: theme.radius.lg,
1026
+ borderTopRightRadius: theme.radius.lg,
1027
+ paddingVertical: theme.space[8]
1028
+ },
1029
+ sheetRow: {
1030
+ minHeight: theme.space[48],
1031
+ paddingHorizontal: theme.space[16],
1032
+ flexDirection: "row",
1033
+ alignItems: "center",
1034
+ gap: theme.space[12]
1035
+ },
1036
+ sheetRowText: {
1037
+ flex: 1,
1038
+ fontFamily: theme.font.sans,
1039
+ fontSize: theme.type.body.fontSize,
1040
+ color: theme.color.text
1041
+ },
1042
+ sheetRowValue: {
1043
+ fontFamily: theme.font.sans,
1044
+ fontSize: theme.type.footnote.fontSize,
1045
+ color: theme.color.text3
1046
+ },
1047
+ // The band of the stage the transport bar does not cover. `bottom` is set from
1048
+ // the bar's measured height at render time.
1049
+ playSlot: {
1050
+ position: "absolute",
1051
+ top: 0,
1052
+ start: 0,
1053
+ end: 0,
1054
+ alignItems: "center",
1055
+ justifyContent: "center"
1056
+ },
1057
+ // `tapMin`-sized *visual*, down from 56: the tap target is the whole stage, so
1058
+ // the circle only has to be big enough to read as a play affordance. On a
1059
+ // 16:9 stage 260pt wide, 56pt was a third of the frame's height and collided
1060
+ // with the scrubber.
1061
+ // loam-contrast-ignore — media chrome: the disc sits on video, `shadow.sm` is
1062
+ // a lift rather than its boundary, and the glyph carries the state. An edge
1063
+ // here would read as a defect over the frame.
1064
+ playButton: {
1065
+ // 56, media ink — the same on every video.
1066
+ width: theme.space[56],
1067
+ height: theme.space[56],
1068
+ borderRadius: theme.radius.full,
1069
+ backgroundColor: theme.media.ink,
1070
+ alignItems: "center",
1071
+ justifyContent: "center",
1072
+ // Width is fixed, so trailing padding narrows the content box and pulls the
1073
+ // centred glyph back by half of it — see PLAY_GLYPH_NUDGE.
1074
+ paddingEnd: PLAY_GLYPH_NUDGE * -2,
1075
+ ...theme.shadow.sm
1076
+ },
1077
+ controls: {
1078
+ position: "absolute",
1079
+ start: 0,
1080
+ end: 0,
1081
+ bottom: 0,
1082
+ paddingHorizontal: theme.space.s3,
1083
+ gap: theme.space.s1
1084
+ },
1085
+ // The visible rule is 4px; this row is the target it lives in.
1086
+ seek: { height: theme.space.s5, justifyContent: "center" },
1087
+ track: {
1088
+ height: theme.space.s1,
1089
+ borderRadius: theme.radius.full,
1090
+ flexDirection: "row",
1091
+ gap: theme.space[2],
1092
+ alignItems: "center"
1093
+ },
1094
+ fill: {
1095
+ position: "absolute",
1096
+ start: 0,
1097
+ top: 0,
1098
+ bottom: 0,
1099
+ backgroundColor: theme.color.accent
1100
+ },
1101
+ knob: {
1102
+ position: "absolute",
1103
+ top: -theme.space.s1,
1104
+ width: theme.space.s3,
1105
+ height: theme.space.s3,
1106
+ marginStart: -theme.space.s3 / 2,
1107
+ borderRadius: theme.radius.full,
1108
+ backgroundColor: theme.color.surface,
1109
+ ...theme.shadow.knob
1110
+ },
1111
+ metaRow: { flexDirection: "row", alignItems: "center", justifyContent: "space-between" },
1112
+ badges: { flexDirection: "row", alignItems: "center", gap: theme.space.s2 },
1113
+ metaText: {
1114
+ fontFamily: theme.font.mono,
1115
+ fontSize: theme.type.caption2.fontSize,
1116
+ lineHeight: theme.type.caption2.lineHeight,
1117
+ // The scrim over the poster is a light-mid tone in the tested (light) theme,
1118
+ // so a bright caption failed AA (~2.3:1). The on-surface `text` token clears
1119
+ // AA over the scrim (≥6.5:1) and matches the poster's own dark label.
1120
+ // The bar now sits on the black scrim, so it takes the media ink.
1121
+ color: theme.media.ink
1122
+ },
1123
+ footer: { padding: theme.space.s4, gap: theme.space.s1 },
1124
+ title: {
1125
+ fontFamily: theme.font.sans,
1126
+ fontWeight: theme.fontWeight.semibold,
1127
+ fontSize: theme.fontSize[15],
1128
+ color: theme.color.text
1129
+ },
1130
+ metaLine: {
1131
+ fontFamily: theme.font.sans,
1132
+ fontSize: theme.type.footnote.fontSize,
1133
+ lineHeight: theme.type.footnote.lineHeight,
1134
+ color: theme.color.text2
1135
+ }
1136
+ }));
1137
+ function cover() {
1138
+ return { position: "absolute", left: 0, right: 0, top: 0, bottom: 0 };
1139
+ }
1140
+
1141
+ export { VideoPlayer };