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.
- package/README.md +7 -0
- package/dist/_virtual/index.es3.js +5 -4
- package/dist/_virtual/index.es3.js.map +1 -1
- package/dist/_virtual/index.es4.js +4 -5
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/assets/markdown-flow-ui.css +10 -1
- package/dist/components/ContentRender/CodeBlock.cjs +1 -1
- package/dist/components/ContentRender/CodeBlock.cjs.map +1 -1
- package/dist/components/ContentRender/CodeBlock.d.ts +5 -0
- package/dist/components/ContentRender/CodeBlock.es.js +41 -38
- package/dist/components/ContentRender/CodeBlock.es.js.map +1 -1
- package/dist/components/ContentRender/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.d.ts +9 -4
- package/dist/components/ContentRender/ContentRender.es.js +389 -298
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.cjs +7 -7
- package/dist/components/ContentRender/IframeSandbox.cjs.map +1 -1
- package/dist/components/ContentRender/IframeSandbox.d.ts +5 -1
- package/dist/components/ContentRender/IframeSandbox.es.js +311 -266
- package/dist/components/ContentRender/IframeSandbox.es.js.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -1
- package/dist/components/ContentRender/MarkdownFlowInput.es.js +37 -32
- package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
- package/dist/components/ContentRender/SandboxApp.cjs +2 -2
- package/dist/components/ContentRender/SandboxApp.cjs.map +1 -1
- package/dist/components/ContentRender/SandboxApp.d.ts +5 -1
- package/dist/components/ContentRender/SandboxApp.es.js +108 -103
- package/dist/components/ContentRender/SandboxApp.es.js.map +1 -1
- package/dist/components/ContentRender/blackboard-vendor.d.ts +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.d.ts +6 -1
- package/dist/components/ContentRender/contentRenderI18n.es.js +5 -56
- package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.test.d.ts +1 -0
- package/dist/components/ContentRender/index.cjs +1 -1
- package/dist/components/ContentRender/index.d.ts +11 -11
- package/dist/components/ContentRender/index.es.js +1 -2
- package/dist/components/ContentRender/index.es.js.map +1 -1
- package/dist/components/ContentRender/locales/contentRender.json.cjs +2 -0
- package/dist/components/ContentRender/locales/contentRender.json.cjs.map +1 -0
- package/dist/components/ContentRender/locales/contentRender.json.d.ts +90 -0
- package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -0
- package/dist/components/ContentRender/locales/contentRender.json.es.js.map +1 -0
- package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.d.ts +7 -3
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +165 -151
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/MermaidChart.d.ts +1 -0
- package/dist/components/ContentRender/plugins/MermaidChart.es.js +68 -44
- package/dist/components/ContentRender/plugins/MermaidChart.es.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +12 -4
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js +51 -39
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.d.ts +31 -1
- package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js +46 -17
- package/dist/components/MarkdownFlow/ScrollToBottomButton.es.js.map +1 -1
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs +2 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.cjs.map +1 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.d.ts +18 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js +47 -0
- package/dist/components/MarkdownFlow/ScrollToBottomControl.es.js.map +1 -0
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.d.ts +1 -1
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js +33 -52
- package/dist/components/MarkdownFlow/ScrollableMarkdownFlow.es.js.map +1 -1
- package/dist/components/MarkdownFlow/index.cjs +1 -1
- package/dist/components/MarkdownFlow/index.d.ts +9 -6
- package/dist/components/MarkdownFlow/index.es.js +6 -6
- package/dist/components/MarkdownFlow/index.es.js.map +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.cjs +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.cjs.map +1 -1
- package/dist/components/MarkdownFlow/useScrollToBottom.d.ts +40 -8
- package/dist/components/MarkdownFlow/useScrollToBottom.es.js +352 -83
- package/dist/components/MarkdownFlow/useScrollToBottom.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.d.ts +5 -3
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js +371 -324
- package/dist/components/MarkdownFlowEditor/MarkdownFlowEditor.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.d.ts +10 -0
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js +22 -19
- package/dist/components/MarkdownFlowEditor/components/CustomDialog.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.d.ts +8 -0
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js +19 -15
- package/dist/components/MarkdownFlowEditor/components/CustomPopover.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.d.ts +4 -1
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js +99 -93
- package/dist/components/MarkdownFlowEditor/components/EditorToolbar.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js +183 -182
- package/dist/components/MarkdownFlowEditor/components/ImageInject.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js +107 -103
- package/dist/components/MarkdownFlowEditor/components/VariableSearchDropdown.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js +106 -106
- package/dist/components/MarkdownFlowEditor/components/VariableSelect.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js +64 -63
- package/dist/components/MarkdownFlowEditor/components/VideoInject.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js +13 -13
- package/dist/components/MarkdownFlowEditor/components/icons/ButtonIcon.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js +12 -12
- package/dist/components/MarkdownFlowEditor/components/icons/SearchBracesIcon.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editor-context.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.d.ts +290 -0
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js +12 -8
- package/dist/components/MarkdownFlowEditor/editorI18n.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/editorI18n.test.d.ts +1 -0
- package/dist/components/MarkdownFlowEditor/index.d.ts +6 -6
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.d.ts +72 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js +140 -0
- package/dist/components/MarkdownFlowEditor/locales/ar-SA.json.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js +118 -114
- package/dist/components/MarkdownFlowEditor/locales/en-US.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js +118 -114
- package/dist/components/MarkdownFlowEditor/locales/fr-FR.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.d.ts +72 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js +140 -0
- package/dist/components/MarkdownFlowEditor/locales/th-TH.json.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.d.ts +2 -0
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js +70 -66
- package/dist/components/MarkdownFlowEditor/locales/zh-CN.json.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js +40 -35
- package/dist/components/MarkdownFlowEditor/plugins/ImgPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/PlaceholderWidget.d.ts +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.cjs.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js +27 -23
- package/dist/components/MarkdownFlowEditor/plugins/VideoPlaceholder.es.js.map +1 -1
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs +2 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.cjs.map +1 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.d.ts +7 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js +12 -0
- package/dist/components/MarkdownFlowEditor/plugins/mediaPlaceholderLabels.es.js.map +1 -0
- package/dist/components/MarkdownFlowEditor/utils.d.ts +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.cjs +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.cjs.map +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.d.ts +1 -1
- package/dist/components/Slide/MarkdownSlideScaling.es.js +20 -20
- package/dist/components/Slide/MarkdownSlideScaling.es.js.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.cjs.map +1 -1
- package/dist/components/Slide/MobilePlayerSettingsSheet.d.ts +7 -2
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js +61 -57
- package/dist/components/Slide/MobilePlayerSettingsSheet.es.js.map +1 -1
- package/dist/components/Slide/Player.cjs +1 -1
- package/dist/components/Slide/Player.cjs.map +1 -1
- package/dist/components/Slide/Player.d.ts +6 -6
- package/dist/components/Slide/Player.es.js +547 -541
- package/dist/components/Slide/Player.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +14 -12
- package/dist/components/Slide/Slide.es.js +745 -726
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/SubtitleOverlay.cjs +1 -1
- package/dist/components/Slide/SubtitleOverlay.cjs.map +1 -1
- package/dist/components/Slide/SubtitleOverlay.d.ts +2 -2
- package/dist/components/Slide/SubtitleOverlay.es.js +17 -17
- package/dist/components/Slide/SubtitleOverlay.es.js.map +1 -1
- package/dist/components/Slide/diff-utils.d.ts +1 -1
- package/dist/components/Slide/index.d.ts +12 -12
- package/dist/components/Slide/locales/slide.json.cjs +2 -0
- package/dist/components/Slide/locales/slide.json.cjs.map +1 -0
- package/dist/components/Slide/locales/slide.json.d.ts +205 -0
- package/dist/components/Slide/locales/slide.json.es.js +11 -0
- package/dist/components/Slide/locales/slide.json.es.js.map +1 -0
- package/dist/components/Slide/slideI18n.cjs +1 -1
- package/dist/components/Slide/slideI18n.cjs.map +1 -1
- package/dist/components/Slide/slideI18n.d.ts +6 -3
- package/dist/components/Slide/slideI18n.es.js +10 -155
- package/dist/components/Slide/slideI18n.es.js.map +1 -1
- package/dist/components/Slide/useSlide.d.ts +1 -1
- package/dist/components/Slide/utils/appendedMarkerAdvance.d.ts +1 -1
- package/dist/components/Slide/utils/audioSegments.d.ts +1 -1
- package/dist/components/Slide/utils/interactionResolution.d.ts +2 -2
- package/dist/components/Slide/utils/listenModeElementList.d.ts +2 -2
- package/dist/components/Slide/utils/markdownScaling.d.ts +1 -1
- package/dist/components/Slide/utils/playerCustomActions.d.ts +2 -2
- package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.cjs.map +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.d.ts +1 -1
- package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js +20 -20
- package/dist/components/Slide/utils/playerKeyboardShortcuts.es.js.map +1 -1
- package/dist/components/Slide/utils/runStreamFixture.d.ts +1 -1
- package/dist/components/Slide/utils/segmentSeek.d.ts +1 -1
- package/dist/components/Slide/utils/silentStepAutoAdvance.d.ts +1 -1
- package/dist/components/Slide/utils/streamingNavigation.d.ts +1 -1
- package/dist/components/Slide/utils/subtitleCue.d.ts +1 -1
- package/dist/components/Slide/utils/subtitleJumpNavigation.d.ts +1 -1
- package/dist/components/index.d.ts +22 -18
- package/dist/components/ui/button.cjs +1 -1
- package/dist/components/ui/button.cjs.map +1 -1
- package/dist/components/ui/button.es.js +12 -13
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/checkbox.cjs +1 -1
- package/dist/components/ui/checkbox.cjs.map +1 -1
- package/dist/components/ui/checkbox.es.js +35 -35
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/dialog.cjs +1 -1
- package/dist/components/ui/dialog.cjs.map +1 -1
- package/dist/components/ui/dialog.d.ts +5 -1
- package/dist/components/ui/dialog.es.js +37 -37
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/input.cjs +1 -1
- package/dist/components/ui/input.cjs.map +1 -1
- package/dist/components/ui/input.es.js +4 -4
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/inputGroup/button.cjs +1 -1
- package/dist/components/ui/inputGroup/button.cjs.map +1 -1
- package/dist/components/ui/inputGroup/button.es.js +9 -10
- package/dist/components/ui/inputGroup/button.es.js.map +1 -1
- package/dist/components/ui/inputGroup/input-group.cjs +1 -1
- package/dist/components/ui/inputGroup/input-group.cjs.map +1 -1
- package/dist/components/ui/inputGroup/input-group.d.ts +1 -1
- package/dist/components/ui/inputGroup/input-group.es.js +10 -10
- package/dist/components/ui/inputGroup/input-group.es.js.map +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.cjs.map +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +3 -3
- package/dist/components/ui/inputGroup/textarea.es.js.map +1 -1
- package/dist/components/ui/loading-overlay-card.cjs +2 -2
- package/dist/components/ui/loading-overlay-card.cjs.map +1 -1
- package/dist/components/ui/loading-overlay-card.es.js +11 -11
- package/dist/components/ui/loading-overlay-card.es.js.map +1 -1
- package/dist/components/ui/popover.cjs +1 -1
- package/dist/components/ui/popover.cjs.map +1 -1
- package/dist/components/ui/popover.es.js +6 -6
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/tooltip.cjs +1 -1
- package/dist/components/ui/tooltip.cjs.map +1 -1
- package/dist/components/ui/tooltip.es.js +16 -16
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/editor.d.ts +2 -2
- package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +22 -19
- package/dist/index.es.js.map +1 -1
- package/dist/lib/locale.cjs +1 -1
- package/dist/lib/locale.cjs.map +1 -1
- package/dist/lib/locale.d.ts +5 -1
- package/dist/lib/locale.es.js +26 -13
- package/dist/lib/locale.es.js.map +1 -1
- package/dist/lib/locale.test.d.ts +1 -0
- package/dist/lib/useDetachedLanguage.cjs +2 -0
- package/dist/lib/useDetachedLanguage.cjs.map +1 -0
- package/dist/lib/useDetachedLanguage.d.ts +3 -0
- package/dist/lib/useDetachedLanguage.es.js +25 -0
- package/dist/lib/useDetachedLanguage.es.js.map +1 -0
- package/dist/lib/useResolvedDirection.cjs +2 -0
- package/dist/lib/useResolvedDirection.cjs.map +1 -0
- package/dist/lib/useResolvedDirection.d.ts +6 -0
- package/dist/lib/useResolvedDirection.es.js +37 -0
- package/dist/lib/useResolvedDirection.es.js.map +1 -0
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js +21 -21
- package/dist/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs +2 -2
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js +100 -100
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js +38 -38
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js +9 -9
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js +95 -95
- package/dist/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js +48 -48
- package/dist/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-portal/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js +9 -9
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js +17 -17
- package/dist/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js +100 -100
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.cjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js +6 -6
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.es.js.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.cjs.map +1 -1
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js +27 -27
- package/dist/node_modules/@uiw/react-codemirror/esm/index.es.js.map +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.cjs → chevrons-down.cjs} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/{chevron-down.es.js → chevrons-down.es.js} +6 -3
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-down.es.js.map +1 -0
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.cjs +1 -1
- package/dist/node_modules/react-markdown/lib/index.cjs.map +1 -1
- package/dist/node_modules/react-markdown/lib/index.es.js +39 -39
- package/dist/node_modules/react-markdown/lib/index.es.js.map +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
- package/dist/renderer.cjs +1 -1
- package/dist/renderer.d.ts +18 -17
- package/dist/renderer.es.js +20 -17
- package/dist/renderer.es.js.map +1 -1
- package/dist/scroll.cjs +2 -0
- package/dist/scroll.cjs.map +1 -0
- package/dist/scroll.d.ts +6 -0
- package/dist/scroll.es.js +9 -0
- package/dist/scroll.es.js.map +1 -0
- package/dist/slide.d.ts +3 -3
- package/package.json +13 -2
- package/dist/_virtual/jsx-runtime.cjs +0 -2
- package/dist/_virtual/jsx-runtime.cjs.map +0 -1
- package/dist/_virtual/jsx-runtime.es.js +0 -6
- package/dist/_virtual/jsx-runtime.es.js.map +0 -1
- package/dist/_virtual/jsx-runtime.es2.js +0 -5
- package/dist/_virtual/jsx-runtime.es2.js.map +0 -1
- package/dist/_virtual/jsx-runtime2.cjs +0 -2
- package/dist/_virtual/jsx-runtime2.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.cjs +0 -2
- package/dist/_virtual/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.es.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/lib/localeTextMap.cjs +0 -2
- package/dist/lib/localeTextMap.cjs.map +0 -1
- package/dist/lib/localeTextMap.es.js +0 -5
- package/dist/lib/localeTextMap.es.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.cjs.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs +0 -24
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +0 -409
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs +0 -10
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +0 -36
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.cjs +0 -2
- package/dist/node_modules/react/jsx-runtime.cjs.map +0 -1
- package/dist/node_modules/react/jsx-runtime.es.js +0 -11
- package/dist/node_modules/react/jsx-runtime.es.js.map +0 -1
|
@@ -1,54 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
1
|
+
import { jsxs as X, jsx as a, Fragment as cr } from "react/jsx-runtime";
|
|
2
|
+
import or, { memo as fr, useId as dr, useContext as mr, useRef as o, useState as He, useMemo as re, useCallback as r, useEffect as S } from "react";
|
|
3
|
+
import { getMarkdownFlowDirection as pr, getMarkdownFlowLanguage as hr } from "../../lib/locale.es.js";
|
|
4
|
+
import { useDetachedLanguage as yr } from "../../lib/useDetachedLanguage.es.js";
|
|
5
|
+
import { useResolvedDirection as br } from "../../lib/useResolvedDirection.es.js";
|
|
6
|
+
import { cn as Ft } from "../../lib/utils.es.js";
|
|
7
|
+
import Sr from "./MobilePlayerSettingsSheet.es.js";
|
|
8
|
+
import { getSlidePlayerTexts as gr } from "./slideI18n.es.js";
|
|
9
|
+
import { DEFAULT_MOBILE_VIEW_MODE as _r } from "./utils/mobileScreenMode.es.js";
|
|
10
|
+
import { hasReachedAudioEnd as kr } from "./utils/audioCompletion.es.js";
|
|
11
|
+
import { PlayerKeyboardShortcutContext as wr } from "./utils/playerKeyboardShortcutContext.es.js";
|
|
12
|
+
import { activatePlayerKeyboardShortcutOwner as Mr, registerPlayerKeyboardShortcutOwner as Cr, isActivePlayerKeyboardShortcutOwner as Lr, getPlayerKeyboardShortcutAction as vr, shouldIgnorePlayerKeyboardShortcutEvent as Tr } from "./utils/playerKeyboardShortcuts.es.js";
|
|
13
|
+
import { resolveAudioPlaybackSourceType as xr } from "./utils/playbackSource.es.js";
|
|
14
|
+
import { shouldKeepPlayingAfterNavigation as Ar } from "./utils/playbackPreference.es.js";
|
|
15
|
+
import { toPlayerCustomActionList as Nr } from "./utils/playerCustomActions.es.js";
|
|
16
|
+
import { suppressPlayerControlsWakeAfterNavigation as $e } from "./utils/playerNavigationContext.es.js";
|
|
17
|
+
import { isPlaybackTimeCoveredBySegments as Ut, resolveSegmentSeekTarget as Rr } from "./utils/segmentSeek.es.js";
|
|
18
|
+
import { getSortedAudioSegments as Pt } from "./utils/audioSegments.es.js";
|
|
19
|
+
import { getSubtitleCueJumpTarget as Er, shouldClearSubtitleCueJumpTarget as Kr } from "./utils/subtitleCue.es.js";
|
|
17
20
|
/* empty css */
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
const
|
|
30
|
-
if (typeof window > "u" || !f ||
|
|
21
|
+
import Fr from "../../node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.es.js";
|
|
22
|
+
import Ur from "../../node_modules/lucide-react/dist/esm/icons/volume-2.es.js";
|
|
23
|
+
import Pr from "../../node_modules/lucide-react/dist/esm/icons/skip-back.es.js";
|
|
24
|
+
import Wr from "../../node_modules/lucide-react/dist/esm/icons/skip-forward.es.js";
|
|
25
|
+
import Br from "../../node_modules/lucide-react/dist/esm/icons/rewind.es.js";
|
|
26
|
+
import Or from "../../node_modules/lucide-react/dist/esm/icons/fast-forward.es.js";
|
|
27
|
+
import Vr from "../../node_modules/lucide-react/dist/esm/icons/captions.es.js";
|
|
28
|
+
import Hr from "../../node_modules/lucide-react/dist/esm/icons/captions-off.es.js";
|
|
29
|
+
import $r from "../../node_modules/lucide-react/dist/esm/icons/scan-line.es.js";
|
|
30
|
+
import Dr from "../../node_modules/lucide-react/dist/esm/icons/maximize.es.js";
|
|
31
|
+
import Jr from "../../node_modules/lucide-react/dist/esm/icons/file-pen-line.es.js";
|
|
32
|
+
const Wt = /* @__PURE__ */ new Map(), Bt = (f) => {
|
|
33
|
+
if (typeof window > "u" || !f || Wt.has(f))
|
|
31
34
|
return;
|
|
32
35
|
const d = window.document.createElement("audio");
|
|
33
|
-
d.preload = "auto", d.setAttribute("playsinline", "true"), d.src = f, d.load(),
|
|
34
|
-
},
|
|
35
|
-
const
|
|
36
|
-
return d.subtitleCueLists[
|
|
37
|
-
}),
|
|
36
|
+
d.preload = "auto", d.setAttribute("playsinline", "true"), d.src = f, d.load(), Wt.set(f, d);
|
|
37
|
+
}, Zr = (f, d) => d !== null && d.audioList === f && d.subtitleCueLists.length === f.length && f.every((s, k) => {
|
|
38
|
+
const w = s.element?.subtitle_cues;
|
|
39
|
+
return d.subtitleCueLists[k] === w && d.subtitleCueLengths[k] === (w?.length ?? 0);
|
|
40
|
+
}), jr = (f) => {
|
|
38
41
|
const d = f.map(
|
|
39
|
-
(
|
|
42
|
+
(s) => s.element?.subtitle_cues
|
|
40
43
|
);
|
|
41
44
|
return {
|
|
42
45
|
audioList: f,
|
|
43
46
|
subtitleCueLists: d,
|
|
44
47
|
subtitleCueLengths: d.map(
|
|
45
|
-
(
|
|
48
|
+
(s) => s?.length ?? 0
|
|
46
49
|
),
|
|
47
|
-
tracks: d.map((
|
|
48
|
-
subtitleCues:
|
|
50
|
+
tracks: d.map((s) => ({
|
|
51
|
+
subtitleCues: s ?? []
|
|
49
52
|
}))
|
|
50
53
|
};
|
|
51
|
-
},
|
|
54
|
+
}, zr = () => /* @__PURE__ */ X(
|
|
52
55
|
"svg",
|
|
53
56
|
{
|
|
54
57
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -57,17 +60,17 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
57
60
|
viewBox: "0 0 34 34",
|
|
58
61
|
fill: "none",
|
|
59
62
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ a(
|
|
61
64
|
"path",
|
|
62
65
|
{
|
|
63
66
|
d: "M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",
|
|
64
67
|
fill: "#0A0A0A"
|
|
65
68
|
}
|
|
66
69
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ a("path", { d: "M12 10H16V24H12V10ZM18 10H22V24H18V10Z", fill: "white" })
|
|
68
71
|
]
|
|
69
72
|
}
|
|
70
|
-
),
|
|
73
|
+
), Yr = () => /* @__PURE__ */ X(
|
|
71
74
|
"svg",
|
|
72
75
|
{
|
|
73
76
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -76,718 +79,721 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
76
79
|
viewBox: "0 0 34 34",
|
|
77
80
|
fill: "none",
|
|
78
81
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ a(
|
|
80
83
|
"path",
|
|
81
84
|
{
|
|
82
85
|
d: "M16.6667 33.3333C25.8714 33.3333 33.3333 25.8714 33.3333 16.6667C33.3333 7.46192 25.8714 0 16.6667 0C7.46192 0 0 7.46192 0 16.6667C0 25.8714 7.46192 33.3333 16.6667 33.3333Z",
|
|
83
86
|
fill: "#0A0A0A"
|
|
84
87
|
}
|
|
85
88
|
),
|
|
86
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ a("path", { d: "M13.3333 10L23.3333 16.6667L13.3333 23.3333V10Z", fill: "white" })
|
|
87
90
|
]
|
|
88
91
|
}
|
|
89
|
-
),
|
|
92
|
+
), V = {
|
|
90
93
|
fullscreen: "F",
|
|
91
94
|
next: "→",
|
|
92
95
|
nextSubtitle: "Shift+→",
|
|
93
96
|
notes: "N",
|
|
94
|
-
playback: "Space",
|
|
95
97
|
previous: "←",
|
|
96
98
|
previousSubtitle: "Shift+←",
|
|
97
99
|
subtitle: "C"
|
|
98
|
-
},
|
|
100
|
+
}, Gr = 250, Qr = (f, d) => f ? `${f} (${d})` : d, Xr = ({
|
|
99
101
|
audioList: f = [],
|
|
100
102
|
className: d,
|
|
101
|
-
currentAudioIndex:
|
|
102
|
-
defaultPlaying:
|
|
103
|
-
isPlaybackPaused:
|
|
103
|
+
currentAudioIndex: s = -1,
|
|
104
|
+
defaultPlaying: k = !0,
|
|
105
|
+
isPlaybackPaused: w = !1,
|
|
104
106
|
isAutoAdvanceEnabled: Z = !0,
|
|
105
|
-
useAutoAdvanceToggle:
|
|
106
|
-
onLoadingChange:
|
|
107
|
-
onPlaybackPreferenceChange:
|
|
108
|
-
onPlaybackStarted:
|
|
109
|
-
onPlaybackTimeChange:
|
|
110
|
-
onSubtitleToggle:
|
|
111
|
-
onPrev:
|
|
112
|
-
onNext:
|
|
113
|
-
onSubtitleJump:
|
|
114
|
-
canJumpToSubtitleTarget:
|
|
115
|
-
onFullscreen:
|
|
116
|
-
isFullscreen:
|
|
117
|
-
mobileViewMode:
|
|
118
|
-
settingsPortalContainer:
|
|
119
|
-
onMobileViewModeChange:
|
|
120
|
-
onEnded:
|
|
121
|
-
onAutoAdvanceToggle:
|
|
122
|
-
onInteractionToggle:
|
|
123
|
-
hasInteraction:
|
|
124
|
-
isInteractionOpen:
|
|
125
|
-
isSubtitleEnabled:
|
|
126
|
-
prevDisabled:
|
|
127
|
-
nextDisabled:
|
|
128
|
-
showControls:
|
|
129
|
-
onControlsPointerEnter:
|
|
130
|
-
onControlsPointerLeave:
|
|
131
|
-
enableKeyboardShortcuts:
|
|
132
|
-
subtitleSeekRequest:
|
|
133
|
-
customActions:
|
|
134
|
-
customActionContext:
|
|
135
|
-
locale:
|
|
136
|
-
texts:
|
|
137
|
-
onFocusCapture:
|
|
138
|
-
onPointerDown:
|
|
139
|
-
...
|
|
107
|
+
useAutoAdvanceToggle: P = !1,
|
|
108
|
+
onLoadingChange: De,
|
|
109
|
+
onPlaybackPreferenceChange: Je,
|
|
110
|
+
onPlaybackStarted: Ze,
|
|
111
|
+
onPlaybackTimeChange: fe,
|
|
112
|
+
onSubtitleToggle: ne,
|
|
113
|
+
onPrev: de,
|
|
114
|
+
onNext: me,
|
|
115
|
+
onSubtitleJump: pe,
|
|
116
|
+
canJumpToSubtitleTarget: Ae,
|
|
117
|
+
onFullscreen: ue,
|
|
118
|
+
isFullscreen: je = !1,
|
|
119
|
+
mobileViewMode: Ot = _r,
|
|
120
|
+
settingsPortalContainer: Vt,
|
|
121
|
+
onMobileViewModeChange: ze,
|
|
122
|
+
onEnded: Ye,
|
|
123
|
+
onAutoAdvanceToggle: Ge,
|
|
124
|
+
onInteractionToggle: he,
|
|
125
|
+
hasInteraction: Ne = !1,
|
|
126
|
+
isInteractionOpen: le = !1,
|
|
127
|
+
isSubtitleEnabled: Re = !0,
|
|
128
|
+
prevDisabled: Ee = !1,
|
|
129
|
+
nextDisabled: Ke = !1,
|
|
130
|
+
showControls: Fe = !0,
|
|
131
|
+
onControlsPointerEnter: Ht,
|
|
132
|
+
onControlsPointerLeave: $t,
|
|
133
|
+
enableKeyboardShortcuts: Dt = !0,
|
|
134
|
+
subtitleSeekRequest: H = null,
|
|
135
|
+
customActions: Qe,
|
|
136
|
+
customActionContext: Xe,
|
|
137
|
+
locale: ye,
|
|
138
|
+
texts: qe,
|
|
139
|
+
onFocusCapture: Ie,
|
|
140
|
+
onPointerDown: et,
|
|
141
|
+
...Ue
|
|
140
142
|
}) => {
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
),
|
|
144
|
-
}),
|
|
143
|
+
const Pe = Ue.dir ?? pr(ye), tt = Ue.lang ?? hr(ye), Jt = dr(), rt = mr(wr), g = o(null), { resolvedDirection: nt, readDirection: ut } = br(g, Pe), be = nt === "rtl", Zt = yr(g, tt), lt = o(le), K = o(null), at = o(null), F = o(0), m = o(null), Se = o(void 0), N = o([]), ae = o(
|
|
144
|
+
P ? Z : k
|
|
145
|
+
), se = o(!1), st = o(!1), M = o(!1), U = o(null), j = o(null), x = o(!1), c = o(!1), C = o(null), R = o(!1), z = o(null), ge = o(0), it = o(() => {
|
|
146
|
+
}), _e = o(null), ie = o(null), ct = o(null), ot = o(null), W = o("unknown"), [ke, h] = He(k), [ft, q] = He(!1), [I, jt] = He({
|
|
145
147
|
next: !1,
|
|
146
148
|
previous: !1
|
|
147
|
-
}),
|
|
148
|
-
() =>
|
|
149
|
-
[p,
|
|
149
|
+
}), Y = rt?.ownerId ?? Jt, B = Dt && (rt?.enabled ?? !0), p = s >= 0 ? f[s] : void 0, v = p?.audioUrl, dt = p?.audioSegments, zt = dt?.length ?? 0, E = re(
|
|
150
|
+
() => Pt(p),
|
|
151
|
+
[p, zt, dt]
|
|
150
152
|
);
|
|
151
|
-
let
|
|
152
|
-
|
|
153
|
-
const
|
|
154
|
-
() =>
|
|
155
|
-
[
|
|
156
|
-
),
|
|
153
|
+
let we = ot.current;
|
|
154
|
+
Zr(f, we) || (we = jr(f), ot.current = we);
|
|
155
|
+
const mt = we.tracks, pt = re(
|
|
156
|
+
() => Nr(Qe, Xe),
|
|
157
|
+
[Xe, Qe]
|
|
158
|
+
), ht = pt.length + 7, Yt = re(
|
|
157
159
|
() => ({
|
|
158
|
-
"--slide-player-mobile-control-count": String(
|
|
160
|
+
"--slide-player-mobile-control-count": String(ht)
|
|
159
161
|
}),
|
|
160
|
-
[
|
|
161
|
-
), i =
|
|
162
|
+
[ht]
|
|
163
|
+
), i = re(
|
|
162
164
|
() => ({
|
|
163
|
-
...
|
|
164
|
-
...
|
|
165
|
+
...gr(ye),
|
|
166
|
+
...qe
|
|
165
167
|
}),
|
|
166
|
-
[
|
|
167
|
-
),
|
|
168
|
-
(e, t,
|
|
169
|
-
ariaKeyShortcuts:
|
|
170
|
-
title:
|
|
168
|
+
[ye, qe]
|
|
169
|
+
), We = re(() => p ? p.audioKey ?? `${String(p.sequenceNumber ?? "none")}:${String(p.audioUrl ?? "")}` : "none", [p]), Gt = P ? Z : ke, yt = P ? Z ? i.pauseAutoplayLabel : i.playAutoplayLabel : ke ? i.pauseLabel : i.playLabel, bt = je ? i.exitFullscreenLabel : i.enterFullscreenLabel, $ = r(
|
|
170
|
+
(e, t, u) => ({
|
|
171
|
+
ariaKeyShortcuts: B ? u : void 0,
|
|
172
|
+
title: B ? Qr(e, t) : e
|
|
171
173
|
}),
|
|
172
|
-
[
|
|
173
|
-
),
|
|
174
|
+
[B]
|
|
175
|
+
), St = $(
|
|
174
176
|
i.subtitleToggleAriaLabel,
|
|
175
|
-
|
|
177
|
+
V.subtitle,
|
|
176
178
|
"c"
|
|
177
|
-
),
|
|
179
|
+
), gt = $(
|
|
178
180
|
i.previousLabel,
|
|
179
|
-
|
|
180
|
-
"ArrowLeft"
|
|
181
|
-
),
|
|
181
|
+
be ? V.next : V.previous,
|
|
182
|
+
be ? "ArrowRight" : "ArrowLeft"
|
|
183
|
+
), _t = $(
|
|
182
184
|
i.previousSubtitleLabel,
|
|
183
|
-
|
|
185
|
+
V.previousSubtitle,
|
|
184
186
|
"Shift+ArrowLeft"
|
|
185
|
-
),
|
|
186
|
-
|
|
187
|
-
|
|
187
|
+
), kt = $(
|
|
188
|
+
yt,
|
|
189
|
+
i.playbackShortcutLabel,
|
|
188
190
|
"Space"
|
|
189
|
-
),
|
|
191
|
+
), wt = $(
|
|
190
192
|
i.nextLabel,
|
|
191
|
-
|
|
192
|
-
"ArrowRight"
|
|
193
|
-
),
|
|
193
|
+
be ? V.previous : V.next,
|
|
194
|
+
be ? "ArrowLeft" : "ArrowRight"
|
|
195
|
+
), Mt = $(
|
|
194
196
|
i.nextSubtitleLabel,
|
|
195
|
-
|
|
197
|
+
V.nextSubtitle,
|
|
196
198
|
"Shift+ArrowRight"
|
|
197
|
-
),
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
), Ct = $(
|
|
200
|
+
bt,
|
|
201
|
+
V.fullscreen,
|
|
200
202
|
"f"
|
|
201
|
-
),
|
|
203
|
+
), Lt = $(
|
|
202
204
|
i.notesLabel,
|
|
203
|
-
|
|
205
|
+
V.notes,
|
|
204
206
|
"n"
|
|
205
|
-
),
|
|
206
|
-
|
|
207
|
-
}, [
|
|
207
|
+
), Me = r(() => {
|
|
208
|
+
B && Mr(Y);
|
|
209
|
+
}, [Y, B]), Qt = r(
|
|
208
210
|
(e) => {
|
|
209
|
-
|
|
211
|
+
Me(), et?.(e);
|
|
210
212
|
},
|
|
211
|
-
[
|
|
212
|
-
),
|
|
213
|
+
[Me, et]
|
|
214
|
+
), Xt = r(
|
|
213
215
|
(e) => {
|
|
214
|
-
|
|
216
|
+
Me(), Ie?.(e);
|
|
215
217
|
},
|
|
216
|
-
[
|
|
218
|
+
[Me, Ie]
|
|
217
219
|
);
|
|
218
220
|
S(() => {
|
|
219
|
-
|
|
221
|
+
Se.current = p;
|
|
220
222
|
}, [p]), S(() => {
|
|
221
|
-
|
|
222
|
-
}, [
|
|
223
|
-
|
|
224
|
-
}, [
|
|
225
|
-
!
|
|
226
|
-
}, [
|
|
227
|
-
|
|
228
|
-
}, [
|
|
229
|
-
const e = p?.audioUrl, t =
|
|
230
|
-
|
|
231
|
-
}, [f, p?.audioUrl,
|
|
223
|
+
ae.current = P ? Z : k;
|
|
224
|
+
}, [k, Z, P]), S(() => {
|
|
225
|
+
Fe || q(!1);
|
|
226
|
+
}, [Fe]), S(() => {
|
|
227
|
+
!lt.current && le && q(!1), lt.current = le;
|
|
228
|
+
}, [le]), S(() => {
|
|
229
|
+
N.current = E;
|
|
230
|
+
}, [E]), S(() => {
|
|
231
|
+
const e = p?.audioUrl, t = s >= 0 ? f[s + 1]?.audioUrl : void 0;
|
|
232
|
+
Bt(e), Bt(t);
|
|
233
|
+
}, [f, p?.audioUrl, s]);
|
|
232
234
|
const l = r(
|
|
233
235
|
(e, t = null) => {
|
|
234
|
-
|
|
236
|
+
st.current === e && (!e || t === null) || (st.current = e, De?.({
|
|
235
237
|
loading: e,
|
|
236
238
|
reason: e ? t : null
|
|
237
239
|
}));
|
|
238
240
|
},
|
|
239
|
-
[
|
|
240
|
-
),
|
|
241
|
+
[De]
|
|
242
|
+
), O = r(
|
|
241
243
|
(e) => {
|
|
242
|
-
|
|
244
|
+
ae.current = e, Je?.(e);
|
|
243
245
|
},
|
|
244
|
-
[
|
|
245
|
-
), G = r(() =>
|
|
246
|
-
shouldContinuePlayback:
|
|
246
|
+
[Je]
|
|
247
|
+
), G = r(() => P ? {
|
|
248
|
+
shouldContinuePlayback: ae.current
|
|
247
249
|
} : {
|
|
248
|
-
shouldContinuePlayback:
|
|
249
|
-
defaultPlaying:
|
|
250
|
-
isPausedByUser:
|
|
250
|
+
shouldContinuePlayback: Ar({
|
|
251
|
+
defaultPlaying: ae.current,
|
|
252
|
+
isPausedByUser: M.current
|
|
251
253
|
})
|
|
252
|
-
}, [
|
|
254
|
+
}, [P]), vt = r((e) => e instanceof DOMException ? e.name === "NotAllowedError" || e.name === "SecurityError" : !1, []), D = r(() => k && !w && !M.current && W.current !== "blocked", [k, w]), Tt = r((e) => e ? e.startsWith("data:") ? e : `data:audio/mpeg;base64,${e}` : "", []), xt = r(() => {
|
|
253
255
|
const e = m.current;
|
|
254
|
-
return e == null || e <= 0 ? 0 :
|
|
255
|
-
(t,
|
|
256
|
+
return e == null || e <= 0 ? 0 : N.current.slice(0, e).reduce(
|
|
257
|
+
(t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
|
|
256
258
|
0
|
|
257
259
|
) / 1e3;
|
|
258
|
-
}, []), Q = r((e) => e <= 0 ? 0 :
|
|
259
|
-
(t,
|
|
260
|
+
}, []), Q = r((e) => e <= 0 ? 0 : N.current.slice(0, e).reduce(
|
|
261
|
+
(t, u) => t + Math.max(Number(u.duration_ms ?? 0), 0),
|
|
260
262
|
0
|
|
261
|
-
), []),
|
|
262
|
-
(e, t) => !e ||
|
|
263
|
-
|
|
263
|
+
), []), Ce = r(
|
|
264
|
+
(e, t) => !e || w ? !1 : e.audioUrl ? !0 : Ut(
|
|
265
|
+
Pt(e),
|
|
264
266
|
t
|
|
265
267
|
),
|
|
266
|
-
[
|
|
268
|
+
[w]
|
|
267
269
|
), ce = r(
|
|
268
|
-
(e, t,
|
|
269
|
-
const
|
|
270
|
-
currentAudioIndex:
|
|
270
|
+
(e, t, u = {}) => {
|
|
271
|
+
const n = Er({
|
|
272
|
+
currentAudioIndex: s,
|
|
271
273
|
currentTimeMs: t,
|
|
272
274
|
direction: e,
|
|
273
|
-
excludeTarget:
|
|
274
|
-
tracks:
|
|
275
|
+
excludeTarget: u.excludeTarget,
|
|
276
|
+
tracks: mt
|
|
275
277
|
});
|
|
276
|
-
return !
|
|
277
|
-
f[
|
|
278
|
-
|
|
279
|
-
) ||
|
|
278
|
+
return !n || !Ce(
|
|
279
|
+
f[n.audioIndex],
|
|
280
|
+
n.timeMs
|
|
281
|
+
) || n.audioIndex !== s && (!pe || Ae && !Ae(n)) ? null : n;
|
|
280
282
|
},
|
|
281
283
|
[
|
|
282
284
|
f,
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
285
|
+
Ae,
|
|
286
|
+
Ce,
|
|
287
|
+
s,
|
|
288
|
+
pe,
|
|
289
|
+
mt
|
|
288
290
|
]
|
|
289
|
-
),
|
|
291
|
+
), Be = r(
|
|
290
292
|
(e, t = !1) => {
|
|
291
|
-
const
|
|
292
|
-
if (!t &&
|
|
293
|
-
|
|
294
|
-
) <
|
|
293
|
+
const u = Math.max(Number(e), 0);
|
|
294
|
+
if (!t && _e.current !== null && Math.abs(
|
|
295
|
+
u - _e.current
|
|
296
|
+
) < Gr)
|
|
295
297
|
return;
|
|
296
|
-
|
|
297
|
-
const
|
|
298
|
-
previous: ce("previous",
|
|
299
|
-
next: ce("next",
|
|
298
|
+
_e.current = u;
|
|
299
|
+
const n = {
|
|
300
|
+
previous: ce("previous", u) !== null,
|
|
301
|
+
next: ce("next", u) !== null
|
|
300
302
|
};
|
|
301
|
-
|
|
303
|
+
jt((b) => b.previous === n.previous && b.next === n.next ? b : n);
|
|
302
304
|
},
|
|
303
305
|
[ce]
|
|
304
306
|
);
|
|
305
307
|
S(() => {
|
|
306
|
-
|
|
307
|
-
}, [
|
|
308
|
-
const
|
|
309
|
-
const e =
|
|
310
|
-
return e ? U.current === "segment" ? Q(
|
|
311
|
-
}, [Q]),
|
|
308
|
+
it.current = Be, Be(ge.current, !0);
|
|
309
|
+
}, [Be]);
|
|
310
|
+
const Le = r(() => {
|
|
311
|
+
const e = g.current;
|
|
312
|
+
return e ? U.current === "segment" ? Q(F.current) + Math.max(e.currentTime, 0) * 1e3 : C.current !== null && e.readyState === 0 ? C.current * 1e3 : Math.max(e.currentTime, 0) * 1e3 : m.current != null ? Q(m.current) : 0;
|
|
313
|
+
}, [Q]), L = r(
|
|
312
314
|
(e) => {
|
|
313
315
|
const t = Math.max(e, 0);
|
|
314
|
-
|
|
315
|
-
currentAudioIndex:
|
|
316
|
+
ge.current !== t && (ge.current = t, Kr({
|
|
317
|
+
currentAudioIndex: s,
|
|
316
318
|
currentTimeMs: t,
|
|
317
|
-
target:
|
|
318
|
-
}) && (
|
|
319
|
+
target: ie.current
|
|
320
|
+
}) && (ie.current = null), fe?.(t), it.current(t));
|
|
319
321
|
},
|
|
320
|
-
[
|
|
322
|
+
[s, fe]
|
|
321
323
|
), y = r(() => {
|
|
322
|
-
|
|
323
|
-
}, [
|
|
324
|
-
typeof window > "u" ||
|
|
325
|
-
}, []),
|
|
326
|
-
if (typeof window > "u" ||
|
|
324
|
+
L(Le());
|
|
325
|
+
}, [Le, L]), _ = r(() => {
|
|
326
|
+
typeof window > "u" || z.current === null || (window.cancelAnimationFrame(z.current), z.current = null);
|
|
327
|
+
}, []), At = r(() => {
|
|
328
|
+
if (typeof window > "u" || z.current !== null)
|
|
327
329
|
return;
|
|
328
330
|
const e = () => {
|
|
329
331
|
y();
|
|
330
|
-
const t =
|
|
332
|
+
const t = g.current;
|
|
331
333
|
if (!t || t.paused || t.ended) {
|
|
332
|
-
|
|
334
|
+
z.current = null;
|
|
333
335
|
return;
|
|
334
336
|
}
|
|
335
|
-
|
|
337
|
+
z.current = window.requestAnimationFrame(e);
|
|
336
338
|
};
|
|
337
|
-
|
|
338
|
-
}, [y]),
|
|
339
|
-
const e =
|
|
340
|
-
e && (
|
|
341
|
-
}, [
|
|
339
|
+
z.current = window.requestAnimationFrame(e);
|
|
340
|
+
}, [y]), ee = r(() => {
|
|
341
|
+
const e = g.current;
|
|
342
|
+
e && (_(), c.current = !1, M.current = !1, se.current = !1, U.current = null, C.current = null, x.current = !1, R.current = !1, j.current = null, e.pause(), e.removeAttribute("src"), e.load(), K.current = null, F.current = 0, m.current = null, L(0), h(!1), l(!1));
|
|
343
|
+
}, [L, _, l]), T = r(
|
|
342
344
|
(e) => {
|
|
343
|
-
const t =
|
|
345
|
+
const t = g.current;
|
|
344
346
|
if (!t)
|
|
345
347
|
return !1;
|
|
346
|
-
const
|
|
347
|
-
return
|
|
348
|
-
|
|
349
|
-
}).catch((
|
|
350
|
-
|
|
348
|
+
const u = t.play();
|
|
349
|
+
return u && typeof u.then == "function" && u.then(() => {
|
|
350
|
+
W.current === "unknown" && (W.current = "auto"), c.current = !1, R.current = !1;
|
|
351
|
+
}).catch((n) => {
|
|
352
|
+
W.current === "unknown" && vt(n) && (W.current = "blocked", c.current = !1, l(!1)), R.current = !1, h(!1);
|
|
351
353
|
}), !0;
|
|
352
354
|
},
|
|
353
|
-
[
|
|
355
|
+
[vt, l]
|
|
354
356
|
), A = r(
|
|
355
|
-
(e, t,
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
357
|
+
(e, t, u = {}) => {
|
|
358
|
+
const n = g.current, b = N.current[e];
|
|
359
|
+
if (!n || !b)
|
|
358
360
|
return !1;
|
|
359
|
-
const
|
|
360
|
-
Number(
|
|
361
|
+
const J = Tt(b.audio_data), xe = Math.max(
|
|
362
|
+
Number(u.seekTimeSeconds ?? 0),
|
|
361
363
|
0
|
|
362
364
|
);
|
|
363
|
-
|
|
364
|
-
Q(e) +
|
|
365
|
+
F.current = e, m.current = null, x.current = !1, R.current = !0, j.current = "segment", L(
|
|
366
|
+
Q(e) + xe * 1e3
|
|
365
367
|
);
|
|
366
|
-
const
|
|
367
|
-
c.current =
|
|
368
|
-
const
|
|
369
|
-
return U.current = "segment",
|
|
368
|
+
const Kt = u.shouldResume ?? D();
|
|
369
|
+
c.current = Kt, l(!1);
|
|
370
|
+
const ir = K.current !== J;
|
|
371
|
+
return U.current = "segment", ir && (n.pause(), n.removeAttribute("src"), n.load(), K.current = J, n.src = J, n.load()), C.current = xe, n.readyState > 0 && (n.currentTime = xe, C.current = null), Kt ? T(`start-segment:${t}`) : (c.current = !1, R.current = !1, n.pause(), h(!1), !0);
|
|
370
372
|
},
|
|
371
373
|
[
|
|
372
|
-
|
|
373
|
-
|
|
374
|
+
D,
|
|
375
|
+
Tt,
|
|
374
376
|
Q,
|
|
375
|
-
C,
|
|
376
377
|
L,
|
|
378
|
+
T,
|
|
377
379
|
l
|
|
378
380
|
]
|
|
379
|
-
),
|
|
381
|
+
), ve = r(
|
|
380
382
|
(e) => {
|
|
381
|
-
const t =
|
|
382
|
-
if (!t || !p ||
|
|
383
|
+
const t = g.current;
|
|
384
|
+
if (!t || !p || w)
|
|
383
385
|
return !1;
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
) ?
|
|
388
|
-
|
|
389
|
-
|
|
386
|
+
const u = Math.max(Number(e), 0), n = !t.paused && !t.ended || c.current || R.current || m.current !== null && ae.current && !M.current, b = Ut(
|
|
387
|
+
N.current,
|
|
388
|
+
u
|
|
389
|
+
) ? Rr(
|
|
390
|
+
N.current,
|
|
391
|
+
u
|
|
390
392
|
) : null;
|
|
391
|
-
if (
|
|
393
|
+
if (_e.current = null, _(), c.current = n, l(!1), n && (W.current = "manual", M.current = !1, O(!0)), b && (U.current === "segment" || !v))
|
|
392
394
|
return A(
|
|
393
395
|
b.segmentIndex,
|
|
394
396
|
"subtitle-seek-segment",
|
|
395
397
|
{
|
|
396
398
|
seekTimeSeconds: b.segmentTimeSeconds,
|
|
397
|
-
shouldResume:
|
|
399
|
+
shouldResume: n
|
|
398
400
|
}
|
|
399
401
|
);
|
|
400
|
-
if (
|
|
401
|
-
const
|
|
402
|
-
return
|
|
402
|
+
if (v) {
|
|
403
|
+
const J = u / 1e3;
|
|
404
|
+
return K.current !== v && (t.pause(), t.removeAttribute("src"), t.load(), K.current = v, U.current = "url", j.current = "url", t.src = v, t.load()), C.current = J, L(u), t.readyState > 0 && (t.currentTime = J, C.current = null), n ? T("subtitle-seek-url") : (c.current = !1, t.pause(), h(!1), !0);
|
|
403
405
|
}
|
|
404
406
|
return !1;
|
|
405
407
|
},
|
|
406
408
|
[
|
|
407
409
|
p,
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
C,
|
|
411
|
-
A,
|
|
412
|
-
g,
|
|
410
|
+
v,
|
|
411
|
+
w,
|
|
413
412
|
L,
|
|
413
|
+
A,
|
|
414
|
+
_,
|
|
415
|
+
T,
|
|
414
416
|
l,
|
|
415
|
-
|
|
417
|
+
O
|
|
416
418
|
]
|
|
417
|
-
),
|
|
419
|
+
), oe = r(
|
|
418
420
|
(e) => {
|
|
419
421
|
const t = ce(
|
|
420
422
|
e,
|
|
421
|
-
|
|
423
|
+
Le(),
|
|
422
424
|
{
|
|
423
|
-
excludeTarget: e === "previous" ?
|
|
425
|
+
excludeTarget: e === "previous" ? ie.current : null
|
|
424
426
|
}
|
|
425
427
|
);
|
|
426
428
|
if (t === null)
|
|
427
429
|
return !1;
|
|
428
|
-
if (t.audioIndex ===
|
|
429
|
-
const
|
|
430
|
-
return
|
|
430
|
+
if (t.audioIndex === s) {
|
|
431
|
+
const n = ve(t.timeMs);
|
|
432
|
+
return n && (ie.current = t), n;
|
|
431
433
|
}
|
|
432
|
-
const
|
|
434
|
+
const u = !!pe?.(
|
|
433
435
|
t,
|
|
434
|
-
|
|
436
|
+
$e(G())
|
|
435
437
|
);
|
|
436
|
-
return
|
|
438
|
+
return u && (ie.current = t), u;
|
|
437
439
|
},
|
|
438
440
|
[
|
|
439
|
-
|
|
440
|
-
|
|
441
|
+
s,
|
|
442
|
+
Le,
|
|
441
443
|
G,
|
|
442
444
|
ce,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
+
pe,
|
|
446
|
+
ve
|
|
445
447
|
]
|
|
446
|
-
),
|
|
448
|
+
), te = r(
|
|
447
449
|
(e) => {
|
|
448
|
-
|
|
450
|
+
_(), c.current = !1, x.current = !1, R.current = !1, y(), h(!1), l(!1), s >= 0 && Ye?.(s);
|
|
449
451
|
},
|
|
450
452
|
[
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
453
|
+
s,
|
|
454
|
+
Ye,
|
|
455
|
+
_,
|
|
454
456
|
y,
|
|
455
457
|
l
|
|
456
458
|
]
|
|
457
|
-
),
|
|
459
|
+
), Te = r(
|
|
458
460
|
(e) => {
|
|
459
|
-
const t =
|
|
460
|
-
return !t || U.current !== "url" || !
|
|
461
|
+
const t = g.current;
|
|
462
|
+
return !t || U.current !== "url" || !kr({
|
|
461
463
|
currentTimeSeconds: Math.max(t.currentTime, 0),
|
|
462
464
|
durationSeconds: t.duration
|
|
463
|
-
}) ? !1 : (c.current = !1, t.pause(),
|
|
465
|
+
}) ? !1 : (c.current = !1, t.pause(), te(e), !0);
|
|
464
466
|
},
|
|
465
|
-
[
|
|
466
|
-
),
|
|
467
|
-
const e =
|
|
468
|
-
if (
|
|
467
|
+
[te]
|
|
468
|
+
), Nt = r(() => {
|
|
469
|
+
const e = F.current + 1, t = N.current, u = t[e], n = Se.current, b = t.some((J) => J.is_final);
|
|
470
|
+
if (u) {
|
|
469
471
|
A(e, "ended");
|
|
470
472
|
return;
|
|
471
473
|
}
|
|
472
|
-
if (
|
|
473
|
-
|
|
474
|
+
if (n?.isAudioStreaming || !b) {
|
|
475
|
+
F.current = e, m.current = e, x.current = !0, c.current = k, L(Q(e)), h(!1), l(!0, "waitingForMoreAudio");
|
|
474
476
|
return;
|
|
475
477
|
}
|
|
476
|
-
|
|
478
|
+
te("segments-completed");
|
|
477
479
|
}, [
|
|
478
|
-
|
|
479
|
-
|
|
480
|
+
k,
|
|
481
|
+
te,
|
|
480
482
|
Q,
|
|
481
|
-
|
|
483
|
+
L,
|
|
482
484
|
A,
|
|
483
485
|
l
|
|
484
486
|
]);
|
|
485
487
|
S(() => {
|
|
486
|
-
if (
|
|
488
|
+
if (at.current === We)
|
|
487
489
|
return;
|
|
488
|
-
|
|
489
|
-
const e =
|
|
490
|
+
at.current = We, F.current = 0, m.current = null, x.current = !1, M.current = !1, se.current = !1, c.current = !1, R.current = !1, U.current = null, j.current = null, K.current = null, _(), L(0), l(!1);
|
|
491
|
+
const e = g.current;
|
|
490
492
|
e && (e.pause(), e.removeAttribute("src"), e.load(), h(!1));
|
|
491
493
|
}, [
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
494
|
+
s,
|
|
495
|
+
We,
|
|
496
|
+
E.length,
|
|
497
|
+
v,
|
|
498
|
+
L,
|
|
499
|
+
_,
|
|
498
500
|
l
|
|
499
501
|
]), S(() => {
|
|
500
|
-
const e =
|
|
502
|
+
const e = g.current;
|
|
501
503
|
if (e) {
|
|
502
|
-
if (
|
|
503
|
-
|
|
504
|
+
if (w) {
|
|
505
|
+
se.current = !!(Se.current && !M.current && (!e.paused || c.current || m.current !== null)), c.current = !1, l(!1), e.pause(), h(!1);
|
|
504
506
|
return;
|
|
505
507
|
}
|
|
506
|
-
if (!(!
|
|
507
|
-
if (
|
|
508
|
-
if (m.current <
|
|
508
|
+
if (!(!se.current || !Se.current || M.current)) {
|
|
509
|
+
if (se.current = !1, m.current !== null) {
|
|
510
|
+
if (m.current < N.current.length) {
|
|
509
511
|
A(m.current, "external-resume");
|
|
510
512
|
return;
|
|
511
513
|
}
|
|
512
514
|
c.current = !0, l(!0, "waitingForMoreAudio");
|
|
513
515
|
return;
|
|
514
516
|
}
|
|
515
|
-
if (!
|
|
517
|
+
if (!K.current && N.current.length > 0) {
|
|
516
518
|
A(
|
|
517
519
|
Math.min(
|
|
518
|
-
|
|
519
|
-
|
|
520
|
+
F.current,
|
|
521
|
+
N.current.length - 1
|
|
520
522
|
),
|
|
521
523
|
"external-resume-init"
|
|
522
524
|
);
|
|
523
525
|
return;
|
|
524
526
|
}
|
|
525
|
-
e.paused && (c.current = !0,
|
|
527
|
+
e.paused && (c.current = !0, T("external-resume"));
|
|
526
528
|
}
|
|
527
529
|
}
|
|
528
530
|
}, [
|
|
529
|
-
|
|
531
|
+
w,
|
|
530
532
|
A,
|
|
531
|
-
|
|
533
|
+
T,
|
|
532
534
|
l
|
|
533
535
|
]), S(() => {
|
|
534
|
-
const e =
|
|
536
|
+
const e = g.current;
|
|
535
537
|
if (!e)
|
|
536
538
|
return;
|
|
537
539
|
if (!p) {
|
|
538
|
-
|
|
540
|
+
ee();
|
|
539
541
|
return;
|
|
540
542
|
}
|
|
541
|
-
if (
|
|
543
|
+
if (w) {
|
|
542
544
|
c.current = !1, l(!1), e.pause(), h(!1);
|
|
543
545
|
return;
|
|
544
546
|
}
|
|
545
|
-
const t =
|
|
547
|
+
const t = xr({
|
|
546
548
|
activeSourceType: U.current,
|
|
547
|
-
hasAudioUrl: !!
|
|
548
|
-
segmentCount:
|
|
549
|
-
preferredSourceType:
|
|
549
|
+
hasAudioUrl: !!v,
|
|
550
|
+
segmentCount: E.length,
|
|
551
|
+
preferredSourceType: j.current,
|
|
550
552
|
waitingSegmentIndex: m.current
|
|
551
553
|
});
|
|
552
|
-
if (t &&
|
|
553
|
-
const
|
|
554
|
-
if (
|
|
554
|
+
if (t && j.current !== t && (j.current = t), t === "url" && v) {
|
|
555
|
+
const u = K.current !== v, n = D();
|
|
556
|
+
if (u) {
|
|
555
557
|
const b = m.current !== null ? xt() : 0;
|
|
556
|
-
e.pause(), e.removeAttribute("src"), e.load(),
|
|
558
|
+
e.pause(), e.removeAttribute("src"), e.load(), K.current = v, U.current = "url", e.src = v, e.load(), C.current = b, L(b * 1e3), e.readyState > 0 && (e.currentTime = b, C.current = null);
|
|
557
559
|
}
|
|
558
|
-
if (c.current =
|
|
560
|
+
if (c.current = n, x.current = !1, R.current = !1, l(!1), !n) {
|
|
559
561
|
c.current = !1, e.pause(), h(!1);
|
|
560
562
|
return;
|
|
561
563
|
}
|
|
562
|
-
|
|
564
|
+
T(u ? "sync-url-init" : "sync-url");
|
|
563
565
|
return;
|
|
564
566
|
}
|
|
565
567
|
if (t === "segment" && m.current !== null) {
|
|
566
|
-
if (m.current <
|
|
567
|
-
if (
|
|
568
|
+
if (m.current < E.length) {
|
|
569
|
+
if (M.current) {
|
|
568
570
|
h(!1), l(!1);
|
|
569
571
|
return;
|
|
570
572
|
}
|
|
571
573
|
A(m.current, "wait-resume");
|
|
572
574
|
return;
|
|
573
575
|
}
|
|
574
|
-
|
|
576
|
+
x.current = !0, c.current = D(), h(!1), l(D());
|
|
575
577
|
return;
|
|
576
578
|
}
|
|
577
|
-
if (t === "segment" && !
|
|
579
|
+
if (t === "segment" && !E.length) {
|
|
578
580
|
if (p.isAudioStreaming) {
|
|
579
|
-
m.current =
|
|
581
|
+
m.current = F.current, x.current = !0, c.current = D(), h(!1), l(D());
|
|
580
582
|
return;
|
|
581
583
|
}
|
|
582
|
-
|
|
584
|
+
ee();
|
|
583
585
|
return;
|
|
584
586
|
}
|
|
585
|
-
if (t === "segment" && !
|
|
587
|
+
if (t === "segment" && !K.current) {
|
|
586
588
|
A(
|
|
587
589
|
Math.min(
|
|
588
|
-
|
|
589
|
-
|
|
590
|
+
F.current,
|
|
591
|
+
E.length - 1
|
|
590
592
|
),
|
|
591
593
|
"effect-init"
|
|
592
594
|
);
|
|
593
595
|
return;
|
|
594
596
|
}
|
|
595
597
|
if (t !== "segment") {
|
|
596
|
-
|
|
598
|
+
ee();
|
|
597
599
|
return;
|
|
598
600
|
}
|
|
599
|
-
if (!
|
|
601
|
+
if (!k || M.current) {
|
|
600
602
|
c.current = !1, e.pause(), h(!1);
|
|
601
603
|
return;
|
|
602
604
|
}
|
|
603
|
-
e.paused && (c.current = !0,
|
|
605
|
+
e.paused && (c.current = !0, T("sync-paused-retry"));
|
|
604
606
|
}, [
|
|
605
607
|
p,
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
C,
|
|
613
|
-
I,
|
|
614
|
-
A,
|
|
608
|
+
s,
|
|
609
|
+
E,
|
|
610
|
+
v,
|
|
611
|
+
k,
|
|
612
|
+
w,
|
|
613
|
+
D,
|
|
615
614
|
L,
|
|
615
|
+
ee,
|
|
616
|
+
A,
|
|
617
|
+
T,
|
|
616
618
|
xt,
|
|
617
619
|
l
|
|
618
620
|
]), S(() => {
|
|
619
|
-
if (!
|
|
621
|
+
if (!H || H.id === ct.current || H.audioIndex !== s)
|
|
620
622
|
return;
|
|
621
|
-
const e = f[
|
|
622
|
-
|
|
623
|
+
const e = f[H.audioIndex];
|
|
624
|
+
Ce(e, H.timeMs) && (ct.current = H.id, ve(H.timeMs));
|
|
623
625
|
}, [
|
|
624
626
|
f,
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
]), S(() =>
|
|
630
|
-
const
|
|
631
|
-
y(),
|
|
627
|
+
Ce,
|
|
628
|
+
s,
|
|
629
|
+
ve,
|
|
630
|
+
H
|
|
631
|
+
]), S(() => ee, [ee]), S(() => _, [_]);
|
|
632
|
+
const qt = r(() => {
|
|
633
|
+
y(), At(), h(!0), l(!1), Ze?.();
|
|
632
634
|
}, [
|
|
633
|
-
|
|
634
|
-
|
|
635
|
+
Ze,
|
|
636
|
+
At,
|
|
635
637
|
y,
|
|
636
638
|
l
|
|
637
|
-
]),
|
|
638
|
-
|
|
639
|
-
}, [
|
|
640
|
-
const e =
|
|
641
|
-
e &&
|
|
639
|
+
]), It = r(() => {
|
|
640
|
+
x.current || R.current || (_(), y(), h(!1));
|
|
641
|
+
}, [s, _, y]), er = r(() => {
|
|
642
|
+
const e = g.current;
|
|
643
|
+
e && C.current !== null && (e.currentTime = C.current, C.current = null), y(), !Te("canplay-seek-finished") && (!c.current || !k || T("canplay"));
|
|
642
644
|
}, [
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
645
|
+
s,
|
|
646
|
+
k,
|
|
647
|
+
Te,
|
|
646
648
|
y,
|
|
647
|
-
|
|
648
|
-
]),
|
|
649
|
-
const e =
|
|
650
|
-
e &&
|
|
651
|
-
}, [
|
|
649
|
+
T
|
|
650
|
+
]), tr = r(() => {
|
|
651
|
+
const e = g.current;
|
|
652
|
+
e && C.current !== null && (e.currentTime = C.current, C.current = null), y(), Te("metadata-seek-finished");
|
|
653
|
+
}, [s, Te, y]), rr = r(() => {
|
|
652
654
|
y();
|
|
653
|
-
}, [y]),
|
|
654
|
-
|
|
655
|
-
}, [l]),
|
|
656
|
-
if (
|
|
655
|
+
}, [y]), nr = r(() => {
|
|
656
|
+
x.current || l(!0, "loadingAudio");
|
|
657
|
+
}, [l]), ur = r(() => {
|
|
658
|
+
if (x.current) {
|
|
657
659
|
l(!0, "waitingForMoreAudio");
|
|
658
660
|
return;
|
|
659
661
|
}
|
|
660
662
|
l(!0, "loadingAudio");
|
|
661
|
-
}, [l]),
|
|
663
|
+
}, [l]), Rt = r(() => {
|
|
662
664
|
y();
|
|
663
|
-
}, [y]),
|
|
664
|
-
const e = U.current === "url" ||
|
|
665
|
-
if (
|
|
666
|
-
|
|
665
|
+
}, [y]), lr = r(() => {
|
|
666
|
+
const e = U.current === "url" || N.current.length === 0;
|
|
667
|
+
if (_(), R.current = !1, e) {
|
|
668
|
+
te("url-ended");
|
|
667
669
|
return;
|
|
668
670
|
}
|
|
669
|
-
|
|
670
|
-
}, [
|
|
671
|
-
|
|
672
|
-
}, [
|
|
671
|
+
Nt();
|
|
672
|
+
}, [te, Nt, _]), ar = r(() => {
|
|
673
|
+
_(), y(), h(!1), l(!1);
|
|
674
|
+
}, [_, y, l]), sr = r(
|
|
673
675
|
(e) => {
|
|
674
|
-
|
|
676
|
+
ze?.(e), q(!1);
|
|
675
677
|
},
|
|
676
|
-
[
|
|
677
|
-
),
|
|
678
|
-
if (
|
|
678
|
+
[ze]
|
|
679
|
+
), Oe = r(() => {
|
|
680
|
+
if (P) {
|
|
679
681
|
const t = !Z;
|
|
680
|
-
return
|
|
682
|
+
return O(t), Ge?.(t), !0;
|
|
681
683
|
}
|
|
682
|
-
const e =
|
|
683
|
-
return
|
|
684
|
+
const e = g.current;
|
|
685
|
+
return w || !e || !p ? !1 : m.current !== null ? ke ? (O(!1), c.current = !1, M.current = !0, m.current = null, x.current = !1, h(!1), l(!1), e.pause(), !0) : (O(!0), W.current = "manual", M.current = !1, c.current = !0, l(!0, "waitingForMoreAudio"), !0) : !e.src && E.length > 0 ? (O(!0), W.current = "manual", M.current = !1, A(
|
|
684
686
|
Math.min(
|
|
685
|
-
|
|
686
|
-
|
|
687
|
+
F.current,
|
|
688
|
+
E.length - 1
|
|
687
689
|
),
|
|
688
690
|
"toggle"
|
|
689
|
-
), !0) : e.paused ? (
|
|
691
|
+
), !0) : e.paused ? (O(!0), W.current = "manual", M.current = !1, c.current = !0, T("toggle-resume"), !0) : (O(!1), c.current = !1, M.current = !0, e.pause(), !0);
|
|
690
692
|
}, [
|
|
691
693
|
p,
|
|
692
|
-
|
|
694
|
+
E.length,
|
|
693
695
|
Z,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
696
|
+
w,
|
|
697
|
+
ke,
|
|
698
|
+
Ge,
|
|
697
699
|
A,
|
|
698
|
-
|
|
700
|
+
T,
|
|
699
701
|
l,
|
|
700
|
-
|
|
701
|
-
|
|
702
|
+
O,
|
|
703
|
+
P
|
|
702
704
|
]);
|
|
703
705
|
S(() => {
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
706
|
-
}, [
|
|
707
|
-
const
|
|
706
|
+
if (B)
|
|
707
|
+
return Cr(Y);
|
|
708
|
+
}, [Y, B]);
|
|
709
|
+
const Ve = re(
|
|
708
710
|
() => ({
|
|
709
|
-
fullscreen: () =>
|
|
710
|
-
interaction: () =>
|
|
711
|
-
next: () =>
|
|
712
|
-
|
|
711
|
+
fullscreen: () => ue ? (ue(), !0) : !1,
|
|
712
|
+
interaction: () => he ? (Ne && he(), !0) : !1,
|
|
713
|
+
next: () => me ? (Ke || me(
|
|
714
|
+
$e(G())
|
|
713
715
|
), !0) : !1,
|
|
714
|
-
nextSubtitle: () =>
|
|
715
|
-
previous: () =>
|
|
716
|
-
|
|
716
|
+
nextSubtitle: () => I.next ? oe("next") : !0,
|
|
717
|
+
previous: () => de ? (Ee || de(
|
|
718
|
+
$e(G())
|
|
717
719
|
), !0) : !1,
|
|
718
|
-
previousSubtitle: () =>
|
|
719
|
-
subtitle: () =>
|
|
720
|
-
togglePlayback: () => (
|
|
720
|
+
previousSubtitle: () => I.previous ? oe("previous") : !0,
|
|
721
|
+
subtitle: () => ne ? (ne(), !0) : !1,
|
|
722
|
+
togglePlayback: () => (Oe(), !0)
|
|
721
723
|
}),
|
|
722
724
|
[
|
|
723
725
|
G,
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
726
|
+
Ne,
|
|
727
|
+
oe,
|
|
728
|
+
Ke,
|
|
729
|
+
ue,
|
|
730
|
+
he,
|
|
731
|
+
me,
|
|
729
732
|
de,
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
Ke
|
|
733
|
+
ne,
|
|
734
|
+
Ee,
|
|
735
|
+
I.next,
|
|
736
|
+
I.previous,
|
|
737
|
+
Oe
|
|
736
738
|
]
|
|
737
|
-
),
|
|
739
|
+
), Et = o(Ve);
|
|
738
740
|
return S(() => {
|
|
739
|
-
|
|
740
|
-
}, [
|
|
741
|
-
if (!
|
|
741
|
+
Et.current = Ve;
|
|
742
|
+
}, [Ve]), S(() => {
|
|
743
|
+
if (!B || typeof document > "u")
|
|
742
744
|
return;
|
|
743
745
|
const e = (t) => {
|
|
744
|
-
if (!
|
|
746
|
+
if (!Lr(Y))
|
|
745
747
|
return;
|
|
746
|
-
const
|
|
747
|
-
if (!
|
|
748
|
+
const u = vr(t, ut());
|
|
749
|
+
if (!u || Tr(t, u))
|
|
748
750
|
return;
|
|
749
|
-
let
|
|
750
|
-
const b =
|
|
751
|
-
|
|
751
|
+
let n = !1;
|
|
752
|
+
const b = Et.current[u];
|
|
753
|
+
n = b(), n && t.preventDefault();
|
|
752
754
|
};
|
|
753
755
|
return document.addEventListener("keydown", e), () => {
|
|
754
756
|
document.removeEventListener("keydown", e);
|
|
755
757
|
};
|
|
756
|
-
}, [
|
|
757
|
-
|
|
758
|
-
}, [
|
|
758
|
+
}, [Y, ut, B]), S(() => {
|
|
759
|
+
fe?.(ge.current);
|
|
760
|
+
}, [fe]), /* @__PURE__ */ X(
|
|
759
761
|
"div",
|
|
760
762
|
{
|
|
761
|
-
...
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
...Ue,
|
|
764
|
+
dir: Pe,
|
|
765
|
+
lang: tt,
|
|
766
|
+
"data-slide-player-shortcut-owner": Y,
|
|
767
|
+
className: Ft("slide-player", d),
|
|
768
|
+
onFocusCapture: Xt,
|
|
769
|
+
onPointerDown: Qt,
|
|
766
770
|
children: [
|
|
767
|
-
/* @__PURE__ */
|
|
771
|
+
/* @__PURE__ */ a(
|
|
768
772
|
"audio",
|
|
769
773
|
{
|
|
770
|
-
ref:
|
|
774
|
+
ref: g,
|
|
771
775
|
preload: "auto",
|
|
772
776
|
playsInline: !0,
|
|
773
|
-
onLoadStart:
|
|
774
|
-
onLoadedMetadata:
|
|
775
|
-
onCanPlay:
|
|
776
|
-
onPlay:
|
|
777
|
-
onPause:
|
|
778
|
-
onWaiting:
|
|
779
|
-
onSeeking:
|
|
780
|
-
onSeeked:
|
|
781
|
-
onTimeUpdate:
|
|
782
|
-
onEnded:
|
|
783
|
-
onError:
|
|
777
|
+
onLoadStart: nr,
|
|
778
|
+
onLoadedMetadata: tr,
|
|
779
|
+
onCanPlay: er,
|
|
780
|
+
onPlay: qt,
|
|
781
|
+
onPause: It,
|
|
782
|
+
onWaiting: ur,
|
|
783
|
+
onSeeking: Rt,
|
|
784
|
+
onSeeked: Rt,
|
|
785
|
+
onTimeUpdate: rr,
|
|
786
|
+
onEnded: lr,
|
|
787
|
+
onError: ar
|
|
784
788
|
}
|
|
785
789
|
),
|
|
786
|
-
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
|
|
790
|
+
Fe ? /* @__PURE__ */ X(cr, { children: [
|
|
791
|
+
/* @__PURE__ */ a(
|
|
792
|
+
Sr,
|
|
789
793
|
{
|
|
790
|
-
container:
|
|
794
|
+
container: Vt,
|
|
795
|
+
dir: Pe ?? nt,
|
|
796
|
+
lang: Zt,
|
|
791
797
|
labels: {
|
|
792
798
|
closeSettings: i.closeSettingsLabel,
|
|
793
799
|
fullscreen: i.fullscreenLabel,
|
|
@@ -798,38 +804,38 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
798
804
|
subtitleToggle: i.subtitleToggleAriaLabel,
|
|
799
805
|
title: i.settingsTitle
|
|
800
806
|
},
|
|
801
|
-
isSubtitleEnabled:
|
|
802
|
-
onClose: () =>
|
|
803
|
-
onOpenChange:
|
|
804
|
-
onSubtitleToggle:
|
|
807
|
+
isSubtitleEnabled: Re,
|
|
808
|
+
onClose: () => q(!1),
|
|
809
|
+
onOpenChange: q,
|
|
810
|
+
onSubtitleToggle: ne ?? (() => {
|
|
805
811
|
}),
|
|
806
|
-
onViewModeChange:
|
|
807
|
-
open:
|
|
808
|
-
viewMode:
|
|
812
|
+
onViewModeChange: sr,
|
|
813
|
+
open: ft,
|
|
814
|
+
viewMode: Ot
|
|
809
815
|
}
|
|
810
816
|
),
|
|
811
|
-
/* @__PURE__ */
|
|
817
|
+
/* @__PURE__ */ X(
|
|
812
818
|
"div",
|
|
813
819
|
{
|
|
814
820
|
className: "slide-player__controls",
|
|
815
|
-
onPointerEnter:
|
|
816
|
-
onPointerLeave:
|
|
817
|
-
style:
|
|
821
|
+
onPointerEnter: Ht,
|
|
822
|
+
onPointerLeave: $t,
|
|
823
|
+
style: Yt,
|
|
818
824
|
children: [
|
|
819
|
-
/* @__PURE__ */
|
|
820
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ X("div", { className: "slide-player__group", children: [
|
|
826
|
+
/* @__PURE__ */ a(
|
|
821
827
|
"button",
|
|
822
828
|
{
|
|
823
|
-
"aria-expanded":
|
|
829
|
+
"aria-expanded": ft,
|
|
824
830
|
"aria-haspopup": "dialog",
|
|
825
831
|
"aria-label": i.moreOptionsAriaLabel,
|
|
826
832
|
className: "slide-player__action slide-player__action--mobile-more",
|
|
827
833
|
onClick: () => {
|
|
828
|
-
|
|
834
|
+
q((e) => !e);
|
|
829
835
|
},
|
|
830
836
|
type: "button",
|
|
831
|
-
children: /* @__PURE__ */
|
|
832
|
-
|
|
837
|
+
children: /* @__PURE__ */ a(
|
|
838
|
+
Fr,
|
|
833
839
|
{
|
|
834
840
|
className: "slide-player__icon",
|
|
835
841
|
strokeWidth: 2.25
|
|
@@ -837,58 +843,58 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
837
843
|
)
|
|
838
844
|
}
|
|
839
845
|
),
|
|
840
|
-
/* @__PURE__ */
|
|
846
|
+
/* @__PURE__ */ a(
|
|
841
847
|
"button",
|
|
842
848
|
{
|
|
843
849
|
"aria-label": i.volumeAriaLabel,
|
|
844
850
|
className: "hidden",
|
|
845
851
|
type: "button",
|
|
846
|
-
children: /* @__PURE__ */
|
|
852
|
+
children: /* @__PURE__ */ a(Ur, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
847
853
|
}
|
|
848
854
|
),
|
|
849
|
-
/* @__PURE__ */
|
|
855
|
+
/* @__PURE__ */ a(
|
|
850
856
|
"button",
|
|
851
857
|
{
|
|
852
|
-
"aria-label":
|
|
853
|
-
"aria-keyshortcuts":
|
|
858
|
+
"aria-label": yt,
|
|
859
|
+
"aria-keyshortcuts": kt.ariaKeyShortcuts,
|
|
854
860
|
className: "slide-player__toggle slide-player__toggle--playback",
|
|
855
861
|
onClick: () => {
|
|
856
|
-
|
|
862
|
+
Oe();
|
|
857
863
|
},
|
|
858
|
-
title:
|
|
864
|
+
title: kt.title,
|
|
859
865
|
type: "button",
|
|
860
|
-
children:
|
|
866
|
+
children: Gt ? /* @__PURE__ */ a(zr, {}) : /* @__PURE__ */ a(Yr, {})
|
|
861
867
|
}
|
|
862
868
|
),
|
|
863
|
-
/* @__PURE__ */
|
|
869
|
+
/* @__PURE__ */ a(
|
|
864
870
|
"button",
|
|
865
871
|
{
|
|
866
|
-
"aria-keyshortcuts":
|
|
872
|
+
"aria-keyshortcuts": gt.ariaKeyShortcuts,
|
|
867
873
|
"aria-label": i.previousLabel,
|
|
868
874
|
className: "slide-player__action slide-player__action--prev",
|
|
869
|
-
disabled:
|
|
875
|
+
disabled: Ee,
|
|
870
876
|
onClick: () => {
|
|
871
|
-
|
|
877
|
+
de?.(G());
|
|
872
878
|
},
|
|
873
|
-
title:
|
|
879
|
+
title: gt.title,
|
|
874
880
|
type: "button",
|
|
875
|
-
children: /* @__PURE__ */
|
|
881
|
+
children: /* @__PURE__ */ a(Pr, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
876
882
|
}
|
|
877
883
|
),
|
|
878
|
-
/* @__PURE__ */
|
|
884
|
+
/* @__PURE__ */ a(
|
|
879
885
|
"button",
|
|
880
886
|
{
|
|
881
|
-
"aria-keyshortcuts":
|
|
887
|
+
"aria-keyshortcuts": wt.ariaKeyShortcuts,
|
|
882
888
|
"aria-label": i.nextLabel,
|
|
883
889
|
className: "slide-player__action slide-player__action--next",
|
|
884
|
-
disabled:
|
|
890
|
+
disabled: Ke,
|
|
885
891
|
onClick: () => {
|
|
886
|
-
|
|
892
|
+
me?.(G());
|
|
887
893
|
},
|
|
888
|
-
title:
|
|
894
|
+
title: wt.title,
|
|
889
895
|
type: "button",
|
|
890
|
-
children: /* @__PURE__ */
|
|
891
|
-
|
|
896
|
+
children: /* @__PURE__ */ a(
|
|
897
|
+
Wr,
|
|
892
898
|
{
|
|
893
899
|
className: "slide-player__icon",
|
|
894
900
|
strokeWidth: 2.25
|
|
@@ -896,35 +902,35 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
896
902
|
)
|
|
897
903
|
}
|
|
898
904
|
),
|
|
899
|
-
/* @__PURE__ */
|
|
905
|
+
/* @__PURE__ */ a(
|
|
900
906
|
"button",
|
|
901
907
|
{
|
|
902
|
-
"aria-keyshortcuts":
|
|
908
|
+
"aria-keyshortcuts": _t.ariaKeyShortcuts,
|
|
903
909
|
"aria-label": i.previousSubtitleLabel,
|
|
904
910
|
className: "slide-player__action slide-player__action--prev-subtitle",
|
|
905
|
-
disabled: !
|
|
911
|
+
disabled: !I.previous,
|
|
906
912
|
onClick: () => {
|
|
907
|
-
|
|
913
|
+
oe("previous");
|
|
908
914
|
},
|
|
909
|
-
title:
|
|
915
|
+
title: _t.title,
|
|
910
916
|
type: "button",
|
|
911
|
-
children: /* @__PURE__ */
|
|
917
|
+
children: /* @__PURE__ */ a(Br, { className: "slide-player__icon", strokeWidth: 2.25 })
|
|
912
918
|
}
|
|
913
919
|
),
|
|
914
|
-
/* @__PURE__ */
|
|
920
|
+
/* @__PURE__ */ a(
|
|
915
921
|
"button",
|
|
916
922
|
{
|
|
917
|
-
"aria-keyshortcuts":
|
|
923
|
+
"aria-keyshortcuts": Mt.ariaKeyShortcuts,
|
|
918
924
|
"aria-label": i.nextSubtitleLabel,
|
|
919
925
|
className: "slide-player__action slide-player__action--next-subtitle",
|
|
920
|
-
disabled: !
|
|
926
|
+
disabled: !I.next,
|
|
921
927
|
onClick: () => {
|
|
922
|
-
|
|
928
|
+
oe("next");
|
|
923
929
|
},
|
|
924
|
-
title:
|
|
930
|
+
title: Mt.title,
|
|
925
931
|
type: "button",
|
|
926
|
-
children: /* @__PURE__ */
|
|
927
|
-
|
|
932
|
+
children: /* @__PURE__ */ a(
|
|
933
|
+
Or,
|
|
928
934
|
{
|
|
929
935
|
className: "slide-player__icon",
|
|
930
936
|
strokeWidth: 2.25
|
|
@@ -932,18 +938,18 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
932
938
|
)
|
|
933
939
|
}
|
|
934
940
|
),
|
|
935
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ a(
|
|
936
942
|
"button",
|
|
937
943
|
{
|
|
938
944
|
"aria-label": i.subtitleToggleAriaLabel,
|
|
939
|
-
"aria-keyshortcuts":
|
|
940
|
-
"aria-pressed":
|
|
945
|
+
"aria-keyshortcuts": St.ariaKeyShortcuts,
|
|
946
|
+
"aria-pressed": Re,
|
|
941
947
|
className: "slide-player__action slide-player__action--subtitle",
|
|
942
|
-
onClick:
|
|
943
|
-
title:
|
|
948
|
+
onClick: ne,
|
|
949
|
+
title: St.title,
|
|
944
950
|
type: "button",
|
|
945
|
-
children:
|
|
946
|
-
|
|
951
|
+
children: Re ? /* @__PURE__ */ a(Vr, { className: "slide-player__icon", strokeWidth: 2.25 }) : /* @__PURE__ */ a(
|
|
952
|
+
Hr,
|
|
947
953
|
{
|
|
948
954
|
className: "slide-player__icon",
|
|
949
955
|
strokeWidth: 2.25
|
|
@@ -951,23 +957,23 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
951
957
|
)
|
|
952
958
|
}
|
|
953
959
|
),
|
|
954
|
-
|
|
960
|
+
ue ? /* @__PURE__ */ a(
|
|
955
961
|
"button",
|
|
956
962
|
{
|
|
957
|
-
"aria-label":
|
|
958
|
-
"aria-keyshortcuts":
|
|
963
|
+
"aria-label": bt,
|
|
964
|
+
"aria-keyshortcuts": Ct.ariaKeyShortcuts,
|
|
959
965
|
className: "slide-player__action slide-player__action--fullscreen",
|
|
960
|
-
onClick:
|
|
961
|
-
title:
|
|
966
|
+
onClick: ue,
|
|
967
|
+
title: Ct.title,
|
|
962
968
|
type: "button",
|
|
963
|
-
children:
|
|
964
|
-
|
|
969
|
+
children: je ? /* @__PURE__ */ a(
|
|
970
|
+
$r,
|
|
965
971
|
{
|
|
966
972
|
className: "slide-player__icon",
|
|
967
973
|
strokeWidth: 2.25
|
|
968
974
|
}
|
|
969
|
-
) : /* @__PURE__ */
|
|
970
|
-
|
|
975
|
+
) : /* @__PURE__ */ a(
|
|
976
|
+
Dr,
|
|
971
977
|
{
|
|
972
978
|
className: "slide-player__icon",
|
|
973
979
|
strokeWidth: 2.25
|
|
@@ -976,24 +982,24 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
976
982
|
}
|
|
977
983
|
) : null
|
|
978
984
|
] }),
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
-
/* @__PURE__ */
|
|
981
|
-
|
|
982
|
-
/* @__PURE__ */
|
|
985
|
+
/* @__PURE__ */ a("div", { className: "slide-player__separator" }),
|
|
986
|
+
/* @__PURE__ */ X("div", { className: "slide-player__group", children: [
|
|
987
|
+
pt.map((e, t) => /* @__PURE__ */ a(or.Fragment, { children: e }, `custom-action-${t}`)),
|
|
988
|
+
/* @__PURE__ */ a(
|
|
983
989
|
"button",
|
|
984
990
|
{
|
|
985
991
|
"aria-label": i.notesLabel,
|
|
986
|
-
"aria-keyshortcuts":
|
|
987
|
-
className:
|
|
992
|
+
"aria-keyshortcuts": Lt.ariaKeyShortcuts,
|
|
993
|
+
className: Ft(
|
|
988
994
|
"slide-player__action slide-player__action--notes",
|
|
989
|
-
|
|
995
|
+
le && "slide-player__action--active"
|
|
990
996
|
),
|
|
991
|
-
disabled: !
|
|
992
|
-
onClick:
|
|
993
|
-
title:
|
|
997
|
+
disabled: !Ne,
|
|
998
|
+
onClick: he,
|
|
999
|
+
title: Lt.title,
|
|
994
1000
|
type: "button",
|
|
995
|
-
children: /* @__PURE__ */
|
|
996
|
-
|
|
1001
|
+
children: /* @__PURE__ */ a(
|
|
1002
|
+
Jr,
|
|
997
1003
|
{
|
|
998
1004
|
className: "slide-player__icon",
|
|
999
1005
|
strokeWidth: 2.25
|
|
@@ -1009,9 +1015,9 @@ const jt = /* @__PURE__ */ new Map(), Nt = (f) => {
|
|
|
1009
1015
|
]
|
|
1010
1016
|
}
|
|
1011
1017
|
);
|
|
1012
|
-
},
|
|
1013
|
-
|
|
1018
|
+
}, qr = fr(Xr);
|
|
1019
|
+
qr.displayName = "Player";
|
|
1014
1020
|
export {
|
|
1015
|
-
|
|
1021
|
+
qr as default
|
|
1016
1022
|
};
|
|
1017
1023
|
//# sourceMappingURL=Player.es.js.map
|