@syra.fm/sdk 0.4.0 → 0.6.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 (317) hide show
  1. package/README.md +33 -4
  2. package/lib/commonjs/client.js +268 -0
  3. package/lib/commonjs/client.js.map +1 -0
  4. package/lib/commonjs/errors.js +22 -0
  5. package/lib/commonjs/errors.js.map +1 -0
  6. package/lib/commonjs/index.js +63 -0
  7. package/lib/commonjs/index.js.map +1 -0
  8. package/lib/commonjs/index.native.js +28 -0
  9. package/lib/commonjs/index.native.js.map +1 -0
  10. package/lib/commonjs/live/assets/icons/spaces-icon.js +42 -0
  11. package/lib/commonjs/live/assets/icons/spaces-icon.js.map +1 -0
  12. package/lib/commonjs/live/assets/icons/syra-icon.js +43 -0
  13. package/lib/commonjs/live/assets/icons/syra-icon.js.map +1 -0
  14. package/lib/commonjs/live/colors.js +54 -0
  15. package/lib/commonjs/live/colors.js.map +1 -0
  16. package/lib/commonjs/live/components/AnimatedPulse.js +38 -0
  17. package/lib/commonjs/live/components/AnimatedPulse.js.map +1 -0
  18. package/lib/commonjs/live/components/AnimatedSpeakerRing.js +90 -0
  19. package/lib/commonjs/live/components/AnimatedSpeakerRing.js.map +1 -0
  20. package/lib/commonjs/live/components/CreateRoomSheet.js +688 -0
  21. package/lib/commonjs/live/components/CreateRoomSheet.js.map +1 -0
  22. package/lib/commonjs/live/components/InsightsPanel.js +333 -0
  23. package/lib/commonjs/live/components/InsightsPanel.js.map +1 -0
  24. package/lib/commonjs/live/components/LiveRoomSheet.js +1196 -0
  25. package/lib/commonjs/live/components/LiveRoomSheet.js.map +1 -0
  26. package/lib/commonjs/live/components/MiniRoomBar.js +162 -0
  27. package/lib/commonjs/live/components/MiniRoomBar.js.map +1 -0
  28. package/lib/commonjs/live/components/PanelHeader.js +57 -0
  29. package/lib/commonjs/live/components/PanelHeader.js.map +1 -0
  30. package/lib/commonjs/live/components/PodcastStreamPicker.js +1190 -0
  31. package/lib/commonjs/live/components/PodcastStreamPicker.js.map +1 -0
  32. package/lib/commonjs/live/components/RecordingCard.js +192 -0
  33. package/lib/commonjs/live/components/RecordingCard.js.map +1 -0
  34. package/lib/commonjs/live/components/RecordingsPanel.js +305 -0
  35. package/lib/commonjs/live/components/RecordingsPanel.js.map +1 -0
  36. package/lib/commonjs/live/components/RoomCard.js +349 -0
  37. package/lib/commonjs/live/components/RoomCard.js.map +1 -0
  38. package/lib/commonjs/live/components/StreamConfigModal.js +656 -0
  39. package/lib/commonjs/live/components/StreamConfigModal.js.map +1 -0
  40. package/lib/commonjs/live/components/StreamConfigPanel.js +822 -0
  41. package/lib/commonjs/live/components/StreamConfigPanel.js.map +1 -0
  42. package/lib/commonjs/live/context/LiveConfigContext.js +46 -0
  43. package/lib/commonjs/live/context/LiveConfigContext.js.map +1 -0
  44. package/lib/commonjs/live/context/LiveRoomContext.js +195 -0
  45. package/lib/commonjs/live/context/LiveRoomContext.js.map +1 -0
  46. package/lib/commonjs/live/hooks/useActiveSpeakers.js +35 -0
  47. package/lib/commonjs/live/hooks/useActiveSpeakers.js.map +1 -0
  48. package/lib/commonjs/live/hooks/useRoomAudio.js +129 -0
  49. package/lib/commonjs/live/hooks/useRoomAudio.js.map +1 -0
  50. package/lib/commonjs/live/hooks/useRoomConnection.js +177 -0
  51. package/lib/commonjs/live/hooks/useRoomConnection.js.map +1 -0
  52. package/lib/commonjs/live/hooks/useRoomManager.js +37 -0
  53. package/lib/commonjs/live/hooks/useRoomManager.js.map +1 -0
  54. package/lib/commonjs/live/hooks/useRoomUsers.js +52 -0
  55. package/lib/commonjs/live/hooks/useRoomUsers.js.map +1 -0
  56. package/lib/commonjs/live/index.js +341 -0
  57. package/lib/commonjs/live/index.js.map +1 -0
  58. package/lib/commonjs/live/services/livekitService.js +20 -0
  59. package/lib/commonjs/live/services/livekitService.js.map +1 -0
  60. package/lib/commonjs/live/services/spaceSocketService.js +181 -0
  61. package/lib/commonjs/live/services/spaceSocketService.js.map +1 -0
  62. package/lib/commonjs/live/services/spacesService.js +642 -0
  63. package/lib/commonjs/live/services/spacesService.js.map +1 -0
  64. package/lib/commonjs/live/types.js +6 -0
  65. package/lib/commonjs/live/types.js.map +1 -0
  66. package/lib/commonjs/live/validation.js +238 -0
  67. package/lib/commonjs/live/validation.js.map +1 -0
  68. package/lib/commonjs/package.json +1 -0
  69. package/{dist/cjs → lib/commonjs}/schema.js +55 -47
  70. package/lib/commonjs/schema.js.map +1 -0
  71. package/lib/module/client.js +264 -0
  72. package/lib/module/client.js.map +1 -0
  73. package/lib/module/errors.js +17 -0
  74. package/lib/module/errors.js.map +1 -0
  75. package/lib/module/index.js +6 -0
  76. package/lib/module/index.js.map +1 -0
  77. package/lib/module/index.native.js +5 -0
  78. package/lib/module/index.native.js.map +1 -0
  79. package/lib/module/live/assets/icons/spaces-icon.js +34 -0
  80. package/lib/module/live/assets/icons/spaces-icon.js.map +1 -0
  81. package/lib/module/live/assets/icons/syra-icon.js +36 -0
  82. package/lib/module/live/assets/icons/syra-icon.js.map +1 -0
  83. package/lib/module/live/colors.js +49 -0
  84. package/lib/module/live/colors.js.map +1 -0
  85. package/lib/module/live/components/AnimatedPulse.js +33 -0
  86. package/lib/module/live/components/AnimatedPulse.js.map +1 -0
  87. package/lib/module/live/components/AnimatedSpeakerRing.js +85 -0
  88. package/lib/module/live/components/AnimatedSpeakerRing.js.map +1 -0
  89. package/lib/module/live/components/CreateRoomSheet.js +682 -0
  90. package/lib/module/live/components/CreateRoomSheet.js.map +1 -0
  91. package/lib/module/live/components/InsightsPanel.js +327 -0
  92. package/lib/module/live/components/InsightsPanel.js.map +1 -0
  93. package/lib/module/live/components/LiveRoomSheet.js +1190 -0
  94. package/lib/module/live/components/LiveRoomSheet.js.map +1 -0
  95. package/lib/module/live/components/MiniRoomBar.js +155 -0
  96. package/lib/module/live/components/MiniRoomBar.js.map +1 -0
  97. package/lib/module/live/components/PanelHeader.js +52 -0
  98. package/lib/module/live/components/PanelHeader.js.map +1 -0
  99. package/lib/module/live/components/PodcastStreamPicker.js +1183 -0
  100. package/lib/module/live/components/PodcastStreamPicker.js.map +1 -0
  101. package/lib/module/live/components/RecordingCard.js +187 -0
  102. package/lib/module/live/components/RecordingCard.js.map +1 -0
  103. package/lib/module/live/components/RecordingsPanel.js +299 -0
  104. package/lib/module/live/components/RecordingsPanel.js.map +1 -0
  105. package/lib/module/live/components/RoomCard.js +343 -0
  106. package/lib/module/live/components/RoomCard.js.map +1 -0
  107. package/lib/module/live/components/StreamConfigModal.js +650 -0
  108. package/lib/module/live/components/StreamConfigModal.js.map +1 -0
  109. package/lib/module/live/components/StreamConfigPanel.js +816 -0
  110. package/lib/module/live/components/StreamConfigPanel.js.map +1 -0
  111. package/lib/module/live/context/LiveConfigContext.js +40 -0
  112. package/lib/module/live/context/LiveConfigContext.js.map +1 -0
  113. package/lib/module/live/context/LiveRoomContext.js +189 -0
  114. package/lib/module/live/context/LiveRoomContext.js.map +1 -0
  115. package/lib/module/live/hooks/useActiveSpeakers.js +31 -0
  116. package/lib/module/live/hooks/useActiveSpeakers.js.map +1 -0
  117. package/lib/module/live/hooks/useRoomAudio.js +125 -0
  118. package/lib/module/live/hooks/useRoomAudio.js.map +1 -0
  119. package/lib/module/live/hooks/useRoomConnection.js +173 -0
  120. package/lib/module/live/hooks/useRoomConnection.js.map +1 -0
  121. package/lib/module/live/hooks/useRoomManager.js +32 -0
  122. package/lib/module/live/hooks/useRoomManager.js.map +1 -0
  123. package/lib/module/live/hooks/useRoomUsers.js +46 -0
  124. package/lib/module/live/hooks/useRoomUsers.js.map +1 -0
  125. package/lib/module/live/index.js +42 -0
  126. package/lib/module/live/index.js.map +1 -0
  127. package/lib/module/live/services/livekitService.js +16 -0
  128. package/lib/module/live/services/livekitService.js.map +1 -0
  129. package/lib/module/live/services/spaceSocketService.js +176 -0
  130. package/lib/module/live/services/spaceSocketService.js.map +1 -0
  131. package/lib/module/live/services/spacesService.js +639 -0
  132. package/lib/module/live/services/spacesService.js.map +1 -0
  133. package/lib/module/live/types.js +4 -0
  134. package/lib/module/live/types.js.map +1 -0
  135. package/lib/module/live/validation.js +229 -0
  136. package/lib/module/live/validation.js.map +1 -0
  137. package/lib/module/package.json +1 -0
  138. package/{dist/esm → lib/module}/schema.js +47 -39
  139. package/lib/module/schema.js.map +1 -0
  140. package/{dist/types → lib/typescript/commonjs}/client.d.ts +1 -0
  141. package/lib/typescript/commonjs/client.d.ts.map +1 -0
  142. package/{dist/types → lib/typescript/commonjs}/errors.d.ts +1 -0
  143. package/lib/typescript/commonjs/errors.d.ts.map +1 -0
  144. package/{dist/types → lib/typescript/commonjs}/index.d.ts +1 -0
  145. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/index.native.d.ts +3 -0
  147. package/lib/typescript/commonjs/index.native.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/live/assets/icons/spaces-icon.d.ts +13 -0
  149. package/lib/typescript/commonjs/live/assets/icons/spaces-icon.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/live/assets/icons/syra-icon.d.ts +13 -0
  151. package/lib/typescript/commonjs/live/assets/icons/syra-icon.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/live/colors.d.ts +35 -0
  153. package/lib/typescript/commonjs/live/colors.d.ts.map +1 -0
  154. package/lib/typescript/commonjs/live/components/AnimatedPulse.d.ts +8 -0
  155. package/lib/typescript/commonjs/live/components/AnimatedPulse.d.ts.map +1 -0
  156. package/lib/typescript/commonjs/live/components/AnimatedSpeakerRing.d.ts +10 -0
  157. package/lib/typescript/commonjs/live/components/AnimatedSpeakerRing.d.ts.map +1 -0
  158. package/lib/typescript/commonjs/live/components/CreateRoomSheet.d.ts +26 -0
  159. package/lib/typescript/commonjs/live/components/CreateRoomSheet.d.ts.map +1 -0
  160. package/lib/typescript/commonjs/live/components/InsightsPanel.d.ts +11 -0
  161. package/lib/typescript/commonjs/live/components/InsightsPanel.d.ts.map +1 -0
  162. package/lib/typescript/commonjs/live/components/LiveRoomSheet.d.ts +11 -0
  163. package/lib/typescript/commonjs/live/components/LiveRoomSheet.d.ts.map +1 -0
  164. package/lib/typescript/commonjs/live/components/MiniRoomBar.d.ts +15 -0
  165. package/lib/typescript/commonjs/live/components/MiniRoomBar.d.ts.map +1 -0
  166. package/lib/typescript/commonjs/live/components/PanelHeader.d.ts +10 -0
  167. package/lib/typescript/commonjs/live/components/PanelHeader.d.ts.map +1 -0
  168. package/lib/typescript/commonjs/live/components/PodcastStreamPicker.d.ts +54 -0
  169. package/lib/typescript/commonjs/live/components/PodcastStreamPicker.d.ts.map +1 -0
  170. package/lib/typescript/commonjs/live/components/RecordingCard.d.ts +11 -0
  171. package/lib/typescript/commonjs/live/components/RecordingCard.d.ts.map +1 -0
  172. package/lib/typescript/commonjs/live/components/RecordingsPanel.d.ts +12 -0
  173. package/lib/typescript/commonjs/live/components/RecordingsPanel.d.ts.map +1 -0
  174. package/lib/typescript/commonjs/live/components/RoomCard.d.ts +38 -0
  175. package/lib/typescript/commonjs/live/components/RoomCard.d.ts.map +1 -0
  176. package/lib/typescript/commonjs/live/components/StreamConfigModal.d.ts +11 -0
  177. package/lib/typescript/commonjs/live/components/StreamConfigModal.d.ts.map +1 -0
  178. package/lib/typescript/commonjs/live/components/StreamConfigPanel.d.ts +13 -0
  179. package/lib/typescript/commonjs/live/components/StreamConfigPanel.d.ts.map +1 -0
  180. package/lib/typescript/commonjs/live/context/LiveConfigContext.d.ts +78 -0
  181. package/lib/typescript/commonjs/live/context/LiveConfigContext.d.ts.map +1 -0
  182. package/lib/typescript/commonjs/live/context/LiveRoomContext.d.ts +12 -0
  183. package/lib/typescript/commonjs/live/context/LiveRoomContext.d.ts.map +1 -0
  184. package/lib/typescript/commonjs/live/hooks/useActiveSpeakers.d.ts +3 -0
  185. package/lib/typescript/commonjs/live/hooks/useActiveSpeakers.d.ts.map +1 -0
  186. package/lib/typescript/commonjs/live/hooks/useRoomAudio.d.ts +16 -0
  187. package/lib/typescript/commonjs/live/hooks/useRoomAudio.d.ts.map +1 -0
  188. package/lib/typescript/commonjs/live/hooks/useRoomConnection.d.ts +29 -0
  189. package/lib/typescript/commonjs/live/hooks/useRoomConnection.d.ts.map +1 -0
  190. package/lib/typescript/commonjs/live/hooks/useRoomManager.d.ts +11 -0
  191. package/lib/typescript/commonjs/live/hooks/useRoomManager.d.ts.map +1 -0
  192. package/lib/typescript/commonjs/live/hooks/useRoomUsers.d.ts +5 -0
  193. package/lib/typescript/commonjs/live/hooks/useRoomUsers.d.ts.map +1 -0
  194. package/lib/typescript/commonjs/live/index.d.ts +25 -0
  195. package/lib/typescript/commonjs/live/index.d.ts.map +1 -0
  196. package/lib/typescript/commonjs/live/services/livekitService.d.ts +7 -0
  197. package/lib/typescript/commonjs/live/services/livekitService.d.ts.map +1 -0
  198. package/lib/typescript/commonjs/live/services/spaceSocketService.d.ts +69 -0
  199. package/lib/typescript/commonjs/live/services/spaceSocketService.d.ts.map +1 -0
  200. package/lib/typescript/commonjs/live/services/spacesService.d.ts +181 -0
  201. package/lib/typescript/commonjs/live/services/spacesService.d.ts.map +1 -0
  202. package/lib/typescript/commonjs/live/types.d.ts +100 -0
  203. package/lib/typescript/commonjs/live/types.d.ts.map +1 -0
  204. package/lib/typescript/commonjs/live/validation.d.ts +658 -0
  205. package/lib/typescript/commonjs/live/validation.d.ts.map +1 -0
  206. package/lib/typescript/commonjs/package.json +1 -0
  207. package/{dist/types → lib/typescript/commonjs}/schema.d.ts +1 -0
  208. package/lib/typescript/commonjs/schema.d.ts.map +1 -0
  209. package/lib/typescript/module/client.d.ts +141 -0
  210. package/lib/typescript/module/client.d.ts.map +1 -0
  211. package/lib/typescript/module/errors.d.ts +9 -0
  212. package/lib/typescript/module/errors.d.ts.map +1 -0
  213. package/lib/typescript/module/index.d.ts +6 -0
  214. package/lib/typescript/module/index.d.ts.map +1 -0
  215. package/lib/typescript/module/index.native.d.ts +3 -0
  216. package/lib/typescript/module/index.native.d.ts.map +1 -0
  217. package/lib/typescript/module/live/assets/icons/spaces-icon.d.ts +13 -0
  218. package/lib/typescript/module/live/assets/icons/spaces-icon.d.ts.map +1 -0
  219. package/lib/typescript/module/live/assets/icons/syra-icon.d.ts +13 -0
  220. package/lib/typescript/module/live/assets/icons/syra-icon.d.ts.map +1 -0
  221. package/lib/typescript/module/live/colors.d.ts +35 -0
  222. package/lib/typescript/module/live/colors.d.ts.map +1 -0
  223. package/lib/typescript/module/live/components/AnimatedPulse.d.ts +8 -0
  224. package/lib/typescript/module/live/components/AnimatedPulse.d.ts.map +1 -0
  225. package/lib/typescript/module/live/components/AnimatedSpeakerRing.d.ts +10 -0
  226. package/lib/typescript/module/live/components/AnimatedSpeakerRing.d.ts.map +1 -0
  227. package/lib/typescript/module/live/components/CreateRoomSheet.d.ts +26 -0
  228. package/lib/typescript/module/live/components/CreateRoomSheet.d.ts.map +1 -0
  229. package/lib/typescript/module/live/components/InsightsPanel.d.ts +11 -0
  230. package/lib/typescript/module/live/components/InsightsPanel.d.ts.map +1 -0
  231. package/lib/typescript/module/live/components/LiveRoomSheet.d.ts +11 -0
  232. package/lib/typescript/module/live/components/LiveRoomSheet.d.ts.map +1 -0
  233. package/lib/typescript/module/live/components/MiniRoomBar.d.ts +15 -0
  234. package/lib/typescript/module/live/components/MiniRoomBar.d.ts.map +1 -0
  235. package/lib/typescript/module/live/components/PanelHeader.d.ts +10 -0
  236. package/lib/typescript/module/live/components/PanelHeader.d.ts.map +1 -0
  237. package/lib/typescript/module/live/components/PodcastStreamPicker.d.ts +54 -0
  238. package/lib/typescript/module/live/components/PodcastStreamPicker.d.ts.map +1 -0
  239. package/lib/typescript/module/live/components/RecordingCard.d.ts +11 -0
  240. package/lib/typescript/module/live/components/RecordingCard.d.ts.map +1 -0
  241. package/lib/typescript/module/live/components/RecordingsPanel.d.ts +12 -0
  242. package/lib/typescript/module/live/components/RecordingsPanel.d.ts.map +1 -0
  243. package/lib/typescript/module/live/components/RoomCard.d.ts +38 -0
  244. package/lib/typescript/module/live/components/RoomCard.d.ts.map +1 -0
  245. package/lib/typescript/module/live/components/StreamConfigModal.d.ts +11 -0
  246. package/lib/typescript/module/live/components/StreamConfigModal.d.ts.map +1 -0
  247. package/lib/typescript/module/live/components/StreamConfigPanel.d.ts +13 -0
  248. package/lib/typescript/module/live/components/StreamConfigPanel.d.ts.map +1 -0
  249. package/lib/typescript/module/live/context/LiveConfigContext.d.ts +78 -0
  250. package/lib/typescript/module/live/context/LiveConfigContext.d.ts.map +1 -0
  251. package/lib/typescript/module/live/context/LiveRoomContext.d.ts +12 -0
  252. package/lib/typescript/module/live/context/LiveRoomContext.d.ts.map +1 -0
  253. package/lib/typescript/module/live/hooks/useActiveSpeakers.d.ts +3 -0
  254. package/lib/typescript/module/live/hooks/useActiveSpeakers.d.ts.map +1 -0
  255. package/lib/typescript/module/live/hooks/useRoomAudio.d.ts +16 -0
  256. package/lib/typescript/module/live/hooks/useRoomAudio.d.ts.map +1 -0
  257. package/lib/typescript/module/live/hooks/useRoomConnection.d.ts +29 -0
  258. package/lib/typescript/module/live/hooks/useRoomConnection.d.ts.map +1 -0
  259. package/lib/typescript/module/live/hooks/useRoomManager.d.ts +11 -0
  260. package/lib/typescript/module/live/hooks/useRoomManager.d.ts.map +1 -0
  261. package/lib/typescript/module/live/hooks/useRoomUsers.d.ts +5 -0
  262. package/lib/typescript/module/live/hooks/useRoomUsers.d.ts.map +1 -0
  263. package/lib/typescript/module/live/index.d.ts +25 -0
  264. package/lib/typescript/module/live/index.d.ts.map +1 -0
  265. package/lib/typescript/module/live/services/livekitService.d.ts +7 -0
  266. package/lib/typescript/module/live/services/livekitService.d.ts.map +1 -0
  267. package/lib/typescript/module/live/services/spaceSocketService.d.ts +69 -0
  268. package/lib/typescript/module/live/services/spaceSocketService.d.ts.map +1 -0
  269. package/lib/typescript/module/live/services/spacesService.d.ts +181 -0
  270. package/lib/typescript/module/live/services/spacesService.d.ts.map +1 -0
  271. package/lib/typescript/module/live/types.d.ts +100 -0
  272. package/lib/typescript/module/live/types.d.ts.map +1 -0
  273. package/lib/typescript/module/live/validation.d.ts +658 -0
  274. package/lib/typescript/module/live/validation.d.ts.map +1 -0
  275. package/lib/typescript/module/package.json +1 -0
  276. package/lib/typescript/module/schema.d.ts +1072 -0
  277. package/lib/typescript/module/schema.d.ts.map +1 -0
  278. package/package.json +123 -21
  279. package/src/index.native.ts +2 -0
  280. package/src/live/assets/icons/spaces-icon.tsx +15 -0
  281. package/src/live/assets/icons/syra-icon.tsx +13 -0
  282. package/src/live/assets/sounds/intro.mp3 +0 -0
  283. package/src/live/colors.ts +57 -0
  284. package/src/live/components/AnimatedPulse.tsx +52 -0
  285. package/src/live/components/AnimatedSpeakerRing.tsx +101 -0
  286. package/src/live/components/CreateRoomSheet.tsx +654 -0
  287. package/src/live/components/InsightsPanel.tsx +202 -0
  288. package/src/live/components/LiveRoomSheet.tsx +970 -0
  289. package/src/live/components/MiniRoomBar.tsx +167 -0
  290. package/src/live/components/PanelHeader.tsx +36 -0
  291. package/src/live/components/PodcastStreamPicker.tsx +1155 -0
  292. package/src/live/components/RecordingCard.tsx +154 -0
  293. package/src/live/components/RecordingsPanel.tsx +252 -0
  294. package/src/live/components/RoomCard.tsx +343 -0
  295. package/src/live/components/StreamConfigModal.tsx +600 -0
  296. package/src/live/components/StreamConfigPanel.tsx +729 -0
  297. package/src/live/context/LiveConfigContext.tsx +96 -0
  298. package/src/live/context/LiveRoomContext.tsx +235 -0
  299. package/src/live/hooks/useActiveSpeakers.ts +39 -0
  300. package/src/live/hooks/useRoomAudio.ts +103 -0
  301. package/src/live/hooks/useRoomConnection.ts +162 -0
  302. package/src/live/hooks/useRoomManager.ts +17 -0
  303. package/src/live/hooks/useRoomUsers.ts +52 -0
  304. package/src/live/index.ts +104 -0
  305. package/src/live/services/livekitService.ts +11 -0
  306. package/src/live/services/spaceSocketService.ts +136 -0
  307. package/src/live/services/spacesService.ts +692 -0
  308. package/src/live/types.ts +119 -0
  309. package/src/live/validation.ts +279 -0
  310. package/dist/cjs/client.js +0 -244
  311. package/dist/cjs/errors.js +0 -16
  312. package/dist/cjs/index.js +0 -15
  313. package/dist/cjs/package.json +0 -3
  314. package/dist/esm/client.js +0 -240
  315. package/dist/esm/errors.js +0 -12
  316. package/dist/esm/index.js +0 -3
  317. package/dist/esm/package.json +0 -3
@@ -0,0 +1,1196 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.LiveRoomSheet = LiveRoomSheet;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _MaterialCommunityIcons = _interopRequireDefault(require("@expo/vector-icons/MaterialCommunityIcons"));
10
+ var _services = require("@oxyhq/services");
11
+ var _LiveConfigContext = require("../context/LiveConfigContext.js");
12
+ var _MiniRoomBar = require("./MiniRoomBar.js");
13
+ var _StreamConfigPanel = require("./StreamConfigPanel.js");
14
+ var _InsightsPanel = require("./InsightsPanel.js");
15
+ var _PanelHeader = require("./PanelHeader.js");
16
+ var _AnimatedSpeakerRing = require("./AnimatedSpeakerRing.js");
17
+ var _AnimatedPulse = require("./AnimatedPulse.js");
18
+ var _useRoomConnection = require("../hooks/useRoomConnection.js");
19
+ var _useRoomAudio = require("../hooks/useRoomAudio.js");
20
+ var _useActiveSpeakers = require("../hooks/useActiveSpeakers.js");
21
+ var _useRoomUsers = require("../hooks/useRoomUsers.js");
22
+ var _colors = require("../colors.js");
23
+ var _jsxRuntime = require("react/jsx-runtime");
24
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
25
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
26
+ /**
27
+ * English source copy for the podcast host-control strings added to the stream
28
+ * card. Hosts with an i18n layer inject `t`; hosts without one fall back here.
29
+ * Keys mirror the `agora.podcastStream.*` entries in the app locale files.
30
+ */
31
+ const LIVE_ROOM_STRINGS = {
32
+ 'agora.podcastStream.skipNext': 'Skip to next episode',
33
+ 'agora.podcastStream.skipped': 'Skipped to the next episode',
34
+ 'agora.podcastStream.queueEnded': 'Podcast queue finished',
35
+ 'agora.podcastStream.skipFailed': "Couldn't skip to the next episode"
36
+ };
37
+
38
+ /** Format a second count as `m:ss` (or `h:mm:ss` when hours are relevant). */
39
+ function formatClock(totalSeconds, withHours) {
40
+ const s = Math.max(0, Math.floor(totalSeconds));
41
+ const hours = Math.floor(s / 3600);
42
+ const minutes = Math.floor(s % 3600 / 60);
43
+ const secs = s % 60;
44
+ const pad = n => String(n).padStart(2, '0');
45
+ return withHours ? `${hours}:${pad(minutes)}:${pad(secs)}` : `${minutes}:${pad(secs)}`;
46
+ }
47
+ const RoleBadge = ({
48
+ role,
49
+ theme
50
+ }) => {
51
+ if (role === 'host') {
52
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
53
+ style: [styles.roleBadge, {
54
+ backgroundColor: theme.colors.primary
55
+ }],
56
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
57
+ style: styles.roleBadgeText,
58
+ children: "Host"
59
+ })
60
+ });
61
+ }
62
+ if (role === 'speaker') {
63
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
64
+ style: [styles.roleBadge, {
65
+ backgroundColor: theme.colors.backgroundSecondary
66
+ }],
67
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
68
+ style: [styles.roleBadgeText, {
69
+ color: theme.colors.text
70
+ }],
71
+ children: "Speaker"
72
+ })
73
+ });
74
+ }
75
+ return null;
76
+ };
77
+ const SpeakerTile = ({
78
+ participant,
79
+ isCurrentUser,
80
+ isSpeaking,
81
+ theme,
82
+ userProfile,
83
+ oxyServices,
84
+ AvatarComponent,
85
+ getCachedFileDownloadUrlSync
86
+ }) => {
87
+ const displayName = (0, _useRoomUsers.getDisplayName)(userProfile, participant.userId, isCurrentUser);
88
+ const avatarUri = (0, _useRoomUsers.getAvatarUrl)(userProfile, oxyServices, getCachedFileDownloadUrlSync);
89
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
90
+ style: styles.speakerTile,
91
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_AnimatedSpeakerRing.AnimatedSpeakerRing, {
92
+ isSpeaking: isSpeaking,
93
+ isMuted: participant.isMuted,
94
+ primaryColor: theme.colors.primary,
95
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarComponent, {
96
+ size: 64,
97
+ source: avatarUri,
98
+ shape: "squircle"
99
+ }), participant.isMuted && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
100
+ style: [styles.muteIndicator, {
101
+ backgroundColor: _colors.LIVE_COLOR
102
+ }],
103
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
104
+ name: "microphone-off",
105
+ size: 12,
106
+ color: "#FFFFFF"
107
+ })
108
+ })]
109
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
110
+ style: [styles.speakerName, {
111
+ color: theme.colors.text
112
+ }],
113
+ numberOfLines: 1,
114
+ children: displayName
115
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(RoleBadge, {
116
+ role: participant.role,
117
+ theme: theme
118
+ })]
119
+ });
120
+ };
121
+ const ListenerAvatar = ({
122
+ participant,
123
+ userProfile,
124
+ oxyServices,
125
+ AvatarComponent,
126
+ getCachedFileDownloadUrlSync
127
+ }) => {
128
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
129
+ style: styles.listenerItem,
130
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarComponent, {
131
+ size: 40,
132
+ source: (0, _useRoomUsers.getAvatarUrl)(userProfile, oxyServices, getCachedFileDownloadUrlSync),
133
+ shape: "squircle"
134
+ })
135
+ });
136
+ };
137
+ const ConnectedSpeakerTile = ({
138
+ participant,
139
+ isCurrentUser,
140
+ isSpeaking,
141
+ theme,
142
+ oxyServices,
143
+ AvatarComponent,
144
+ getCachedFileDownloadUrlSync,
145
+ useUserById
146
+ }) => {
147
+ const userProfile = useUserById(participant.userId);
148
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(SpeakerTile, {
149
+ participant: participant,
150
+ isCurrentUser: isCurrentUser,
151
+ isSpeaking: isSpeaking,
152
+ theme: theme,
153
+ userProfile: userProfile,
154
+ oxyServices: oxyServices,
155
+ AvatarComponent: AvatarComponent,
156
+ getCachedFileDownloadUrlSync: getCachedFileDownloadUrlSync
157
+ });
158
+ };
159
+ const ConnectedListenerAvatar = ({
160
+ participant,
161
+ oxyServices,
162
+ AvatarComponent,
163
+ getCachedFileDownloadUrlSync,
164
+ useUserById
165
+ }) => {
166
+ const userProfile = useUserById(participant.userId);
167
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(ListenerAvatar, {
168
+ participant: participant,
169
+ userProfile: userProfile,
170
+ oxyServices: oxyServices,
171
+ AvatarComponent: AvatarComponent,
172
+ getCachedFileDownloadUrlSync: getCachedFileDownloadUrlSync
173
+ });
174
+ };
175
+ const ConnectedRequestRow = ({
176
+ request,
177
+ theme,
178
+ oxyServices,
179
+ onApprove,
180
+ onDeny,
181
+ AvatarComponent,
182
+ getCachedFileDownloadUrlSync,
183
+ useUserById
184
+ }) => {
185
+ const userProfile = useUserById(request.userId);
186
+ const displayName = (0, _useRoomUsers.getDisplayName)(userProfile, request.userId, false);
187
+ const avatarUri = (0, _useRoomUsers.getAvatarUrl)(userProfile, oxyServices, getCachedFileDownloadUrlSync);
188
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
189
+ style: [styles.requestRow, {
190
+ backgroundColor: `${theme.colors.card}80`,
191
+ borderColor: theme.colors.border
192
+ }],
193
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AvatarComponent, {
194
+ size: 36,
195
+ source: avatarUri,
196
+ shape: "squircle"
197
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
198
+ style: [styles.requestName, {
199
+ color: theme.colors.text
200
+ }],
201
+ numberOfLines: 1,
202
+ children: displayName
203
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
204
+ onPress: () => onApprove(request.userId),
205
+ style: [styles.approveBtn, {
206
+ backgroundColor: theme.colors.primary
207
+ }],
208
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
209
+ name: "check",
210
+ size: 18,
211
+ color: "#FFFFFF"
212
+ })
213
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
214
+ onPress: () => onDeny(request.userId),
215
+ style: [styles.denyBtn, {
216
+ backgroundColor: theme.colors.backgroundSecondary
217
+ }],
218
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
219
+ name: "close",
220
+ size: 18,
221
+ color: theme.colors.text
222
+ })
223
+ })]
224
+ });
225
+ };
226
+ function LiveRoomSheet({
227
+ roomId,
228
+ isExpanded,
229
+ onCollapse,
230
+ onExpand,
231
+ onLeave
232
+ }) {
233
+ const {
234
+ useTheme,
235
+ useUserById,
236
+ AvatarComponent,
237
+ roomsService,
238
+ toast,
239
+ getCachedFileDownloadUrl,
240
+ getCachedFileDownloadUrlSync,
241
+ onRoomChanged,
242
+ t
243
+ } = (0, _LiveConfigContext.useLiveConfig)();
244
+ const theme = useTheme();
245
+ const {
246
+ user,
247
+ oxyServices
248
+ } = (0, _services.useAuth)();
249
+ const [room, setRoom] = (0, _react.useState)(null);
250
+ const tr = (0, _react.useCallback)(key => t ? t(key) : LIVE_ROOM_STRINGS[key] ?? key, [t]);
251
+ (0, _react.useEffect)(() => {
252
+ if (roomId) {
253
+ roomsService.getRoom(roomId).then(setRoom);
254
+ }
255
+ }, [roomId]);
256
+ const {
257
+ isConnected,
258
+ participants,
259
+ myRole,
260
+ isMuted,
261
+ speakerRequests,
262
+ activeStream,
263
+ isRecording,
264
+ join,
265
+ leave,
266
+ toggleMute,
267
+ requestToSpeak,
268
+ approveSpeaker,
269
+ denySpeaker,
270
+ isRoomEnded
271
+ } = (0, _useRoomConnection.useRoomConnection)({
272
+ roomId,
273
+ enabled: !!roomId
274
+ });
275
+ const isRoomLive = room?.status === 'live';
276
+ const {
277
+ isLiveKitConnected,
278
+ micPermissionDenied,
279
+ livekitRoom
280
+ } = (0, _useRoomAudio.useRoomAudio)({
281
+ roomId,
282
+ isSpeaker: myRole === 'speaker' || myRole === 'host',
283
+ isMuted,
284
+ isConnected: isConnected && isRoomLive
285
+ });
286
+ const activeSpeakerIds = (0, _useActiveSpeakers.useActiveSpeakers)(livekitRoom);
287
+ (0, _react.useEffect)(() => {
288
+ if (isConnected && roomId) {
289
+ join();
290
+ }
291
+ }, [isConnected, roomId, join]);
292
+ (0, _react.useEffect)(() => {
293
+ if (isRoomEnded) {
294
+ toast('Room ended');
295
+ leave();
296
+ onLeave();
297
+ }
298
+ }, [isRoomEnded]);
299
+ const handleLeave = () => {
300
+ leave();
301
+ onLeave();
302
+ };
303
+ const handleStopRoom = async () => {
304
+ if (!roomId) return;
305
+ const success = await roomsService.stopRoom(roomId);
306
+ if (success) {
307
+ onRoomChanged?.(roomId);
308
+ leave();
309
+ onLeave();
310
+ } else {
311
+ toast.error('Failed to stop session');
312
+ }
313
+ };
314
+ const handleDeleteRoom = async () => {
315
+ if (!roomId) return;
316
+ const success = await roomsService.deleteRoom(roomId);
317
+ if (success) {
318
+ onRoomChanged?.(roomId);
319
+ leave();
320
+ onLeave();
321
+ toast.success('Room deleted');
322
+ } else {
323
+ toast.error('Failed to delete room');
324
+ }
325
+ };
326
+ const [startingRoom, setStartingRoom] = (0, _react.useState)(false);
327
+ const handleStartRoom = async () => {
328
+ if (!roomId || startingRoom) return;
329
+ setStartingRoom(true);
330
+ try {
331
+ const success = await roomsService.startRoom(roomId);
332
+ if (success) {
333
+ const updated = await roomsService.getRoom(roomId);
334
+ if (updated) setRoom(updated);
335
+ onRoomChanged?.(roomId);
336
+ toast.success('Room is now live!');
337
+ } else {
338
+ toast.error('Failed to start room');
339
+ }
340
+ } catch {
341
+ toast.error('Failed to start room');
342
+ } finally {
343
+ setStartingRoom(false);
344
+ }
345
+ };
346
+ const handleStartRecording = async () => {
347
+ if (!roomId) return;
348
+ const success = await roomsService.startRecording(roomId);
349
+ if (success) {
350
+ toast.success('Recording started');
351
+ } else {
352
+ toast.error('Failed to start recording');
353
+ }
354
+ };
355
+ const handleStopRecording = async () => {
356
+ if (!roomId) return;
357
+ const success = await roomsService.stopRecording(roomId);
358
+ if (success) {
359
+ toast.success('Recording saved');
360
+ } else {
361
+ toast.error('Failed to stop recording');
362
+ }
363
+ };
364
+ const [activePanel, setActivePanel] = (0, _react.useState)(null);
365
+ const [streamLoading, setStreamLoading] = (0, _react.useState)(false);
366
+ const effectiveStream = activeStream ?? (room?.streamTitle || room?.activeStreamUrl ? {
367
+ title: room.streamTitle ?? undefined,
368
+ image: room.streamImage ?? undefined,
369
+ description: room.streamDescription ?? undefined,
370
+ startedAt: room.streamStartedAt ?? undefined,
371
+ durationSec: room.streamDurationSec ?? undefined
372
+ } : null);
373
+ const [streamImageUrl, setStreamImageUrl] = (0, _react.useState)(null);
374
+ (0, _react.useEffect)(() => {
375
+ if (effectiveStream?.image) {
376
+ getCachedFileDownloadUrl(oxyServices, effectiveStream.image).then(setStreamImageUrl);
377
+ } else {
378
+ setStreamImageUrl(null);
379
+ }
380
+ }, [effectiveStream?.image, oxyServices]);
381
+
382
+ // Stream progress — only for length-known streams (e.g. podcast episodes).
383
+ const streamStartedAt = effectiveStream?.startedAt;
384
+ const streamDurationSec = effectiveStream?.durationSec ?? 0;
385
+ const hasProgress = !!streamStartedAt && streamDurationSec > 0;
386
+
387
+ // A lightweight 1s tick that advances the elapsed readout while a length-known
388
+ // stream plays. Runs only when there's progress to show; cleared on unmount
389
+ // and whenever the stream clears.
390
+ const [nowMs, setNowMs] = (0, _react.useState)(() => Date.now());
391
+ (0, _react.useEffect)(() => {
392
+ if (!hasProgress) return;
393
+ setNowMs(Date.now());
394
+ const id = setInterval(() => setNowMs(Date.now()), 1000);
395
+ return () => clearInterval(id);
396
+ }, [hasProgress]);
397
+ const elapsedSec = (0, _react.useMemo)(() => {
398
+ if (!hasProgress || !streamStartedAt) return 0;
399
+ const startMs = new Date(streamStartedAt).getTime();
400
+ if (Number.isNaN(startMs)) return 0;
401
+ return Math.min(Math.max(Math.floor((nowMs - startMs) / 1000), 0), streamDurationSec);
402
+ }, [hasProgress, streamStartedAt, nowMs, streamDurationSec]);
403
+ const progressPct = hasProgress ? Math.min(Math.max(elapsedSec / streamDurationSec, 0), 1) * 100 : 0;
404
+ const progressFillStyle = {
405
+ backgroundColor: theme.colors.primary,
406
+ width: `${progressPct}%`
407
+ };
408
+ const withHours = streamDurationSec >= 3600;
409
+ const handleStopStream = async () => {
410
+ if (!roomId || streamLoading) return;
411
+ setStreamLoading(true);
412
+ try {
413
+ const success = await roomsService.stopStream(roomId);
414
+ if (success) {
415
+ toast.success('Stream stopped');
416
+ } else {
417
+ toast.error('Failed to stop stream');
418
+ }
419
+ } catch {
420
+ toast.error('Failed to stop stream');
421
+ } finally {
422
+ setStreamLoading(false);
423
+ }
424
+ };
425
+ const [skipLoading, setSkipLoading] = (0, _react.useState)(false);
426
+ const handleSkipNext = async () => {
427
+ if (!roomId || skipLoading) return;
428
+ setSkipLoading(true);
429
+ try {
430
+ const result = await roomsService.skipPodcastNext(roomId);
431
+ if (!result) {
432
+ toast.error(tr('agora.podcastStream.skipFailed'));
433
+ } else {
434
+ toast.success(tr(result.ended ? 'agora.podcastStream.queueEnded' : 'agora.podcastStream.skipped'));
435
+ const updated = await roomsService.getRoom(roomId);
436
+ if (updated) setRoom(updated);
437
+ }
438
+ } catch {
439
+ toast.error(tr('agora.podcastStream.skipFailed'));
440
+ } finally {
441
+ setSkipLoading(false);
442
+ }
443
+ };
444
+ const participantIds = (0, _react.useMemo)(() => participants.map(p => p.userId), [participants]);
445
+ (0, _useRoomUsers.useRoomUsers)(participantIds);
446
+ const speakers = participants.filter(p => p.role === 'host' || p.role === 'speaker');
447
+ const listeners = participants.filter(p => p.role === 'listener');
448
+ const userId = user?.id;
449
+ const isHost = myRole === 'host' || !!userId && room?.host === userId;
450
+ const canSpeak = myRole === 'host' || myRole === 'speaker';
451
+ if (!isExpanded) {
452
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_MiniRoomBar.MiniRoomBar, {
453
+ title: room?.title || 'Room',
454
+ participantCount: participants.length,
455
+ isMuted: isMuted,
456
+ canSpeak: canSpeak,
457
+ activeSpeakerCount: activeSpeakerIds.size,
458
+ onExpand: onExpand,
459
+ onToggleMute: toggleMute,
460
+ onLeave: handleLeave
461
+ });
462
+ }
463
+ if (activePanel === 'stream') {
464
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_StreamConfigPanel.StreamConfigPanel, {
465
+ roomId: roomId,
466
+ roomStatus: room?.status,
467
+ initialStreamUrl: room?.activeStreamUrl ?? undefined,
468
+ initialRtmpUrl: room?.rtmpUrl ?? undefined,
469
+ initialStreamKey: room?.rtmpStreamKey ?? undefined,
470
+ onClose: () => setActivePanel(null),
471
+ onStreamStarted: () => {
472
+ roomsService.getRoom(roomId).then(setRoom);
473
+ onRoomChanged?.(roomId);
474
+ setActivePanel(null);
475
+ }
476
+ });
477
+ }
478
+ if (activePanel === 'insights') {
479
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_InsightsPanel.InsightsPanel, {
480
+ room: room,
481
+ participants: participants,
482
+ theme: theme,
483
+ onClose: () => setActivePanel(null)
484
+ });
485
+ }
486
+ if (activePanel === 'settings') {
487
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
488
+ style: styles.container,
489
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PanelHeader.PanelHeader, {
490
+ title: "Room Settings",
491
+ theme: theme,
492
+ onBack: () => setActivePanel(null)
493
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
494
+ style: styles.settingsContent,
495
+ children: [isRoomLive && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
496
+ style: styles.settingsItem,
497
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
498
+ name: isRecording ? 'record-circle' : 'record-circle-outline',
499
+ size: 22,
500
+ color: isRecording ? '#FF0000' : theme.colors.text
501
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
502
+ style: styles.settingsItemText,
503
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
504
+ style: [styles.settingsItemTitle, {
505
+ color: theme.colors.text
506
+ }],
507
+ children: "Recording"
508
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
509
+ style: [styles.settingsItemDesc, {
510
+ color: theme.colors.textSecondary
511
+ }],
512
+ children: isRecording ? 'Currently recording (max 1h)' : 'Record room audio for replay'
513
+ })]
514
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
515
+ onPress: isRecording ? handleStopRecording : handleStartRecording,
516
+ style: [styles.recordingToggle, {
517
+ backgroundColor: isRecording ? _colors.LIVE_COLOR : theme.colors.primary
518
+ }],
519
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
520
+ style: {
521
+ color: '#FFFFFF',
522
+ fontWeight: '600',
523
+ fontSize: 13
524
+ },
525
+ children: isRecording ? 'Stop' : 'Start'
526
+ })
527
+ })]
528
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
529
+ style: styles.settingsItem,
530
+ onPress: handleDeleteRoom,
531
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
532
+ name: "delete-outline",
533
+ size: 22,
534
+ color: _colors.LIVE_COLOR
535
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
536
+ style: styles.settingsItemText,
537
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
538
+ style: [styles.settingsItemTitle, {
539
+ color: _colors.LIVE_COLOR
540
+ }],
541
+ children: "Delete Room"
542
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
543
+ style: [styles.settingsItemDesc, {
544
+ color: theme.colors.textSecondary
545
+ }],
546
+ children: "Permanently remove this room"
547
+ })]
548
+ })]
549
+ })]
550
+ })]
551
+ });
552
+ }
553
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
554
+ style: styles.container,
555
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
556
+ style: [styles.header, {
557
+ borderBottomColor: `${theme.colors.border}80`
558
+ }],
559
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
560
+ onPress: onCollapse,
561
+ style: styles.headerButton,
562
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
563
+ name: "chevron-down",
564
+ size: 24,
565
+ color: theme.colors.text
566
+ })
567
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
568
+ style: styles.headerCenter,
569
+ children: [isRoomLive ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
570
+ style: [styles.liveBadge, {
571
+ backgroundColor: _colors.LIVE_COLOR
572
+ }],
573
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AnimatedPulse.AnimatedPulse, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
574
+ style: styles.liveText,
575
+ children: "LIVE"
576
+ })]
577
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
578
+ style: [styles.liveBadge, {
579
+ backgroundColor: theme.colors.textSecondary
580
+ }],
581
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
582
+ style: styles.liveText,
583
+ children: "SCHEDULED"
584
+ })
585
+ }), isRecording && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
586
+ style: [styles.liveBadge, {
587
+ backgroundColor: '#FF0000'
588
+ }],
589
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AnimatedPulse.AnimatedPulse, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
590
+ style: styles.liveText,
591
+ children: "REC"
592
+ })]
593
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
594
+ style: [styles.listenerCount, {
595
+ color: theme.colors.textSecondary
596
+ }],
597
+ children: [participants.length, " in room"]
598
+ })]
599
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
600
+ style: styles.headerRight,
601
+ children: [isHost && isRoomLive && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
602
+ onPress: handleStopRoom,
603
+ style: styles.endButton,
604
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
605
+ style: styles.endButtonText,
606
+ children: "End"
607
+ })
608
+ }), isHost && !isRoomLive && room?.status === 'scheduled' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
609
+ onPress: handleStartRoom,
610
+ disabled: startingRoom,
611
+ style: [styles.endButton, {
612
+ backgroundColor: theme.colors.primary
613
+ }],
614
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
615
+ style: [styles.endButtonText, {
616
+ color: '#FFFFFF'
617
+ }],
618
+ children: startingRoom ? 'Starting...' : 'Go Live'
619
+ })
620
+ })]
621
+ })]
622
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
623
+ style: styles.roomInfo,
624
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
625
+ style: [styles.roomTitle, {
626
+ color: theme.colors.text
627
+ }],
628
+ numberOfLines: 2,
629
+ children: room?.title || 'Room'
630
+ }), room?.topic && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
631
+ style: [styles.roomTopic, {
632
+ color: theme.colors.textSecondary
633
+ }],
634
+ children: room.topic
635
+ })]
636
+ }), micPermissionDenied && canSpeak && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
637
+ style: [styles.micBanner, {
638
+ backgroundColor: '#FFF3CD',
639
+ borderColor: '#FFE69C'
640
+ }],
641
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
642
+ name: "microphone-off",
643
+ size: 18,
644
+ color: "#856404"
645
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
646
+ style: styles.micBannerText,
647
+ children: "Microphone access denied. Allow mic permission in your browser settings to speak."
648
+ })]
649
+ }), effectiveStream && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
650
+ style: [styles.streamCard, {
651
+ backgroundColor: `${theme.colors.card}80`,
652
+ borderColor: theme.colors.border
653
+ }],
654
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
655
+ style: styles.streamCardRow,
656
+ children: [streamImageUrl ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
657
+ source: {
658
+ uri: streamImageUrl
659
+ },
660
+ style: styles.streamCardImage
661
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
662
+ style: [styles.streamCardIconBox, {
663
+ backgroundColor: '#E8F5E9'
664
+ }],
665
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
666
+ name: "radio",
667
+ size: 20,
668
+ color: "#2E7D32"
669
+ })
670
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
671
+ style: styles.streamCardContent,
672
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
673
+ style: [styles.streamCardTitle, {
674
+ color: theme.colors.text
675
+ }],
676
+ numberOfLines: 1,
677
+ children: effectiveStream.title || 'Live Stream'
678
+ }), effectiveStream.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
679
+ style: [styles.streamCardDesc, {
680
+ color: theme.colors.textSecondary
681
+ }],
682
+ numberOfLines: 2,
683
+ children: effectiveStream.description
684
+ }) : null]
685
+ }), isHost && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
686
+ style: styles.streamCardActions,
687
+ children: [(room?.podcastQueue?.length ?? 0) > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
688
+ onPress: handleSkipNext,
689
+ disabled: skipLoading,
690
+ style: styles.streamCardAction,
691
+ accessibilityRole: "button",
692
+ accessibilityLabel: tr('agora.podcastStream.skipNext'),
693
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
694
+ name: "skip-next-circle",
695
+ size: 22,
696
+ color: theme.colors.primary
697
+ })
698
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableOpacity, {
699
+ onPress: handleStopStream,
700
+ disabled: streamLoading,
701
+ style: styles.streamCardAction,
702
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
703
+ name: "close-circle",
704
+ size: 22,
705
+ color: "#C62828"
706
+ })
707
+ })]
708
+ })]
709
+ }), hasProgress && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
710
+ style: styles.streamProgress,
711
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
712
+ style: [styles.progressTrack, {
713
+ backgroundColor: theme.colors.border
714
+ }],
715
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
716
+ style: [styles.progressFill, progressFillStyle]
717
+ })
718
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
719
+ style: [styles.progressTime, {
720
+ color: theme.colors.textSecondary
721
+ }],
722
+ children: [formatClock(elapsedSec, withHours), " / ", formatClock(streamDurationSec, withHours)]
723
+ })]
724
+ })]
725
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
726
+ style: {
727
+ flex: 1
728
+ },
729
+ contentContainerStyle: styles.scrollContent,
730
+ showsVerticalScrollIndicator: false,
731
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
732
+ style: styles.speakerGrid,
733
+ children: speakers.map(p => /*#__PURE__*/(0, _jsxRuntime.jsx)(ConnectedSpeakerTile, {
734
+ participant: p,
735
+ isCurrentUser: p.userId === userId,
736
+ isSpeaking: activeSpeakerIds.has(p.userId),
737
+ theme: theme,
738
+ oxyServices: oxyServices,
739
+ AvatarComponent: AvatarComponent,
740
+ getCachedFileDownloadUrlSync: getCachedFileDownloadUrlSync,
741
+ useUserById: useUserById
742
+ }, p.userId))
743
+ }), listeners.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
744
+ style: styles.listenerSection,
745
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
746
+ style: [styles.listenerHeader, {
747
+ color: theme.colors.textSecondary
748
+ }],
749
+ children: ["Listeners (", listeners.length, ")"]
750
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
751
+ style: styles.listenerGrid,
752
+ children: listeners.map(p => /*#__PURE__*/(0, _jsxRuntime.jsx)(ConnectedListenerAvatar, {
753
+ participant: p,
754
+ oxyServices: oxyServices,
755
+ AvatarComponent: AvatarComponent,
756
+ getCachedFileDownloadUrlSync: getCachedFileDownloadUrlSync,
757
+ useUserById: useUserById
758
+ }, p.userId))
759
+ })]
760
+ }), isHost && speakerRequests.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
761
+ style: styles.requestsSection,
762
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
763
+ style: [styles.requestsHeader, {
764
+ color: theme.colors.textSecondary
765
+ }],
766
+ children: "Requests to speak"
767
+ }), speakerRequests.map(r => /*#__PURE__*/(0, _jsxRuntime.jsx)(ConnectedRequestRow, {
768
+ request: r,
769
+ theme: theme,
770
+ oxyServices: oxyServices,
771
+ onApprove: approveSpeaker,
772
+ onDeny: denySpeaker,
773
+ AvatarComponent: AvatarComponent,
774
+ getCachedFileDownloadUrlSync: getCachedFileDownloadUrlSync,
775
+ useUserById: useUserById
776
+ }, r.userId))]
777
+ })]
778
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
779
+ style: [styles.controlBar, {
780
+ borderTopColor: theme.colors.border
781
+ }],
782
+ children: [canSpeak ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
783
+ style: styles.controlItem,
784
+ onPress: toggleMute,
785
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
786
+ style: [styles.controlCircle, {
787
+ backgroundColor: isMuted ? theme.colors.backgroundSecondary : theme.colors.primary
788
+ }],
789
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
790
+ name: isMuted ? 'microphone-off' : 'microphone',
791
+ size: 24,
792
+ color: isMuted ? theme.colors.text : '#FFFFFF'
793
+ })
794
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
795
+ style: [styles.controlLabel, {
796
+ color: theme.colors.textSecondary
797
+ }],
798
+ children: isMuted ? 'Unmute' : 'Mute'
799
+ })]
800
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
801
+ style: styles.controlItem,
802
+ onPress: requestToSpeak,
803
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
804
+ style: [styles.controlCircle, {
805
+ backgroundColor: theme.colors.backgroundSecondary
806
+ }],
807
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
808
+ name: "hand-back-left",
809
+ size: 24,
810
+ color: theme.colors.text
811
+ })
812
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
813
+ style: [styles.controlLabel, {
814
+ color: theme.colors.textSecondary
815
+ }],
816
+ children: "Request"
817
+ })]
818
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
819
+ style: styles.controlItem,
820
+ onPress: () => setActivePanel('insights'),
821
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
822
+ style: [styles.controlCircle, {
823
+ backgroundColor: theme.colors.backgroundSecondary
824
+ }],
825
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
826
+ name: "chart-box-outline",
827
+ size: 24,
828
+ color: theme.colors.text
829
+ })
830
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
831
+ style: [styles.controlLabel, {
832
+ color: theme.colors.textSecondary
833
+ }],
834
+ children: "Insights"
835
+ })]
836
+ }), isHost && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
837
+ style: styles.controlItem,
838
+ onPress: () => setActivePanel('stream'),
839
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
840
+ style: [styles.controlCircle, {
841
+ backgroundColor: theme.colors.backgroundSecondary
842
+ }],
843
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
844
+ name: "radio",
845
+ size: 24,
846
+ color: theme.colors.text
847
+ })
848
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
849
+ style: [styles.controlLabel, {
850
+ color: theme.colors.textSecondary
851
+ }],
852
+ children: "Stream"
853
+ })]
854
+ }), isHost && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
855
+ style: styles.controlItem,
856
+ onPress: () => setActivePanel('settings'),
857
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
858
+ style: [styles.controlCircle, {
859
+ backgroundColor: theme.colors.backgroundSecondary
860
+ }],
861
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
862
+ name: "cog-outline",
863
+ size: 24,
864
+ color: theme.colors.text
865
+ })
866
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
867
+ style: [styles.controlLabel, {
868
+ color: theme.colors.textSecondary
869
+ }],
870
+ children: "Settings"
871
+ })]
872
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.TouchableOpacity, {
873
+ style: styles.controlItem,
874
+ onPress: handleLeave,
875
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
876
+ style: [styles.leaveCircle, {
877
+ backgroundColor: _colors.LIVE_COLOR
878
+ }],
879
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MaterialCommunityIcons.default, {
880
+ name: "exit-run",
881
+ size: 24,
882
+ color: "#FFFFFF"
883
+ })
884
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
885
+ style: [styles.controlLabel, {
886
+ color: theme.colors.textSecondary
887
+ }],
888
+ children: "Leave"
889
+ })]
890
+ })]
891
+ })]
892
+ });
893
+ }
894
+ const styles = _reactNative.StyleSheet.create({
895
+ container: {
896
+ flex: 1
897
+ },
898
+ header: {
899
+ flexDirection: 'row',
900
+ alignItems: 'center',
901
+ paddingHorizontal: 16,
902
+ paddingVertical: 12,
903
+ borderBottomWidth: 1
904
+ },
905
+ headerButton: {
906
+ padding: 4
907
+ },
908
+ headerCenter: {
909
+ flex: 1,
910
+ flexDirection: 'row',
911
+ alignItems: 'center',
912
+ justifyContent: 'center',
913
+ gap: 8
914
+ },
915
+ headerRight: {
916
+ minWidth: 40,
917
+ alignItems: 'flex-end'
918
+ },
919
+ liveBadge: {
920
+ flexDirection: 'row',
921
+ alignItems: 'center',
922
+ paddingHorizontal: 10,
923
+ paddingVertical: 4,
924
+ borderRadius: 12,
925
+ gap: 5
926
+ },
927
+ liveText: {
928
+ fontSize: 12,
929
+ fontWeight: '700',
930
+ color: '#FFFFFF'
931
+ },
932
+ listenerCount: {
933
+ fontSize: 14,
934
+ fontWeight: '500'
935
+ },
936
+ endButton: {
937
+ paddingHorizontal: 16,
938
+ paddingVertical: 6,
939
+ borderRadius: 16,
940
+ backgroundColor: _colors.LIVE_TINT_COLOR
941
+ },
942
+ endButtonText: {
943
+ fontSize: 15,
944
+ fontWeight: '600',
945
+ color: _colors.LIVE_COLOR
946
+ },
947
+ roomInfo: {
948
+ paddingHorizontal: 16,
949
+ paddingTop: 16,
950
+ paddingBottom: 8
951
+ },
952
+ roomTitle: {
953
+ fontSize: 32,
954
+ fontWeight: 'bold',
955
+ lineHeight: 38
956
+ },
957
+ roomTopic: {
958
+ fontSize: 14,
959
+ marginTop: 4
960
+ },
961
+ micBanner: {
962
+ flexDirection: 'row',
963
+ alignItems: 'center',
964
+ gap: 8,
965
+ marginHorizontal: 16,
966
+ marginBottom: 4,
967
+ paddingHorizontal: 12,
968
+ paddingVertical: 10,
969
+ borderRadius: 8,
970
+ borderWidth: 1
971
+ },
972
+ micBannerText: {
973
+ flex: 1,
974
+ fontSize: 13,
975
+ fontWeight: '500',
976
+ color: '#856404'
977
+ },
978
+ scrollContent: {
979
+ paddingBottom: 120
980
+ },
981
+ speakerGrid: {
982
+ flexDirection: 'row',
983
+ flexWrap: 'wrap',
984
+ paddingHorizontal: 12,
985
+ paddingTop: 16
986
+ },
987
+ speakerTile: {
988
+ width: '25%',
989
+ alignItems: 'center',
990
+ marginBottom: 20
991
+ },
992
+ muteIndicator: {
993
+ position: 'absolute',
994
+ bottom: 0,
995
+ right: 0,
996
+ width: 22,
997
+ height: 22,
998
+ borderRadius: 11,
999
+ alignItems: 'center',
1000
+ justifyContent: 'center',
1001
+ borderWidth: 2,
1002
+ borderColor: '#FFFFFF'
1003
+ },
1004
+ speakerName: {
1005
+ fontSize: 12,
1006
+ fontWeight: '500',
1007
+ marginTop: 6,
1008
+ textAlign: 'center',
1009
+ maxWidth: 80
1010
+ },
1011
+ roleBadge: {
1012
+ paddingHorizontal: 6,
1013
+ paddingVertical: 2,
1014
+ borderRadius: 4,
1015
+ marginTop: 2
1016
+ },
1017
+ roleBadgeText: {
1018
+ fontSize: 10,
1019
+ fontWeight: '600',
1020
+ color: '#FFFFFF'
1021
+ },
1022
+ listenerSection: {
1023
+ paddingHorizontal: 16,
1024
+ marginTop: 8
1025
+ },
1026
+ listenerHeader: {
1027
+ fontSize: 14,
1028
+ fontWeight: '600',
1029
+ marginBottom: 12
1030
+ },
1031
+ listenerGrid: {
1032
+ flexDirection: 'row',
1033
+ flexWrap: 'wrap',
1034
+ gap: 12
1035
+ },
1036
+ listenerItem: {
1037
+ marginBottom: 4
1038
+ },
1039
+ requestsSection: {
1040
+ paddingHorizontal: 16,
1041
+ marginTop: 24
1042
+ },
1043
+ requestsHeader: {
1044
+ fontSize: 14,
1045
+ fontWeight: '600',
1046
+ marginBottom: 12
1047
+ },
1048
+ requestRow: {
1049
+ flexDirection: 'row',
1050
+ alignItems: 'center',
1051
+ padding: 12,
1052
+ borderRadius: 12,
1053
+ borderWidth: 1,
1054
+ marginBottom: 8,
1055
+ gap: 10
1056
+ },
1057
+ requestName: {
1058
+ flex: 1,
1059
+ fontSize: 14,
1060
+ fontWeight: '500'
1061
+ },
1062
+ approveBtn: {
1063
+ width: 32,
1064
+ height: 32,
1065
+ borderRadius: 16,
1066
+ alignItems: 'center',
1067
+ justifyContent: 'center'
1068
+ },
1069
+ denyBtn: {
1070
+ width: 32,
1071
+ height: 32,
1072
+ borderRadius: 16,
1073
+ alignItems: 'center',
1074
+ justifyContent: 'center'
1075
+ },
1076
+ controlBar: {
1077
+ flexDirection: 'row',
1078
+ justifyContent: 'center',
1079
+ alignItems: 'flex-start',
1080
+ paddingTop: 12,
1081
+ paddingBottom: 12,
1082
+ paddingHorizontal: 16,
1083
+ borderTopWidth: 1,
1084
+ gap: 20
1085
+ },
1086
+ controlItem: {
1087
+ alignItems: 'center',
1088
+ gap: 4
1089
+ },
1090
+ controlCircle: {
1091
+ width: 52,
1092
+ height: 52,
1093
+ borderRadius: 26,
1094
+ alignItems: 'center',
1095
+ justifyContent: 'center'
1096
+ },
1097
+ leaveCircle: {
1098
+ width: 52,
1099
+ height: 52,
1100
+ borderRadius: 26,
1101
+ alignItems: 'center',
1102
+ justifyContent: 'center'
1103
+ },
1104
+ controlLabel: {
1105
+ fontSize: 11,
1106
+ fontWeight: '500'
1107
+ },
1108
+ streamCard: {
1109
+ marginHorizontal: 16,
1110
+ marginBottom: 4,
1111
+ padding: 10,
1112
+ borderRadius: 12,
1113
+ borderWidth: 1,
1114
+ gap: 8
1115
+ },
1116
+ streamCardRow: {
1117
+ flexDirection: 'row',
1118
+ alignItems: 'center',
1119
+ gap: 10
1120
+ },
1121
+ streamCardImage: {
1122
+ width: 44,
1123
+ height: 44,
1124
+ borderRadius: 8
1125
+ },
1126
+ streamCardIconBox: {
1127
+ width: 44,
1128
+ height: 44,
1129
+ borderRadius: 8,
1130
+ alignItems: 'center',
1131
+ justifyContent: 'center'
1132
+ },
1133
+ streamCardContent: {
1134
+ flex: 1,
1135
+ gap: 2
1136
+ },
1137
+ streamCardTitle: {
1138
+ fontSize: 14,
1139
+ fontWeight: '600'
1140
+ },
1141
+ streamCardDesc: {
1142
+ fontSize: 12
1143
+ },
1144
+ streamCardActions: {
1145
+ flexDirection: 'row',
1146
+ alignItems: 'center',
1147
+ gap: 2
1148
+ },
1149
+ streamCardAction: {
1150
+ padding: 4
1151
+ },
1152
+ streamProgress: {
1153
+ gap: 4
1154
+ },
1155
+ progressTrack: {
1156
+ height: 4,
1157
+ borderRadius: 2,
1158
+ overflow: 'hidden'
1159
+ },
1160
+ progressFill: {
1161
+ height: 4,
1162
+ borderRadius: 2
1163
+ },
1164
+ progressTime: {
1165
+ fontSize: 11,
1166
+ fontWeight: '500',
1167
+ textAlign: 'right'
1168
+ },
1169
+ settingsContent: {
1170
+ paddingHorizontal: 16,
1171
+ paddingTop: 16
1172
+ },
1173
+ settingsItem: {
1174
+ flexDirection: 'row',
1175
+ alignItems: 'center',
1176
+ gap: 14,
1177
+ paddingVertical: 14
1178
+ },
1179
+ settingsItemText: {
1180
+ flex: 1
1181
+ },
1182
+ settingsItemTitle: {
1183
+ fontSize: 16,
1184
+ fontWeight: '600'
1185
+ },
1186
+ settingsItemDesc: {
1187
+ fontSize: 13,
1188
+ marginTop: 2
1189
+ },
1190
+ recordingToggle: {
1191
+ paddingHorizontal: 14,
1192
+ paddingVertical: 6,
1193
+ borderRadius: 14
1194
+ }
1195
+ });
1196
+ //# sourceMappingURL=LiveRoomSheet.js.map