hardwater-ui-microfrontend 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +48 -0
  2. package/dist/DailyMotion-BwpAgR-V.js +1 -0
  3. package/dist/DailyMotion-DLZygJVj.mjs +135 -0
  4. package/dist/Facebook-BLJ6JTv_.js +1 -0
  5. package/dist/Facebook-C93Qgsot.mjs +120 -0
  6. package/dist/FilePlayer-DJHWbLcD.js +1 -0
  7. package/dist/FilePlayer-DYy9XerI.mjs +201 -0
  8. package/dist/Kaltura-B-pnIuKt.js +1 -0
  9. package/dist/Kaltura-CR4IE6JY.mjs +120 -0
  10. package/dist/Mixcloud-B8Vzd6Te.js +1 -0
  11. package/dist/Mixcloud-DUpwZ8OV.mjs +112 -0
  12. package/dist/Mux-DnGUsZf_.mjs +164 -0
  13. package/dist/Mux-DxeB-oUm.js +1 -0
  14. package/dist/Preview-B6JRCY5f.mjs +127 -0
  15. package/dist/Preview-BaBBV6Br.js +1 -0
  16. package/dist/SoundCloud-3R2aIdUg.js +1 -0
  17. package/dist/SoundCloud-BcgEw6hR.mjs +122 -0
  18. package/dist/Streamable-COL4hBFv.js +1 -0
  19. package/dist/Streamable-DRiRQhSA.mjs +114 -0
  20. package/dist/Twitch-C38Ew4Tp.mjs +116 -0
  21. package/dist/Twitch-CYscPCZR.js +1 -0
  22. package/dist/Vidyard-B1Dr9_bu.mjs +112 -0
  23. package/dist/Vidyard-D1vZHm1b.js +1 -0
  24. package/dist/Vimeo-Be31RVkU.mjs +145 -0
  25. package/dist/Vimeo-DdBHVpAB.js +1 -0
  26. package/dist/Wistia-CiLiibvT.js +1 -0
  27. package/dist/Wistia-DoeQgYov.mjs +123 -0
  28. package/dist/YouTube-Dx2BhB3o.mjs +175 -0
  29. package/dist/YouTube-uQuz_KMN.js +1 -0
  30. package/dist/chatpers_list.json.d.ts +964 -0
  31. package/dist/components/Atoms/AssistantImageModal/ImageModal.d.ts +6 -0
  32. package/dist/components/Atoms/BottomInput/BottomInput.d.ts +2 -0
  33. package/dist/components/Atoms/BottomNavButton/BottomNavButton.d.ts +2 -0
  34. package/dist/components/Atoms/BottomNavMenu/BottomNavMenu.d.ts +2 -0
  35. package/dist/components/Atoms/BottomNavMenu/MobileBottomNavMenu.d.ts +2 -0
  36. package/dist/components/Atoms/BottomNavToast/BottomNavToast.d.ts +2 -0
  37. package/dist/components/Atoms/BottomTopicChapter/BottomTopicChapter.d.ts +1 -0
  38. package/dist/components/Atoms/Button/Button.d.ts +9 -0
  39. package/dist/components/Atoms/Button/ButtonConstants.d.ts +44 -0
  40. package/dist/components/Atoms/Button/Buttons.d.ts +44 -0
  41. package/dist/components/Atoms/Checkbox/Checkbox.d.ts +8 -0
  42. package/dist/components/Atoms/CustmBtn/CustmBtn.d.ts +10 -0
  43. package/dist/components/Atoms/CustmBtn/GradientButton.style.d.ts +59 -0
  44. package/dist/components/Atoms/CustomButton/ButtonTheme.d.ts +2 -0
  45. package/dist/components/Atoms/CustomButton/CustomButton.d.ts +2 -0
  46. package/dist/components/Atoms/Dropdown/Dropdown.d.ts +2 -0
  47. package/dist/components/Atoms/ExtractedDiagramView/ExtractedDiagramView.d.ts +4 -0
  48. package/dist/components/Atoms/GlobalButton/ButtonUtils.d.ts +89 -0
  49. package/dist/components/Atoms/GlobalButton/GlobalButton.d.ts +15 -0
  50. package/dist/components/Atoms/GlobalButtonV2/GlobalButtonV2.d.ts +18 -0
  51. package/dist/components/Atoms/GlobalButtonV2/GlobalButtonV2.styles.d.ts +118 -0
  52. package/dist/components/Atoms/GlobalButtonV2/getButtonStyles.d.ts +15 -0
  53. package/dist/components/Atoms/Input/Input.d.ts +7 -0
  54. package/dist/components/Atoms/LatexRenderView/LatexRenderView.d.ts +1 -0
  55. package/dist/components/Atoms/MenuNavbar/MenuNavbar.d.ts +2 -0
  56. package/dist/components/Atoms/Modal/Modal.d.ts +12 -0
  57. package/dist/components/Atoms/Pagination/Pagination.d.ts +2 -0
  58. package/dist/components/Atoms/Pagination/TablePagination.d.ts +2 -0
  59. package/dist/components/Atoms/PrivacyTouchPoint/PrivacyTouchPoint.d.ts +1 -0
  60. package/dist/components/Atoms/PrivacyTouchPoint/PrivacyTouchPoint.stories.d.ts +40 -0
  61. package/dist/components/Atoms/Radio/Radio.d.ts +8 -0
  62. package/dist/components/Atoms/Select/Select.d.ts +9 -0
  63. package/dist/components/Atoms/Spinner/Spinner.d.ts +8 -0
  64. package/dist/components/Atoms/SummaryLine.d.ts +3 -0
  65. package/dist/components/Atoms/Switch/Switch.d.ts +8 -0
  66. package/dist/components/Atoms/TextArea/TextArea.d.ts +7 -0
  67. package/dist/components/Atoms/Toast/Toast.d.ts +7 -0
  68. package/dist/components/Atoms/TranscriptionImagePreview/ImageAnnotation.d.ts +4 -0
  69. package/dist/components/Atoms/TranscriptionImagePreview/ImageTranscriptionStyles.d.ts +1 -0
  70. package/dist/components/Atoms/TranscriptionImagePreview/TranscriptionImagePreview.d.ts +1 -0
  71. package/dist/components/Atoms/Typography/Typography.d.ts +8 -0
  72. package/dist/components/Atoms/Typography/TypographyConstants.d.ts +53 -0
  73. package/dist/components/Atoms/imageModal.d.ts +2 -0
  74. package/dist/components/Atoms/useCustomToast.d.ts +6 -0
  75. package/dist/components/Molecules/AccordianPay4/Accordian.d.ts +5 -0
  76. package/dist/components/Molecules/AccordianPay4/Accordian.styles.d.ts +117 -0
  77. package/dist/components/Molecules/ActivityBanner/ActivityBanner.d.ts +1 -0
  78. package/dist/components/Molecules/ActivityBanner/activityBannerStyles.d.ts +75 -0
  79. package/dist/components/Molecules/AddPostCard/AddPostCard.d.ts +2 -0
  80. package/dist/components/Molecules/AddPostCard/addPostStyles.d.ts +86 -0
  81. package/dist/components/Molecules/BottomNav/BottomNav.d.ts +2 -0
  82. package/dist/components/Molecules/BottomNav/BottomNavStyles.d.ts +52 -0
  83. package/dist/components/Molecules/DashPlayer/DashPlayer.d.ts +4 -0
  84. package/dist/components/Molecules/DashPlayer/ShakaPlayer.d.ts +3 -0
  85. package/dist/components/Molecules/Descriptive/DescriptiveLabel.d.ts +6 -0
  86. package/dist/components/Molecules/Descriptive/descriptiveStyles.d.ts +68 -0
  87. package/dist/components/Molecules/DescriptiveAnswer/DescriptiveAnswerV1.d.ts +2 -0
  88. package/dist/components/Molecules/FactualCard/FactualCard.d.ts +46 -0
  89. package/dist/components/Molecules/FactualCard/FactualCard.style.d.ts +64 -0
  90. package/dist/components/Molecules/FloatingButton/FloatingButton.d.ts +11 -0
  91. package/dist/components/Molecules/FloatingButton/FloatingButton.styles.d.ts +21 -0
  92. package/dist/components/Molecules/HighChart/HighChart.d.ts +2 -0
  93. package/dist/components/Molecules/HighChart/HighChartPie.d.ts +2 -0
  94. package/dist/components/Molecules/ImageView/ImageModal.d.ts +2 -0
  95. package/dist/components/Molecules/InvalidSession/InvalidSession.d.ts +7 -0
  96. package/dist/components/Molecules/InvalidSession/InvalidSession.styles.d.ts +15 -0
  97. package/dist/components/Molecules/LatexRender/DefaultRender.d.ts +4 -0
  98. package/dist/components/Molecules/LatexRender/LatexRender.d.ts +2 -0
  99. package/dist/components/Molecules/LatexRender/MarkdownRender.d.ts +4 -0
  100. package/dist/components/Molecules/MediaModal/MediaModal.d.ts +16 -0
  101. package/dist/components/Molecules/MediaModal/MediaModal.style.d.ts +8 -0
  102. package/dist/components/Molecules/Pay4Use/ExecutionModal.d.ts +18 -0
  103. package/dist/components/Molecules/Pay4Use/ExecutionModalStyles.d.ts +344 -0
  104. package/dist/components/Molecules/Pay4Use/PayToUsePrompt.d.ts +2 -0
  105. package/dist/components/Molecules/Pay4Use/PayToUsePromptStyles.d.ts +108 -0
  106. package/dist/components/Molecules/PerformanceScreen/PreformanceResultScreen.d.ts +26 -0
  107. package/dist/components/Molecules/PerformanceScreen/QuizResult.styles.d.ts +32 -0
  108. package/dist/components/Molecules/PostCard/PostCard.d.ts +2 -0
  109. package/dist/components/Molecules/PostCard/PostImageGallary.d.ts +1 -0
  110. package/dist/components/Molecules/PostCard/postCardStyles.d.ts +152 -0
  111. package/dist/components/Molecules/RecapNode/ContentView.d.ts +2 -0
  112. package/dist/components/Molecules/RecapNode/SectionView.d.ts +7 -0
  113. package/dist/components/Molecules/RecapNode/VideoView.d.ts +8 -0
  114. package/dist/components/Molecules/RequestSent/RequestSent.d.ts +10 -0
  115. package/dist/components/Molecules/RequestSent/RequestSent.styles.d.ts +3 -0
  116. package/dist/components/Molecules/RevisionCompleteCard/RevisionCompleteCard.d.ts +16 -0
  117. package/dist/components/Molecules/RevisionCompleteCard/RevisionCompleteCard.styles.d.ts +22 -0
  118. package/dist/components/Molecules/RevisionIntroCard/RevisionCard.styles.d.ts +10 -0
  119. package/dist/components/Molecules/RevisionIntroCard/RevisionIntro.d.ts +13 -0
  120. package/dist/components/Molecules/SmartLearn/SmartLearn.d.ts +5 -0
  121. package/dist/components/Molecules/SmartLearn/SmartLearn.styles.d.ts +385 -0
  122. package/dist/components/Molecules/SmartLearn/types.d.ts +31 -0
  123. package/dist/components/Molecules/SortMenu/SortMenu.d.ts +2 -0
  124. package/dist/components/Molecules/SortMenu/sortMenuStyles.d.ts +32 -0
  125. package/dist/components/Molecules/StaticscreensLearnmore/Staticback.d.ts +20 -0
  126. package/dist/components/Molecules/StaticscreensLearnmore/Staticback.styles.d.ts +238 -0
  127. package/dist/components/Molecules/TableCustomizer/CellEditor.d.ts +12 -0
  128. package/dist/components/Molecules/TableCustomizer/HTMLImporter.d.ts +4 -0
  129. package/dist/components/Molecules/TableCustomizer/MarkdownImporter.d.ts +4 -0
  130. package/dist/components/Molecules/TableCustomizer/TableHeader.d.ts +11 -0
  131. package/dist/components/Molecules/TableCustomizer/TablePreview.d.ts +8 -0
  132. package/dist/components/Molecules/TableCustomizer/TableStructureControls.d.ts +5 -0
  133. package/dist/components/Molecules/TableCustomizer/hooks/useTableGenerator.d.ts +8 -0
  134. package/dist/components/Molecules/TableCustomizer/hooks/useTableState.d.ts +27 -0
  135. package/dist/components/Molecules/TableCustomizer/index.d.ts +4 -0
  136. package/dist/components/Molecules/TableCustomizer/utils/htmlTableParser.d.ts +9 -0
  137. package/dist/components/Molecules/TableCustomizer/utils/markdownTableParser.d.ts +9 -0
  138. package/dist/components/Molecules/TermsAndPrivacy/PrivacyPolicy.d.ts +2 -0
  139. package/dist/components/Molecules/TermsAndPrivacy/TermsAndConditions.d.ts +2 -0
  140. package/dist/components/Molecules/TermsAndPrivacy/components/ContactCard.d.ts +7 -0
  141. package/dist/components/Molecules/TermsAndPrivacy/components/NestedList.d.ts +7 -0
  142. package/dist/components/Molecules/TermsAndPrivacy/helpers/ParentHelper.d.ts +40 -0
  143. package/dist/components/Molecules/TermsAndPrivacy/helpers/RefundAndCancellationHelper.d.ts +12 -0
  144. package/dist/components/Molecules/TermsAndPrivacy/helpers/SchoolHelper.d.ts +31 -0
  145. package/dist/components/Molecules/TermsAndPrivacy/helpers/StudentHelper.d.ts +44 -0
  146. package/dist/components/Molecules/TermsAndPrivacy/helpers/TeacherHelper.d.ts +40 -0
  147. package/dist/components/Molecules/TimerClock/TimerClock.d.ts +12 -0
  148. package/dist/components/Molecules/Tutor/Assistant/Assistant.d.ts +2 -0
  149. package/dist/components/Molecules/Tutor/Assistant/Assistant.styles.d.ts +537 -0
  150. package/dist/components/Molecules/Tutor/Assistant/AssistantV2.d.ts +14 -0
  151. package/dist/components/Molecules/Tutor/Assistant/AssistantV2.styles.d.ts +109 -0
  152. package/dist/components/Molecules/Tutor/Assistant/TutorAssistant.d.ts +2 -0
  153. package/dist/components/Molecules/Tutor/BubbleLoader.d.ts +1 -0
  154. package/dist/components/Molecules/Tutor/TutorSummary/TutorSummary.d.ts +1 -0
  155. package/dist/components/Molecules/Tutor/User/User.d.ts +1 -0
  156. package/dist/components/Molecules/VideoView/VideoModal.d.ts +2 -0
  157. package/dist/components/Molecules/WallBanner/WallBanner.d.ts +2 -0
  158. package/dist/components/Molecules/WallBanner/wallBannerStyles.d.ts +1 -0
  159. package/dist/components/Molecules/WallCard/WallCard.d.ts +1 -0
  160. package/dist/components/Molecules/comprehension/ComprehensionLayout.d.ts +37 -0
  161. package/dist/components/Molecules/comprehension/ComprehensionStyles.d.ts +21 -0
  162. package/dist/components/Molecules/comprehension/SubQuestionLayout.d.ts +45 -0
  163. package/dist/components/Molecules/optionLayouts/fibtemp.d.ts +2 -0
  164. package/dist/components/Molecules/optionLayouts/mcqtemp.d.ts +2 -0
  165. package/dist/components/Molecules/optionLayouts/scqStudent.d.ts +2 -0
  166. package/dist/components/Molecules/optionLayouts/scqtemp.d.ts +2 -0
  167. package/dist/components/Molecules/questionLayouts/AnswerLayouts.d.ts +1 -0
  168. package/dist/components/Molecules/questionLayouts/QuestionsLayout.d.ts +1 -0
  169. package/dist/components/Organisms/ActivityList/ActivityList.d.ts +2 -0
  170. package/dist/components/Organisms/ChatView/ChatView.d.ts +1 -0
  171. package/dist/components/Organisms/FlashCardNode/FlashCardNode.d.ts +3 -0
  172. package/dist/components/Organisms/FlashCardNode/FlashcardContainer.d.ts +30 -0
  173. package/dist/components/Organisms/FlashCardNode/IconBar.d.ts +7 -0
  174. package/dist/components/Organisms/FlashCardNode/MobileAccordionView.d.ts +12 -0
  175. package/dist/components/Organisms/FlashCardNode/NodeHandles.d.ts +3 -0
  176. package/dist/components/Organisms/ISEditor-V2/EditableDiv.d.ts +4 -0
  177. package/dist/components/Organisms/ISEditor-V2/Editor.d.ts +2 -0
  178. package/dist/components/Organisms/ISEditor-V2/EditorConstants.d.ts +14 -0
  179. package/dist/components/Organisms/ISEditor-V2/EditorContext.d.ts +8 -0
  180. package/dist/components/Organisms/ISEditor-V2/ISEditor.d.ts +2 -0
  181. package/dist/components/Organisms/ISEditor-V2/LatexBlock.d.ts +2 -0
  182. package/dist/components/Organisms/ISEditor-V2/LatexCopyModal.d.ts +6 -0
  183. package/dist/components/Organisms/ISEditor-V2/LatexModal.d.ts +2 -0
  184. package/dist/components/Organisms/ISEditor-V2/LatexView.d.ts +5 -0
  185. package/dist/components/Organisms/ISEditor-V2/MathSymbolButton.d.ts +1 -0
  186. package/dist/components/Organisms/ISEditor-V2/MathToolBar.d.ts +2 -0
  187. package/dist/components/Organisms/ISEditor-V2/NewTableCustomisation.d.ts +1 -0
  188. package/dist/components/Organisms/ISEditor-V2/RawMathModal.d.ts +6 -0
  189. package/dist/components/Organisms/ISEditor-V2/RowColumnModal.d.ts +2 -0
  190. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockEight.d.ts +1 -0
  191. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockEleven.d.ts +1 -0
  192. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockFive.d.ts +1 -0
  193. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockFour.d.ts +1 -0
  194. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockNine.d.ts +1 -0
  195. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockOne.d.ts +1 -0
  196. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockSeven.d.ts +1 -0
  197. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockSix.d.ts +1 -0
  198. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockTen.d.ts +1 -0
  199. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockThree.d.ts +1 -0
  200. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockTwelve.d.ts +1 -0
  201. package/dist/components/Organisms/ISEditor-V2/Symbols/MathFormulasBlockTwo.d.ts +1 -0
  202. package/dist/components/Organisms/ISEditor-V2/TableBlock.d.ts +13 -0
  203. package/dist/components/Organisms/ISEditor-V2/TableModal.d.ts +5 -0
  204. package/dist/components/Organisms/ISEditor-V2/ToolBar.d.ts +2 -0
  205. package/dist/components/Organisms/ISEditor-V2/editor.types.d.ts +24 -0
  206. package/dist/components/Organisms/ISEditor-V2/tableBlockStyles.d.ts +48 -0
  207. package/dist/components/Organisms/ISEditor-V3/EditableDiv.d.ts +4 -0
  208. package/dist/components/Organisms/ISEditor-V3/Editor.d.ts +2 -0
  209. package/dist/components/Organisms/ISEditor-V3/EditorConstants.d.ts +14 -0
  210. package/dist/components/Organisms/ISEditor-V3/EditorContext.d.ts +8 -0
  211. package/dist/components/Organisms/ISEditor-V3/ISEditor.d.ts +2 -0
  212. package/dist/components/Organisms/ISEditor-V3/LatexBlock.d.ts +2 -0
  213. package/dist/components/Organisms/ISEditor-V3/LatexCopyModal.d.ts +6 -0
  214. package/dist/components/Organisms/ISEditor-V3/LatexModal.d.ts +2 -0
  215. package/dist/components/Organisms/ISEditor-V3/LatexView.d.ts +5 -0
  216. package/dist/components/Organisms/ISEditor-V3/MathSymbolButton.d.ts +1 -0
  217. package/dist/components/Organisms/ISEditor-V3/MathToolBar.d.ts +2 -0
  218. package/dist/components/Organisms/ISEditor-V3/NewTableCustomisation.d.ts +1 -0
  219. package/dist/components/Organisms/ISEditor-V3/RawMathModal.d.ts +6 -0
  220. package/dist/components/Organisms/ISEditor-V3/RowColumnModal.d.ts +2 -0
  221. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockEight.d.ts +1 -0
  222. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockEleven.d.ts +1 -0
  223. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockFive.d.ts +1 -0
  224. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockFour.d.ts +1 -0
  225. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockNine.d.ts +1 -0
  226. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockOne.d.ts +1 -0
  227. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockSeven.d.ts +1 -0
  228. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockSix.d.ts +1 -0
  229. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockTen.d.ts +1 -0
  230. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockThree.d.ts +1 -0
  231. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockTwelve.d.ts +1 -0
  232. package/dist/components/Organisms/ISEditor-V3/Symbols/MathFormulasBlockTwo.d.ts +1 -0
  233. package/dist/components/Organisms/ISEditor-V3/TableBlock.d.ts +13 -0
  234. package/dist/components/Organisms/ISEditor-V3/TableModal.d.ts +5 -0
  235. package/dist/components/Organisms/ISEditor-V3/ToolBar.d.ts +2 -0
  236. package/dist/components/Organisms/ISEditor-V3/editor.types.d.ts +24 -0
  237. package/dist/components/Organisms/ISEditor-V3/tableBlockStyles.d.ts +48 -0
  238. package/dist/components/Organisms/LiveStreaming/LiveStreaming.d.ts +1 -0
  239. package/dist/components/Organisms/PostDetails/ImageGallery.d.ts +1 -0
  240. package/dist/components/Organisms/PostDetails/PostDetails.d.ts +2 -0
  241. package/dist/components/Organisms/PostDetails/PostInfo.d.ts +1 -0
  242. package/dist/components/Organisms/PostDetails/postDetailStyles.d.ts +35 -0
  243. package/dist/components/Organisms/PostsList/PostList.d.ts +2 -0
  244. package/dist/components/Organisms/ProgressView/ProgressView.d.ts +2 -0
  245. package/dist/components/Organisms/ProgressView/ProgressView.stories.d.ts +685 -0
  246. package/dist/components/Organisms/ProgressView/ProgressViewPresenter.d.ts +9 -0
  247. package/dist/components/Organisms/ProgressView/ProgressViewStyles.d.ts +174 -0
  248. package/dist/components/Organisms/RecapGraph/Reactgraphflow.d.ts +13 -0
  249. package/dist/components/Organisms/RecapGraph/useRecapGraphLogic.d.ts +29 -0
  250. package/dist/components/Organisms/ReviewComponent/ChatPresenter.d.ts +1 -0
  251. package/dist/components/Organisms/ReviewComponent/KeyTakeAway.d.ts +4 -0
  252. package/dist/components/Organisms/ReviewComponent/MoreQuestions.d.ts +2 -0
  253. package/dist/components/Organisms/ReviewComponent/MoreQuestions.stories.d.ts +13 -0
  254. package/dist/components/Organisms/ReviewComponent/MoreQuestionsStyles.d.ts +31 -0
  255. package/dist/components/Organisms/ReviewComponent/Review.d.ts +52 -0
  256. package/dist/components/Organisms/ReviewComponent/ReviewPresenter.d.ts +49 -0
  257. package/dist/components/Organisms/ReviewComponent/ReviewPresenter.stories.d.ts +181 -0
  258. package/dist/components/Organisms/ReviewComponent/ReviewStyles.d.ts +77 -0
  259. package/dist/components/Organisms/ReviewComponent/reviewUtils.d.ts +1913 -0
  260. package/dist/components/Organisms/ReviewComponent/selectionUtils.d.ts +3002 -0
  261. package/dist/components/Organisms/StudentEditor/components/EditorComponent.d.ts +4 -0
  262. package/dist/components/Organisms/StudentEditor/components/EditorStyles.d.ts +41 -0
  263. package/dist/components/Organisms/StudentEditor/components/MathElement.d.ts +7 -0
  264. package/dist/components/Organisms/StudentEditor/components/MathKeyboard.d.ts +9 -0
  265. package/dist/components/Organisms/StudentEditor/components/MathKeyboardSME.d.ts +9 -0
  266. package/dist/components/Organisms/StudentEditor/components/MathModal.d.ts +9 -0
  267. package/dist/components/Organisms/StudentEditor/components/MathModalSME.d.ts +10 -0
  268. package/dist/components/Organisms/StudentEditor/components/Shortcuts.d.ts +4 -0
  269. package/dist/components/Organisms/StudentEditor/components/ShortcutsSME.d.ts +4 -0
  270. package/dist/components/Organisms/StudentEditor/components/TextEditor.d.ts +2 -0
  271. package/dist/components/Organisms/StudentEditor/components/mathModalStyles.d.ts +210 -0
  272. package/dist/components/Organisms/StudentEditor/utils/keyboard-config.d.ts +2132 -0
  273. package/dist/components/Organisms/StudentEditor/utils/keyboardConstants.d.ts +1779 -0
  274. package/dist/components/Organisms/StudentEditor/utils/slate-conversions.d.ts +19 -0
  275. package/dist/components/Organisms/StudentEditor/utils/slate-plugins.d.ts +1 -0
  276. package/dist/components/Organisms/StudentInsights/GaugeChart.d.ts +9 -0
  277. package/dist/components/Organisms/StudentInsights/InsightsComponent.d.ts +14 -0
  278. package/dist/components/Organisms/StudentInsights/InsightsComponent.stories.d.ts +334 -0
  279. package/dist/components/Organisms/StudentInsights/PieChart.d.ts +8 -0
  280. package/dist/components/Organisms/StudentInsights/insights.styles.d.ts +177 -0
  281. package/dist/components/Organisms/StudentInsights/text.d.ts +7 -0
  282. package/dist/components/Organisms/TableComponent/TableComponent.d.ts +2 -0
  283. package/dist/components/Organisms/TutorFeedback/TutorFeedback.d.ts +2 -0
  284. package/dist/components/themes/Theme.d.ts +61 -0
  285. package/dist/favicon.ico +0 -0
  286. package/dist/index-DIcS8zy8.js +1988 -0
  287. package/dist/index-DXcjyaIP.mjs +144104 -0
  288. package/dist/index.d.ts +69 -0
  289. package/dist/index.esm.js +72 -0
  290. package/dist/index.html +47 -0
  291. package/dist/index.js +1 -0
  292. package/dist/logo192.png +0 -0
  293. package/dist/logo512.png +0 -0
  294. package/dist/manifest.json +25 -0
  295. package/dist/mathlive.min-BtrrwzrH.js +3179 -0
  296. package/dist/mathlive.min-Cv3GrIcG.mjs +14907 -0
  297. package/dist/robots.txt +3 -0
  298. package/dist/shaka-player.compiled-C3nrKFca.js +98 -0
  299. package/dist/shaka-player.compiled-DRdm8ZDU.mjs +22982 -0
  300. package/dist/utils/Helper.d.ts +23 -0
  301. package/dist/utils/LearningPathUtils.d.ts +60 -0
  302. package/dist/utils/RecapData.d.ts +694 -0
  303. package/dist/utils/ReviewPresenterUtils.d.ts +9 -0
  304. package/dist/utils/TutorConstants.d.ts +78 -0
  305. package/dist/utils/accordion/accordionHelper.d.ts +7 -0
  306. package/dist/utils/accordion/accordion_images.d.ts +31 -0
  307. package/dist/utils/accordionConstants.d.ts +17 -0
  308. package/dist/utils/battery-customisation.d.ts +36 -0
  309. package/dist/utils/common-utils.d.ts +54 -0
  310. package/dist/utils/constants.d.ts +762 -0
  311. package/dist/utils/contentUtils.d.ts +40 -0
  312. package/dist/utils/crypto.d.ts +2 -0
  313. package/dist/utils/customTheme.d.ts +1 -0
  314. package/dist/utils/dateUtils.d.ts +1 -0
  315. package/dist/utils/emotionalLottieConstants.d.ts +6 -0
  316. package/dist/utils/emotionalScriptConstants.d.ts +15 -0
  317. package/dist/utils/emotions.d.ts +4 -0
  318. package/dist/utils/excludeSubject.d.ts +2 -0
  319. package/dist/utils/math-images.d.ts +6 -0
  320. package/dist/utils/pagination/Pagination.d.ts +11 -0
  321. package/dist/utils/presentationModes.d.ts +117 -0
  322. package/dist/utils/subject-icons.d.ts +9 -0
  323. package/dist/utils/taskUtils.d.ts +1 -0
  324. package/dist/utils/testingutils.d.ts +3110 -0
  325. package/dist/utils/tutor-utils.d.ts +1 -0
  326. package/dist/utils/wall/wall-constants.d.ts +41 -0
  327. package/dist/utils/wall/wall-imges.d.ts +64 -0
  328. package/dist/utils/wall/wall-message-bank.d.ts +28 -0
  329. package/dist/utils/wall-constants.d.ts +136 -0
  330. package/dist/utils/wall-images.d.ts +64 -0
  331. package/package.json +148 -0
package/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # Getting Started with Create React App
2
+
3
+ This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4
+
5
+ ##webhook test
6
+
7
+ ## Available Scripts
8
+
9
+ In the project directory, you can run:
10
+
11
+ ### `npm start`
12
+
13
+ Runs the app in the development mode.\
14
+ Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
15
+
16
+ The page will reload if you make edits.\
17
+ You will also see any lint errors in the console.
18
+
19
+ ### `npm test`
20
+
21
+ Launches the test runner in the interactive watch mode.\
22
+ See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
23
+
24
+ ### `npm run build`
25
+
26
+ Builds the app for production to the `build` folder.\
27
+ It correctly bundles React in production mode and optimizes the build for the best performance.
28
+
29
+ The build is minified and the filenames include the hashes.\
30
+ Your app is ready to be deployed!
31
+
32
+ See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
33
+
34
+ ### `npm run eject`
35
+
36
+ **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
37
+
38
+ If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
39
+
40
+ Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
41
+
42
+ You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
43
+
44
+ ## Learn More
45
+
46
+ You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
47
+
48
+ To learn React, check out the [React documentation](https://reactjs.org/).
@@ -0,0 +1 @@
1
+ "use strict";const y=require("./index-DIcS8zy8.js"),v=require("react");function D(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in t)){const i=Object.getOwnPropertyDescriptor(o,a);i&&Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,s=Object.defineProperty,b=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,w=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,j=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,T=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of M(e))!S.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return t},A=(t,e,r)=>(r=t!=null?O(w(t)):{},d(!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>d(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(j(t,typeof e!="symbol"?e+"":e,r),r),_={};T(_,{default:()=>p});var f=E(_),c=A(v),l=y.utils,g=y.patterns;const L="https://api.dmcdn.net/all.js",C="DM",N="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,h]=e.match(g.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(h,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(L,C,N,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:h,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:P=>a(P)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",g.canPlay.dailymotion);n(p,"loopOnEnded",!0);const x=y.getDefaultExportFromCjs(f),R=D({__proto__:null,default:x},[f]);exports.DailyMotion=R;
@@ -0,0 +1,135 @@
1
+ import { g as P, u as v, p as D } from "./index-DXcjyaIP.mjs";
2
+ import O from "react";
3
+ function b(t, e) {
4
+ for (var r = 0; r < e.length; r++) {
5
+ const o = e[r];
6
+ if (typeof o != "string" && !Array.isArray(o)) {
7
+ for (const a in o)
8
+ if (a !== "default" && !(a in t)) {
9
+ const i = Object.getOwnPropertyDescriptor(o, a);
10
+ i && Object.defineProperty(t, a, i.get ? i : {
11
+ enumerable: !0,
12
+ get: () => o[a]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var M = Object.create, s = Object.defineProperty, w = Object.getOwnPropertyDescriptor, S = Object.getOwnPropertyNames, j = Object.getPrototypeOf, T = Object.prototype.hasOwnProperty, A = (t, e, r) => e in t ? s(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, E = (t, e) => {
20
+ for (var r in e)
21
+ s(t, r, { get: e[r], enumerable: !0 });
22
+ }, h = (t, e, r, o) => {
23
+ if (e && typeof e == "object" || typeof e == "function")
24
+ for (let a of S(e))
25
+ !T.call(t, a) && a !== r && s(t, a, { get: () => e[a], enumerable: !(o = w(e, a)) || o.enumerable });
26
+ return t;
27
+ }, L = (t, e, r) => (r = t != null ? M(j(t)) : {}, h(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ !t || !t.__esModule ? s(r, "default", { value: t, enumerable: !0 }) : r,
33
+ t
34
+ )), C = (t) => h(s({}, "__esModule", { value: !0 }), t), n = (t, e, r) => (A(t, typeof e != "symbol" ? e + "" : e, r), r), d = {};
35
+ E(d, {
36
+ default: () => p
37
+ });
38
+ var _ = C(d), c = L(O), l = v, f = D;
39
+ const N = "https://api.dmcdn.net/all.js", x = "DM", R = "dmAsyncInit";
40
+ class p extends c.Component {
41
+ constructor() {
42
+ super(...arguments), n(this, "callPlayer", l.callPlayer), n(this, "onDurationChange", () => {
43
+ const e = this.getDuration();
44
+ this.props.onDuration(e);
45
+ }), n(this, "mute", () => {
46
+ this.callPlayer("setMuted", !0);
47
+ }), n(this, "unmute", () => {
48
+ this.callPlayer("setMuted", !1);
49
+ }), n(this, "ref", (e) => {
50
+ this.container = e;
51
+ });
52
+ }
53
+ componentDidMount() {
54
+ this.props.onMount && this.props.onMount(this);
55
+ }
56
+ load(e) {
57
+ const { controls: r, config: o, onError: a, playing: i } = this.props, [, y] = e.match(f.MATCH_URL_DAILYMOTION);
58
+ if (this.player) {
59
+ this.player.load(y, {
60
+ start: (0, l.parseStartTime)(e),
61
+ autoplay: i
62
+ });
63
+ return;
64
+ }
65
+ (0, l.getSDK)(N, x, R, (u) => u.player).then((u) => {
66
+ if (!this.container)
67
+ return;
68
+ const g = u.player;
69
+ this.player = new g(this.container, {
70
+ width: "100%",
71
+ height: "100%",
72
+ video: y,
73
+ params: {
74
+ controls: r,
75
+ autoplay: this.props.playing,
76
+ mute: this.props.muted,
77
+ start: (0, l.parseStartTime)(e),
78
+ origin: window.location.origin,
79
+ ...o.params
80
+ },
81
+ events: {
82
+ apiready: this.props.onReady,
83
+ seeked: () => this.props.onSeek(this.player.currentTime),
84
+ video_end: this.props.onEnded,
85
+ durationchange: this.onDurationChange,
86
+ pause: this.props.onPause,
87
+ playing: this.props.onPlay,
88
+ waiting: this.props.onBuffer,
89
+ error: (m) => a(m)
90
+ }
91
+ });
92
+ }, a);
93
+ }
94
+ play() {
95
+ this.callPlayer("play");
96
+ }
97
+ pause() {
98
+ this.callPlayer("pause");
99
+ }
100
+ stop() {
101
+ }
102
+ seekTo(e, r = !0) {
103
+ this.callPlayer("seek", e), r || this.pause();
104
+ }
105
+ setVolume(e) {
106
+ this.callPlayer("setVolume", e);
107
+ }
108
+ getDuration() {
109
+ return this.player.duration || null;
110
+ }
111
+ getCurrentTime() {
112
+ return this.player.currentTime;
113
+ }
114
+ getSecondsLoaded() {
115
+ return this.player.bufferedTime;
116
+ }
117
+ render() {
118
+ const { display: e } = this.props, r = {
119
+ width: "100%",
120
+ height: "100%",
121
+ display: e
122
+ };
123
+ return /* @__PURE__ */ c.default.createElement("div", { style: r }, /* @__PURE__ */ c.default.createElement("div", { ref: this.ref }));
124
+ }
125
+ }
126
+ n(p, "displayName", "DailyMotion");
127
+ n(p, "canPlay", f.canPlay.dailymotion);
128
+ n(p, "loopOnEnded", !0);
129
+ const K = /* @__PURE__ */ P(_), k = /* @__PURE__ */ b({
130
+ __proto__: null,
131
+ default: K
132
+ }, [_]);
133
+ export {
134
+ k as D
135
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./index-DIcS8zy8.js"),P=require("react");function g(t,e){for(var r=0;r<e.length;r++){const o=e[r];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const p=Object.getOwnPropertyDescriptor(o,s);p&&Object.defineProperty(t,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var m=Object.create,i=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,D=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,S=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},b=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of O(e))!E.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(o=v(e,s))||o.enumerable});return t},k=(t,e,r)=>(r=t!=null?m(D(t)):{},b(!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),I=t=>b(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(S(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var _=I(d),c=k(P),n=u.utils,w=u.patterns;const y="https://connect.facebook.net/en_US/sdk.js",f="FB",h="fbAsyncInit",F="facebook-player-";class l extends c.Component{constructor(){super(...arguments),a(this,"callPlayer",n.callPlayer),a(this,"playerID",this.props.config.playerId||`${F}${(0,n.randomString)()}`),a(this,"mute",()=>{this.callPlayer("mute")}),a(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(y,f,h).then(o=>o.XFBML.parse());return}(0,n.getSDK)(y,f,h).then(o=>{o.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),o.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),o.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return c.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}a(l,"displayName","Facebook");a(l,"canPlay",w.canPlay.facebook);a(l,"loopOnEnded",!0);const L=u.getDefaultExportFromCjs(_),M=g({__proto__:null,default:L},[_]);exports.Facebook=M;
@@ -0,0 +1,120 @@
1
+ import { g as _, u as g, p as P } from "./index-DXcjyaIP.mjs";
2
+ import m from "react";
3
+ function v(t, e) {
4
+ for (var r = 0; r < e.length; r++) {
5
+ const a = e[r];
6
+ if (typeof a != "string" && !Array.isArray(a)) {
7
+ for (const s in a)
8
+ if (s !== "default" && !(s in t)) {
9
+ const p = Object.getOwnPropertyDescriptor(a, s);
10
+ p && Object.defineProperty(t, s, p.get ? p : {
11
+ enumerable: !0,
12
+ get: () => a[s]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(t, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var O = Object.create, i = Object.defineProperty, D = Object.getOwnPropertyDescriptor, E = Object.getOwnPropertyNames, S = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, I = (t, e, r) => e in t ? i(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, k = (t, e) => {
20
+ for (var r in e)
21
+ i(t, r, { get: e[r], enumerable: !0 });
22
+ }, h = (t, e, r, a) => {
23
+ if (e && typeof e == "object" || typeof e == "function")
24
+ for (let s of E(e))
25
+ !j.call(t, s) && s !== r && i(t, s, { get: () => e[s], enumerable: !(a = D(e, s)) || a.enumerable });
26
+ return t;
27
+ }, w = (t, e, r) => (r = t != null ? O(S(t)) : {}, h(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ !t || !t.__esModule ? i(r, "default", { value: t, enumerable: !0 }) : r,
33
+ t
34
+ )), F = (t) => h(i({}, "__esModule", { value: !0 }), t), o = (t, e, r) => (I(t, typeof e != "symbol" ? e + "" : e, r), r), d = {};
35
+ k(d, {
36
+ default: () => n
37
+ });
38
+ var b = F(d), u = w(m), l = g, L = P;
39
+ const c = "https://connect.facebook.net/en_US/sdk.js", f = "FB", y = "fbAsyncInit", M = "facebook-player-";
40
+ class n extends u.Component {
41
+ constructor() {
42
+ super(...arguments), o(this, "callPlayer", l.callPlayer), o(this, "playerID", this.props.config.playerId || `${M}${(0, l.randomString)()}`), o(this, "mute", () => {
43
+ this.callPlayer("mute");
44
+ }), o(this, "unmute", () => {
45
+ this.callPlayer("unmute");
46
+ });
47
+ }
48
+ componentDidMount() {
49
+ this.props.onMount && this.props.onMount(this);
50
+ }
51
+ load(e, r) {
52
+ if (r) {
53
+ (0, l.getSDK)(c, f, y).then((a) => a.XFBML.parse());
54
+ return;
55
+ }
56
+ (0, l.getSDK)(c, f, y).then((a) => {
57
+ a.init({
58
+ appId: this.props.config.appId,
59
+ xfbml: !0,
60
+ version: this.props.config.version
61
+ }), a.Event.subscribe("xfbml.render", (s) => {
62
+ this.props.onLoaded();
63
+ }), a.Event.subscribe("xfbml.ready", (s) => {
64
+ s.type === "video" && s.id === this.playerID && (this.player = s.instance, this.player.subscribe("startedPlaying", this.props.onPlay), this.player.subscribe("paused", this.props.onPause), this.player.subscribe("finishedPlaying", this.props.onEnded), this.player.subscribe("startedBuffering", this.props.onBuffer), this.player.subscribe("finishedBuffering", this.props.onBufferEnd), this.player.subscribe("error", this.props.onError), this.props.muted ? this.callPlayer("mute") : this.callPlayer("unmute"), this.props.onReady(), document.getElementById(this.playerID).querySelector("iframe").style.visibility = "visible");
65
+ });
66
+ });
67
+ }
68
+ play() {
69
+ this.callPlayer("play");
70
+ }
71
+ pause() {
72
+ this.callPlayer("pause");
73
+ }
74
+ stop() {
75
+ }
76
+ seekTo(e, r = !0) {
77
+ this.callPlayer("seek", e), r || this.pause();
78
+ }
79
+ setVolume(e) {
80
+ this.callPlayer("setVolume", e);
81
+ }
82
+ getDuration() {
83
+ return this.callPlayer("getDuration");
84
+ }
85
+ getCurrentTime() {
86
+ return this.callPlayer("getCurrentPosition");
87
+ }
88
+ getSecondsLoaded() {
89
+ return null;
90
+ }
91
+ render() {
92
+ const { attributes: e } = this.props.config, r = {
93
+ width: "100%",
94
+ height: "100%"
95
+ };
96
+ return /* @__PURE__ */ u.default.createElement(
97
+ "div",
98
+ {
99
+ style: r,
100
+ id: this.playerID,
101
+ className: "fb-video",
102
+ "data-href": this.props.url,
103
+ "data-autoplay": this.props.playing ? "true" : "false",
104
+ "data-allowfullscreen": "true",
105
+ "data-controls": this.props.controls ? "true" : "false",
106
+ ...e
107
+ }
108
+ );
109
+ }
110
+ }
111
+ o(n, "displayName", "Facebook");
112
+ o(n, "canPlay", L.canPlay.facebook);
113
+ o(n, "loopOnEnded", !0);
114
+ const x = /* @__PURE__ */ _(b), N = /* @__PURE__ */ v({
115
+ __proto__: null,
116
+ default: x
117
+ }, [b]);
118
+ export {
119
+ N as F
120
+ };
@@ -0,0 +1 @@
1
+ "use strict";const y=require("./index-DIcS8zy8.js"),_=require("react");function O(s,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&&!Array.isArray(i)){for(const n in i)if(n!=="default"&&!(n in s)){const l=Object.getOwnPropertyDescriptor(i,n);l&&Object.defineProperty(s,n,l.get?l:{enumerable:!0,get:()=>i[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var A=Object.create,u=Object.defineProperty,R=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,D=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,M=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,k=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},m=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of I(e))!w.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=R(e,n))||i.enumerable});return s},U=(s,e,t)=>(t=s!=null?A(D(s)):{},m(!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),N=s=>m(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(M(s,typeof e!="symbol"?e+"":e,t),t),g={};k(g,{default:()=>v});var L=N(g),p=U(_),a=y.utils,c=y.patterns;const P=typeof navigator<"u",j=P&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,E=P&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||j)&&!window.MSStream,H=P&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,F="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",V="Hls",T="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",C="dashjs",B="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",x="flvjs",K=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,G="https://videodelivery.net/{id}/manifest/video.m3u8";class v extends p.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?p.default.createElement("source",{key:t,src:e}):p.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>p.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(E||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:c.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return H&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:E||this.props.config.forceDisableHls?!1:c.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return c.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return c.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(F.replace("VERSION",t),V).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,d)=>{this.props.onError(h,d,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(G.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(T.replace("VERSION",n),C).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(B.replace("VERSION",l),x).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,d)=>{this.props.onError(h,d,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return K.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:d}=this.props,S=this.shouldUseAudio(this.props)?"audio":"video",b={width:h==="auto"?h:"100%",height:d==="auto"?d:"100%"};return p.default.createElement(S,{ref:this.ref,src:this.getSource(e),style:b,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(v,"displayName","FilePlayer");r(v,"canPlay",c.canPlay.file);const X=y.getDefaultExportFromCjs(L),q=O({__proto__:null,default:X},[L]);exports.FilePlayer=q;
@@ -0,0 +1,201 @@
1
+ import { g as b, u as _, p as O } from "./index-DXcjyaIP.mjs";
2
+ import A from "react";
3
+ function R(s, e) {
4
+ for (var t = 0; t < e.length; t++) {
5
+ const i = e[t];
6
+ if (typeof i != "string" && !Array.isArray(i)) {
7
+ for (const n in i)
8
+ if (n !== "default" && !(n in s)) {
9
+ const l = Object.getOwnPropertyDescriptor(i, n);
10
+ l && Object.defineProperty(s, n, l.get ? l : {
11
+ enumerable: !0,
12
+ get: () => i[n]
13
+ });
14
+ }
15
+ }
16
+ }
17
+ return Object.freeze(Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }));
18
+ }
19
+ var I = Object.create, u = Object.defineProperty, D = Object.getOwnPropertyDescriptor, w = Object.getOwnPropertyNames, M = Object.getPrototypeOf, k = Object.prototype.hasOwnProperty, U = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, N = (s, e) => {
20
+ for (var t in e)
21
+ u(s, t, { get: e[t], enumerable: !0 });
22
+ }, E = (s, e, t, i) => {
23
+ if (e && typeof e == "object" || typeof e == "function")
24
+ for (let n of w(e))
25
+ !k.call(s, n) && n !== t && u(s, n, { get: () => e[n], enumerable: !(i = D(e, n)) || i.enumerable });
26
+ return s;
27
+ }, j = (s, e, t) => (t = s != null ? I(M(s)) : {}, E(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ !s || !s.__esModule ? u(t, "default", { value: s, enumerable: !0 }) : t,
33
+ s
34
+ )), H = (s) => E(u({}, "__esModule", { value: !0 }), s), r = (s, e, t) => (U(s, typeof e != "symbol" ? e + "" : e, t), t), m = {};
35
+ N(m, {
36
+ default: () => P
37
+ });
38
+ var g = H(m), d = j(A), a = _, c = O;
39
+ const y = typeof navigator < "u", F = y && navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1, v = y && (/iPad|iPhone|iPod/.test(navigator.userAgent) || F) && !window.MSStream, V = y && /^((?!chrome|android).)*safari/i.test(navigator.userAgent) && !window.MSStream, T = "https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js", C = "Hls", B = "https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js", x = "dashjs", K = "https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js", G = "flvjs", X = /www\.dropbox\.com\/.+/, f = /https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/, W = "https://videodelivery.net/{id}/manifest/video.m3u8";
40
+ class P extends d.Component {
41
+ constructor() {
42
+ super(...arguments), r(this, "onReady", (...e) => this.props.onReady(...e)), r(this, "onPlay", (...e) => this.props.onPlay(...e)), r(this, "onBuffer", (...e) => this.props.onBuffer(...e)), r(this, "onBufferEnd", (...e) => this.props.onBufferEnd(...e)), r(this, "onPause", (...e) => this.props.onPause(...e)), r(this, "onEnded", (...e) => this.props.onEnded(...e)), r(this, "onError", (...e) => this.props.onError(...e)), r(this, "onPlayBackRateChange", (e) => this.props.onPlaybackRateChange(e.target.playbackRate)), r(this, "onEnablePIP", (...e) => this.props.onEnablePIP(...e)), r(this, "onDisablePIP", (e) => {
43
+ const { onDisablePIP: t, playing: i } = this.props;
44
+ t(e), i && this.play();
45
+ }), r(this, "onPresentationModeChange", (e) => {
46
+ if (this.player && (0, a.supportsWebKitPresentationMode)(this.player)) {
47
+ const { webkitPresentationMode: t } = this.player;
48
+ t === "picture-in-picture" ? this.onEnablePIP(e) : t === "inline" && this.onDisablePIP(e);
49
+ }
50
+ }), r(this, "onSeek", (e) => {
51
+ this.props.onSeek(e.target.currentTime);
52
+ }), r(this, "mute", () => {
53
+ this.player.muted = !0;
54
+ }), r(this, "unmute", () => {
55
+ this.player.muted = !1;
56
+ }), r(this, "renderSourceElement", (e, t) => typeof e == "string" ? /* @__PURE__ */ d.default.createElement("source", { key: t, src: e }) : /* @__PURE__ */ d.default.createElement("source", { key: t, ...e })), r(this, "renderTrack", (e, t) => /* @__PURE__ */ d.default.createElement("track", { key: t, ...e })), r(this, "ref", (e) => {
57
+ this.player && (this.prevPlayer = this.player), this.player = e;
58
+ });
59
+ }
60
+ componentDidMount() {
61
+ this.props.onMount && this.props.onMount(this), this.addListeners(this.player);
62
+ const e = this.getSource(this.props.url);
63
+ e && (this.player.src = e), (v || this.props.config.forceDisableHls) && this.player.load();
64
+ }
65
+ componentDidUpdate(e) {
66
+ this.shouldUseAudio(this.props) !== this.shouldUseAudio(e) && (this.removeListeners(this.prevPlayer, e.url), this.addListeners(this.player)), this.props.url !== e.url && !(0, a.isMediaStream)(this.props.url) && !(this.props.url instanceof Array) && (this.player.srcObject = null);
67
+ }
68
+ componentWillUnmount() {
69
+ this.player.removeAttribute("src"), this.removeListeners(this.player), this.hls && this.hls.destroy();
70
+ }
71
+ addListeners(e) {
72
+ const { url: t, playsinline: i } = this.props;
73
+ e.addEventListener("play", this.onPlay), e.addEventListener("waiting", this.onBuffer), e.addEventListener("playing", this.onBufferEnd), e.addEventListener("pause", this.onPause), e.addEventListener("seeked", this.onSeek), e.addEventListener("ended", this.onEnded), e.addEventListener("error", this.onError), e.addEventListener("ratechange", this.onPlayBackRateChange), e.addEventListener("enterpictureinpicture", this.onEnablePIP), e.addEventListener("leavepictureinpicture", this.onDisablePIP), e.addEventListener("webkitpresentationmodechanged", this.onPresentationModeChange), this.shouldUseHLS(t) || e.addEventListener("canplay", this.onReady), i && (e.setAttribute("playsinline", ""), e.setAttribute("webkit-playsinline", ""), e.setAttribute("x5-playsinline", ""));
74
+ }
75
+ removeListeners(e, t) {
76
+ e.removeEventListener("canplay", this.onReady), e.removeEventListener("play", this.onPlay), e.removeEventListener("waiting", this.onBuffer), e.removeEventListener("playing", this.onBufferEnd), e.removeEventListener("pause", this.onPause), e.removeEventListener("seeked", this.onSeek), e.removeEventListener("ended", this.onEnded), e.removeEventListener("error", this.onError), e.removeEventListener("ratechange", this.onPlayBackRateChange), e.removeEventListener("enterpictureinpicture", this.onEnablePIP), e.removeEventListener("leavepictureinpicture", this.onDisablePIP), e.removeEventListener("webkitpresentationmodechanged", this.onPresentationModeChange), this.shouldUseHLS(t) || e.removeEventListener("canplay", this.onReady);
77
+ }
78
+ shouldUseAudio(e) {
79
+ return e.config.forceVideo || e.config.attributes.poster ? !1 : c.AUDIO_EXTENSIONS.test(e.url) || e.config.forceAudio;
80
+ }
81
+ shouldUseHLS(e) {
82
+ return V && this.props.config.forceSafariHLS || this.props.config.forceHLS ? !0 : v || this.props.config.forceDisableHls ? !1 : c.HLS_EXTENSIONS.test(e) || f.test(e);
83
+ }
84
+ shouldUseDASH(e) {
85
+ return c.DASH_EXTENSIONS.test(e) || this.props.config.forceDASH;
86
+ }
87
+ shouldUseFLV(e) {
88
+ return c.FLV_EXTENSIONS.test(e) || this.props.config.forceFLV;
89
+ }
90
+ load(e) {
91
+ const { hlsVersion: t, hlsOptions: i, dashVersion: n, flvVersion: l } = this.props.config;
92
+ if (this.hls && this.hls.destroy(), this.dash && this.dash.reset(), this.shouldUseHLS(e) && (0, a.getSDK)(T.replace("VERSION", t), C).then((o) => {
93
+ if (this.hls = new o(i), this.hls.on(o.Events.MANIFEST_PARSED, () => {
94
+ this.props.onReady();
95
+ }), this.hls.on(o.Events.ERROR, (h, p) => {
96
+ this.props.onError(h, p, this.hls, o);
97
+ }), f.test(e)) {
98
+ const h = e.match(f)[1];
99
+ this.hls.loadSource(W.replace("{id}", h));
100
+ } else
101
+ this.hls.loadSource(e);
102
+ this.hls.attachMedia(this.player), this.props.onLoaded();
103
+ }), this.shouldUseDASH(e) && (0, a.getSDK)(B.replace("VERSION", n), x).then((o) => {
104
+ this.dash = o.MediaPlayer().create(), this.dash.initialize(this.player, e, this.props.playing), this.dash.on("error", this.props.onError), parseInt(n) < 3 ? this.dash.getDebug().setLogToBrowserConsole(!1) : this.dash.updateSettings({ debug: { logLevel: o.Debug.LOG_LEVEL_NONE } }), this.props.onLoaded();
105
+ }), this.shouldUseFLV(e) && (0, a.getSDK)(K.replace("VERSION", l), G).then((o) => {
106
+ this.flv = o.createPlayer({ type: "flv", url: e }), this.flv.attachMediaElement(this.player), this.flv.on(o.Events.ERROR, (h, p) => {
107
+ this.props.onError(h, p, this.flv, o);
108
+ }), this.flv.load(), this.props.onLoaded();
109
+ }), e instanceof Array)
110
+ this.player.load();
111
+ else if ((0, a.isMediaStream)(e))
112
+ try {
113
+ this.player.srcObject = e;
114
+ } catch {
115
+ this.player.src = window.URL.createObjectURL(e);
116
+ }
117
+ }
118
+ play() {
119
+ const e = this.player.play();
120
+ e && e.catch(this.props.onError);
121
+ }
122
+ pause() {
123
+ this.player.pause();
124
+ }
125
+ stop() {
126
+ this.player.removeAttribute("src"), this.dash && this.dash.reset();
127
+ }
128
+ seekTo(e, t = !0) {
129
+ this.player.currentTime = e, t || this.pause();
130
+ }
131
+ setVolume(e) {
132
+ this.player.volume = e;
133
+ }
134
+ enablePIP() {
135
+ this.player.requestPictureInPicture && document.pictureInPictureElement !== this.player ? this.player.requestPictureInPicture() : (0, a.supportsWebKitPresentationMode)(this.player) && this.player.webkitPresentationMode !== "picture-in-picture" && this.player.webkitSetPresentationMode("picture-in-picture");
136
+ }
137
+ disablePIP() {
138
+ document.exitPictureInPicture && document.pictureInPictureElement === this.player ? document.exitPictureInPicture() : (0, a.supportsWebKitPresentationMode)(this.player) && this.player.webkitPresentationMode !== "inline" && this.player.webkitSetPresentationMode("inline");
139
+ }
140
+ setPlaybackRate(e) {
141
+ try {
142
+ this.player.playbackRate = e;
143
+ } catch (t) {
144
+ this.props.onError(t);
145
+ }
146
+ }
147
+ getDuration() {
148
+ if (!this.player)
149
+ return null;
150
+ const { duration: e, seekable: t } = this.player;
151
+ return e === 1 / 0 && t.length > 0 ? t.end(t.length - 1) : e;
152
+ }
153
+ getCurrentTime() {
154
+ return this.player ? this.player.currentTime : null;
155
+ }
156
+ getSecondsLoaded() {
157
+ if (!this.player)
158
+ return null;
159
+ const { buffered: e } = this.player;
160
+ if (e.length === 0)
161
+ return 0;
162
+ const t = e.end(e.length - 1), i = this.getDuration();
163
+ return t > i ? i : t;
164
+ }
165
+ getSource(e) {
166
+ const t = this.shouldUseHLS(e), i = this.shouldUseDASH(e), n = this.shouldUseFLV(e);
167
+ if (!(e instanceof Array || (0, a.isMediaStream)(e) || t || i || n))
168
+ return X.test(e) ? e.replace("www.dropbox.com", "dl.dropboxusercontent.com") : e;
169
+ }
170
+ render() {
171
+ const { url: e, playing: t, loop: i, controls: n, muted: l, config: o, width: h, height: p } = this.props, L = this.shouldUseAudio(this.props) ? "audio" : "video", S = {
172
+ width: h === "auto" ? h : "100%",
173
+ height: p === "auto" ? p : "100%"
174
+ };
175
+ return /* @__PURE__ */ d.default.createElement(
176
+ L,
177
+ {
178
+ ref: this.ref,
179
+ src: this.getSource(e),
180
+ style: S,
181
+ preload: "auto",
182
+ autoPlay: t || void 0,
183
+ controls: n,
184
+ muted: l,
185
+ loop: i,
186
+ ...o.attributes
187
+ },
188
+ e instanceof Array && e.map(this.renderSourceElement),
189
+ o.tracks.map(this.renderTrack)
190
+ );
191
+ }
192
+ }
193
+ r(P, "displayName", "FilePlayer");
194
+ r(P, "canPlay", c.canPlay.file);
195
+ const z = /* @__PURE__ */ b(g), Q = /* @__PURE__ */ R({
196
+ __proto__: null,
197
+ default: z
198
+ }, [g]);
199
+ export {
200
+ Q as F
201
+ };
@@ -0,0 +1 @@
1
+ "use strict";const i=require("./index-DIcS8zy8.js"),f=require("react");function _(r,e){for(var t=0;t<e.length;t++){const o=e[t];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in r)){const l=Object.getOwnPropertyDescriptor(o,a);l&&Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var m=Object.create,n=Object.defineProperty,P=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,O=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,w=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},d=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of g(e))!v.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=P(e,a))||o.enumerable});return r},j=(r,e,t)=>(t=r!=null?m(b(r)):{},d(!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),L=r=>d(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(O(r,typeof e!="symbol"?e+"":e,t),t),h={};w(h,{default:()=>u});var y=L(h),p=j(f),c=i.utils,K=i.patterns;const D="https://cdn.embed.ly/player-0.1.0.min.js",M="playerjs";class u extends p.Component{constructor(){super(...arguments),s(this,"callPlayer",c.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,c.getSDK)(D,M).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(u,"displayName","Kaltura");s(u,"canPlay",K.canPlay.kaltura);const S=i.getDefaultExportFromCjs(y),T=_({__proto__:null,default:S},[y]);exports.Kaltura=T;