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,245 +1,253 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { isSandboxInteractionMessage as
|
|
4
|
-
import { cn as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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 "
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
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
|
|
36
|
-
import
|
|
37
|
-
const
|
|
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
|
-
},
|
|
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(", "),
|
|
48
|
-
x:
|
|
49
|
-
y:
|
|
48
|
+
].join(", "), Bt = "waitingForAudio", Co = ({
|
|
49
|
+
x: c,
|
|
50
|
+
y: d
|
|
50
51
|
}) => ({
|
|
51
|
-
x: Number(
|
|
52
|
-
y: Number(
|
|
53
|
-
}),
|
|
54
|
-
...
|
|
55
|
-
...
|
|
56
|
-
},
|
|
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:
|
|
59
|
-
title:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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":
|
|
80
|
-
onPointerCancel:
|
|
81
|
-
onPointerDown:
|
|
82
|
-
onPointerMove:
|
|
83
|
-
onPointerUp:
|
|
84
|
-
children: /* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
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__ */
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
|
|
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:
|
|
96
|
-
locale:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
111
|
-
const
|
|
112
|
-
const
|
|
113
|
-
return
|
|
114
|
-
}),
|
|
115
|
-
elementList:
|
|
116
|
-
locale:
|
|
117
|
-
playerEnabled:
|
|
118
|
-
playerControlsVisibility:
|
|
119
|
-
playerClassName:
|
|
120
|
-
fullscreenHeader:
|
|
121
|
-
playerCustomActions:
|
|
122
|
-
playerCustomActionPauseOnActive:
|
|
123
|
-
bufferingText:
|
|
124
|
-
interactionTitle:
|
|
125
|
-
interactionTexts:
|
|
126
|
-
playerTexts:
|
|
127
|
-
playerAutoHideDelay:
|
|
128
|
-
markerAutoAdvanceDelay:
|
|
129
|
-
interactionDefaultValueOptions:
|
|
130
|
-
onSend:
|
|
131
|
-
onPlayerVisibilityChange:
|
|
132
|
-
onMobileViewModeChange:
|
|
133
|
-
onStepChange:
|
|
134
|
-
enableKeyboardShortcuts:
|
|
135
|
-
enableIframeScaling:
|
|
136
|
-
enableMarkdownScaling:
|
|
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:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
144
|
+
className: Fn,
|
|
145
|
+
dir: Ln,
|
|
146
|
+
lang: Dn,
|
|
147
|
+
onPointerDown: qt,
|
|
148
|
+
onFocusCapture: Kt,
|
|
149
|
+
...Nn
|
|
142
150
|
}) => {
|
|
143
|
-
const
|
|
144
|
-
() =>
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
[
|
|
156
|
+
[He, q.bufferingText]
|
|
149
157
|
), {
|
|
150
|
-
playerEnabled:
|
|
151
|
-
playerControlsVisibility:
|
|
152
|
-
} =
|
|
153
|
-
playerEnabled:
|
|
154
|
-
playerControlsVisibility:
|
|
155
|
-
}),
|
|
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
|
-
}),
|
|
167
|
+
}), yt = m(!1), {
|
|
160
168
|
currentElementList: R,
|
|
161
|
-
stepElementLists:
|
|
169
|
+
stepElementLists: zt,
|
|
162
170
|
slideElementList: P,
|
|
163
|
-
currentIndex:
|
|
171
|
+
currentIndex: a,
|
|
164
172
|
audioList: I,
|
|
165
|
-
audioSlideIndexes:
|
|
166
|
-
currentAudioSequenceIndexes:
|
|
167
|
-
currentStepHasSpeakableElement:
|
|
173
|
+
audioSlideIndexes: Qe,
|
|
174
|
+
currentAudioSequenceIndexes: Ze,
|
|
175
|
+
currentStepHasSpeakableElement: A,
|
|
168
176
|
currentInteractionElement: y,
|
|
169
|
-
canGoPrev:
|
|
177
|
+
canGoPrev: Kn,
|
|
170
178
|
canGoNext: _,
|
|
171
|
-
handlePrev:
|
|
179
|
+
handlePrev: Xt,
|
|
172
180
|
handleNext: F,
|
|
173
|
-
handleGoTo:
|
|
174
|
-
} =
|
|
175
|
-
if (!(
|
|
176
|
-
return P[
|
|
177
|
-
}, [
|
|
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
|
-
),
|
|
190
|
+
), Un = P.filter(
|
|
183
191
|
(e) => e.is_renderable !== !1
|
|
184
|
-
).length === 1, g =
|
|
192
|
+
).length === 1, g = Vn && (P.length > 0 || I.length > 0 || !!y), Hn = f(
|
|
185
193
|
() => ({
|
|
186
|
-
enabled:
|
|
187
|
-
ownerId:
|
|
194
|
+
enabled: le,
|
|
195
|
+
ownerId: Xe
|
|
188
196
|
}),
|
|
189
|
-
[
|
|
190
|
-
),
|
|
191
|
-
!
|
|
192
|
-
}, [
|
|
193
|
-
() =>
|
|
194
|
-
[I,
|
|
195
|
-
), [
|
|
196
|
-
|
|
197
|
-
), [
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
] = p(0), [
|
|
201
|
-
|
|
202
|
-
), [
|
|
203
|
-
() =>
|
|
204
|
-
),
|
|
205
|
-
effectiveMobileViewMode:
|
|
206
|
-
isImmersiveMobileFullscreen:
|
|
207
|
-
isNativeMobileFullscreen:
|
|
208
|
-
shouldRotateFullscreenViewport:
|
|
209
|
-
} =
|
|
210
|
-
() =>
|
|
211
|
-
hasManualMobileViewMode:
|
|
212
|
-
isMobileDevice:
|
|
213
|
-
mobileViewMode:
|
|
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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
224
|
+
nn,
|
|
225
|
+
B,
|
|
226
|
+
Qn,
|
|
227
|
+
lt
|
|
220
228
|
]
|
|
221
|
-
),
|
|
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
|
-
|
|
231
|
+
Et(!0), xt(e);
|
|
224
232
|
},
|
|
225
233
|
[]
|
|
226
|
-
),
|
|
227
|
-
|
|
228
|
-
}, []),
|
|
229
|
-
|
|
230
|
-
}, [
|
|
231
|
-
|
|
232
|
-
}, []),
|
|
233
|
-
|
|
234
|
-
}, []),
|
|
235
|
-
|
|
236
|
-
(e) => e.x ===
|
|
237
|
-
),
|
|
238
|
-
}, []), { mountedStepStates:
|
|
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
|
|
248
|
+
return zt.forEach((n, i) => {
|
|
241
249
|
const l = e.findIndex(
|
|
242
|
-
(o) =>
|
|
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:
|
|
265
|
+
currentMountedStateIndex: a >= 0 ? t.get(a) ?? -1 : -1
|
|
258
266
|
};
|
|
259
|
-
}, [
|
|
260
|
-
(e) => (e.audioKey ?? "") ===
|
|
261
|
-
) : -1, [I,
|
|
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
|
-
),
|
|
272
|
+
), ar = Tt?.element?.subtitle_cues ?? [], at = f(
|
|
265
273
|
() => O[0] ?? "none",
|
|
266
274
|
[O]
|
|
267
|
-
),
|
|
275
|
+
), Ct = f(
|
|
268
276
|
() => ({
|
|
269
|
-
currentElement:
|
|
277
|
+
currentElement: so({
|
|
270
278
|
currentAudioIndex: C,
|
|
271
|
-
currentAudioSequenceIndexes:
|
|
279
|
+
currentAudioSequenceIndexes: Ze,
|
|
272
280
|
audioList: I,
|
|
273
281
|
currentInteractionElement: h,
|
|
274
|
-
currentStepElement:
|
|
282
|
+
currentStepElement: Oe
|
|
275
283
|
}),
|
|
276
|
-
currentIndex:
|
|
277
|
-
currentStepElement:
|
|
278
|
-
isActive:
|
|
279
|
-
setActive:
|
|
280
|
-
toggleActive:
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
294
|
+
Ze,
|
|
295
|
+
a,
|
|
296
|
+
Oe,
|
|
297
|
+
vt,
|
|
298
|
+
cn,
|
|
299
|
+
un
|
|
292
300
|
]
|
|
293
|
-
),
|
|
294
|
-
() =>
|
|
295
|
-
|
|
296
|
-
|
|
301
|
+
), Pt = f(
|
|
302
|
+
() => co(
|
|
303
|
+
oe,
|
|
304
|
+
Ct
|
|
297
305
|
),
|
|
298
|
-
[
|
|
299
|
-
),
|
|
306
|
+
[Ct, oe]
|
|
307
|
+
), sr = f(
|
|
300
308
|
() => ({
|
|
301
|
-
"--slide-player-custom-action-count": String(
|
|
309
|
+
"--slide-player-custom-action-count": String(Pt),
|
|
302
310
|
"--slide-player-mobile-control-count": String(
|
|
303
|
-
|
|
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
|
-
|
|
319
|
+
Pt
|
|
312
320
|
]
|
|
313
|
-
),
|
|
321
|
+
), fn = O.length > 0, mn = f(() => y ? `${y.sequence_number ?? "none"}:${String(
|
|
314
322
|
y.content ?? ""
|
|
315
|
-
)}` : "none", [y]),
|
|
316
|
-
() => [
|
|
317
|
-
[
|
|
318
|
-
),
|
|
323
|
+
)}` : "none", [y]), Le = f(
|
|
324
|
+
() => [dn, mn].join("|"),
|
|
325
|
+
[mn, dn]
|
|
326
|
+
), cr = f(
|
|
319
327
|
() => [
|
|
320
|
-
|
|
321
|
-
|
|
328
|
+
Le,
|
|
329
|
+
Tt?.audioKey ?? "none",
|
|
322
330
|
String(C)
|
|
323
331
|
].join("|"),
|
|
324
|
-
[C,
|
|
325
|
-
),
|
|
326
|
-
(t) => t.audioKey ===
|
|
327
|
-
)?.audioUrl?.trim() ?? "", [I,
|
|
328
|
-
() =>
|
|
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:
|
|
339
|
+
currentStepHasSpeakableElement: A,
|
|
332
340
|
hasInteraction: !!y
|
|
333
341
|
}),
|
|
334
342
|
[
|
|
335
343
|
_,
|
|
336
344
|
C,
|
|
337
345
|
y,
|
|
338
|
-
|
|
346
|
+
A
|
|
339
347
|
]
|
|
340
|
-
),
|
|
341
|
-
() =>
|
|
348
|
+
), yn = f(
|
|
349
|
+
() => ho({
|
|
342
350
|
currentElementList: R,
|
|
343
|
-
currentStepHasSpeakableElement:
|
|
351
|
+
currentStepHasSpeakableElement: A,
|
|
344
352
|
currentInteractionElement: y,
|
|
345
|
-
markerAutoAdvanceDelay:
|
|
353
|
+
markerAutoAdvanceDelay: Ye
|
|
346
354
|
}),
|
|
347
355
|
[
|
|
348
356
|
R,
|
|
349
357
|
y,
|
|
350
|
-
|
|
351
|
-
|
|
358
|
+
A,
|
|
359
|
+
Ye
|
|
352
360
|
]
|
|
353
|
-
),
|
|
354
|
-
() => `${
|
|
355
|
-
[
|
|
356
|
-
), [
|
|
357
|
-
|
|
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
|
-
|
|
360
|
-
}, []),
|
|
361
|
-
|
|
362
|
-
}, []),
|
|
363
|
-
|
|
364
|
-
}, []),
|
|
365
|
-
|
|
366
|
-
}, []),
|
|
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
|
-
|
|
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
|
-
|
|
372
|
-
|
|
379
|
+
ye,
|
|
380
|
+
Y,
|
|
373
381
|
L,
|
|
374
|
-
|
|
375
|
-
|
|
382
|
+
D,
|
|
383
|
+
me
|
|
376
384
|
]
|
|
377
|
-
),
|
|
385
|
+
), st = r(
|
|
378
386
|
(e) => {
|
|
379
|
-
|
|
387
|
+
Yt.current += 1, Qt({
|
|
380
388
|
...e,
|
|
381
|
-
id:
|
|
389
|
+
id: Yt.current
|
|
382
390
|
});
|
|
383
391
|
},
|
|
384
392
|
[]
|
|
385
|
-
),
|
|
386
|
-
const e =
|
|
393
|
+
), he = r(() => {
|
|
394
|
+
const e = ro(
|
|
387
395
|
O,
|
|
388
|
-
|
|
396
|
+
nt.current
|
|
389
397
|
);
|
|
390
|
-
return e ? (
|
|
391
|
-
}, [O]),
|
|
392
|
-
L(),
|
|
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
|
-
|
|
404
|
+
D,
|
|
397
405
|
F,
|
|
398
|
-
|
|
399
|
-
]),
|
|
406
|
+
he
|
|
407
|
+
]), vn = r(
|
|
400
408
|
(e) => {
|
|
401
|
-
if (
|
|
409
|
+
if (D(), !e)
|
|
402
410
|
return;
|
|
403
411
|
const t = () => {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
),
|
|
412
|
+
Te.current = null, Fe(
|
|
413
|
+
wo
|
|
414
|
+
), ot(!0), j.current = null;
|
|
407
415
|
};
|
|
408
|
-
|
|
416
|
+
Te.current = window.setTimeout(
|
|
409
417
|
t,
|
|
410
|
-
|
|
418
|
+
Ao
|
|
411
419
|
);
|
|
412
420
|
},
|
|
413
|
-
[
|
|
414
|
-
),
|
|
415
|
-
() =>
|
|
421
|
+
[D]
|
|
422
|
+
), _t = r(
|
|
423
|
+
() => We.current || !!ae.current?.querySelector(".slide-player__controls:hover"),
|
|
416
424
|
[]
|
|
417
425
|
), v = r(
|
|
418
|
-
(e =
|
|
419
|
-
!g ||
|
|
420
|
-
if (
|
|
421
|
-
|
|
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
|
-
|
|
425
|
-
},
|
|
432
|
+
Me(!1), se.current = null;
|
|
433
|
+
}, Ae)));
|
|
426
434
|
},
|
|
427
435
|
[
|
|
428
436
|
V,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
437
|
+
et,
|
|
438
|
+
_t,
|
|
439
|
+
Ae,
|
|
440
|
+
K,
|
|
433
441
|
g
|
|
434
442
|
]
|
|
435
|
-
),
|
|
436
|
-
|
|
437
|
-
}, []),
|
|
443
|
+
), Ve = !!ao(y), ge = !!y && !Ve, fr = r((e) => {
|
|
444
|
+
Wt(e);
|
|
445
|
+
}, []), ve = r(
|
|
438
446
|
(e) => {
|
|
439
|
-
e &&
|
|
447
|
+
e && Wt(e.shouldContinuePlayback);
|
|
440
448
|
},
|
|
441
449
|
[]
|
|
442
450
|
);
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}, [
|
|
446
|
-
|
|
447
|
-
}, [
|
|
448
|
-
|
|
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
|
-
|
|
451
|
-
|
|
458
|
+
ye,
|
|
459
|
+
Y,
|
|
452
460
|
L,
|
|
453
|
-
|
|
461
|
+
D,
|
|
454
462
|
V
|
|
455
|
-
]),
|
|
456
|
-
if (!
|
|
457
|
-
|
|
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(),
|
|
472
|
+
e || (i(), Y(), dr(Rt));
|
|
465
473
|
}, o = () => {
|
|
466
474
|
if (e)
|
|
467
475
|
return;
|
|
468
476
|
i();
|
|
469
|
-
const S =
|
|
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 ||
|
|
485
|
+
if (b.length === 0 || yo(b)) {
|
|
478
486
|
l();
|
|
479
487
|
return;
|
|
480
488
|
}
|
|
481
|
-
const
|
|
489
|
+
const te = [], Ke = () => {
|
|
482
490
|
e || (t !== null && window.cancelAnimationFrame(t), t = window.requestAnimationFrame(() => {
|
|
483
491
|
t = null, o();
|
|
484
492
|
}));
|
|
485
|
-
},
|
|
486
|
-
|
|
487
|
-
() =>
|
|
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((
|
|
491
|
-
const
|
|
492
|
-
if (!
|
|
493
|
-
|
|
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(
|
|
497
|
-
|
|
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
|
-
|
|
508
|
+
te.forEach((ne) => ne());
|
|
501
509
|
};
|
|
502
510
|
};
|
|
503
511
|
return t = window.requestAnimationFrame(() => {
|
|
504
512
|
t = null, o();
|
|
505
|
-
}),
|
|
513
|
+
}), je.current = window.setTimeout(() => {
|
|
506
514
|
l();
|
|
507
|
-
},
|
|
508
|
-
e = !0, i(),
|
|
515
|
+
}, po), () => {
|
|
516
|
+
e = !0, i(), Y(), t !== null && window.cancelAnimationFrame(t);
|
|
509
517
|
};
|
|
510
518
|
}, [
|
|
511
|
-
|
|
519
|
+
Y,
|
|
512
520
|
R,
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
]),
|
|
517
|
-
|
|
518
|
-
}), [
|
|
519
|
-
T || (
|
|
520
|
-
}, [T]),
|
|
521
|
-
|
|
522
|
-
}, [
|
|
523
|
-
if (!
|
|
524
|
-
|
|
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
|
-
|
|
536
|
+
rn(En()), Z();
|
|
529
537
|
}, t = () => {
|
|
530
|
-
|
|
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 =
|
|
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
|
-
}, [
|
|
546
|
-
|
|
547
|
-
}, [
|
|
548
|
-
|
|
549
|
-
}, [
|
|
550
|
-
|
|
551
|
-
}, [
|
|
552
|
-
const e =
|
|
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:
|
|
567
|
+
currentAudioKey: x,
|
|
560
568
|
hasCompletedCurrentStepAudio: M,
|
|
561
|
-
hasResolvedCurrentInteraction:
|
|
562
|
-
currentStepHasSpeakableElement:
|
|
569
|
+
hasResolvedCurrentInteraction: Ve,
|
|
570
|
+
currentStepHasSpeakableElement: A,
|
|
563
571
|
currentInteractionElement: y,
|
|
564
|
-
isAutoAdvanceEnabled:
|
|
565
|
-
shouldUseSilentStepAutoAdvanceToggle:
|
|
572
|
+
isAutoAdvanceEnabled: ke,
|
|
573
|
+
shouldUseSilentStepAutoAdvanceToggle: De
|
|
566
574
|
}
|
|
567
575
|
);
|
|
568
|
-
|
|
576
|
+
$t.current = {
|
|
569
577
|
markerCount: P.length,
|
|
570
|
-
currentIndex:
|
|
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
|
-
|
|
582
|
-
_e,
|
|
589
|
+
Ve,
|
|
583
590
|
ke,
|
|
591
|
+
De,
|
|
584
592
|
P.length
|
|
585
|
-
]),
|
|
586
|
-
if (!g ||
|
|
587
|
-
V(),
|
|
593
|
+
]), s(() => {
|
|
594
|
+
if (!g || K === "hidden") {
|
|
595
|
+
V(), Me(!1);
|
|
588
596
|
return;
|
|
589
597
|
}
|
|
590
|
-
if (
|
|
591
|
-
V(),
|
|
598
|
+
if (K === "visible") {
|
|
599
|
+
V(), Me(!0);
|
|
592
600
|
return;
|
|
593
601
|
}
|
|
594
|
-
|
|
602
|
+
et || v(!0);
|
|
595
603
|
}, [
|
|
596
604
|
V,
|
|
597
|
-
|
|
598
|
-
|
|
605
|
+
et,
|
|
606
|
+
K,
|
|
599
607
|
g,
|
|
600
608
|
v
|
|
601
|
-
]),
|
|
609
|
+
]), s(() => {
|
|
602
610
|
if (typeof window > "u")
|
|
603
611
|
return;
|
|
604
612
|
const e = (t) => {
|
|
605
|
-
t.origin === window.location.origin &&
|
|
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
|
-
}, [
|
|
611
|
-
sectionRef:
|
|
618
|
+
}, [U, g, v]), Jr({
|
|
619
|
+
sectionRef: ae,
|
|
612
620
|
enabled: g,
|
|
613
|
-
keyboardShortcutsEnabled:
|
|
614
|
-
onKeyboardShortcut:
|
|
621
|
+
keyboardShortcutsEnabled: le,
|
|
622
|
+
onKeyboardShortcut: U,
|
|
615
623
|
onWake: () => {
|
|
616
|
-
|
|
624
|
+
U(), de(!0), v(!0);
|
|
617
625
|
}
|
|
618
|
-
}),
|
|
626
|
+
}), s(() => {
|
|
619
627
|
if (!g) {
|
|
620
|
-
|
|
628
|
+
N();
|
|
621
629
|
return;
|
|
622
630
|
}
|
|
623
|
-
const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } =
|
|
624
|
-
previousResetKey:
|
|
625
|
-
nextResetKey:
|
|
626
|
-
currentAudioKey:
|
|
631
|
+
const { hasPlaybackContextChanged: e, shouldInitializeAudioSequence: t } = io({
|
|
632
|
+
previousResetKey: Gt.current,
|
|
633
|
+
nextResetKey: Le,
|
|
634
|
+
currentAudioKey: x,
|
|
627
635
|
hasCompletedCurrentStepAudio: M
|
|
628
636
|
});
|
|
629
|
-
|
|
630
|
-
const n =
|
|
637
|
+
Gt.current = Le;
|
|
638
|
+
const n = j.current === a && !!y, i = eo({
|
|
631
639
|
hasInteraction: !!y,
|
|
632
|
-
shouldBlockPlaybackForInteraction:
|
|
640
|
+
shouldBlockPlaybackForInteraction: ge,
|
|
633
641
|
shouldOpenInteractionOverlayAfterAudio: n,
|
|
634
642
|
hasPlaybackContextChanged: e,
|
|
635
|
-
hasResolvedCurrentInteraction:
|
|
636
|
-
currentStepHasSpeakableElement:
|
|
637
|
-
}), l =
|
|
638
|
-
if (e &&
|
|
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) && !
|
|
641
|
-
if (l?.slideIndex ===
|
|
642
|
-
currentIndex:
|
|
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
|
-
|
|
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 &&
|
|
654
|
-
|
|
661
|
+
if (y && It(y), i) {
|
|
662
|
+
vn(y);
|
|
655
663
|
return;
|
|
656
664
|
}
|
|
657
|
-
if (
|
|
658
|
-
if (
|
|
665
|
+
if (D(), j.current = null, !!t && !he()) {
|
|
666
|
+
if (A) {
|
|
659
667
|
if (k) {
|
|
660
|
-
|
|
668
|
+
w(!1);
|
|
661
669
|
return;
|
|
662
670
|
}
|
|
663
|
-
|
|
671
|
+
w(!0);
|
|
664
672
|
return;
|
|
665
673
|
}
|
|
666
|
-
if (_ && !(
|
|
667
|
-
return
|
|
668
|
-
|
|
669
|
-
},
|
|
670
|
-
|
|
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
|
-
|
|
685
|
+
ye,
|
|
678
686
|
R.length,
|
|
679
|
-
|
|
687
|
+
a,
|
|
680
688
|
y,
|
|
681
|
-
w,
|
|
682
|
-
Me,
|
|
683
689
|
x,
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
690
|
+
Le,
|
|
691
|
+
A,
|
|
692
|
+
Ne,
|
|
693
|
+
gn,
|
|
694
|
+
hn,
|
|
687
695
|
F,
|
|
688
696
|
M,
|
|
689
697
|
k,
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
698
|
+
ke,
|
|
699
|
+
Ve,
|
|
700
|
+
ge,
|
|
701
|
+
D,
|
|
693
702
|
N,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
yn,
|
|
703
|
+
st,
|
|
704
|
+
vn,
|
|
697
705
|
g,
|
|
698
706
|
P,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
]),
|
|
703
|
-
if (k ||
|
|
704
|
-
|
|
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
|
-
|
|
716
|
+
w(!1);
|
|
709
717
|
return;
|
|
710
718
|
}
|
|
711
|
-
if (
|
|
712
|
-
|
|
719
|
+
if (fn) {
|
|
720
|
+
w(!1);
|
|
713
721
|
return;
|
|
714
722
|
}
|
|
715
|
-
|
|
723
|
+
gt("waitingForAudio"), w(!0);
|
|
716
724
|
}, [
|
|
717
|
-
|
|
718
|
-
|
|
725
|
+
fn,
|
|
726
|
+
A,
|
|
719
727
|
M,
|
|
720
728
|
k,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
]),
|
|
724
|
-
M &&
|
|
729
|
+
ee,
|
|
730
|
+
ge
|
|
731
|
+
]), s(() => {
|
|
732
|
+
M && oo(
|
|
725
733
|
O,
|
|
726
|
-
|
|
727
|
-
) &&
|
|
728
|
-
}, [O, M]),
|
|
729
|
-
const e =
|
|
730
|
-
|
|
731
|
-
currentAudioKey:
|
|
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:
|
|
741
|
+
currentStepHasSpeakableElement: A,
|
|
734
742
|
hasCompletedCurrentStepAudio: M,
|
|
735
|
-
shouldBlockPlaybackForInteraction:
|
|
736
|
-
shouldPausePlaybackForCustomAction:
|
|
743
|
+
shouldBlockPlaybackForInteraction: ge,
|
|
744
|
+
shouldPausePlaybackForCustomAction: ee,
|
|
737
745
|
shouldSkipDefaultAudioStart: e
|
|
738
|
-
}) &&
|
|
746
|
+
}) && he();
|
|
739
747
|
}, [
|
|
740
|
-
w,
|
|
741
|
-
O,
|
|
742
748
|
x,
|
|
749
|
+
O,
|
|
750
|
+
A,
|
|
743
751
|
M,
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
]),
|
|
748
|
-
!
|
|
749
|
-
}, [C,
|
|
750
|
-
C >= 0 ||
|
|
751
|
-
}, [C,
|
|
752
|
-
|
|
753
|
-
}, [
|
|
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:
|
|
756
|
-
interactionDefaultSelectedValues:
|
|
757
|
-
hasResolvedInteractionInput:
|
|
758
|
-
isInteractionReadonly:
|
|
759
|
-
shouldAutoContinueInteraction:
|
|
760
|
-
} =
|
|
761
|
-
() =>
|
|
762
|
-
interactionDefaultValueOptions:
|
|
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,
|
|
765
|
-
),
|
|
772
|
+
[h, Ge]
|
|
773
|
+
), yr = !!h?.readonly || pr, qe = Zr({
|
|
766
774
|
hasActiveInteraction: !!h,
|
|
767
|
-
isInteractionOverlayOpen:
|
|
768
|
-
}),
|
|
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
|
-
|
|
783
|
+
It((i) => !i || !n ? i : {
|
|
776
784
|
...i,
|
|
777
785
|
user_input: n
|
|
778
|
-
}),
|
|
786
|
+
}), $e?.(e, h), Be();
|
|
779
787
|
},
|
|
780
|
-
[h,
|
|
788
|
+
[h, Be, $e]
|
|
781
789
|
);
|
|
782
|
-
|
|
790
|
+
s(() => {
|
|
783
791
|
const e = () => {
|
|
784
|
-
|
|
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
|
-
}, []),
|
|
790
|
-
h &&
|
|
791
|
-
}, [h,
|
|
792
|
-
|
|
793
|
-
}, [h,
|
|
794
|
-
if (!
|
|
795
|
-
|
|
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 =
|
|
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
|
-
|
|
806
|
-
i +
|
|
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
|
-
}, [
|
|
818
|
-
if (L(), !!
|
|
819
|
-
if (
|
|
820
|
-
return
|
|
821
|
-
|
|
822
|
-
},
|
|
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 (!(
|
|
826
|
-
return
|
|
827
|
-
|
|
828
|
-
},
|
|
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
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
842
|
+
Be,
|
|
843
|
+
en,
|
|
844
|
+
In,
|
|
845
|
+
fe,
|
|
846
|
+
bn
|
|
839
847
|
]);
|
|
840
|
-
const
|
|
841
|
-
|
|
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:
|
|
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:
|
|
861
|
+
enableScaling: Mn
|
|
852
862
|
}
|
|
853
|
-
) : /* @__PURE__ */
|
|
854
|
-
|
|
863
|
+
) : /* @__PURE__ */ u(
|
|
864
|
+
xn,
|
|
855
865
|
{
|
|
856
866
|
className: "content-render-iframe",
|
|
857
867
|
disableLoadingOverlay: k,
|
|
858
868
|
hideFullScreen: !0,
|
|
859
|
-
locale:
|
|
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,
|
|
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 &&
|
|
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__ */
|
|
874
|
-
|
|
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__ */
|
|
892
|
+
return /* @__PURE__ */ u(
|
|
881
893
|
"div",
|
|
882
894
|
{
|
|
883
|
-
ref: t && S === l ?
|
|
895
|
+
ref: t && S === l ? Ut : null,
|
|
884
896
|
"aria-hidden": b || void 0,
|
|
885
|
-
className:
|
|
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:
|
|
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
|
-
},
|
|
900
|
-
const e =
|
|
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
|
-
}, []),
|
|
911
|
-
const e =
|
|
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
|
-
}, []),
|
|
917
|
-
(e) =>
|
|
918
|
-
currentIndex:
|
|
928
|
+
}, []), Ot = r(
|
|
929
|
+
(e) => Cn({
|
|
930
|
+
currentIndex: a,
|
|
919
931
|
resolvedCurrentInteractionElement: h,
|
|
920
932
|
slideElementList: P,
|
|
921
|
-
targetSlideIndex:
|
|
933
|
+
targetSlideIndex: Qe[e.audioIndex]
|
|
922
934
|
}),
|
|
923
935
|
[
|
|
924
936
|
h,
|
|
925
|
-
|
|
926
|
-
|
|
937
|
+
Qe,
|
|
938
|
+
a,
|
|
927
939
|
P
|
|
928
940
|
]
|
|
929
|
-
),
|
|
941
|
+
), Ir = r(
|
|
930
942
|
(e, t) => {
|
|
931
|
-
const i = I[e.audioIndex]?.audioKey, l =
|
|
932
|
-
return !i || l == null || !
|
|
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
|
-
},
|
|
949
|
+
}, Jt(l), !0));
|
|
938
950
|
},
|
|
939
951
|
[
|
|
940
952
|
I,
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
953
|
+
Qe,
|
|
954
|
+
Ot,
|
|
955
|
+
a,
|
|
956
|
+
Jt,
|
|
957
|
+
st,
|
|
958
|
+
N,
|
|
947
959
|
v,
|
|
948
|
-
|
|
960
|
+
ve
|
|
949
961
|
]
|
|
950
|
-
),
|
|
962
|
+
), br = r(
|
|
951
963
|
(e) => {
|
|
952
|
-
|
|
964
|
+
ve(e), Re.current = !0, j.current = null, w(!1), Ft(e) && (de(!0), v(!0)), N(), Xt();
|
|
953
965
|
},
|
|
954
966
|
[
|
|
955
|
-
|
|
956
|
-
|
|
967
|
+
Xt,
|
|
968
|
+
N,
|
|
957
969
|
v,
|
|
958
|
-
|
|
970
|
+
ve
|
|
959
971
|
]
|
|
960
|
-
),
|
|
972
|
+
), Ar = r(
|
|
961
973
|
(e) => {
|
|
962
|
-
|
|
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
|
-
|
|
978
|
+
N,
|
|
967
979
|
v,
|
|
968
|
-
|
|
980
|
+
ve
|
|
969
981
|
]
|
|
970
|
-
),
|
|
982
|
+
), wr = r(
|
|
971
983
|
({
|
|
972
984
|
loading: e,
|
|
973
985
|
reason: t
|
|
974
986
|
}) => {
|
|
975
987
|
if (k) {
|
|
976
|
-
|
|
988
|
+
w(!1);
|
|
977
989
|
return;
|
|
978
990
|
}
|
|
979
|
-
if (!
|
|
980
|
-
|
|
991
|
+
if (!A || M) {
|
|
992
|
+
w(!1);
|
|
981
993
|
return;
|
|
982
994
|
}
|
|
983
|
-
e && t &&
|
|
995
|
+
e && t && gt(t), w(_o(t, e));
|
|
984
996
|
},
|
|
985
997
|
[
|
|
986
|
-
|
|
998
|
+
A,
|
|
987
999
|
M,
|
|
988
1000
|
k
|
|
989
1001
|
]
|
|
990
1002
|
);
|
|
991
|
-
|
|
992
|
-
k &&
|
|
1003
|
+
s(() => {
|
|
1004
|
+
k && w(!1);
|
|
993
1005
|
}, [k]);
|
|
994
|
-
const
|
|
1006
|
+
const xr = r(
|
|
995
1007
|
(e) => {
|
|
996
1008
|
const t = I[e]?.audioKey;
|
|
997
|
-
if (!t || !
|
|
1009
|
+
if (!t || !x || t !== x)
|
|
998
1010
|
return;
|
|
999
|
-
|
|
1011
|
+
nt.current.add(t);
|
|
1000
1012
|
const n = O.findIndex(
|
|
1001
1013
|
(o) => o === t
|
|
1002
1014
|
);
|
|
1003
1015
|
if (n < 0) {
|
|
1004
|
-
|
|
1016
|
+
H(null);
|
|
1005
1017
|
return;
|
|
1006
1018
|
}
|
|
1007
1019
|
const i = n + 1, l = O[i];
|
|
1008
1020
|
if (l) {
|
|
1009
|
-
|
|
1021
|
+
H(l);
|
|
1010
1022
|
return;
|
|
1011
1023
|
}
|
|
1012
|
-
if (
|
|
1013
|
-
const o =
|
|
1014
|
-
|
|
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
|
-
|
|
1022
|
-
|
|
1033
|
+
a,
|
|
1034
|
+
x,
|
|
1023
1035
|
O,
|
|
1024
1036
|
F,
|
|
1025
|
-
|
|
1037
|
+
pn,
|
|
1026
1038
|
P
|
|
1027
1039
|
]
|
|
1028
|
-
),
|
|
1029
|
-
h &&
|
|
1030
|
-
}, [h]),
|
|
1031
|
-
|
|
1032
|
-
}, [V, g]),
|
|
1033
|
-
|
|
1034
|
-
}, [v]),
|
|
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
|
-
),
|
|
1051
|
+
), ct = r(
|
|
1040
1052
|
(e, t) => {
|
|
1041
|
-
const n =
|
|
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
|
-
|
|
1055
|
-
const e =
|
|
1056
|
-
if (!
|
|
1057
|
-
|
|
1066
|
+
Eo(() => {
|
|
1067
|
+
const e = Ce.current;
|
|
1068
|
+
if (!qe || !e) {
|
|
1069
|
+
ce.current = null;
|
|
1058
1070
|
return;
|
|
1059
1071
|
}
|
|
1060
|
-
const t =
|
|
1061
|
-
if (!t ||
|
|
1062
|
-
|
|
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 (!
|
|
1070
|
-
|
|
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 =
|
|
1091
|
+
}, S = ct(
|
|
1080
1092
|
e,
|
|
1081
1093
|
E
|
|
1082
|
-
), b =
|
|
1083
|
-
S ?
|
|
1094
|
+
), b = Co(
|
|
1095
|
+
S ? Tn(o, S) : o
|
|
1084
1096
|
);
|
|
1085
|
-
|
|
1097
|
+
ce.current = {
|
|
1086
1098
|
left: n.left + b.x - E.x,
|
|
1087
1099
|
top: n.top + b.y - E.y
|
|
1088
|
-
},
|
|
1100
|
+
}, _n(
|
|
1089
1101
|
b,
|
|
1090
1102
|
E
|
|
1091
|
-
) ||
|
|
1092
|
-
(
|
|
1103
|
+
) || bt(
|
|
1104
|
+
(te) => _n(te, b) ? te : b
|
|
1093
1105
|
);
|
|
1094
1106
|
}, [
|
|
1095
|
-
|
|
1107
|
+
ct,
|
|
1096
1108
|
E,
|
|
1097
|
-
|
|
1109
|
+
At,
|
|
1098
1110
|
T,
|
|
1099
1111
|
g,
|
|
1100
|
-
|
|
1112
|
+
qe
|
|
1101
1113
|
]);
|
|
1102
|
-
const
|
|
1114
|
+
const Pr = r(
|
|
1103
1115
|
(e) => {
|
|
1104
|
-
if (
|
|
1116
|
+
if (Mt(e), e.button !== 0 || !e.currentTarget.isConnected || !Ce.current)
|
|
1105
1117
|
return;
|
|
1106
|
-
const t =
|
|
1107
|
-
|
|
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),
|
|
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
|
-
},
|
|
1128
|
+
}, wt(!0));
|
|
1117
1129
|
},
|
|
1118
1130
|
[
|
|
1119
|
-
|
|
1131
|
+
ct,
|
|
1120
1132
|
E,
|
|
1121
|
-
|
|
1133
|
+
Mt
|
|
1122
1134
|
]
|
|
1123
|
-
),
|
|
1135
|
+
), Rr = r(
|
|
1124
1136
|
(e) => {
|
|
1125
|
-
const t =
|
|
1126
|
-
!t || t.pointerId !== e.pointerId || (e.preventDefault(), e.stopPropagation(),
|
|
1127
|
-
|
|
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
|
-
),
|
|
1149
|
+
), wn = r(
|
|
1138
1150
|
(e) => {
|
|
1139
|
-
const t =
|
|
1140
|
-
!t || t.pointerId !== e.pointerId || (e.stopPropagation(), e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId),
|
|
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
|
-
),
|
|
1155
|
+
), _r = r(
|
|
1144
1156
|
(e) => {
|
|
1145
|
-
|
|
1157
|
+
U(), qt?.(e);
|
|
1146
1158
|
},
|
|
1147
|
-
[
|
|
1148
|
-
),
|
|
1159
|
+
[U, qt]
|
|
1160
|
+
), Or = r(
|
|
1149
1161
|
(e) => {
|
|
1150
|
-
|
|
1162
|
+
U(), Kt?.(e);
|
|
1151
1163
|
},
|
|
1152
|
-
[
|
|
1153
|
-
),
|
|
1154
|
-
|
|
1164
|
+
[U, Kt]
|
|
1165
|
+
), Mr = r(() => {
|
|
1166
|
+
de(!0), v(!0);
|
|
1155
1167
|
}, [v]);
|
|
1156
|
-
return
|
|
1157
|
-
const e =
|
|
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 (
|
|
1172
|
+
if (Ht.current = ue, !i)
|
|
1161
1173
|
return;
|
|
1162
1174
|
const l = window.requestAnimationFrame(() => {
|
|
1163
|
-
const o =
|
|
1175
|
+
const o = Je.current, S = Ut.current;
|
|
1164
1176
|
if (!o || !S)
|
|
1165
1177
|
return;
|
|
1166
|
-
const b = o.getBoundingClientRect(),
|
|
1178
|
+
const b = o.getBoundingClientRect(), te = S.getBoundingClientRect(), Ke = o.scrollTop + (te.top - b.top);
|
|
1167
1179
|
o.scrollTo({
|
|
1168
|
-
top: Math.max(
|
|
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,
|
|
1176
|
-
if (!
|
|
1187
|
+
}, [R, ue]), s(() => {
|
|
1188
|
+
if (!Re.current || (Re.current = !1, R.length === 0))
|
|
1177
1189
|
return;
|
|
1178
1190
|
const e = window.requestAnimationFrame(() => {
|
|
1179
|
-
|
|
1191
|
+
An();
|
|
1180
1192
|
});
|
|
1181
1193
|
return () => {
|
|
1182
1194
|
window.cancelAnimationFrame(e);
|
|
1183
1195
|
};
|
|
1184
|
-
}, [R,
|
|
1196
|
+
}, [R, An]), /* @__PURE__ */ Ue(
|
|
1185
1197
|
"section",
|
|
1186
1198
|
{
|
|
1187
|
-
ref:
|
|
1188
|
-
className:
|
|
1199
|
+
ref: ae,
|
|
1200
|
+
className: Ie(
|
|
1189
1201
|
"relative h-full w-full",
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
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
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1208
|
+
dir: J,
|
|
1209
|
+
lang: xe,
|
|
1210
|
+
onClick: Mr,
|
|
1211
|
+
onFocusCapture: Or,
|
|
1212
|
+
onPointerDown: _r,
|
|
1213
|
+
...Nn,
|
|
1200
1214
|
children: [
|
|
1201
|
-
|
|
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__ */
|
|
1222
|
+
/* @__PURE__ */ Ue(
|
|
1209
1223
|
"div",
|
|
1210
1224
|
{
|
|
1211
|
-
ref:
|
|
1212
|
-
className:
|
|
1225
|
+
ref: pt,
|
|
1226
|
+
className: Ie(
|
|
1213
1227
|
"slide__viewport relative h-full min-h-0 w-full",
|
|
1214
|
-
|
|
1215
|
-
|
|
1228
|
+
pe && "slide__viewport--mobile-landscape",
|
|
1229
|
+
pe && !Zn && "slide__viewport--mobile-landscape-native"
|
|
1216
1230
|
),
|
|
1217
1231
|
children: [
|
|
1218
|
-
|
|
1219
|
-
/* @__PURE__ */
|
|
1232
|
+
er ? /* @__PURE__ */ Ue("div", { className: "slide-landscape-header", children: [
|
|
1233
|
+
/* @__PURE__ */ u(
|
|
1220
1234
|
"button",
|
|
1221
1235
|
{
|
|
1222
|
-
"aria-label":
|
|
1236
|
+
"aria-label": z?.backAriaLabel ?? q.fullscreenBackAriaLabel,
|
|
1223
1237
|
className: "slide-landscape-header__back",
|
|
1224
|
-
onClick:
|
|
1238
|
+
onClick: or,
|
|
1225
1239
|
type: "button",
|
|
1226
|
-
children: /* @__PURE__ */
|
|
1227
|
-
|
|
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
|
-
|
|
1249
|
+
z?.content ? /* @__PURE__ */ u("div", { className: "min-w-0 flex-1 overflow-hidden", children: z.content }) : null
|
|
1236
1250
|
] }) : null,
|
|
1237
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ u(
|
|
1238
1252
|
"div",
|
|
1239
1253
|
{
|
|
1240
|
-
className:
|
|
1254
|
+
className: Ie(
|
|
1241
1255
|
"h-full min-h-0 w-full",
|
|
1242
|
-
|
|
1243
|
-
|
|
1256
|
+
tr && "slide__viewport-content--with-header",
|
|
1257
|
+
Un ? "slide-content--single" : "grid gap-4"
|
|
1244
1258
|
),
|
|
1245
|
-
children: R.length > 0 ? /* @__PURE__ */
|
|
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 ===
|
|
1248
|
-
return /* @__PURE__ */
|
|
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:
|
|
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
|
-
|
|
1267
|
-
|
|
1280
|
+
$n ? /* @__PURE__ */ u(
|
|
1281
|
+
Kr,
|
|
1268
1282
|
{
|
|
1269
|
-
message:
|
|
1270
|
-
|
|
1271
|
-
|
|
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__ */
|
|
1277
|
-
|
|
1290
|
+
/* @__PURE__ */ u(
|
|
1291
|
+
zr,
|
|
1278
1292
|
{
|
|
1279
|
-
extraBottomOffset:
|
|
1293
|
+
extraBottomOffset: Wn,
|
|
1280
1294
|
hasPlayerGap: T,
|
|
1281
|
-
isEnabled:
|
|
1295
|
+
isEnabled: Zt && Xn,
|
|
1282
1296
|
isPlayerHidden: g && !T,
|
|
1283
|
-
playbackTimeStore:
|
|
1284
|
-
subtitleCues:
|
|
1297
|
+
playbackTimeStore: me,
|
|
1298
|
+
subtitleCues: ar
|
|
1285
1299
|
}
|
|
1286
1300
|
),
|
|
1287
|
-
|
|
1301
|
+
qe ? /* @__PURE__ */ u(
|
|
1288
1302
|
"div",
|
|
1289
1303
|
{
|
|
1290
|
-
ref:
|
|
1304
|
+
ref: Ce,
|
|
1291
1305
|
"data-player-keyboard-shortcuts-ignore": "true",
|
|
1292
|
-
className:
|
|
1306
|
+
className: Ie(
|
|
1293
1307
|
"slide-interaction-overlay",
|
|
1294
1308
|
T && g ? "slide-interaction-overlay--with-player" : "slide-interaction-overlay--standalone",
|
|
1295
|
-
|
|
1309
|
+
At && "slide-interaction-overlay--dragging"
|
|
1296
1310
|
),
|
|
1297
|
-
onClick:
|
|
1311
|
+
onClick: Mt,
|
|
1298
1312
|
onPointerDownCapture: (e) => {
|
|
1299
|
-
|
|
1313
|
+
Dt(e.target) && it(!0);
|
|
1300
1314
|
},
|
|
1301
1315
|
onFocusCapture: (e) => {
|
|
1302
|
-
|
|
1316
|
+
Dt(e.target) && it(!0);
|
|
1303
1317
|
},
|
|
1304
1318
|
onInputCapture: (e) => {
|
|
1305
|
-
|
|
1319
|
+
Dt(e.target) && it(!0);
|
|
1306
1320
|
},
|
|
1307
|
-
style:
|
|
1308
|
-
children: /* @__PURE__ */
|
|
1309
|
-
|
|
1321
|
+
style: sr,
|
|
1322
|
+
children: /* @__PURE__ */ u(
|
|
1323
|
+
On,
|
|
1310
1324
|
{
|
|
1325
|
+
dir: J,
|
|
1326
|
+
lang: xe,
|
|
1311
1327
|
content: String(h?.content ?? ""),
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
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__ */
|
|
1331
|
-
|
|
1347
|
+
g ? /* @__PURE__ */ u(
|
|
1348
|
+
Wr.Provider,
|
|
1332
1349
|
{
|
|
1333
|
-
value:
|
|
1334
|
-
children: /* @__PURE__ */
|
|
1335
|
-
|
|
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:
|
|
1357
|
+
className: Ie(
|
|
1339
1358
|
"absolute left-1/2 z-[2] -translate-x-1/2",
|
|
1340
|
-
|
|
1341
|
-
|
|
1359
|
+
an ? "bottom-3" : "-bottom-3",
|
|
1360
|
+
$,
|
|
1342
1361
|
!T && "pointer-events-none opacity-0"
|
|
1343
1362
|
),
|
|
1344
1363
|
currentAudioIndex: C,
|
|
1345
|
-
defaultPlaying:
|
|
1346
|
-
enableKeyboardShortcuts:
|
|
1347
|
-
isPlaybackPaused:
|
|
1348
|
-
isAutoAdvanceEnabled:
|
|
1349
|
-
locale:
|
|
1364
|
+
defaultPlaying: ht,
|
|
1365
|
+
enableKeyboardShortcuts: le,
|
|
1366
|
+
isPlaybackPaused: ee,
|
|
1367
|
+
isAutoAdvanceEnabled: ke,
|
|
1368
|
+
locale: d,
|
|
1350
1369
|
hasInteraction: !!h,
|
|
1351
|
-
isInteractionOpen:
|
|
1352
|
-
isSubtitleEnabled:
|
|
1353
|
-
onAutoAdvanceToggle:
|
|
1354
|
-
onLoadingChange:
|
|
1370
|
+
isInteractionOpen: fe,
|
|
1371
|
+
isSubtitleEnabled: Zt,
|
|
1372
|
+
onAutoAdvanceToggle: jt,
|
|
1373
|
+
onLoadingChange: wr,
|
|
1355
1374
|
onPlaybackStarted: () => {
|
|
1356
|
-
|
|
1375
|
+
rt(!0);
|
|
1357
1376
|
},
|
|
1358
|
-
onPlaybackPreferenceChange:
|
|
1359
|
-
onPlaybackTimeChange:
|
|
1377
|
+
onPlaybackPreferenceChange: fr,
|
|
1378
|
+
onPlaybackTimeChange: me.setTime,
|
|
1360
1379
|
onSubtitleToggle: () => {
|
|
1361
|
-
|
|
1380
|
+
Jn((e) => !e);
|
|
1362
1381
|
},
|
|
1363
1382
|
nextDisabled: !_,
|
|
1364
|
-
onEnded:
|
|
1365
|
-
onFullscreen:
|
|
1366
|
-
isFullscreen:
|
|
1367
|
-
mobileViewMode:
|
|
1368
|
-
settingsPortalContainer:
|
|
1369
|
-
onMobileViewModeChange:
|
|
1370
|
-
onControlsPointerEnter:
|
|
1371
|
-
onControlsPointerLeave:
|
|
1372
|
-
onInteractionToggle:
|
|
1373
|
-
onNext:
|
|
1374
|
-
onPrev:
|
|
1375
|
-
onSubtitleJump:
|
|
1376
|
-
canJumpToSubtitleTarget:
|
|
1377
|
-
prevDisabled: !
|
|
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:
|
|
1380
|
-
texts:
|
|
1381
|
-
customActionContext:
|
|
1382
|
-
customActions:
|
|
1383
|
-
useAutoAdvanceToggle:
|
|
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
|
-
|
|
1415
|
+
gi as default
|
|
1397
1416
|
};
|
|
1398
1417
|
//# sourceMappingURL=Slide.es.js.map
|