markdown-flow-ui 0.2.13 → 0.2.15

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 (475) hide show
  1. package/README.md +7 -0
  2. package/dist/_virtual/index.es3.js +5 -4
  3. package/dist/_virtual/index.es3.js.map +1 -1
  4. package/dist/_virtual/index.es4.js +4 -5
  5. package/dist/_virtual/index.es4.js.map +1 -1
  6. package/dist/_virtual/index3.cjs +1 -1
  7. package/dist/_virtual/index4.cjs +1 -1
  8. package/dist/assets/markdown-flow-ui.css +10 -1
  9. package/dist/components/ContentRender/CodeBlock.cjs +1 -1
  10. package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
  11. package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
  12. package/dist/components/ContentRender/CodeBlock.es.js +41 -38
  13. package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
  14. package/dist/components/ContentRender/ContentRender.cjs +2 -2
  15. package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
  16. package/dist/components/ContentRender/ContentRender.d.ts +9 -4
  17. package/dist/components/ContentRender/ContentRender.es.js +389 -298
  18. package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
  19. package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
  20. package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
  21. package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
  22. package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
  23. package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
  24. package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
  25. package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
  26. package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
  27. package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
  28. package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
  29. package/dist/components/ContentRender/SandboxApp.cjs +2 -2
  30. package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
  31. package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
  32. package/dist/components/ContentRender/SandboxApp.es.js +108 -103
  33. package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
  34. package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
  35. package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
  36. package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
  37. package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
  38. package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
  39. package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
  40. package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
  41. package/dist/components/ContentRender/index.cjs +1 -1
  42. package/dist/components/ContentRender/index.d.ts +11 -11
  43. package/dist/components/ContentRender/index.es.js +1 -2
  44. package/dist/components/ContentRender/index.es.js.map +1 -1
  45. package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
  46. package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
  47. package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
  48. package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
  49. package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
  50. package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
  51. package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
  52. package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
  53. package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
  54. package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
  55. package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
  56. package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
  57. package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
  58. package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
  59. package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
  60. package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
  61. package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
  62. package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
  63. package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
  64. package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
  65. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
  66. package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
  67. package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
  68. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
  69. package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
  70. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
  71. package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
  72. package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
  73. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
  74. package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
  75. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
  76. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
  77. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
  78. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
  79. package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
  80. package/dist/components/MarkdownFlow/index.cjs +1 -1
  81. package/dist/components/MarkdownFlow/index.d.ts +9 -6
  82. package/dist/components/MarkdownFlow/index.es.js +6 -6
  83. package/dist/components/MarkdownFlow/index.es.js.map +1 -1
  84. package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
  85. package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
  86. package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
  87. package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
  88. package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
  89. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
  90. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
  91. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
  92. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
  93. package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
  94. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
  95. package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
  96. package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
  97. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
  98. package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
  99. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
  100. package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
  101. package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
  102. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
  103. package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
  104. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
  105. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
  106. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
  107. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
  108. package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
  109. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
  110. package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
  111. package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
  112. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
  113. package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
  114. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
  115. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
  116. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
  117. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
  118. package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
  119. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
  120. package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
  121. package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
  122. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
  123. package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
  124. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
  125. package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
  126. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
  127. package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
  128. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
  129. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
  130. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
  131. package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
  132. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
  133. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
  134. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
  135. package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
  136. package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
  137. package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
  138. package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
  139. package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
  140. package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
  141. package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
  142. package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
  143. package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
  144. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
  145. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
  146. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
  147. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
  148. package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
  149. package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
  150. package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
  151. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
  152. package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
  153. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
  154. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
  155. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
  156. package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
  157. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
  158. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
  159. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
  160. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
  161. package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
  162. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
  163. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
  164. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
  165. package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
  166. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
  167. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
  168. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
  169. package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
  170. package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
  171. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
  172. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
  173. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
  174. package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
  175. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
  176. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
  177. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
  178. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
  179. package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
  180. package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
  181. package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
  182. package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
  183. package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
  184. package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
  185. package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
  186. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
  187. package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
  188. package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
  189. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
  190. package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
  191. package/dist/components/Slide/Player.cjs +1 -1
  192. package/dist/components/Slide/Player.cjs.map +1 -1
  193. package/dist/components/Slide/Player.d.ts +6 -6
  194. package/dist/components/Slide/Player.es.js +547 -541
  195. package/dist/components/Slide/Player.es.js.map +1 -1
  196. package/dist/components/Slide/Slide.cjs +1 -1
  197. package/dist/components/Slide/Slide.cjs.map +1 -1
  198. package/dist/components/Slide/Slide.d.ts +14 -12
  199. package/dist/components/Slide/Slide.es.js +745 -726
  200. package/dist/components/Slide/Slide.es.js.map +1 -1
  201. package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
  202. package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
  203. package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
  204. package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
  205. package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
  206. package/dist/components/Slide/diff-utils.d.ts +1 -1
  207. package/dist/components/Slide/index.d.ts +12 -12
  208. package/dist/components/Slide/locales/slide.json.cjs +2 -0
  209. package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
  210. package/dist/components/Slide/locales/slide.json.d.ts +205 -0
  211. package/dist/components/Slide/locales/slide.json.es.js +11 -0
  212. package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
  213. package/dist/components/Slide/slideI18n.cjs +1 -1
  214. package/dist/components/Slide/slideI18n.cjs.map +1 -1
  215. package/dist/components/Slide/slideI18n.d.ts +6 -3
  216. package/dist/components/Slide/slideI18n.es.js +10 -155
  217. package/dist/components/Slide/slideI18n.es.js.map +1 -1
  218. package/dist/components/Slide/useSlide.d.ts +1 -1
  219. package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
  220. package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
  221. package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
  222. package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
  223. package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
  224. package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
  225. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
  226. package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
  227. package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
  228. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
  229. package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
  230. package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
  231. package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
  232. package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
  233. package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
  234. package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
  235. package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
  236. package/dist/components/index.d.ts +22 -18
  237. package/dist/components/ui/button.cjs +1 -1
  238. package/dist/components/ui/button.cjs.map +1 -1
  239. package/dist/components/ui/button.es.js +12 -13
  240. package/dist/components/ui/button.es.js.map +1 -1
  241. package/dist/components/ui/checkbox.cjs +1 -1
  242. package/dist/components/ui/checkbox.cjs.map +1 -1
  243. package/dist/components/ui/checkbox.es.js +35 -35
  244. package/dist/components/ui/checkbox.es.js.map +1 -1
  245. package/dist/components/ui/dialog.cjs +1 -1
  246. package/dist/components/ui/dialog.cjs.map +1 -1
  247. package/dist/components/ui/dialog.d.ts +5 -1
  248. package/dist/components/ui/dialog.es.js +37 -37
  249. package/dist/components/ui/dialog.es.js.map +1 -1
  250. package/dist/components/ui/input.cjs +1 -1
  251. package/dist/components/ui/input.cjs.map +1 -1
  252. package/dist/components/ui/input.es.js +4 -4
  253. package/dist/components/ui/input.es.js.map +1 -1
  254. package/dist/components/ui/inputGroup/button.cjs +1 -1
  255. package/dist/components/ui/inputGroup/button.cjs.map +1 -1
  256. package/dist/components/ui/inputGroup/button.es.js +9 -10
  257. package/dist/components/ui/inputGroup/button.es.js.map +1 -1
  258. package/dist/components/ui/inputGroup/input-group.cjs +1 -1
  259. package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
  260. package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
  261. package/dist/components/ui/inputGroup/input-group.es.js +10 -10
  262. package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
  263. package/dist/components/ui/inputGroup/textarea.cjs +1 -1
  264. package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
  265. package/dist/components/ui/inputGroup/textarea.es.js +3 -3
  266. package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
  267. package/dist/components/ui/loading-overlay-card.cjs +2 -2
  268. package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
  269. package/dist/components/ui/loading-overlay-card.es.js +11 -11
  270. package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
  271. package/dist/components/ui/popover.cjs +1 -1
  272. package/dist/components/ui/popover.cjs.map +1 -1
  273. package/dist/components/ui/popover.es.js +6 -6
  274. package/dist/components/ui/popover.es.js.map +1 -1
  275. package/dist/components/ui/tooltip.cjs +1 -1
  276. package/dist/components/ui/tooltip.cjs.map +1 -1
  277. package/dist/components/ui/tooltip.es.js +16 -16
  278. package/dist/components/ui/tooltip.es.js.map +1 -1
  279. package/dist/editor.d.ts +2 -2
  280. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  281. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  282. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  283. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  284. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  285. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  286. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  287. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  288. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  289. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  290. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  291. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  292. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  293. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  294. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  295. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  296. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  297. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  298. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  299. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  300. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  301. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  302. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  303. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  304. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  305. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  306. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  307. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  308. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  309. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  310. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  311. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  312. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  313. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  314. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  315. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  316. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  317. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  318. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  319. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  320. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  321. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  322. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  323. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  324. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  325. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  326. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  327. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  328. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  329. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  330. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  331. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  332. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  333. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  334. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  335. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  336. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  337. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  338. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  339. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  340. package/dist/index.cjs +1 -1
  341. package/dist/index.d.ts +2 -2
  342. package/dist/index.es.js +22 -19
  343. package/dist/index.es.js.map +1 -1
  344. package/dist/lib/locale.cjs +1 -1
  345. package/dist/lib/locale.cjs.map +1 -1
  346. package/dist/lib/locale.d.ts +5 -1
  347. package/dist/lib/locale.es.js +26 -13
  348. package/dist/lib/locale.es.js.map +1 -1
  349. package/dist/lib/locale.test.d.ts +1 -0
  350. package/dist/lib/useDetachedLanguage.cjs +2 -0
  351. package/dist/lib/useDetachedLanguage.cjs.map +1 -0
  352. package/dist/lib/useDetachedLanguage.d.ts +3 -0
  353. package/dist/lib/useDetachedLanguage.es.js +25 -0
  354. package/dist/lib/useDetachedLanguage.es.js.map +1 -0
  355. package/dist/lib/useResolvedDirection.cjs +2 -0
  356. package/dist/lib/useResolvedDirection.cjs.map +1 -0
  357. package/dist/lib/useResolvedDirection.d.ts +6 -0
  358. package/dist/lib/useResolvedDirection.es.js +37 -0
  359. package/dist/lib/useResolvedDirection.es.js.map +1 -0
  360. package/dist/markdown-flow-ui-lib.css +1 -1
  361. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
  362. package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
  363. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
  364. package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
  365. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
  366. package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
  367. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
  368. package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
  369. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
  370. package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
  371. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
  372. package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
  373. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
  374. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
  375. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
  376. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
  377. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
  378. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
  379. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
  380. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
  381. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
  382. package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
  383. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
  384. package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
  385. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
  386. package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
  387. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
  388. package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
  389. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
  390. package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
  391. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
  392. package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
  393. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
  394. package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
  395. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
  396. package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
  397. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
  398. package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
  399. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
  400. package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
  401. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
  402. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
  403. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
  404. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
  405. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
  406. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
  407. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
  408. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
  409. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
  410. package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
  411. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
  412. package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
  413. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
  414. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
  415. package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
  416. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
  417. package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
  418. package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
  419. package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
  420. package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
  421. package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
  422. package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
  423. package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
  424. package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
  425. package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
  426. package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
  427. package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
  428. package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
  429. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
  430. package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
  431. package/dist/renderer.cjs +1 -1
  432. package/dist/renderer.d.ts +18 -17
  433. package/dist/renderer.es.js +20 -17
  434. package/dist/renderer.es.js.map +1 -1
  435. package/dist/scroll.cjs +2 -0
  436. package/dist/scroll.cjs.map +1 -0
  437. package/dist/scroll.d.ts +6 -0
  438. package/dist/scroll.es.js +9 -0
  439. package/dist/scroll.es.js.map +1 -0
  440. package/dist/slide.d.ts +3 -3
  441. package/package.json +13 -2
  442. package/dist/_virtual/jsx-runtime.cjs +0 -2
  443. package/dist/_virtual/jsx-runtime.cjs.map +0 -1
  444. package/dist/_virtual/jsx-runtime.es.js +0 -6
  445. package/dist/_virtual/jsx-runtime.es.js.map +0 -1
  446. package/dist/_virtual/jsx-runtime.es2.js +0 -5
  447. package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
  448. package/dist/_virtual/jsx-runtime2.cjs +0 -2
  449. package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
  450. package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
  451. package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
  452. package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
  453. package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
  454. package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
  455. package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
  456. package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
  457. package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
  458. package/dist/lib/localeTextMap.cjs +0 -2
  459. package/dist/lib/localeTextMap.cjs.map +0 -1
  460. package/dist/lib/localeTextMap.es.js +0 -5
  461. package/dist/lib/localeTextMap.es.js.map +0 -1
  462. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
  463. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
  464. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
  465. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
  466. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
  467. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
  468. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
  469. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
  470. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
  471. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
  472. package/dist/node_modules/react/jsx-runtime.cjs +0 -2
  473. package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
  474. package/dist/node_modules/react/jsx-runtime.es.js +0 -11
  475. package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
@@ -1,245 +1,253 @@
1
- import { j as a } from "../../_virtual/jsx-runtime.es.js";
2
- import { memo as Cr, useMemo as d, useId as Pr, useRef as m, useCallback as r, useState as p, useEffect as c, useLayoutEffect as Rr } from "react";
3
- import { isSandboxInteractionMessage as _r } from "../../lib/sandboxInteraction.es.js";
4
- import { cn as ve } from "../../lib/utils.es.js";
5
- import Or from "../ui/loading-overlay-card.es.js";
6
- import Mr from "../ContentRender/ContentRender.es.js";
7
- import bn from "../ContentRender/IframeSandbox.es.js";
1
+ import { jsxs as Ue, jsx as u, Fragment as kr } from "react/jsx-runtime";
2
+ import { memo as Fr, useMemo as f, useId as Lr, useRef as m, useCallback as r, useState as p, useEffect as s, useLayoutEffect as Dr } from "react";
3
+ import { isSandboxInteractionMessage as Nr } from "../../lib/sandboxInteraction.es.js";
4
+ import { cn as Ie } from "../../lib/utils.es.js";
5
+ import { useResolvedDirection as Br } from "../../lib/useResolvedDirection.es.js";
6
+ import { getMarkdownFlowDirection as Vr, getMarkdownFlowLanguage as qr } from "../../lib/locale.es.js";
7
+ import Kr from "../ui/loading-overlay-card.es.js";
8
+ import Ur from "../ContentRender/ContentRender.es.js";
9
+ import xn from "../ContentRender/IframeSandbox.es.js";
8
10
  import "../ui/inputGroup/input-group.es.js";
9
- import "../ContentRender/contentRenderI18n.es.js";
10
- import { isMobileDevice as kr, isLandscapeViewport as xn, subscribeMobileDeviceChange as Fr } from "../../lib/mobileDevice.es.js";
11
- import Lr from "./Player.es.js";
12
- import Nr from "./MarkdownSlideScaling.es.js";
13
- import Br from "./SubtitleOverlay.es.js";
14
- import Dr from "./useSlide.es.js";
15
- import Vr from "./useWakePlayerFromIframe.es.js";
16
- import { PlayerKeyboardShortcutContext as jr } from "./utils/playerKeyboardShortcutContext.es.js";
17
- import { activatePlayerKeyboardShortcutOwner as qr } from "./utils/playerKeyboardShortcuts.es.js";
18
- import { DEFAULT_MOBILE_VIEW_MODE as ot, resolveMobileViewModeState as Kr } from "./utils/mobileScreenMode.es.js";
19
- import { shouldRenderInteractionOverlay as Ur, clampInteractionOverlayDragOffset as An, shouldPresentInteractionOverlay as Hr } from "./utils/interactionPlayback.es.js";
20
- import { resolveMarkdownScalingMode as Yr } from "./utils/markdownScaling.es.js";
21
- import { shouldWakePlayerControlsAfterNavigation as Rt } from "./utils/playerNavigationContext.es.js";
22
- import { shouldAutoAdvanceIntoAppendedMarker as Gr } from "./utils/appendedMarkerAdvance.es.js";
23
- import { resolvePendingStepAudioKey as $r, hasUnplayedStepAudio as zr } from "./utils/stepAudioProgress.es.js";
24
- import { getPlaybackSequenceTransition as Xr, shouldStartDefaultAudioSequence as Jr } from "./utils/playbackSequence.es.js";
25
- import { hasResolvedInteractionElement as Wr, canReachSubtitleJumpTarget as wn } from "./utils/subtitleJumpNavigation.es.js";
26
- import { resolvePlayerCustomActionElement as Qr, getPlayerCustomActionCount as Zr } from "./utils/playerCustomActions.es.js";
27
- import { createPlaybackTimeStore as eo } from "./utils/playbackTimeStore.es.js";
28
- import { resolveSlideInteractionState as to } from "./utils/interactionResolution.es.js";
29
- import { shouldUseAutoAdvanceToggle as no } from "./utils/playerToggleMode.es.js";
30
- import { DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS as ro, areImageOnlyStepIframeVisualsReady as oo } from "./utils/imageOnlyStepVisualReady.es.js";
31
- import { resolveSilentStepAutoAdvanceBehavior as io } from "./utils/silentStepAutoAdvance.es.js";
32
- import { resolveSlidePlayerVisibility as lo } from "./utils/playerVisibility.es.js";
33
- import { getSlideLocaleTexts as ao, DEFAULT_SLIDE_BUFFERING_TEXTS as so } from "./slideI18n.es.js";
11
+ import { isMobileDevice as Hr, isLandscapeViewport as En, subscribeMobileDeviceChange as Yr } from "../../lib/mobileDevice.es.js";
12
+ import Gr from "./Player.es.js";
13
+ import $r from "./MarkdownSlideScaling.es.js";
14
+ import zr from "./SubtitleOverlay.es.js";
15
+ import Xr from "./useSlide.es.js";
16
+ import Jr from "./useWakePlayerFromIframe.es.js";
17
+ import { PlayerKeyboardShortcutContext as Wr } from "./utils/playerKeyboardShortcutContext.es.js";
18
+ import { activatePlayerKeyboardShortcutOwner as jr } from "./utils/playerKeyboardShortcuts.es.js";
19
+ import { DEFAULT_MOBILE_VIEW_MODE as ut, resolveMobileViewModeState as Qr } from "./utils/mobileScreenMode.es.js";
20
+ import { shouldRenderInteractionOverlay as Zr, clampInteractionOverlayDragOffset as Tn, shouldPresentInteractionOverlay as eo } from "./utils/interactionPlayback.es.js";
21
+ import { resolveMarkdownScalingMode as to } from "./utils/markdownScaling.es.js";
22
+ import { shouldWakePlayerControlsAfterNavigation as Ft } from "./utils/playerNavigationContext.es.js";
23
+ import { shouldAutoAdvanceIntoAppendedMarker as no } from "./utils/appendedMarkerAdvance.es.js";
24
+ import { resolvePendingStepAudioKey as ro, hasUnplayedStepAudio as oo } from "./utils/stepAudioProgress.es.js";
25
+ import { getPlaybackSequenceTransition as io, shouldStartDefaultAudioSequence as lo } from "./utils/playbackSequence.es.js";
26
+ import { hasResolvedInteractionElement as ao, canReachSubtitleJumpTarget as Cn } from "./utils/subtitleJumpNavigation.es.js";
27
+ import { resolvePlayerCustomActionElement as so, getPlayerCustomActionCount as co } from "./utils/playerCustomActions.es.js";
28
+ import { createPlaybackTimeStore as uo } from "./utils/playbackTimeStore.es.js";
29
+ import { resolveSlideInteractionState as fo } from "./utils/interactionResolution.es.js";
30
+ import { shouldUseAutoAdvanceToggle as mo } from "./utils/playerToggleMode.es.js";
31
+ import { DEFAULT_IMAGE_ONLY_VISUAL_READY_TIMEOUT_MS as po, areImageOnlyStepIframeVisualsReady as yo } from "./utils/imageOnlyStepVisualReady.es.js";
32
+ import { resolveSilentStepAutoAdvanceBehavior as ho } from "./utils/silentStepAutoAdvance.es.js";
33
+ import { resolveSlidePlayerVisibility as go } from "./utils/playerVisibility.es.js";
34
+ import { getSlideLocaleTexts as vo, DEFAULT_SLIDE_BUFFERING_TEXTS as So } from "./slideI18n.es.js";
34
35
  /* empty css */
35
- import _t from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
36
- import co from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
37
- const uo = 2e3, fo = 300, mo = 160, po = 16, En = 3e3, it = {
36
+ import Lt from "../../node_modules/lucide-react/dist/esm/icons/grip-horizontal.es.js";
37
+ import Io from "../../node_modules/lucide-react/dist/esm/icons/chevron-left.es.js";
38
+ const bo = 2e3, Ao = 300, wo = 160, xo = 16, Pn = 3e3, dt = {
38
39
  x: 0,
39
40
  y: 0
40
- }, Mt = 0.5, yo = typeof window > "u" ? c : Rr, ho = [
41
+ }, Nt = 0.5, Eo = typeof window > "u" ? s : Dr, To = [
41
42
  "button",
42
43
  "input",
43
44
  "textarea",
44
45
  '[contenteditable=""]',
45
46
  '[contenteditable="true"]',
46
47
  '[contenteditable="plaintext-only"]'
47
- ].join(", "), kt = "waitingForAudio", go = ({
48
- x: u,
49
- y: f
48
+ ].join(", "), Bt = "waitingForAudio", Co = ({
49
+ x: c,
50
+ y: d
50
51
  }) => ({
51
- x: Number(u.toFixed(2)),
52
- y: Number(f.toFixed(2))
53
- }), Tn = (u) => Math.abs(u) >= Mt, Cn = (u, f) => Math.abs(u.x - f.x) < Mt && Math.abs(u.y - f.y) < Mt, vo = (u, f) => typeof u == "string" ? u : u[f] ?? u[kt] ?? so[f], So = (u, f) => typeof u == "string" ? u : {
54
- ...f,
55
- ...u
56
- }, Io = (u, f) => f ? u !== "loadingAudio" : !1, Pn = Cr(
52
+ x: Number(c.toFixed(2)),
53
+ y: Number(d.toFixed(2))
54
+ }), Rn = (c) => Math.abs(c) >= Nt, _n = (c, d) => Math.abs(c.x - d.x) < Nt && Math.abs(c.y - d.y) < Nt, Po = (c, d) => typeof c == "string" ? c : c[d] ?? c[Bt] ?? So[d], Ro = (c, d) => typeof c == "string" ? c : {
55
+ ...d,
56
+ ...c
57
+ }, _o = (c, d) => d ? c !== "loadingAudio" : !1, On = Fr(
57
58
  ({
58
- content: u,
59
- title: f,
60
- locale: H,
61
- defaultButtonText: Se,
62
- defaultInputText: Y,
63
- defaultSelectedValues: G,
64
- confirmButtonText: ne,
65
- copyButtonText: re,
66
- copiedButtonText: Ve,
67
- onSend: lt,
68
- onDragHandlePointerCancel: oe,
69
- onDragHandlePointerDown: at,
70
- onDragHandlePointerMove: Ie,
71
- onDragHandlePointerUp: je,
72
- readonly: qe = !1
73
- }) => /* @__PURE__ */ a.jsxs("div", { className: "slide-player__interaction-card", children: [
74
- /* @__PURE__ */ a.jsx(
59
+ content: c,
60
+ title: d,
61
+ dragHandleAriaLabel: G,
62
+ locale: be,
63
+ dir: $,
64
+ lang: z,
65
+ defaultButtonText: oe,
66
+ defaultInputText: ie,
67
+ defaultSelectedValues: He,
68
+ confirmButtonText: ft,
69
+ copyButtonText: X,
70
+ copiedButtonText: mt,
71
+ onSend: Ae,
72
+ onDragHandlePointerCancel: Ye,
73
+ onDragHandlePointerDown: Ge,
74
+ onDragHandlePointerMove: $e,
75
+ onDragHandlePointerUp: we,
76
+ readonly: ze = !1
77
+ }) => /* @__PURE__ */ Ue("div", { className: "slide-player__interaction-card", children: [
78
+ /* @__PURE__ */ u(
75
79
  "button",
76
80
  {
77
81
  type: "button",
78
82
  className: "slide-player__interaction-drag-handle",
79
- "aria-label": "Move interaction",
80
- onPointerCancel: oe,
81
- onPointerDown: at,
82
- onPointerMove: Ie,
83
- onPointerUp: je,
84
- children: /* @__PURE__ */ a.jsxs("span", { className: "slide-player__interaction-drag-handle-icon", children: [
85
- /* @__PURE__ */ a.jsx(_t, { "aria-hidden": "true" }),
86
- /* @__PURE__ */ a.jsx(_t, { "aria-hidden": "true" }),
87
- /* @__PURE__ */ a.jsx(_t, { "aria-hidden": "true" })
83
+ "aria-label": G,
84
+ onPointerCancel: Ye,
85
+ onPointerDown: Ge,
86
+ onPointerMove: $e,
87
+ onPointerUp: we,
88
+ children: /* @__PURE__ */ Ue("span", { className: "slide-player__interaction-drag-handle-icon", children: [
89
+ /* @__PURE__ */ u(Lt, { "aria-hidden": "true" }),
90
+ /* @__PURE__ */ u(Lt, { "aria-hidden": "true" }),
91
+ /* @__PURE__ */ u(Lt, { "aria-hidden": "true" })
88
92
  ] })
89
93
  }
90
94
  ),
91
- /* @__PURE__ */ a.jsx("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ a.jsx("p", { className: "slide-player__interaction-title", children: f }) }),
92
- /* @__PURE__ */ a.jsx("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ a.jsx(
93
- Mr,
95
+ /* @__PURE__ */ u("div", { className: "slide-player__interaction-header", children: /* @__PURE__ */ u("p", { className: "slide-player__interaction-title", children: d }) }),
96
+ /* @__PURE__ */ u("div", { className: "slide-player__interaction-body", children: /* @__PURE__ */ u(
97
+ Ur,
94
98
  {
95
- content: u,
96
- locale: H,
97
- defaultButtonText: Se,
98
- defaultInputText: Y,
99
- defaultSelectedValues: G,
100
- confirmButtonText: ne,
101
- copyButtonText: re,
102
- copiedButtonText: Ve,
103
- onSend: lt,
104
- readonly: qe,
99
+ content: c,
100
+ locale: be,
101
+ dir: $,
102
+ lang: z,
103
+ defaultButtonText: oe,
104
+ defaultInputText: ie,
105
+ defaultSelectedValues: He,
106
+ confirmButtonText: ft,
107
+ copyButtonText: X,
108
+ copiedButtonText: mt,
109
+ onSend: Ae,
110
+ readonly: ze,
105
111
  sandboxMode: "content"
106
112
  }
107
113
  ) })
108
114
  ] })
109
115
  );
110
- Pn.displayName = "InteractionOverlayCard";
111
- const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
112
- const Y = f[Se];
113
- return H.sequence_number === Y?.sequence_number && H.type === Y?.type && H.content === Y?.content;
114
- }), Ot = (u) => u instanceof HTMLElement && !!u.closest(ho), li = ({
115
- elementList: u = [],
116
- locale: f,
117
- playerEnabled: H,
118
- playerControlsVisibility: Se,
119
- playerClassName: Y,
120
- fullscreenHeader: G,
121
- playerCustomActions: ne,
122
- playerCustomActionPauseOnActive: re = !0,
123
- bufferingText: Ve,
124
- interactionTitle: lt,
125
- interactionTexts: oe,
126
- playerTexts: at,
127
- playerAutoHideDelay: Ie = 3e3,
128
- markerAutoAdvanceDelay: je = uo,
129
- interactionDefaultValueOptions: qe,
130
- onSend: Ft,
131
- onPlayerVisibilityChange: st,
132
- onMobileViewModeChange: Lt,
133
- onStepChange: Nt,
134
- enableKeyboardShortcuts: ie = !0,
135
- enableIframeScaling: Rn = !0,
136
- enableMarkdownScaling: _n = !0,
116
+ On.displayName = "InteractionOverlayCard";
117
+ const Oo = (c, d) => c.length === d.length && c.every((G, be) => {
118
+ const $ = d[be];
119
+ return G.sequence_number === $?.sequence_number && G.type === $?.type && G.content === $?.content;
120
+ }), Dt = (c) => c instanceof HTMLElement && !!c.closest(To), gi = ({
121
+ elementList: c = [],
122
+ locale: d,
123
+ playerEnabled: G,
124
+ playerControlsVisibility: be,
125
+ playerClassName: $,
126
+ fullscreenHeader: z,
127
+ playerCustomActions: oe,
128
+ playerCustomActionPauseOnActive: ie = !0,
129
+ bufferingText: He,
130
+ interactionTitle: ft,
131
+ interactionTexts: X,
132
+ playerTexts: mt,
133
+ playerAutoHideDelay: Ae = 3e3,
134
+ markerAutoAdvanceDelay: Ye = bo,
135
+ interactionDefaultValueOptions: Ge,
136
+ onSend: $e,
137
+ onPlayerVisibilityChange: we,
138
+ onMobileViewModeChange: ze,
139
+ onStepChange: Vt,
140
+ enableKeyboardShortcuts: le = !0,
141
+ enableIframeScaling: Mn = !0,
142
+ enableMarkdownScaling: kn = !0,
137
143
  disableLoadingOverlay: k = !1,
138
- className: On,
139
- onPointerDown: Bt,
140
- onFocusCapture: Dt,
141
- ...Mn
144
+ className: Fn,
145
+ dir: Ln,
146
+ lang: Dn,
147
+ onPointerDown: qt,
148
+ onFocusCapture: Kt,
149
+ ...Nn
142
150
  }) => {
143
- const $ = d(() => ao(f), [f]), kn = d(
144
- () => So(
145
- Ve,
146
- $.bufferingText
151
+ const J = Ln ?? Vr(d), xe = Dn ?? qr(d), q = f(() => vo(d), [d]), Bn = f(
152
+ () => Ro(
153
+ He,
154
+ q.bufferingText
147
155
  ),
148
- [Ve, $.bufferingText]
156
+ [He, q.bufferingText]
149
157
  ), {
150
- playerEnabled: Fn,
151
- playerControlsVisibility: j
152
- } = lo({
153
- playerEnabled: H,
154
- playerControlsVisibility: Se
155
- }), Ke = Pr(), be = m(null), ct = m(null), Ue = m(null), Vt = m(null), le = m(null), He = m(!1), xe = m(null), Ye = m(null), z = m(null), Ae = m(null), we = m(null), ae = m(null), Ee = m(null), jt = m([]), Te = m(!1), X = m(null), Ce = m(null), qt = m(0), Kt = m(null), Ut = m({
158
+ playerEnabled: Vn,
159
+ playerControlsVisibility: K
160
+ } = go({
161
+ playerEnabled: G,
162
+ playerControlsVisibility: be
163
+ }), Xe = Lr(), ae = m(null), { resolvedDirection: qn } = Br(ae, J), pt = m(null), Je = m(null), Ut = m(null), se = m(null), We = m(!1), Ee = m(null), je = m(null), W = m(null), Te = m(null), Ce = m(null), ce = m(null), Pe = m(null), Ht = m([]), Re = m(!1), j = m(null), _e = m(null), Yt = m(0), Gt = m(null), $t = m({
156
164
  markerCount: 0,
157
165
  currentIndex: -1,
158
166
  canGoNext: !1
159
- }), ut = m(!1), {
167
+ }), yt = m(!1), {
160
168
  currentElementList: R,
161
- stepElementLists: Ht,
169
+ stepElementLists: zt,
162
170
  slideElementList: P,
163
- currentIndex: s,
171
+ currentIndex: a,
164
172
  audioList: I,
165
- audioSlideIndexes: Ge,
166
- currentAudioSequenceIndexes: $e,
167
- currentStepHasSpeakableElement: x,
173
+ audioSlideIndexes: Qe,
174
+ currentAudioSequenceIndexes: Ze,
175
+ currentStepHasSpeakableElement: A,
168
176
  currentInteractionElement: y,
169
- canGoPrev: Ln,
177
+ canGoPrev: Kn,
170
178
  canGoNext: _,
171
- handlePrev: Yt,
179
+ handlePrev: Xt,
172
180
  handleNext: F,
173
- handleGoTo: Gt
174
- } = Dr(u), Pe = d(() => {
175
- if (!(s < 0))
176
- return P[s];
177
- }, [s, P]), se = d(
181
+ handleGoTo: Jt
182
+ } = Xr(c), Oe = f(() => {
183
+ if (!(a < 0))
184
+ return P[a];
185
+ }, [a, P]), ue = f(
178
186
  () => R.map(
179
187
  (e, t) => `${e.sequence_number ?? `${e.type}-${t}`}:${String(e.is_new ?? "")}`
180
188
  ),
181
189
  [R]
182
- ), Nn = P.filter(
190
+ ), Un = P.filter(
183
191
  (e) => e.is_renderable !== !1
184
- ).length === 1, g = Fn && (P.length > 0 || I.length > 0 || !!y), Bn = d(
192
+ ).length === 1, g = Vn && (P.length > 0 || I.length > 0 || !!y), Hn = f(
185
193
  () => ({
186
- enabled: ie,
187
- ownerId: Ke
194
+ enabled: le,
195
+ ownerId: Xe
188
196
  }),
189
- [ie, Ke]
190
- ), q = r(() => {
191
- !ie || !g || qr(Ke);
192
- }, [ie, Ke, g]), O = d(
193
- () => $e.map((e) => I[e]?.audioKey).filter((e) => !!e),
194
- [I, $e]
195
- ), [Dn, Re] = p(!0), [ze, ce] = p(!1), [dt, $t] = p(!0), [_e, zt] = p(!0), [w, K] = p(null), [Vn, Xt] = p(null), [jn, A] = p(!1), [qn, ft] = p(kt), [M, Xe] = p(!1), Je = m(/* @__PURE__ */ new Set()), [Kn, We] = p(!1), [Jt, Un] = p(!0), [mt, pt] = p(!1), [h, yt] = p(), [ue, Qe] = p(!1), [Wt, Ze] = p(!1), [E, ht] = p(
196
- it
197
- ), [gt, vt] = p(!1), [
198
- Hn,
199
- Oe
200
- ] = p(0), [Qt, Yn] = p(!1), D = d(() => kr(), []), [et, St] = p(
201
- ot
202
- ), [Zt, It] = p(!1), [Gn, en] = p(
203
- () => D ? xn() : !1
204
- ), de = d(() => eo(), []), {
205
- effectiveMobileViewMode: J,
206
- isImmersiveMobileFullscreen: fe,
207
- isNativeMobileFullscreen: tn,
208
- shouldRotateFullscreenViewport: $n
209
- } = d(
210
- () => Kr({
211
- hasManualMobileViewMode: Zt,
212
- isMobileDevice: D,
213
- mobileViewMode: et
197
+ [le, Xe]
198
+ ), U = r(() => {
199
+ !le || !g || jr(Xe);
200
+ }, [le, Xe, g]), O = f(
201
+ () => Ze.map((e) => I[e]?.audioKey).filter((e) => !!e),
202
+ [I, Ze]
203
+ ), [Yn, Me] = p(!0), [et, de] = p(!1), [ht, Wt] = p(!0), [ke, jt] = p(!0), [x, H] = p(null), [Gn, Qt] = p(null), [$n, w] = p(!1), [zn, gt] = p(Bt), [M, tt] = p(!1), nt = m(/* @__PURE__ */ new Set()), [Xn, rt] = p(!1), [Zt, Jn] = p(!0), [vt, St] = p(!1), [h, It] = p(), [fe, ot] = p(!1), [en, it] = p(!1), [E, bt] = p(
204
+ dt
205
+ ), [At, wt] = p(!1), [
206
+ Wn,
207
+ Fe
208
+ ] = p(0), [tn, jn] = p(!1), B = f(() => Hr(), []), [lt, xt] = p(
209
+ ut
210
+ ), [nn, Et] = p(!1), [Qn, rn] = p(
211
+ () => B ? En() : !1
212
+ ), me = f(() => uo(), []), {
213
+ effectiveMobileViewMode: Q,
214
+ isImmersiveMobileFullscreen: pe,
215
+ isNativeMobileFullscreen: on,
216
+ shouldRotateFullscreenViewport: Zn
217
+ } = f(
218
+ () => Qr({
219
+ hasManualMobileViewMode: nn,
220
+ isMobileDevice: B,
221
+ mobileViewMode: lt
214
222
  }),
215
223
  [
216
- Zt,
217
- D,
218
- Gn,
219
- et
224
+ nn,
225
+ B,
226
+ Qn,
227
+ lt
220
228
  ]
221
- ), nn = m(J), T = g && j !== "hidden" && (j === "visible" || Dn), zn = fe && T, Xn = fe && T, Jn = fe || tn, rn = Qt && !D, Wn = r(
229
+ ), ln = m(Q), T = g && K !== "hidden" && (K === "visible" || Yn), er = pe && T, tr = pe && T, nr = pe || on, an = tn && !B, rr = r(
222
230
  (e) => {
223
- It(!0), St(e);
231
+ Et(!0), xt(e);
224
232
  },
225
233
  []
226
- ), on = r(() => {
227
- It(!1), St(ot);
228
- }, []), Qn = r(() => {
229
- on(), G?.onBack?.();
230
- }, [G, on]), ln = r((e) => {
231
- pt(e);
232
- }, []), an = r(() => {
233
- pt((e) => !e);
234
- }, []), W = r(() => {
235
- ht(
236
- (e) => e.x === it.x && e.y === it.y ? e : it
237
- ), vt(!1), Ee.current = null, ae.current = null;
238
- }, []), { mountedStepStates: Zn, currentMountedStateIndex: er } = d(() => {
234
+ ), sn = r(() => {
235
+ Et(!1), xt(ut);
236
+ }, []), or = r(() => {
237
+ sn(), z?.onBack?.();
238
+ }, [z, sn]), cn = r((e) => {
239
+ St(e);
240
+ }, []), un = r(() => {
241
+ St((e) => !e);
242
+ }, []), Z = r(() => {
243
+ bt(
244
+ (e) => e.x === dt.x && e.y === dt.y ? e : dt
245
+ ), wt(!1), Pe.current = null, ce.current = null;
246
+ }, []), { mountedStepStates: ir, currentMountedStateIndex: lr } = f(() => {
239
247
  const e = [], t = /* @__PURE__ */ new Map();
240
- return Ht.forEach((n, i) => {
248
+ return zt.forEach((n, i) => {
241
249
  const l = e.findIndex(
242
- (o) => bo(
250
+ (o) => Oo(
243
251
  o.elementList,
244
252
  n
245
253
  )
@@ -254,53 +262,53 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
254
262
  }), t.set(i, e.length - 1);
255
263
  }), {
256
264
  mountedStepStates: e,
257
- currentMountedStateIndex: s >= 0 ? t.get(s) ?? -1 : -1
265
+ currentMountedStateIndex: a >= 0 ? t.get(a) ?? -1 : -1
258
266
  };
259
- }, [s, Ht]), sn = d(() => String(s), [s]), C = d(() => w ? I.findIndex(
260
- (e) => (e.audioKey ?? "") === w
261
- ) : -1, [I, w]), bt = d(
267
+ }, [a, zt]), dn = f(() => String(a), [a]), C = f(() => x ? I.findIndex(
268
+ (e) => (e.audioKey ?? "") === x
269
+ ) : -1, [I, x]), Tt = f(
262
270
  () => C >= 0 ? I[C] : void 0,
263
271
  [I, C]
264
- ), tr = bt?.element?.subtitle_cues ?? [], tt = d(
272
+ ), ar = Tt?.element?.subtitle_cues ?? [], at = f(
265
273
  () => O[0] ?? "none",
266
274
  [O]
267
- ), xt = d(
275
+ ), Ct = f(
268
276
  () => ({
269
- currentElement: Qr({
277
+ currentElement: so({
270
278
  currentAudioIndex: C,
271
- currentAudioSequenceIndexes: $e,
279
+ currentAudioSequenceIndexes: Ze,
272
280
  audioList: I,
273
281
  currentInteractionElement: h,
274
- currentStepElement: Pe
282
+ currentStepElement: Oe
275
283
  }),
276
- currentIndex: s,
277
- currentStepElement: Pe,
278
- isActive: mt,
279
- setActive: ln,
280
- toggleActive: an
284
+ currentIndex: a,
285
+ currentStepElement: Oe,
286
+ isActive: vt,
287
+ setActive: cn,
288
+ toggleActive: un
281
289
  }),
282
290
  [
283
291
  h,
284
292
  I,
285
293
  C,
286
- $e,
287
- s,
288
- Pe,
289
- mt,
290
- ln,
291
- an
294
+ Ze,
295
+ a,
296
+ Oe,
297
+ vt,
298
+ cn,
299
+ un
292
300
  ]
293
- ), At = d(
294
- () => Zr(
295
- ne,
296
- xt
301
+ ), Pt = f(
302
+ () => co(
303
+ oe,
304
+ Ct
297
305
  ),
298
- [xt, ne]
299
- ), nr = d(
306
+ [Ct, oe]
307
+ ), sr = f(
300
308
  () => ({
301
- "--slide-player-custom-action-count": String(At),
309
+ "--slide-player-custom-action-count": String(Pt),
302
310
  "--slide-player-mobile-control-count": String(
303
- At + 4
311
+ Pt + 4
304
312
  ),
305
313
  "--slide-interaction-drag-x": `${E.x}px`,
306
314
  "--slide-interaction-drag-y": `${E.y}px`
@@ -308,165 +316,165 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
308
316
  [
309
317
  E.x,
310
318
  E.y,
311
- At
319
+ Pt
312
320
  ]
313
- ), cn = O.length > 0, un = d(() => y ? `${y.sequence_number ?? "none"}:${String(
321
+ ), fn = O.length > 0, mn = f(() => y ? `${y.sequence_number ?? "none"}:${String(
314
322
  y.content ?? ""
315
- )}` : "none", [y]), Me = d(
316
- () => [sn, un].join("|"),
317
- [un, sn]
318
- ), rr = d(
323
+ )}` : "none", [y]), Le = f(
324
+ () => [dn, mn].join("|"),
325
+ [mn, dn]
326
+ ), cr = f(
319
327
  () => [
320
- Me,
321
- bt?.audioKey ?? "none",
328
+ Le,
329
+ Tt?.audioKey ?? "none",
322
330
  String(C)
323
331
  ].join("|"),
324
- [C, bt?.audioKey, Me]
325
- ), dn = !!d(() => !tt || tt === "none" ? "" : I.find(
326
- (t) => t.audioKey === tt
327
- )?.audioUrl?.trim() ?? "", [I, tt]), Q = re && !!ne && mt, ke = d(
328
- () => no({
332
+ [C, Tt?.audioKey, Le]
333
+ ), pn = !!f(() => !at || at === "none" ? "" : I.find(
334
+ (t) => t.audioKey === at
335
+ )?.audioUrl?.trim() ?? "", [I, at]), ee = ie && !!oe && vt, De = f(
336
+ () => mo({
329
337
  canGoNext: _,
330
338
  currentAudioIndex: C,
331
- currentStepHasSpeakableElement: x,
339
+ currentStepHasSpeakableElement: A,
332
340
  hasInteraction: !!y
333
341
  }),
334
342
  [
335
343
  _,
336
344
  C,
337
345
  y,
338
- x
346
+ A
339
347
  ]
340
- ), fn = d(
341
- () => io({
348
+ ), yn = f(
349
+ () => ho({
342
350
  currentElementList: R,
343
- currentStepHasSpeakableElement: x,
351
+ currentStepHasSpeakableElement: A,
344
352
  currentInteractionElement: y,
345
- markerAutoAdvanceDelay: je
353
+ markerAutoAdvanceDelay: Ye
346
354
  }),
347
355
  [
348
356
  R,
349
357
  y,
350
- x,
351
- je
358
+ A,
359
+ Ye
352
360
  ]
353
- ), mn = fn.delayMs, Fe = fn.usesImageOnlyDelay, wt = d(
354
- () => `${s}:${se.join("|")}`,
355
- [s, se]
356
- ), [or, ir] = p(null), pn = !Fe || or === wt, V = r(() => {
357
- le.current !== null && (window.clearTimeout(le.current), le.current = null);
361
+ ), hn = yn.delayMs, Ne = yn.usesImageOnlyDelay, Rt = f(
362
+ () => `${a}:${ue.join("|")}`,
363
+ [a, ue]
364
+ ), [ur, dr] = p(null), gn = !Ne || ur === Rt, V = r(() => {
365
+ se.current !== null && (window.clearTimeout(se.current), se.current = null);
358
366
  }, []), L = r(() => {
359
- z.current !== null && (window.clearTimeout(z.current), z.current = null);
360
- }, []), N = r(() => {
361
- Ae.current !== null && (window.clearTimeout(Ae.current), Ae.current = null);
362
- }, []), me = r(() => {
363
- xe.current !== null && (window.clearTimeout(xe.current), xe.current = null);
364
- }, []), U = r(() => {
365
- Ye.current !== null && (window.clearTimeout(Ye.current), Ye.current = null);
366
- }, []), B = r(
367
+ W.current !== null && (window.clearTimeout(W.current), W.current = null);
368
+ }, []), D = r(() => {
369
+ Te.current !== null && (window.clearTimeout(Te.current), Te.current = null);
370
+ }, []), ye = r(() => {
371
+ Ee.current !== null && (window.clearTimeout(Ee.current), Ee.current = null);
372
+ }, []), Y = r(() => {
373
+ je.current !== null && (window.clearTimeout(je.current), je.current = null);
374
+ }, []), N = r(
367
375
  (e = {}) => {
368
- me(), L(), N(), U(), K(null), de.reset(), A(!1), ft(kt), Xe(!1), Je.current = /* @__PURE__ */ new Set(), We(!1), Xt(null), e.preservePendingSubtitleJump || (Ce.current = null), yt(void 0), Qe(!1), Oe(0);
376
+ ye(), L(), D(), Y(), H(null), me.reset(), w(!1), gt(Bt), tt(!1), nt.current = /* @__PURE__ */ new Set(), rt(!1), Qt(null), e.preservePendingSubtitleJump || (_e.current = null), It(void 0), ot(!1), Fe(0);
369
377
  },
370
378
  [
371
- me,
372
- U,
379
+ ye,
380
+ Y,
373
381
  L,
374
- N,
375
- de
382
+ D,
383
+ me
376
384
  ]
377
- ), nt = r(
385
+ ), st = r(
378
386
  (e) => {
379
- qt.current += 1, Xt({
387
+ Yt.current += 1, Qt({
380
388
  ...e,
381
- id: qt.current
389
+ id: Yt.current
382
390
  });
383
391
  },
384
392
  []
385
- ), pe = r(() => {
386
- const e = $r(
393
+ ), he = r(() => {
394
+ const e = ro(
387
395
  O,
388
- Je.current
396
+ nt.current
389
397
  );
390
- return e ? (K(e), !0) : !1;
391
- }, [O]), Le = r(() => {
392
- L(), N(), Qe(!1), Oe(0), !pe() && _ && F();
398
+ return e ? (H(e), !0) : !1;
399
+ }, [O]), Be = r(() => {
400
+ L(), D(), ot(!1), Fe(0), !he() && _ && F();
393
401
  }, [
394
402
  _,
395
403
  L,
396
- N,
404
+ D,
397
405
  F,
398
- pe
399
- ]), yn = r(
406
+ he
407
+ ]), vn = r(
400
408
  (e) => {
401
- if (N(), !e)
409
+ if (D(), !e)
402
410
  return;
403
411
  const t = () => {
404
- Ae.current = null, Oe(
405
- mo
406
- ), Qe(!0), X.current = null;
412
+ Te.current = null, Fe(
413
+ wo
414
+ ), ot(!0), j.current = null;
407
415
  };
408
- Ae.current = window.setTimeout(
416
+ Te.current = window.setTimeout(
409
417
  t,
410
- fo
418
+ Ao
411
419
  );
412
420
  },
413
- [N]
414
- ), Et = r(
415
- () => He.current || !!be.current?.querySelector(".slide-player__controls:hover"),
421
+ [D]
422
+ ), _t = r(
423
+ () => We.current || !!ae.current?.querySelector(".slide-player__controls:hover"),
416
424
  []
417
425
  ), v = r(
418
- (e = ze) => {
419
- !g || j === "hidden" || (Re(!0), V(), !(j === "visible" || !e || Ie <= 0 || Et()) && (le.current = window.setTimeout(() => {
420
- if (Et()) {
421
- le.current = null;
426
+ (e = et) => {
427
+ !g || K === "hidden" || (Me(!0), V(), !(K === "visible" || !e || Ae <= 0 || _t()) && (se.current = window.setTimeout(() => {
428
+ if (_t()) {
429
+ se.current = null;
422
430
  return;
423
431
  }
424
- Re(!1), le.current = null;
425
- }, Ie)));
432
+ Me(!1), se.current = null;
433
+ }, Ae)));
426
434
  },
427
435
  [
428
436
  V,
429
- ze,
430
- Et,
431
- Ie,
432
- j,
437
+ et,
438
+ _t,
439
+ Ae,
440
+ K,
433
441
  g
434
442
  ]
435
- ), Ne = !!Wr(y), ye = !!y && !Ne, lr = r((e) => {
436
- $t(e);
437
- }, []), he = r(
443
+ ), Ve = !!ao(y), ge = !!y && !Ve, fr = r((e) => {
444
+ Wt(e);
445
+ }, []), ve = r(
438
446
  (e) => {
439
- e && $t(e.shouldContinuePlayback);
447
+ e && Wt(e.shouldContinuePlayback);
440
448
  },
441
449
  []
442
450
  );
443
- c(() => {
444
- zt(dt);
445
- }, [s, dt, re]), c(() => {
446
- re && pt(!1);
447
- }, [s, re]), c(() => () => {
448
- me(), U(), V(), L(), N();
451
+ s(() => {
452
+ jt(ht);
453
+ }, [a, ht, ie]), s(() => {
454
+ ie && St(!1);
455
+ }, [a, ie]), s(() => () => {
456
+ ye(), Y(), V(), L(), D();
449
457
  }, [
450
- me,
451
- U,
458
+ ye,
459
+ Y,
452
460
  L,
453
- N,
461
+ D,
454
462
  V
455
- ]), c(() => {
456
- if (!Fe) {
457
- U();
463
+ ]), s(() => {
464
+ if (!Ne) {
465
+ Y();
458
466
  return;
459
467
  }
460
468
  let e = !1, t = null, n = null;
461
469
  const i = () => {
462
470
  n?.(), n = null;
463
471
  }, l = () => {
464
- e || (i(), U(), ir(wt));
472
+ e || (i(), Y(), dr(Rt));
465
473
  }, o = () => {
466
474
  if (e)
467
475
  return;
468
476
  i();
469
- const S = Ue.current?.querySelector(
477
+ const S = Je.current?.querySelector(
470
478
  '[data-active-step="true"]'
471
479
  );
472
480
  if (!S)
@@ -474,66 +482,66 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
474
482
  const b = Array.from(
475
483
  S.querySelectorAll("iframe")
476
484
  );
477
- if (b.length === 0 || oo(b)) {
485
+ if (b.length === 0 || yo(b)) {
478
486
  l();
479
487
  return;
480
488
  }
481
- const Z = [], De = () => {
489
+ const te = [], Ke = () => {
482
490
  e || (t !== null && window.cancelAnimationFrame(t), t = window.requestAnimationFrame(() => {
483
491
  t = null, o();
484
492
  }));
485
- }, Pt = (ee, ge, te) => {
486
- ee.addEventListener(ge, te, { once: !0 }), Z.push(
487
- () => ee.removeEventListener(ge, te)
493
+ }, kt = (ne, Se, re) => {
494
+ ne.addEventListener(Se, re, { once: !0 }), te.push(
495
+ () => ne.removeEventListener(Se, re)
488
496
  );
489
497
  };
490
- b.forEach((ee) => {
491
- const ge = ee.contentDocument;
492
- if (!ge || ge.readyState !== "complete") {
493
- Pt(ee, "load", De);
498
+ b.forEach((ne) => {
499
+ const Se = ne.contentDocument;
500
+ if (!Se || Se.readyState !== "complete") {
501
+ kt(ne, "load", Ke);
494
502
  return;
495
503
  }
496
- Array.from(ge.images).filter((te) => !te.complete).forEach((te) => {
497
- Pt(te, "load", De), Pt(te, "error", De);
504
+ Array.from(Se.images).filter((re) => !re.complete).forEach((re) => {
505
+ kt(re, "load", Ke), kt(re, "error", Ke);
498
506
  });
499
507
  }), n = () => {
500
- Z.forEach((ee) => ee());
508
+ te.forEach((ne) => ne());
501
509
  };
502
510
  };
503
511
  return t = window.requestAnimationFrame(() => {
504
512
  t = null, o();
505
- }), Ye.current = window.setTimeout(() => {
513
+ }), je.current = window.setTimeout(() => {
506
514
  l();
507
- }, ro), () => {
508
- e = !0, i(), U(), t !== null && window.cancelAnimationFrame(t);
515
+ }, po), () => {
516
+ e = !0, i(), Y(), t !== null && window.cancelAnimationFrame(t);
509
517
  };
510
518
  }, [
511
- U,
519
+ Y,
512
520
  R,
513
- s,
514
- wt,
515
- Fe
516
- ]), c(() => (st?.(T), () => {
517
- st?.(!1);
518
- }), [st, T]), c(() => {
519
- T || (He.current = !1);
520
- }, [T]), c(() => {
521
- D || et === ot || (It(!1), St(ot));
522
- }, [D, et]), c(() => {
523
- if (!D) {
524
- en(!1);
521
+ a,
522
+ Rt,
523
+ Ne
524
+ ]), s(() => (we?.(T), () => {
525
+ we?.(!1);
526
+ }), [we, T]), s(() => {
527
+ T || (We.current = !1);
528
+ }, [T]), s(() => {
529
+ B || lt === ut || (Et(!1), xt(ut));
530
+ }, [B, lt]), s(() => {
531
+ if (!B) {
532
+ rn(!1);
525
533
  return;
526
534
  }
527
535
  const e = () => {
528
- en(xn()), W();
536
+ rn(En()), Z();
529
537
  }, t = () => {
530
- W();
538
+ Z();
531
539
  };
532
540
  e(), window.addEventListener("orientationchange", t), window.screen?.orientation?.addEventListener?.(
533
541
  "change",
534
542
  t
535
543
  );
536
- const n = Fr(
544
+ const n = Yr(
537
545
  e
538
546
  );
539
547
  return () => {
@@ -542,268 +550,268 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
542
550
  t
543
551
  );
544
552
  };
545
- }, [D, W]), c(() => {
546
- Lt?.(J);
547
- }, [J, Lt]), c(() => {
548
- nn.current !== J && W(), nn.current = J;
549
- }, [J, W]), c(() => {
550
- Nt?.(Pe, s);
551
- }, [s, Pe, Nt]), c(() => {
552
- const e = Ut.current, t = Gr(
553
+ }, [B, Z]), s(() => {
554
+ ze?.(Q);
555
+ }, [Q, ze]), s(() => {
556
+ ln.current !== Q && Z(), ln.current = Q;
557
+ }, [Q, Z]), s(() => {
558
+ Vt?.(Oe, a);
559
+ }, [a, Oe, Vt]), s(() => {
560
+ const e = $t.current, t = no(
553
561
  {
554
562
  previousMarkerCount: e.markerCount,
555
563
  nextMarkerCount: P.length,
556
564
  previousIndex: e.currentIndex,
557
565
  previousCanGoNext: e.canGoNext,
558
566
  nextCanGoNext: _,
559
- currentAudioKey: w,
567
+ currentAudioKey: x,
560
568
  hasCompletedCurrentStepAudio: M,
561
- hasResolvedCurrentInteraction: Ne,
562
- currentStepHasSpeakableElement: x,
569
+ hasResolvedCurrentInteraction: Ve,
570
+ currentStepHasSpeakableElement: A,
563
571
  currentInteractionElement: y,
564
- isAutoAdvanceEnabled: _e,
565
- shouldUseSilentStepAutoAdvanceToggle: ke
572
+ isAutoAdvanceEnabled: ke,
573
+ shouldUseSilentStepAutoAdvanceToggle: De
566
574
  }
567
575
  );
568
- Ut.current = {
576
+ $t.current = {
569
577
  markerCount: P.length,
570
- currentIndex: s,
578
+ currentIndex: a,
571
579
  canGoNext: _
572
580
  }, t && F();
573
581
  }, [
574
582
  _,
575
- w,
576
- s,
577
- y,
578
583
  x,
584
+ a,
585
+ y,
586
+ A,
579
587
  F,
580
588
  M,
581
- Ne,
582
- _e,
589
+ Ve,
583
590
  ke,
591
+ De,
584
592
  P.length
585
- ]), c(() => {
586
- if (!g || j === "hidden") {
587
- V(), Re(!1);
593
+ ]), s(() => {
594
+ if (!g || K === "hidden") {
595
+ V(), Me(!1);
588
596
  return;
589
597
  }
590
- if (j === "visible") {
591
- V(), Re(!0);
598
+ if (K === "visible") {
599
+ V(), Me(!0);
592
600
  return;
593
601
  }
594
- ze || v(!0);
602
+ et || v(!0);
595
603
  }, [
596
604
  V,
597
- ze,
598
- j,
605
+ et,
606
+ K,
599
607
  g,
600
608
  v
601
- ]), c(() => {
609
+ ]), s(() => {
602
610
  if (typeof window > "u")
603
611
  return;
604
612
  const e = (t) => {
605
- t.origin === window.location.origin && _r(t.data) && t.data.eventType === "click" && g && (q(), ce(!0), v(!0));
613
+ t.origin === window.location.origin && Nr(t.data) && t.data.eventType === "click" && g && (U(), de(!0), v(!0));
606
614
  };
607
615
  return window.addEventListener("message", e), () => {
608
616
  window.removeEventListener("message", e);
609
617
  };
610
- }, [q, g, v]), Vr({
611
- sectionRef: be,
618
+ }, [U, g, v]), Jr({
619
+ sectionRef: ae,
612
620
  enabled: g,
613
- keyboardShortcutsEnabled: ie,
614
- onKeyboardShortcut: q,
621
+ keyboardShortcutsEnabled: le,
622
+ onKeyboardShortcut: U,
615
623
  onWake: () => {
616
- q(), ce(!0), v(!0);
624
+ U(), de(!0), v(!0);
617
625
  }
618
- }), c(() => {
626
+ }), s(() => {
619
627
  if (!g) {
620
- B();
628
+ N();
621
629
  return;
622
630
  }
623
- const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = Xr({
624
- previousResetKey: Kt.current,
625
- nextResetKey: Me,
626
- currentAudioKey: w,
631
+ const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = io({
632
+ previousResetKey: Gt.current,
633
+ nextResetKey: Le,
634
+ currentAudioKey: x,
627
635
  hasCompletedCurrentStepAudio: M
628
636
  });
629
- Kt.current = Me;
630
- const n = X.current === s && !!y, i = Hr({
637
+ Gt.current = Le;
638
+ const n = j.current === a && !!y, i = eo({
631
639
  hasInteraction: !!y,
632
- shouldBlockPlaybackForInteraction: ye,
640
+ shouldBlockPlaybackForInteraction: ge,
633
641
  shouldOpenInteractionOverlayAfterAudio: n,
634
642
  hasPlaybackContextChanged: e,
635
- hasResolvedCurrentInteraction: Ne,
636
- currentStepHasSpeakableElement: x
637
- }), l = Ce.current, o = l?.slideIndex === s;
638
- if (e && B({
643
+ hasResolvedCurrentInteraction: Ve,
644
+ currentStepHasSpeakableElement: A
645
+ }), l = _e.current, o = l?.slideIndex === a;
646
+ if (e && N({
639
647
  preservePendingSubtitleJump: o
640
- }), !(R.length === 0 && !y) && !Q) {
641
- if (l?.slideIndex === s && wn({
642
- currentIndex: s,
648
+ }), !(R.length === 0 && !y) && !ee) {
649
+ if (l?.slideIndex === a && Cn({
650
+ currentIndex: a,
643
651
  resolvedCurrentInteractionElement: h,
644
652
  slideElementList: P,
645
653
  targetSlideIndex: l.slideIndex
646
654
  })) {
647
- Ce.current = null, ut.current = !0, K(l.audioKey), nt({
655
+ _e.current = null, yt.current = !0, H(l.audioKey), st({
648
656
  audioIndex: l.audioIndex,
649
657
  timeMs: l.timeMs
650
658
  });
651
659
  return;
652
660
  }
653
- if (y && yt(y), i) {
654
- yn(y);
661
+ if (y && It(y), i) {
662
+ vn(y);
655
663
  return;
656
664
  }
657
- if (N(), X.current = null, !!t && !pe()) {
658
- if (x) {
665
+ if (D(), j.current = null, !!t && !he()) {
666
+ if (A) {
659
667
  if (k) {
660
- A(!1);
668
+ w(!1);
661
669
  return;
662
670
  }
663
- A(!0);
671
+ w(!0);
664
672
  return;
665
673
  }
666
- if (_ && !(ke && !_e) && !(Fe && !pn))
667
- return xe.current = window.setTimeout(() => {
668
- xe.current = null, F();
669
- }, mn), () => {
670
- me();
674
+ if (_ && !(De && !ke) && !(Ne && !gn))
675
+ return Ee.current = window.setTimeout(() => {
676
+ Ee.current = null, F();
677
+ }, hn), () => {
678
+ ye();
671
679
  };
672
680
  }
673
681
  }
674
682
  }, [
675
683
  h,
676
684
  _,
677
- me,
685
+ ye,
678
686
  R.length,
679
- s,
687
+ a,
680
688
  y,
681
- w,
682
- Me,
683
689
  x,
684
- Fe,
685
- pn,
686
- mn,
690
+ Le,
691
+ A,
692
+ Ne,
693
+ gn,
694
+ hn,
687
695
  F,
688
696
  M,
689
697
  k,
690
- _e,
691
- Ne,
692
- ye,
698
+ ke,
699
+ Ve,
700
+ ge,
701
+ D,
693
702
  N,
694
- B,
695
- nt,
696
- yn,
703
+ st,
704
+ vn,
697
705
  g,
698
706
  P,
699
- pe,
700
- Q,
701
- ke
702
- ]), c(() => {
703
- if (k || Q || !x || ye) {
704
- A(!1);
707
+ he,
708
+ ee,
709
+ De
710
+ ]), s(() => {
711
+ if (k || ee || !A || ge) {
712
+ w(!1);
705
713
  return;
706
714
  }
707
715
  if (M) {
708
- A(!1);
716
+ w(!1);
709
717
  return;
710
718
  }
711
- if (cn) {
712
- A(!1);
719
+ if (fn) {
720
+ w(!1);
713
721
  return;
714
722
  }
715
- ft("waitingForAudio"), A(!0);
723
+ gt("waitingForAudio"), w(!0);
716
724
  }, [
717
- cn,
718
- x,
725
+ fn,
726
+ A,
719
727
  M,
720
728
  k,
721
- Q,
722
- ye
723
- ]), c(() => {
724
- M && zr(
729
+ ee,
730
+ ge
731
+ ]), s(() => {
732
+ M && oo(
725
733
  O,
726
- Je.current
727
- ) && Xe(!1);
728
- }, [O, M]), c(() => {
729
- const e = ut.current;
730
- ut.current = !1, Jr({
731
- currentAudioKey: w,
734
+ nt.current
735
+ ) && tt(!1);
736
+ }, [O, M]), s(() => {
737
+ const e = yt.current;
738
+ yt.current = !1, lo({
739
+ currentAudioKey: x,
732
740
  currentAudioSequenceLength: O.length,
733
- currentStepHasSpeakableElement: x,
741
+ currentStepHasSpeakableElement: A,
734
742
  hasCompletedCurrentStepAudio: M,
735
- shouldBlockPlaybackForInteraction: ye,
736
- shouldPausePlaybackForCustomAction: Q,
743
+ shouldBlockPlaybackForInteraction: ge,
744
+ shouldPausePlaybackForCustomAction: ee,
737
745
  shouldSkipDefaultAudioStart: e
738
- }) && pe();
746
+ }) && he();
739
747
  }, [
740
- w,
741
- O,
742
748
  x,
749
+ O,
750
+ A,
743
751
  M,
744
- Q,
745
- ye,
746
- pe
747
- ]), c(() => {
748
- !w || C >= 0 || K(null);
749
- }, [C, w]), c(() => {
750
- C >= 0 || de.reset();
751
- }, [C, de]), c(() => {
752
- We(!1);
753
- }, [rr]);
752
+ ee,
753
+ ge,
754
+ he
755
+ ]), s(() => {
756
+ !x || C >= 0 || H(null);
757
+ }, [C, x]), s(() => {
758
+ C >= 0 || me.reset();
759
+ }, [C, me]), s(() => {
760
+ rt(!1);
761
+ }, [cr]);
754
762
  const {
755
- interactionDefaults: hn,
756
- interactionDefaultSelectedValues: ar,
757
- hasResolvedInteractionInput: gn,
758
- isInteractionReadonly: sr,
759
- shouldAutoContinueInteraction: vn
760
- } = d(
761
- () => to(h, {
762
- interactionDefaultValueOptions: qe
763
+ interactionDefaults: Sn,
764
+ interactionDefaultSelectedValues: mr,
765
+ hasResolvedInteractionInput: In,
766
+ isInteractionReadonly: pr,
767
+ shouldAutoContinueInteraction: bn
768
+ } = f(
769
+ () => fo(h, {
770
+ interactionDefaultValueOptions: Ge
763
771
  }),
764
- [h, qe]
765
- ), cr = !!h?.readonly || sr, Be = Ur({
772
+ [h, Ge]
773
+ ), yr = !!h?.readonly || pr, qe = Zr({
766
774
  hasActiveInteraction: !!h,
767
- isInteractionOverlayOpen: ue
768
- }), ur = r(
775
+ isInteractionOverlayOpen: fe
776
+ }), hr = r(
769
777
  (e) => {
770
778
  const n = [
771
779
  ...e.selectedValues ?? [],
772
780
  e.inputText?.trim() ?? "",
773
781
  e.buttonText?.trim() ?? ""
774
782
  ].filter(Boolean).join(", ");
775
- yt((i) => !i || !n ? i : {
783
+ It((i) => !i || !n ? i : {
776
784
  ...i,
777
785
  user_input: n
778
- }), Ft?.(e, h), Le();
786
+ }), $e?.(e, h), Be();
779
787
  },
780
- [h, Le, Ft]
788
+ [h, Be, $e]
781
789
  );
782
- c(() => {
790
+ s(() => {
783
791
  const e = () => {
784
- Yn(document.fullscreenElement === be.current);
792
+ jn(document.fullscreenElement === ae.current);
785
793
  };
786
794
  return e(), document.addEventListener("fullscreenchange", e), () => {
787
795
  document.removeEventListener("fullscreenchange", e);
788
796
  };
789
- }, []), c(() => {
790
- h && ue || Ze(!1);
791
- }, [h, ue]), c(() => {
792
- W();
793
- }, [h, W]), c(() => {
794
- if (!Be) {
795
- Oe(0);
797
+ }, []), s(() => {
798
+ h && fe || it(!1);
799
+ }, [h, fe]), s(() => {
800
+ Z();
801
+ }, [h, Z]), s(() => {
802
+ if (!qe) {
803
+ Fe(0);
796
804
  return;
797
805
  }
798
- const e = we.current;
806
+ const e = Ce.current;
799
807
  if (!e)
800
808
  return;
801
809
  const t = () => {
802
810
  const i = Math.ceil(
803
811
  e.getBoundingClientRect().height
804
812
  );
805
- Oe(
806
- i + po
813
+ Fe(
814
+ i + xo
807
815
  );
808
816
  };
809
817
  if (t(), typeof ResizeObserver > "u")
@@ -814,80 +822,84 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
814
822
  return n.observe(e), () => {
815
823
  n.disconnect();
816
824
  };
817
- }, [Be]), c(() => {
818
- if (L(), !!ue) {
819
- if (vn)
820
- return z.current = window.setTimeout(() => {
821
- z.current = null, Le();
822
- }, En), () => {
825
+ }, [qe]), s(() => {
826
+ if (L(), !!fe) {
827
+ if (bn)
828
+ return W.current = window.setTimeout(() => {
829
+ W.current = null, Be();
830
+ }, Pn), () => {
823
831
  L();
824
832
  };
825
- if (!(Wt || !gn))
826
- return z.current = window.setTimeout(() => {
827
- z.current = null, Le();
828
- }, En), () => {
833
+ if (!(en || !In))
834
+ return W.current = window.setTimeout(() => {
835
+ W.current = null, Be();
836
+ }, Pn), () => {
829
837
  L();
830
838
  };
831
839
  }
832
840
  }, [
833
841
  L,
834
- Le,
835
- Wt,
836
- gn,
837
- ue,
838
- vn
842
+ Be,
843
+ en,
844
+ In,
845
+ fe,
846
+ bn
839
847
  ]);
840
- const dr = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ a.jsx(
841
- bn,
848
+ const gr = (e, t = {}) => e ? e.type === "slot" ? /* @__PURE__ */ u(kr, { children: e.content }) : e.type === "html" ? /* @__PURE__ */ u(
849
+ xn,
842
850
  {
843
851
  className: "content-render-iframe",
844
852
  disableLoadingOverlay: k,
845
853
  hideFullScreen: !0,
846
- locale: f,
854
+ locale: d,
855
+ dir: J,
856
+ lang: xe,
847
857
  mode: "blackboard",
848
858
  replaceRootScreenHeightWithFull: t.replaceRootScreenHeightWithFull,
849
859
  type: "sandbox",
850
860
  content: e.content,
851
- enableScaling: Rn
861
+ enableScaling: Mn
852
862
  }
853
- ) : /* @__PURE__ */ a.jsx(
854
- bn,
863
+ ) : /* @__PURE__ */ u(
864
+ xn,
855
865
  {
856
866
  className: "content-render-iframe",
857
867
  disableLoadingOverlay: k,
858
868
  hideFullScreen: !0,
859
- locale: f,
869
+ locale: d,
870
+ dir: J,
871
+ lang: xe,
860
872
  mode: "blackboard",
861
873
  type: "markdown",
862
874
  content: e.content
863
875
  }
864
- ) : null, fr = (e = [], t = !1) => {
876
+ ) : null, vr = (e = [], t = !1) => {
865
877
  if (e.length === 0)
866
878
  return null;
867
879
  const n = e.filter(
868
880
  (o) => o.is_renderable !== !1
869
- ).length, i = t && _n ? Yr(e) : "disabled", l = e.reduce(
881
+ ).length, i = t && kn ? to(e) : "disabled", l = e.reduce(
870
882
  (o, S, b) => S.is_renderable !== !1 ? b : o,
871
883
  -1
872
884
  );
873
- return /* @__PURE__ */ a.jsx(
874
- Nr,
885
+ return /* @__PURE__ */ u(
886
+ $r,
875
887
  {
876
888
  className: "slide-stage__content flex w-full flex-col gap-4",
877
889
  mode: i,
878
890
  children: e.map((o, S) => {
879
891
  const b = o.type === "html" && o.is_renderable === !1;
880
- return /* @__PURE__ */ a.jsx(
892
+ return /* @__PURE__ */ u(
881
893
  "div",
882
894
  {
883
- ref: t && S === l ? Vt : null,
895
+ ref: t && S === l ? Ut : null,
884
896
  "aria-hidden": b || void 0,
885
- className: ve(
897
+ className: Ie(
886
898
  "w-full shrink-0",
887
899
  n === 1 && o.is_renderable !== !1 && "slide-element--single",
888
900
  b ? "pointer-events-none fixed left-[-200vw] top-0 -z-10 h-[100dvh] w-[100vw] overflow-hidden opacity-0" : o.is_renderable === !1 && "hidden"
889
901
  ),
890
- children: dr(o, {
902
+ children: gr(o, {
891
903
  replaceRootScreenHeightWithFull: n === 1 && o.type === "html" && o.is_renderable !== !1
892
904
  })
893
905
  },
@@ -896,8 +908,8 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
896
908
  })
897
909
  }
898
910
  );
899
- }, mr = r(() => {
900
- const e = be.current;
911
+ }, Sr = r(() => {
912
+ const e = ae.current;
901
913
  if (e) {
902
914
  if (document.fullscreenElement === e) {
903
915
  document.exitFullscreen().catch(() => {
@@ -907,138 +919,138 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
907
919
  e.requestFullscreen?.().catch(() => {
908
920
  });
909
921
  }
910
- }, []), Sn = r(() => {
911
- const e = Ue.current;
922
+ }, []), An = r(() => {
923
+ const e = Je.current;
912
924
  e && e.scrollTo({
913
925
  top: e.scrollHeight,
914
926
  behavior: "smooth"
915
927
  });
916
- }, []), Tt = r(
917
- (e) => wn({
918
- currentIndex: s,
928
+ }, []), Ot = r(
929
+ (e) => Cn({
930
+ currentIndex: a,
919
931
  resolvedCurrentInteractionElement: h,
920
932
  slideElementList: P,
921
- targetSlideIndex: Ge[e.audioIndex]
933
+ targetSlideIndex: Qe[e.audioIndex]
922
934
  }),
923
935
  [
924
936
  h,
925
- Ge,
926
- s,
937
+ Qe,
938
+ a,
927
939
  P
928
940
  ]
929
- ), pr = r(
941
+ ), Ir = r(
930
942
  (e, t) => {
931
- const i = I[e.audioIndex]?.audioKey, l = Ge[e.audioIndex];
932
- return !i || l == null || !Tt(e) ? !1 : (he(t), X.current = null, A(!1), Xe(!1), We(!1), Rt(t) && (ce(!0), v(!0)), l === s ? (Ce.current = null, B(), K(i), nt(e), !0) : (Te.current = !0, B(), Ce.current = {
943
+ const i = I[e.audioIndex]?.audioKey, l = Qe[e.audioIndex];
944
+ return !i || l == null || !Ot(e) ? !1 : (ve(t), j.current = null, w(!1), tt(!1), rt(!1), Ft(t) && (de(!0), v(!0)), l === a ? (_e.current = null, N(), H(i), st(e), !0) : (Re.current = !0, N(), _e.current = {
933
945
  audioIndex: e.audioIndex,
934
946
  audioKey: i,
935
947
  slideIndex: l,
936
948
  timeMs: e.timeMs
937
- }, Gt(l), !0));
949
+ }, Jt(l), !0));
938
950
  },
939
951
  [
940
952
  I,
941
- Ge,
942
- Tt,
943
- s,
944
- Gt,
945
- nt,
946
- B,
953
+ Qe,
954
+ Ot,
955
+ a,
956
+ Jt,
957
+ st,
958
+ N,
947
959
  v,
948
- he
960
+ ve
949
961
  ]
950
- ), yr = r(
962
+ ), br = r(
951
963
  (e) => {
952
- he(e), Te.current = !0, X.current = null, A(!1), Rt(e) && (ce(!0), v(!0)), B(), Yt();
964
+ ve(e), Re.current = !0, j.current = null, w(!1), Ft(e) && (de(!0), v(!0)), N(), Xt();
953
965
  },
954
966
  [
955
- Yt,
956
- B,
967
+ Xt,
968
+ N,
957
969
  v,
958
- he
970
+ ve
959
971
  ]
960
- ), hr = r(
972
+ ), Ar = r(
961
973
  (e) => {
962
- he(e), Te.current = !0, X.current = null, A(!1), Rt(e) && (ce(!0), v(!0)), B(), F();
974
+ ve(e), Re.current = !0, j.current = null, w(!1), Ft(e) && (de(!0), v(!0)), N(), F();
963
975
  },
964
976
  [
965
977
  F,
966
- B,
978
+ N,
967
979
  v,
968
- he
980
+ ve
969
981
  ]
970
- ), gr = r(
982
+ ), wr = r(
971
983
  ({
972
984
  loading: e,
973
985
  reason: t
974
986
  }) => {
975
987
  if (k) {
976
- A(!1);
988
+ w(!1);
977
989
  return;
978
990
  }
979
- if (!x || M) {
980
- A(!1);
991
+ if (!A || M) {
992
+ w(!1);
981
993
  return;
982
994
  }
983
- e && t && ft(t), A(Io(t, e));
995
+ e && t && gt(t), w(_o(t, e));
984
996
  },
985
997
  [
986
- x,
998
+ A,
987
999
  M,
988
1000
  k
989
1001
  ]
990
1002
  );
991
- c(() => {
992
- k && A(!1);
1003
+ s(() => {
1004
+ k && w(!1);
993
1005
  }, [k]);
994
- const vr = r(
1006
+ const xr = r(
995
1007
  (e) => {
996
1008
  const t = I[e]?.audioKey;
997
- if (!t || !w || t !== w)
1009
+ if (!t || !x || t !== x)
998
1010
  return;
999
- Je.current.add(t);
1011
+ nt.current.add(t);
1000
1012
  const n = O.findIndex(
1001
1013
  (o) => o === t
1002
1014
  );
1003
1015
  if (n < 0) {
1004
- K(null);
1016
+ H(null);
1005
1017
  return;
1006
1018
  }
1007
1019
  const i = n + 1, l = O[i];
1008
1020
  if (l) {
1009
- K(l);
1021
+ H(l);
1010
1022
  return;
1011
1023
  }
1012
- if (K(null), Xe(!0), A(!1), _) {
1013
- const o = s + 1, S = P[o];
1014
- dn && S?.type === "interaction" && (X.current = o), F();
1024
+ if (H(null), tt(!0), w(!1), _) {
1025
+ const o = a + 1, S = P[o];
1026
+ pn && S?.type === "interaction" && (j.current = o), F();
1015
1027
  return;
1016
1028
  }
1017
1029
  },
1018
1030
  [
1019
1031
  I,
1020
1032
  _,
1021
- s,
1022
- w,
1033
+ a,
1034
+ x,
1023
1035
  O,
1024
1036
  F,
1025
- dn,
1037
+ pn,
1026
1038
  P
1027
1039
  ]
1028
- ), Sr = r(() => {
1029
- h && Qe((e) => !e);
1030
- }, [h]), Ir = r(() => {
1031
- He.current = !0, V(), g && Re(!0);
1032
- }, [V, g]), br = r(() => {
1033
- He.current = !1, v(!0);
1034
- }, [v]), Ct = r(
1040
+ ), Er = r(() => {
1041
+ h && ot((e) => !e);
1042
+ }, [h]), Tr = r(() => {
1043
+ We.current = !0, V(), g && Me(!0);
1044
+ }, [V, g]), Cr = r(() => {
1045
+ We.current = !1, v(!0);
1046
+ }, [v]), Mt = r(
1035
1047
  (e) => {
1036
1048
  e.stopPropagation(), T && v(!0);
1037
1049
  },
1038
1050
  [T, v]
1039
- ), rt = r(
1051
+ ), ct = r(
1040
1052
  (e, t) => {
1041
- const n = ct.current;
1053
+ const n = pt.current;
1042
1054
  if (!n)
1043
1055
  return null;
1044
1056
  const i = e.getBoundingClientRect(), l = n.getBoundingClientRect();
@@ -1051,23 +1063,23 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
1051
1063
  },
1052
1064
  []
1053
1065
  );
1054
- yo(() => {
1055
- const e = we.current;
1056
- if (!Be || !e) {
1057
- ae.current = null;
1066
+ Eo(() => {
1067
+ const e = Ce.current;
1068
+ if (!qe || !e) {
1069
+ ce.current = null;
1058
1070
  return;
1059
1071
  }
1060
- const t = ae.current, n = e.getBoundingClientRect();
1061
- if (!t || gt) {
1062
- ae.current = {
1072
+ const t = ce.current, n = e.getBoundingClientRect();
1073
+ if (!t || At) {
1074
+ ce.current = {
1063
1075
  left: n.left,
1064
1076
  top: n.top
1065
1077
  };
1066
1078
  return;
1067
1079
  }
1068
1080
  const i = t.left - n.left, l = t.top - n.top;
1069
- if (!Tn(i) && !Tn(l)) {
1070
- ae.current = {
1081
+ if (!Rn(i) && !Rn(l)) {
1082
+ ce.current = {
1071
1083
  left: n.left,
1072
1084
  top: n.top
1073
1085
  };
@@ -1076,55 +1088,55 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
1076
1088
  const o = {
1077
1089
  x: E.x + i,
1078
1090
  y: E.y + l
1079
- }, S = rt(
1091
+ }, S = ct(
1080
1092
  e,
1081
1093
  E
1082
- ), b = go(
1083
- S ? An(o, S) : o
1094
+ ), b = Co(
1095
+ S ? Tn(o, S) : o
1084
1096
  );
1085
- ae.current = {
1097
+ ce.current = {
1086
1098
  left: n.left + b.x - E.x,
1087
1099
  top: n.top + b.y - E.y
1088
- }, Cn(
1100
+ }, _n(
1089
1101
  b,
1090
1102
  E
1091
- ) || ht(
1092
- (Z) => Cn(Z, b) ? Z : b
1103
+ ) || bt(
1104
+ (te) => _n(te, b) ? te : b
1093
1105
  );
1094
1106
  }, [
1095
- rt,
1107
+ ct,
1096
1108
  E,
1097
- gt,
1109
+ At,
1098
1110
  T,
1099
1111
  g,
1100
- Be
1112
+ qe
1101
1113
  ]);
1102
- const xr = r(
1114
+ const Pr = r(
1103
1115
  (e) => {
1104
- if (Ct(e), e.button !== 0 || !e.currentTarget.isConnected || !we.current)
1116
+ if (Mt(e), e.button !== 0 || !e.currentTarget.isConnected || !Ce.current)
1105
1117
  return;
1106
- const t = rt(
1107
- we.current,
1118
+ const t = ct(
1119
+ Ce.current,
1108
1120
  E
1109
1121
  );
1110
- t && (e.preventDefault(), e.currentTarget.hasPointerCapture?.(e.pointerId) !== !0 && e.currentTarget.setPointerCapture(e.pointerId), Ee.current = {
1122
+ t && (e.preventDefault(), e.currentTarget.hasPointerCapture?.(e.pointerId) !== !0 && e.currentTarget.setPointerCapture(e.pointerId), Pe.current = {
1111
1123
  pointerId: e.pointerId,
1112
1124
  startClientX: e.clientX,
1113
1125
  startClientY: e.clientY,
1114
1126
  startOffset: E,
1115
1127
  bounds: t
1116
- }, vt(!0));
1128
+ }, wt(!0));
1117
1129
  },
1118
1130
  [
1119
- rt,
1131
+ ct,
1120
1132
  E,
1121
- Ct
1133
+ Mt
1122
1134
  ]
1123
- ), Ar = r(
1135
+ ), Rr = r(
1124
1136
  (e) => {
1125
- const t = Ee.current;
1126
- !t || t.pointerId !== e.pointerId || (e.preventDefault(), e.stopPropagation(), ht(
1127
- An(
1137
+ const t = Pe.current;
1138
+ !t || t.pointerId !== e.pointerId || (e.preventDefault(), e.stopPropagation(), bt(
1139
+ Tn(
1128
1140
  {
1129
1141
  x: t.startOffset.x + e.clientX - t.startClientX,
1130
1142
  y: t.startOffset.y + e.clientY - t.startClientY
@@ -1134,97 +1146,99 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
1134
1146
  ));
1135
1147
  },
1136
1148
  []
1137
- ), In = r(
1149
+ ), wn = r(
1138
1150
  (e) => {
1139
- const t = Ee.current;
1140
- !t || t.pointerId !== e.pointerId || (e.stopPropagation(), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Ee.current = null, vt(!1));
1151
+ const t = Pe.current;
1152
+ !t || t.pointerId !== e.pointerId || (e.stopPropagation(), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), Pe.current = null, wt(!1));
1141
1153
  },
1142
1154
  []
1143
- ), wr = r(
1155
+ ), _r = r(
1144
1156
  (e) => {
1145
- q(), Bt?.(e);
1157
+ U(), qt?.(e);
1146
1158
  },
1147
- [q, Bt]
1148
- ), Er = r(
1159
+ [U, qt]
1160
+ ), Or = r(
1149
1161
  (e) => {
1150
- q(), Dt?.(e);
1162
+ U(), Kt?.(e);
1151
1163
  },
1152
- [q, Dt]
1153
- ), Tr = r(() => {
1154
- ce(!0), v(!0);
1164
+ [U, Kt]
1165
+ ), Mr = r(() => {
1166
+ de(!0), v(!0);
1155
1167
  }, [v]);
1156
- return c(() => {
1157
- const e = jt.current, i = (e.length > 0 && e.length < se.length && e.every((o, S) => o === se[S]) ? R.slice(e.length) : []).some(
1168
+ return s(() => {
1169
+ const e = Ht.current, i = (e.length > 0 && e.length < ue.length && e.every((o, S) => o === ue[S]) ? R.slice(e.length) : []).some(
1158
1170
  (o) => o.is_new === !1
1159
1171
  );
1160
- if (jt.current = se, !i)
1172
+ if (Ht.current = ue, !i)
1161
1173
  return;
1162
1174
  const l = window.requestAnimationFrame(() => {
1163
- const o = Ue.current, S = Vt.current;
1175
+ const o = Je.current, S = Ut.current;
1164
1176
  if (!o || !S)
1165
1177
  return;
1166
- const b = o.getBoundingClientRect(), Z = S.getBoundingClientRect(), De = o.scrollTop + (Z.top - b.top);
1178
+ const b = o.getBoundingClientRect(), te = S.getBoundingClientRect(), Ke = o.scrollTop + (te.top - b.top);
1167
1179
  o.scrollTo({
1168
- top: Math.max(De, 0),
1180
+ top: Math.max(Ke, 0),
1169
1181
  behavior: "smooth"
1170
1182
  });
1171
1183
  });
1172
1184
  return () => {
1173
1185
  window.cancelAnimationFrame(l);
1174
1186
  };
1175
- }, [R, se]), c(() => {
1176
- if (!Te.current || (Te.current = !1, R.length === 0))
1187
+ }, [R, ue]), s(() => {
1188
+ if (!Re.current || (Re.current = !1, R.length === 0))
1177
1189
  return;
1178
1190
  const e = window.requestAnimationFrame(() => {
1179
- Sn();
1191
+ An();
1180
1192
  });
1181
1193
  return () => {
1182
1194
  window.cancelAnimationFrame(e);
1183
1195
  };
1184
- }, [R, Sn]), /* @__PURE__ */ a.jsxs(
1196
+ }, [R, An]), /* @__PURE__ */ Ue(
1185
1197
  "section",
1186
1198
  {
1187
- ref: be,
1188
- className: ve(
1199
+ ref: ae,
1200
+ className: Ie(
1189
1201
  "relative h-full w-full",
1190
- D && "slide--mobile-device",
1191
- rn && "slide--browser-fullscreen",
1192
- fe && "slide--mobile-landscape",
1193
- tn && "slide--mobile-landscape-native",
1194
- On
1202
+ B && "slide--mobile-device",
1203
+ an && "slide--browser-fullscreen",
1204
+ pe && "slide--mobile-landscape",
1205
+ on && "slide--mobile-landscape-native",
1206
+ Fn
1195
1207
  ),
1196
- onClick: Tr,
1197
- onFocusCapture: Er,
1198
- onPointerDown: wr,
1199
- ...Mn,
1208
+ dir: J,
1209
+ lang: xe,
1210
+ onClick: Mr,
1211
+ onFocusCapture: Or,
1212
+ onPointerDown: _r,
1213
+ ...Nn,
1200
1214
  children: [
1201
- Jn ? /* @__PURE__ */ a.jsx(
1215
+ nr ? /* @__PURE__ */ u(
1202
1216
  "div",
1203
1217
  {
1204
1218
  "aria-hidden": "true",
1205
1219
  className: "pointer-events-none fixed left-0 top-0 z-[9999] h-[100vh] max-h-[100vh] w-[100vw]"
1206
1220
  }
1207
1221
  ) : null,
1208
- /* @__PURE__ */ a.jsxs(
1222
+ /* @__PURE__ */ Ue(
1209
1223
  "div",
1210
1224
  {
1211
- ref: ct,
1212
- className: ve(
1225
+ ref: pt,
1226
+ className: Ie(
1213
1227
  "slide__viewport relative h-full min-h-0 w-full",
1214
- fe && "slide__viewport--mobile-landscape",
1215
- fe && !$n && "slide__viewport--mobile-landscape-native"
1228
+ pe && "slide__viewport--mobile-landscape",
1229
+ pe && !Zn && "slide__viewport--mobile-landscape-native"
1216
1230
  ),
1217
1231
  children: [
1218
- zn ? /* @__PURE__ */ a.jsxs("div", { className: "slide-landscape-header", children: [
1219
- /* @__PURE__ */ a.jsx(
1232
+ er ? /* @__PURE__ */ Ue("div", { className: "slide-landscape-header", children: [
1233
+ /* @__PURE__ */ u(
1220
1234
  "button",
1221
1235
  {
1222
- "aria-label": G?.backAriaLabel ?? $.fullscreenBackAriaLabel,
1236
+ "aria-label": z?.backAriaLabel ?? q.fullscreenBackAriaLabel,
1223
1237
  className: "slide-landscape-header__back",
1224
- onClick: Qn,
1238
+ onClick: or,
1225
1239
  type: "button",
1226
- children: /* @__PURE__ */ a.jsx(
1227
- co,
1240
+ children: /* @__PURE__ */ u(
1241
+ Io,
1228
1242
  {
1229
1243
  className: "slide-landscape-header__icon h-6 w-6",
1230
1244
  strokeWidth: 2.25
@@ -1232,27 +1246,27 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
1232
1246
  )
1233
1247
  }
1234
1248
  ),
1235
- G?.content ? /* @__PURE__ */ a.jsx("div", { className: "min-w-0 flex-1 overflow-hidden", children: G.content }) : null
1249
+ z?.content ? /* @__PURE__ */ u("div", { className: "min-w-0 flex-1 overflow-hidden", children: z.content }) : null
1236
1250
  ] }) : null,
1237
- /* @__PURE__ */ a.jsx(
1251
+ /* @__PURE__ */ u(
1238
1252
  "div",
1239
1253
  {
1240
- className: ve(
1254
+ className: Ie(
1241
1255
  "h-full min-h-0 w-full",
1242
- Xn && "slide__viewport-content--with-header",
1243
- Nn ? "slide-content--single" : "grid gap-4"
1256
+ tr && "slide__viewport-content--with-header",
1257
+ Un ? "slide-content--single" : "grid gap-4"
1244
1258
  ),
1245
- children: R.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: "slide-stage", children: /* @__PURE__ */ a.jsx("div", { ref: Ue, className: "slide-stage__layer w-full", children: Zn.map(
1259
+ children: R.length > 0 ? /* @__PURE__ */ u("div", { className: "slide-stage", children: /* @__PURE__ */ u("div", { ref: Je, className: "slide-stage__layer w-full", children: ir.map(
1246
1260
  (e, t) => {
1247
- const n = t === er;
1248
- return /* @__PURE__ */ a.jsx(
1261
+ const n = t === lr;
1262
+ return /* @__PURE__ */ u(
1249
1263
  "div",
1250
1264
  {
1251
1265
  "data-active-step": n ? "true" : void 0,
1252
1266
  "aria-hidden": !n || void 0,
1253
1267
  className: "w-full h-full",
1254
1268
  style: { display: n ? void 0 : "none" },
1255
- children: fr(
1269
+ children: vr(
1256
1270
  e.elementList,
1257
1271
  n
1258
1272
  )
@@ -1263,124 +1277,129 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
1263
1277
  ) }) }) : null
1264
1278
  }
1265
1279
  ),
1266
- jn ? /* @__PURE__ */ a.jsx(
1267
- Or,
1280
+ $n ? /* @__PURE__ */ u(
1281
+ Kr,
1268
1282
  {
1269
- message: vo(
1270
- kn,
1271
- qn
1283
+ message: Po(
1284
+ Bn,
1285
+ zn
1272
1286
  ),
1273
1287
  className: "absolute left-1/2 top-1/2 z-[3] -translate-x-1/2 -translate-y-1/2"
1274
1288
  }
1275
1289
  ) : null,
1276
- /* @__PURE__ */ a.jsx(
1277
- Br,
1290
+ /* @__PURE__ */ u(
1291
+ zr,
1278
1292
  {
1279
- extraBottomOffset: Hn,
1293
+ extraBottomOffset: Wn,
1280
1294
  hasPlayerGap: T,
1281
- isEnabled: Jt && Kn,
1295
+ isEnabled: Zt && Xn,
1282
1296
  isPlayerHidden: g && !T,
1283
- playbackTimeStore: de,
1284
- subtitleCues: tr
1297
+ playbackTimeStore: me,
1298
+ subtitleCues: ar
1285
1299
  }
1286
1300
  ),
1287
- Be ? /* @__PURE__ */ a.jsx(
1301
+ qe ? /* @__PURE__ */ u(
1288
1302
  "div",
1289
1303
  {
1290
- ref: we,
1304
+ ref: Ce,
1291
1305
  "data-player-keyboard-shortcuts-ignore": "true",
1292
- className: ve(
1306
+ className: Ie(
1293
1307
  "slide-interaction-overlay",
1294
1308
  T && g ? "slide-interaction-overlay--with-player" : "slide-interaction-overlay--standalone",
1295
- gt && "slide-interaction-overlay--dragging"
1309
+ At && "slide-interaction-overlay--dragging"
1296
1310
  ),
1297
- onClick: Ct,
1311
+ onClick: Mt,
1298
1312
  onPointerDownCapture: (e) => {
1299
- Ot(e.target) && Ze(!0);
1313
+ Dt(e.target) && it(!0);
1300
1314
  },
1301
1315
  onFocusCapture: (e) => {
1302
- Ot(e.target) && Ze(!0);
1316
+ Dt(e.target) && it(!0);
1303
1317
  },
1304
1318
  onInputCapture: (e) => {
1305
- Ot(e.target) && Ze(!0);
1319
+ Dt(e.target) && it(!0);
1306
1320
  },
1307
- style: nr,
1308
- children: /* @__PURE__ */ a.jsx(
1309
- Pn,
1321
+ style: sr,
1322
+ children: /* @__PURE__ */ u(
1323
+ On,
1310
1324
  {
1325
+ dir: J,
1326
+ lang: xe,
1311
1327
  content: String(h?.content ?? ""),
1312
- locale: f,
1313
- defaultButtonText: hn.buttonText ?? "",
1314
- defaultInputText: hn.inputText ?? "",
1315
- defaultSelectedValues: ar,
1316
- confirmButtonText: oe?.confirmButtonText ?? $.interactionTexts.confirmButtonText,
1317
- copyButtonText: oe?.copyButtonText ?? $.interactionTexts.copyButtonText,
1318
- copiedButtonText: oe?.copiedButtonText ?? $.interactionTexts.copiedButtonText,
1319
- onSend: ur,
1320
- onDragHandlePointerCancel: In,
1321
- onDragHandlePointerDown: xr,
1322
- onDragHandlePointerMove: Ar,
1323
- onDragHandlePointerUp: In,
1324
- readonly: cr,
1325
- title: oe?.title ?? lt ?? $.interactionTexts.title
1328
+ dragHandleAriaLabel: X?.dragHandleAriaLabel ?? q.interactionTexts.dragHandleAriaLabel,
1329
+ locale: d,
1330
+ defaultButtonText: Sn.buttonText ?? "",
1331
+ defaultInputText: Sn.inputText ?? "",
1332
+ defaultSelectedValues: mr,
1333
+ confirmButtonText: X?.confirmButtonText ?? q.interactionTexts.confirmButtonText,
1334
+ copyButtonText: X?.copyButtonText ?? q.interactionTexts.copyButtonText,
1335
+ copiedButtonText: X?.copiedButtonText ?? q.interactionTexts.copiedButtonText,
1336
+ onSend: hr,
1337
+ onDragHandlePointerCancel: wn,
1338
+ onDragHandlePointerDown: Pr,
1339
+ onDragHandlePointerMove: Rr,
1340
+ onDragHandlePointerUp: wn,
1341
+ readonly: yr,
1342
+ title: X?.title ?? ft ?? q.interactionTexts.title
1326
1343
  }
1327
1344
  )
1328
1345
  }
1329
1346
  ) : null,
1330
- g ? /* @__PURE__ */ a.jsx(
1331
- jr.Provider,
1347
+ g ? /* @__PURE__ */ u(
1348
+ Wr.Provider,
1332
1349
  {
1333
- value: Bn,
1334
- children: /* @__PURE__ */ a.jsx(
1335
- Lr,
1350
+ value: Hn,
1351
+ children: /* @__PURE__ */ u(
1352
+ Gr,
1336
1353
  {
1354
+ dir: J === "auto" ? qn : J,
1355
+ lang: xe,
1337
1356
  audioList: I,
1338
- className: ve(
1357
+ className: Ie(
1339
1358
  "absolute left-1/2 z-[2] -translate-x-1/2",
1340
- rn ? "bottom-3" : "-bottom-3",
1341
- Y,
1359
+ an ? "bottom-3" : "-bottom-3",
1360
+ $,
1342
1361
  !T && "pointer-events-none opacity-0"
1343
1362
  ),
1344
1363
  currentAudioIndex: C,
1345
- defaultPlaying: dt,
1346
- enableKeyboardShortcuts: ie,
1347
- isPlaybackPaused: Q,
1348
- isAutoAdvanceEnabled: _e,
1349
- locale: f,
1364
+ defaultPlaying: ht,
1365
+ enableKeyboardShortcuts: le,
1366
+ isPlaybackPaused: ee,
1367
+ isAutoAdvanceEnabled: ke,
1368
+ locale: d,
1350
1369
  hasInteraction: !!h,
1351
- isInteractionOpen: ue,
1352
- isSubtitleEnabled: Jt,
1353
- onAutoAdvanceToggle: zt,
1354
- onLoadingChange: gr,
1370
+ isInteractionOpen: fe,
1371
+ isSubtitleEnabled: Zt,
1372
+ onAutoAdvanceToggle: jt,
1373
+ onLoadingChange: wr,
1355
1374
  onPlaybackStarted: () => {
1356
- We(!0);
1375
+ rt(!0);
1357
1376
  },
1358
- onPlaybackPreferenceChange: lr,
1359
- onPlaybackTimeChange: de.setTime,
1377
+ onPlaybackPreferenceChange: fr,
1378
+ onPlaybackTimeChange: me.setTime,
1360
1379
  onSubtitleToggle: () => {
1361
- Un((e) => !e);
1380
+ Jn((e) => !e);
1362
1381
  },
1363
1382
  nextDisabled: !_,
1364
- onEnded: vr,
1365
- onFullscreen: mr,
1366
- isFullscreen: Qt,
1367
- mobileViewMode: J,
1368
- settingsPortalContainer: ct.current,
1369
- onMobileViewModeChange: Wn,
1370
- onControlsPointerEnter: Ir,
1371
- onControlsPointerLeave: br,
1372
- onInteractionToggle: Sr,
1373
- onNext: hr,
1374
- onPrev: yr,
1375
- onSubtitleJump: pr,
1376
- canJumpToSubtitleTarget: Tt,
1377
- prevDisabled: !Ln,
1383
+ onEnded: xr,
1384
+ onFullscreen: Sr,
1385
+ isFullscreen: tn,
1386
+ mobileViewMode: Q,
1387
+ settingsPortalContainer: pt.current,
1388
+ onMobileViewModeChange: rr,
1389
+ onControlsPointerEnter: Tr,
1390
+ onControlsPointerLeave: Cr,
1391
+ onInteractionToggle: Er,
1392
+ onNext: Ar,
1393
+ onPrev: br,
1394
+ onSubtitleJump: Ir,
1395
+ canJumpToSubtitleTarget: Ot,
1396
+ prevDisabled: !Kn,
1378
1397
  showControls: T,
1379
- subtitleSeekRequest: Vn,
1380
- texts: at,
1381
- customActionContext: xt,
1382
- customActions: ne,
1383
- useAutoAdvanceToggle: ke
1398
+ subtitleSeekRequest: Gn,
1399
+ texts: mt,
1400
+ customActionContext: Ct,
1401
+ customActions: oe,
1402
+ useAutoAdvanceToggle: De
1384
1403
  }
1385
1404
  )
1386
1405
  }
@@ -1393,6 +1412,6 @@ const bo = (u, f) => u.length === f.length && u.every((H, Se) => {
1393
1412
  );
1394
1413
  };
1395
1414
  export {
1396
- li as default
1415
+ gi as default
1397
1416
  };
1398
1417
  //# sourceMappingURL=Slide.es.js.map