@plusscommunities/pluss-core-app 1.4.9 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/module/actions/FollowerActions.js +34 -0
  2. package/dist/module/actions/FollowerActions.js.map +1 -0
  3. package/dist/module/actions/MediaActions.js +20 -0
  4. package/dist/module/actions/MediaActions.js.map +1 -0
  5. package/dist/module/actions/ResidentActions.js +26 -0
  6. package/dist/module/actions/ResidentActions.js.map +1 -0
  7. package/dist/module/actions/UserActions.js +214 -0
  8. package/dist/module/actions/UserActions.js.map +1 -0
  9. package/dist/module/actions/index.js +5 -0
  10. package/dist/module/actions/index.js.map +1 -0
  11. package/dist/module/actions/types.js +14 -0
  12. package/dist/module/actions/types.js.map +1 -0
  13. package/dist/module/apis/analyticsActions.js +20 -0
  14. package/dist/module/apis/analyticsActions.js.map +1 -0
  15. package/dist/module/apis/contactActions.js +27 -0
  16. package/dist/module/apis/contactActions.js.map +1 -0
  17. package/dist/module/apis/eventActions.js +163 -0
  18. package/dist/module/apis/eventActions.js.map +1 -0
  19. package/dist/module/apis/fileActions.js +96 -0
  20. package/dist/module/apis/fileActions.js.map +1 -0
  21. package/dist/module/apis/followerActions.js +38 -0
  22. package/dist/module/apis/followerActions.js.map +1 -0
  23. package/dist/module/apis/index.js +11 -0
  24. package/dist/module/apis/index.js.map +1 -0
  25. package/dist/module/apis/notificationActions.js +60 -0
  26. package/dist/module/apis/notificationActions.js.map +1 -0
  27. package/dist/module/apis/profileActions.js +14 -0
  28. package/dist/module/apis/profileActions.js.map +1 -0
  29. package/dist/module/apis/reactionActions.js +78 -0
  30. package/dist/module/apis/reactionActions.js.map +1 -0
  31. package/dist/module/apis/typeActions.js +15 -0
  32. package/dist/module/apis/typeActions.js.map +1 -0
  33. package/dist/module/apis/userActions.js +104 -0
  34. package/dist/module/apis/userActions.js.map +1 -0
  35. package/{assets → dist/module/assets}/icons/reactions/heart.png +0 -0
  36. package/{assets → dist/module/assets}/icons/reactions/party.png +0 -0
  37. package/{assets → dist/module/assets}/icons/reactions/sad.png +0 -0
  38. package/{assets → dist/module/assets}/icons/reactions/smile.png +0 -0
  39. package/dist/module/colours.js +149 -0
  40. package/dist/module/colours.js.map +1 -0
  41. package/dist/module/components/AddButton.js +45 -0
  42. package/dist/module/components/AddButton.js.map +1 -0
  43. package/dist/module/components/Attachment.js +59 -0
  44. package/dist/module/components/Attachment.js.map +1 -0
  45. package/dist/module/components/AudienceSelectorLauncher.js +70 -0
  46. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
  47. package/dist/module/components/AudienceSelectorPage.js +376 -0
  48. package/dist/module/components/AudienceSelectorPage.js.map +1 -0
  49. package/dist/module/components/BackButton.js +62 -0
  50. package/dist/module/components/BackButton.js.map +1 -0
  51. package/dist/module/components/CategoryTabs.js +171 -0
  52. package/dist/module/components/CategoryTabs.js.map +1 -0
  53. package/dist/module/components/CommentReply.js +363 -0
  54. package/dist/module/components/CommentReply.js.map +1 -0
  55. package/dist/module/components/CommentSection.js +785 -0
  56. package/dist/module/components/CommentSection.js.map +1 -0
  57. package/dist/module/components/ConfirmPopup.js +85 -0
  58. package/dist/module/components/ConfirmPopup.js.map +1 -0
  59. package/dist/module/components/ConfirmationPopup.js +77 -0
  60. package/dist/module/components/ConfirmationPopup.js.map +1 -0
  61. package/dist/module/components/DropDownItem.js +82 -0
  62. package/dist/module/components/DropDownItem.js.map +1 -0
  63. package/dist/module/components/DropDownMenu.js +46 -0
  64. package/dist/module/components/DropDownMenu.js.map +1 -0
  65. package/dist/module/components/EmptyStateMain.js +50 -0
  66. package/dist/module/components/EmptyStateMain.js.map +1 -0
  67. package/dist/module/components/EmptyStateWidget.js +52 -0
  68. package/dist/module/components/EmptyStateWidget.js.map +1 -0
  69. package/dist/module/components/FontScaleButton.js +37 -0
  70. package/dist/module/components/FontScaleButton.js.map +1 -0
  71. package/dist/module/components/FontScalePopup.js +77 -0
  72. package/dist/module/components/FontScalePopup.js.map +1 -0
  73. package/dist/module/components/FormCard.js +28 -0
  74. package/dist/module/components/FormCard.js.map +1 -0
  75. package/dist/module/components/FormCardSection.js +240 -0
  76. package/dist/module/components/FormCardSection.js.map +1 -0
  77. package/dist/module/components/FormCardSectionOptionLauncher.js +77 -0
  78. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
  79. package/dist/module/components/FormattedText.js +145 -0
  80. package/dist/module/components/FormattedText.js.map +1 -0
  81. package/dist/module/components/GenericInput.js +161 -0
  82. package/dist/module/components/GenericInput.js.map +1 -0
  83. package/dist/module/components/GenericInputSection.js +174 -0
  84. package/dist/module/components/GenericInputSection.js.map +1 -0
  85. package/dist/module/components/Header.js +491 -0
  86. package/dist/module/components/Header.js.map +1 -0
  87. package/dist/module/components/ImagePopup.js +257 -0
  88. package/dist/module/components/ImagePopup.js.map +1 -0
  89. package/dist/module/components/ImageUploadProgress.js +72 -0
  90. package/dist/module/components/ImageUploadProgress.js.map +1 -0
  91. package/dist/module/components/ImageUploader.js +850 -0
  92. package/dist/module/components/ImageUploader.js.map +1 -0
  93. package/dist/module/components/InlineButton.js +72 -0
  94. package/dist/module/components/InlineButton.js.map +1 -0
  95. package/dist/module/components/Input.js +164 -0
  96. package/dist/module/components/Input.js.map +1 -0
  97. package/dist/module/components/LoadingCircles.js +224 -0
  98. package/dist/module/components/LoadingCircles.js.map +1 -0
  99. package/dist/module/components/LoadingIndicator.js +95 -0
  100. package/dist/module/components/LoadingIndicator.js.map +1 -0
  101. package/dist/module/components/LoadingStateWidget.js +51 -0
  102. package/dist/module/components/LoadingStateWidget.js.map +1 -0
  103. package/dist/module/components/MediaPlayer.js +440 -0
  104. package/dist/module/components/MediaPlayer.js.map +1 -0
  105. package/dist/module/components/MiddlePopup.js +46 -0
  106. package/dist/module/components/MiddlePopup.js.map +1 -0
  107. package/dist/module/components/PDFPopup.js +188 -0
  108. package/dist/module/components/PDFPopup.js.map +1 -0
  109. package/dist/module/components/PlussChat.js +997 -0
  110. package/dist/module/components/PlussChat.js.map +1 -0
  111. package/dist/module/components/PlussChatMessage.js +204 -0
  112. package/dist/module/components/PlussChatMessage.js.map +1 -0
  113. package/dist/module/components/PlussChatTime.js +66 -0
  114. package/dist/module/components/PlussChatTime.js.map +1 -0
  115. package/dist/module/components/Popup.js +138 -0
  116. package/dist/module/components/Popup.js.map +1 -0
  117. package/dist/module/components/PopupMenu.js +128 -0
  118. package/dist/module/components/PopupMenu.js.map +1 -0
  119. package/dist/module/components/PositionedImage.js +333 -0
  120. package/dist/module/components/PositionedImage.js.map +1 -0
  121. package/dist/module/components/ProfilePic.js +119 -0
  122. package/dist/module/components/ProfilePic.js.map +1 -0
  123. package/dist/module/components/RadioButton.js +84 -0
  124. package/dist/module/components/RadioButton.js.map +1 -0
  125. package/dist/module/components/Reaction.js +129 -0
  126. package/dist/module/components/Reaction.js.map +1 -0
  127. package/dist/module/components/Reactions.js +84 -0
  128. package/dist/module/components/Reactions.js.map +1 -0
  129. package/dist/module/components/SharingTools.js +162 -0
  130. package/dist/module/components/SharingTools.js.map +1 -0
  131. package/dist/module/components/Spinner.js +25 -0
  132. package/dist/module/components/Spinner.js.map +1 -0
  133. package/dist/module/components/StickyFooter.js +37 -0
  134. package/dist/module/components/StickyFooter.js.map +1 -0
  135. package/dist/module/components/TextStyle.js +34 -0
  136. package/dist/module/components/TextStyle.js.map +1 -0
  137. package/dist/module/components/Toggle.js +70 -0
  138. package/dist/module/components/Toggle.js.map +1 -0
  139. package/dist/module/components/TouchableSearchBar.js +73 -0
  140. package/dist/module/components/TouchableSearchBar.js.map +1 -0
  141. package/dist/module/components/UserListPopup.js +146 -0
  142. package/dist/module/components/UserListPopup.js.map +1 -0
  143. package/dist/module/components/UserListing.js +291 -0
  144. package/dist/module/components/UserListing.js.map +1 -0
  145. package/dist/module/components/VideoPopup.js +123 -0
  146. package/dist/module/components/VideoPopup.js.map +1 -0
  147. package/dist/module/components/WarningPopup.js +87 -0
  148. package/dist/module/components/WarningPopup.js.map +1 -0
  149. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +325 -0
  150. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
  151. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +123 -0
  152. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
  153. package/dist/module/components/index.js +53 -0
  154. package/dist/module/components/index.js.map +1 -0
  155. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +416 -0
  156. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
  157. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +405 -0
  158. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
  159. package/dist/module/config.js +27 -0
  160. package/dist/module/config.js.map +1 -0
  161. package/dist/module/constants.js +16 -0
  162. package/dist/module/constants.js.map +1 -0
  163. package/dist/module/fonts/index.js +2 -0
  164. package/dist/module/fonts/index.js.map +1 -0
  165. package/dist/module/fonts/pluss60-icons.js +5 -0
  166. package/dist/module/fonts/pluss60-icons.js.map +1 -0
  167. package/dist/module/fonts/pluss60-icons.json +1097 -0
  168. package/dist/module/helper.js +436 -0
  169. package/dist/module/helper.js.map +1 -0
  170. package/dist/module/index.js +13 -0
  171. package/dist/module/index.js.map +1 -0
  172. package/dist/module/session.js +54 -0
  173. package/dist/module/session.js.map +1 -0
  174. package/dist/module/styles.js +67 -0
  175. package/dist/module/styles.js.map +1 -0
  176. package/package.json +22 -5
  177. package/src/assets/icons/reactions/heart.png +0 -0
  178. package/src/assets/icons/reactions/party.png +0 -0
  179. package/src/assets/icons/reactions/sad.png +0 -0
  180. package/src/assets/icons/reactions/smile.png +0 -0
  181. package/src/components/CommentReply.js +0 -2
  182. package/src/constants.js +4 -4
  183. package/src/helper.js +4 -4
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["LoadingCircles.js"],"names":["React","Component","View","Animated","connect","getMainBrandingColourFromState","LoadingCircles","animatedSize","Value","animatedOpacity","animatedSize2","animatedOpacity2","animatedSize3","animatedOpacity3","animatedSize4","animatedOpacity4","animatedSize5","animatedOpacity5","componentDidMount","animate","sequence","parallel","timing","state","toValue","duration","useNativeDriver","delay","start","render","styles","container","absolute","circle","borderColor","props","color","colourBrandingMain","width","height","opacity","alignItems","justifyContent","borderRadius","borderWidth","position","top","left","right","bottom","mapStateToProps","loadingCircles"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,IAAT,EAAeC,QAAf,QAA+B,cAA/B;AACA,SAASC,OAAT,QAAwB,aAAxB;AACA,SAASC,8BAAT,QAA+C,YAA/C;AAEA;AACA;AACA;AACA;;AAEA,MAAMC,cAAN,SAA6BL,SAA7B,CAAuC;AAAA;AAAA;;AAAA,mCAC7B;AACNM,MAAAA,YAAY,EAAE,IAAIJ,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CADR;AAENC,MAAAA,eAAe,EAAE,IAAIN,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CAFX;AAGNE,MAAAA,aAAa,EAAE,IAAIP,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CAHT;AAING,MAAAA,gBAAgB,EAAE,IAAIR,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CAJZ;AAKNI,MAAAA,aAAa,EAAE,IAAIT,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CALT;AAMNK,MAAAA,gBAAgB,EAAE,IAAIV,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CANZ;AAONM,MAAAA,aAAa,EAAE,IAAIX,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CAPT;AAQNO,MAAAA,gBAAgB,EAAE,IAAIZ,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CARZ;AASNQ,MAAAA,aAAa,EAAE,IAAIb,QAAQ,CAACK,KAAb,CAAmB,CAAnB,CATT;AAUNS,MAAAA,gBAAgB,EAAE,IAAId,QAAQ,CAAC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G,EAAE,CAFG;AAGRC,IAAAA,IAAI,EAAE,CAHE;AAIRC,IAAAA,KAAK,EAAE,CAJC;AAKRC,IAAAA,MAAM,EAAE;AALA;AAXG,CAAf;;AAoBA,MAAMC,eAAe,GAAG3B,KAAK,IAAI;AAC/B,SAAO;AACLc,IAAAA,kBAAkB,EAAEhC,8BAA8B,CAACkB,KAAD;AAD7C,GAAP;AAGD,CAJD;;AAMA,MAAM4B,cAAc,GAAG/C,OAAO,CAAC8C,eAAD,EAAkB,EAAlB,CAAP,CAA6B5C,cAA7B,CAAvB;AACA,SAAS6C,cAAc,IAAI7C,cAA3B","sourcesContent":["import React, { Component } from 'react';\nimport { View, Animated } from 'react-native';\nimport { connect } from 'react-redux';\nimport { getMainBrandingColourFromState } from '../colours';\n\n/* const arr = []\nfor (var i = 0; i < 3; i++) {\n arr.push(i);\n} */\n\nclass LoadingCircles extends Component {\n state = {\n animatedSize: new Animated.Value(1),\n animatedOpacity: new Animated.Value(0),\n animatedSize2: new Animated.Value(1),\n animatedOpacity2: new Animated.Value(0),\n animatedSize3: new Animated.Value(1),\n animatedOpacity3: new Animated.Value(0),\n animatedSize4: new Animated.Value(1),\n animatedOpacity4: new Animated.Value(0),\n animatedSize5: new Animated.Value(1),\n animatedOpacity5: new Animated.Value(0),\n };\n\n /* constructor() {\n super()\n this.state.animatedSizes = [];\n this.state.animatedOpacity = [];\n arr.forEach((value) => {\n this.state.animatedSizes[value] = new Animated.Value(1);\n this.state.animatedOpacity[value] = new Animated.Value(0);\n })\n } */\n\n componentDidMount() {\n this.animate();\n /* setTimeout(() => {\n this.animate2();\n }, 150);\n setTimeout(() => {\n this.animate3();\n }, 300); */\n }\n\n animate() {\n Animated.sequence([\n Animated.parallel([\n Animated.timing(this.state.animatedSize, {\n toValue: 20,\n duration: 900,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity, {\n toValue: 1,\n duration: 900,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize2, {\n toValue: 20,\n duration: 900,\n delay: 150,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity2, {\n toValue: 1,\n duration: 900,\n delay: 150,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize3, {\n toValue: 20,\n duration: 900,\n delay: 300,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity3, {\n toValue: 1,\n duration: 900,\n delay: 400,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize4, {\n toValue: 20,\n duration: 900,\n delay: 450,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity4, {\n toValue: 1,\n duration: 900,\n delay: 450,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize5, {\n toValue: 20,\n duration: 900,\n delay: 600,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity5, {\n toValue: 1,\n duration: 900,\n delay: 600,\n useNativeDriver: false,\n }),\n ]),\n\n Animated.parallel([\n Animated.timing(this.state.animatedOpacity, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity2, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity3, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity4, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedOpacity5, {\n toValue: 0,\n duration: 500,\n useNativeDriver: false,\n }),\n ]),\n\n Animated.parallel([\n Animated.timing(this.state.animatedSize, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize2, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize3, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize4, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n Animated.timing(this.state.animatedSize5, {\n toValue: 1,\n duration: 1,\n useNativeDriver: false,\n }),\n ]),\n ]).start(() => {\n this.animate();\n });\n }\n\n render() {\n return (\n <View style={styles.container}>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize,\n height: this.state.animatedSize,\n opacity: this.state.animatedOpacity,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize2,\n height: this.state.animatedSize2,\n opacity: this.state.animatedOpacity2,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize3,\n height: this.state.animatedSize3,\n opacity: this.state.animatedOpacity3,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize4,\n height: this.state.animatedSize4,\n opacity: this.state.animatedOpacity4,\n },\n ]}\n />\n </View>\n <View style={[styles.container, styles.absolute]}>\n <Animated.View\n style={[\n styles.circle,\n {\n borderColor: this.props.color || this.props.colourBrandingMain,\n width: this.state.animatedSize5,\n height: this.state.animatedSize5,\n opacity: this.state.animatedOpacity5,\n },\n ]}\n />\n </View>\n </View>\n );\n }\n}\n\nconst styles = {\n container: {\n width: 30,\n height: 30,\n alignItems: 'center',\n justifyContent: 'center',\n },\n circle: {\n borderRadius: 15,\n borderWidth: 1,\n },\n absolute: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n };\n};\n\nconst loadingCircles = connect(mapStateToProps, {})(LoadingCircles);\nexport { loadingCircles as LoadingCircles };\n"]}
@@ -0,0 +1,95 @@
1
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+
3
+ import React, { Component } from 'react';
4
+ import { StyleSheet, Animated, Dimensions } from 'react-native';
5
+ import { connect } from 'react-redux';
6
+ import { getMainBrandingColourFromState } from '../colours';
7
+ const DEFAULT_HEIGHT = 4;
8
+ const DEFAULT_WIDTH = Dimensions.get('window').width;
9
+
10
+ class LoadingIndicator extends Component {
11
+ constructor(props) {
12
+ super(props);
13
+
14
+ _defineProperty(this, "animate", () => {
15
+ Animated.sequence([Animated.timing(this.state.animatedLeft, {
16
+ toValue: DEFAULT_WIDTH,
17
+ duration: 1500,
18
+ useNativeDriver: false
19
+ }), Animated.delay(500), Animated.timing(this.state.animatedLeft, {
20
+ toValue: -DEFAULT_WIDTH,
21
+ duration: 1500,
22
+ useNativeDriver: false
23
+ }), Animated.delay(500)]).start(() => {
24
+ this.animate();
25
+ });
26
+ });
27
+
28
+ this.state = {
29
+ animatedLeft: new Animated.Value(-DEFAULT_WIDTH),
30
+ animatedOpacity: new Animated.Value(0)
31
+ };
32
+ this.height = 0;
33
+ }
34
+
35
+ componentDidMount() {
36
+ this.animate();
37
+ }
38
+
39
+ getSnapshotBeforeUpdate(prevProps) {
40
+ return null;
41
+ }
42
+
43
+ componentDidUpdate(prevProps) {
44
+ if (prevProps.visible !== this.props.visible) {
45
+ Animated.timing(this.state.animatedOpacity, {
46
+ toValue: this.props.visible ? 0.8 : 0,
47
+ duration: 300,
48
+ useNativeDriver: false
49
+ }).start();
50
+ }
51
+ }
52
+
53
+ render() {
54
+ return /*#__PURE__*/React.createElement(Animated.View, {
55
+ style: [styles.container, this.props.style, {
56
+ height: DEFAULT_HEIGHT,
57
+ opacity: this.state.animatedOpacity
58
+ }],
59
+ onLayout: this.onLayout
60
+ }, /*#__PURE__*/React.createElement(Animated.View, {
61
+ style: [styles.line, {
62
+ backgroundColor: this.props.colourBrandingMain,
63
+ left: this.state.animatedLeft,
64
+ height: DEFAULT_HEIGHT
65
+ }]
66
+ }));
67
+ }
68
+
69
+ }
70
+
71
+ const styles = StyleSheet.create({
72
+ container: {
73
+ alignItems: 'center',
74
+ justifyContent: 'center',
75
+ overflow: 'hidden',
76
+ backgroundColor: '#fff',
77
+ width: '100%',
78
+ height: 38
79
+ },
80
+ innerContainer: {
81
+ flexDirection: 'row'
82
+ },
83
+ line: {
84
+ width: DEFAULT_WIDTH
85
+ }
86
+ });
87
+
88
+ const mapStateToProps = state => {
89
+ return {
90
+ colourBrandingMain: getMainBrandingColourFromState(state)
91
+ };
92
+ };
93
+
94
+ export default connect(mapStateToProps, {})(LoadingIndicator); // export { loadingIndicator as Default };
95
+ //# sourceMappingURL=LoadingIndicator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["LoadingIndicator.js"],"names":["React","Component","StyleSheet","Animated","Dimensions","connect","getMainBrandingColourFromState","DEFAULT_HEIGHT","DEFAULT_WIDTH","get","width","LoadingIndicator","constructor","props","sequence","timing","state","animatedLeft","toValue","duration","useNativeDriver","delay","start","animate","Value","animatedOpacity","height","componentDidMount","getSnapshotBeforeUpdate","prevProps","componentDidUpdate","visible","render","styles","container","style","opacity","onLayout","line","backgroundColor","colourBrandingMain","left","create","alignItems","justifyContent","overflow","innerContainer","flexDirection","mapStateToProps"],"mappings":";;AAAA,OAAOA,KAAP,IAAgBC,SAAhB,QAAiC,OAAjC;AACA,SAASC,UAAT,EAAqBC,QAArB,EAA+BC,UAA/B,QAAiD,cAAjD;AACA,SAASC,OAAT,QAAwB,aAAxB;AACA,SAASC,8BAAT,QAA+C,YAA/C;AAEA,MAAMC,cAAc,GAAG,CAAvB;AACA,MAAMC,aAAa,GAAGJ,UAAU,CAACK,GAAX,CAAe,QAAf,EAAyBC,KAA/C;;AAEA,MAAMC,gBAAN,SAA+BV,SAA/B,CAAyC;AACvCW,EAAAA,WAAW,CAACC,KAAD,E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B,CAACU,KAAD;AAD7C,GAAP;AAGD,CAJD;;AAMA,eAAeX,OAAO,CAAC2C,eAAD,EAAkB,EAAlB,CAAP,CAA6BrC,gBAA7B,CAAf,C,CACA","sourcesContent":["import React, { Component } from 'react';\nimport { StyleSheet, Animated, Dimensions } from 'react-native';\nimport { connect } from 'react-redux';\nimport { getMainBrandingColourFromState } from '../colours';\n\nconst DEFAULT_HEIGHT = 4;\nconst DEFAULT_WIDTH = Dimensions.get('window').width;\n\nclass LoadingIndicator extends Component {\n constructor(props) {\n super(props);\n this.state = {\n animatedLeft: new Animated.Value(-DEFAULT_WIDTH),\n animatedOpacity: new Animated.Value(0),\n };\n this.height = 0;\n }\n\n componentDidMount() {\n this.animate();\n }\n\n getSnapshotBeforeUpdate(prevProps) {\n return null;\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.visible !== this.props.visible) {\n Animated.timing(this.state.animatedOpacity, {\n toValue: this.props.visible ? 0.8 : 0,\n duration: 300,\n useNativeDriver: false,\n }).start();\n }\n }\n\n animate = () => {\n Animated.sequence([\n Animated.timing(this.state.animatedLeft, {\n toValue: DEFAULT_WIDTH,\n duration: 1500,\n useNativeDriver: false,\n }),\n Animated.delay(500),\n Animated.timing(this.state.animatedLeft, {\n toValue: -DEFAULT_WIDTH,\n duration: 1500,\n useNativeDriver: false,\n }),\n Animated.delay(500),\n ]).start(() => {\n this.animate();\n });\n };\n\n render() {\n return (\n <Animated.View\n style={[styles.container, this.props.style, { height: DEFAULT_HEIGHT, opacity: this.state.animatedOpacity }]}\n onLayout={this.onLayout}\n >\n <Animated.View\n style={[styles.line, { backgroundColor: this.props.colourBrandingMain, left: this.state.animatedLeft, height: DEFAULT_HEIGHT }]}\n />\n </Animated.View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n alignItems: 'center',\n justifyContent: 'center',\n overflow: 'hidden',\n backgroundColor: '#fff',\n width: '100%',\n height: 38,\n },\n innerContainer: {\n flexDirection: 'row',\n },\n line: {\n width: DEFAULT_WIDTH,\n },\n});\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n };\n};\n\nexport default connect(mapStateToProps, {})(LoadingIndicator);\n// export { loadingIndicator as Default };\n"]}
@@ -0,0 +1,51 @@
1
+ import React, { PureComponent } from 'react';
2
+ import { View, ScrollView, StyleSheet } from 'react-native';
3
+ import { TEXT_BLUEGREY } from '../colours';
4
+
5
+ class LoadingStateWidget extends PureComponent {
6
+ renderPlaceHolder() {
7
+ let opacity = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
8
+ return /*#__PURE__*/React.createElement(View, {
9
+ style: [styles.item, {
10
+ opacity,
11
+ height: this.props.height - 20
12
+ }]
13
+ });
14
+ }
15
+
16
+ render() {
17
+ return /*#__PURE__*/React.createElement(View, {
18
+ style: [styles.container, this.props.height && {
19
+ height: this.props.height
20
+ }, this.props.style]
21
+ }, /*#__PURE__*/React.createElement(ScrollView, {
22
+ horizontal: true,
23
+ style: styles.itemContainer
24
+ }, this.renderPlaceHolder(0.8), this.renderPlaceHolder(0.6), this.renderPlaceHolder(0.4), this.renderPlaceHolder(0.2)));
25
+ }
26
+
27
+ }
28
+
29
+ const styles = StyleSheet.create({
30
+ container: {
31
+ borderRadius: 5,
32
+ paddingVertical: 5
33
+ },
34
+ titleText: {
35
+ fontFamily: 'qs-bold',
36
+ fontSize: 16,
37
+ color: TEXT_BLUEGREY
38
+ },
39
+ itemContainer: {
40
+ marginTop: 20
41
+ },
42
+ item: {
43
+ borderRadius: 4,
44
+ width: 97,
45
+ height: 98,
46
+ backgroundColor: '#e6ebef',
47
+ marginRight: 16
48
+ }
49
+ });
50
+ export default LoadingStateWidget;
51
+ //# sourceMappingURL=LoadingStateWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["LoadingStateWidget.js"],"names":["React","PureComponent","View","ScrollView","StyleSheet","TEXT_BLUEGREY","LoadingStateWidget","renderPlaceHolder","opacity","styles","item","height","props","render","container","style","itemContainer","create","borderRadius","paddingVertical","titleText","fontFamily","fontSize","color","marginTop","width","backgroundColor","marginRight"],"mappings":"AAAA,OAAOA,KAAP,IAAgBC,aAAhB,QAAqC,OAArC;AACA,SAASC,IAAT,EAAeC,UAAf,EAA2BC,UAA3B,QAA6C,cAA7C;AACA,SAASC,aAAT,QAA8B,YAA9B;;AAEA,MAAMC,kBAAN,SAAiCL,aAAjC,CAA+C;AAC7CM,EAAAA,iBAAiB,GAAc;AAAA,QAAbC,OAAa,uEAAH,CAAG;AAC7B,wBAAO,oBAAC,IAAD;AAAM,MAAA,KAAK,EAAE,CAACC,MAAM,CAACC,IAAR,EAAc;AAAEF,QAAAA,OAAF;AAAWG,QAAAA,MAAM,EAAE,KAAKC,KAAL,CAAWD,MAAX,GAAoB;AAAvC,OAAd;AAAb,MAAP;AACD;;AAEDE,EAAAA,MAAM,GAAG;AACP,wBACE,oBAAC,IAAD;AAAM,MAAA,KAAK,EAAE,CAACJ,MAAM,CAACK,SAAR,EAAmB,KAAKF,KAAL,CAAWD,MAAX,IAAqB;AAAEA,QAAAA,MAAM,EAAE,KAAKC,KAAL,CAAWD;AAArB,OAAxC,EAAuE,KAAKC,KAAL,CAAWG,KAAlF;AAAb,oBACE,oBAAC,UAAD;AAAY,MAAA,UAAU,MAAtB;AAAuB,MAAA,KAAK,EAAEN,MAAM,CAACO;AAArC,OACG,KAAKT,iBAAL,CAAuB,GAAvB,CADH,EAEG,KAAKA,iBAAL,CAAuB,GAAvB,CAFH,EAGG,KAAKA,iBAAL,CAAuB,GAAvB,CAHH,EAIG,KAAKA,iBAAL,CAAuB,GAAvB,CAJH,CADF,CADF;AAUD;;AAhB4C;;AAmB/C,MAAME,MAAM,GAAGL,UAAU,CAACa,MAAX,CAAkB;AAC/BH,EAAAA,SAAS,EAAE;AACTI,IAAAA,YAAY,EAAE,CADL;AAETC,IAAAA,eAAe,EAAE;AAFR,GADoB;AAK/BC,EAAAA,SAAS,EAAE;AACTC,IAAAA,UAAU,EAAE,SADH;AAETC,IAAAA,QAAQ,EAAE,EAFD;AAGTC,IAAAA,KAAK,EAAElB;AAHE,GALoB;AAU/BW,EAAAA,aAAa,EAAE;AACbQ,IAAAA,SAAS,EAAE;AADE,GAVgB;AAa/Bd,EAAAA,IAAI,EAAE;AACJQ,IAAAA,YAAY,EAAE,CADV;AAEJO,IAAAA,KAAK,EAAE,EAFH;AAGJd,IAAAA,MAAM,EAAE,EAHJ;AAIJe,IAAAA,eAAe,EAAE,SAJb;AAKJC,IAAAA,WAAW,EAAE;AALT;AAbyB,CAAlB,CAAf;AAsBA,eAAerB,kBAAf","sourcesContent":["import React, { PureComponent } from 'react';\nimport { View, ScrollView, StyleSheet } from 'react-native';\nimport { TEXT_BLUEGREY } from '../colours';\n\nclass LoadingStateWidget extends PureComponent {\n renderPlaceHolder(opacity = 1) {\n return <View style={[styles.item, { opacity, height: this.props.height - 20 }]} />;\n }\n\n render() {\n return (\n <View style={[styles.container, this.props.height && { height: this.props.height }, this.props.style]}>\n <ScrollView horizontal style={styles.itemContainer}>\n {this.renderPlaceHolder(0.8)}\n {this.renderPlaceHolder(0.6)}\n {this.renderPlaceHolder(0.4)}\n {this.renderPlaceHolder(0.2)}\n </ScrollView>\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n borderRadius: 5,\n paddingVertical: 5,\n },\n titleText: {\n fontFamily: 'qs-bold',\n fontSize: 16,\n color: TEXT_BLUEGREY,\n },\n itemContainer: {\n marginTop: 20,\n },\n item: {\n borderRadius: 4,\n width: 97,\n height: 98,\n backgroundColor: '#e6ebef',\n marginRight: 16,\n },\n});\n\nexport default LoadingStateWidget;\n"]}
@@ -0,0 +1,440 @@
1
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
+
3
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+
5
+ import React, { Component } from 'react';
6
+ import { Platform, View, StyleSheet, Dimensions } from 'react-native';
7
+ import * as ScreenOrientation from 'expo-screen-orientation';
8
+ import { DeviceMotion } from 'expo-sensors';
9
+ import YoutubePlayer, { getYoutubeMeta } from 'react-native-youtube-iframe';
10
+ import { Vimeo } from 'react-native-vimeo-iframe';
11
+ import WebView from 'react-native-webview';
12
+ import { Video } from 'expo-av';
13
+ import VideoPlayer from 'expo-video-player';
14
+ import { Spinner } from './Spinner';
15
+ const SCREEN_HEIGHT = Dimensions.get('window').height;
16
+ const SCREEN_WIDTH = Dimensions.get('window').width;
17
+ const EXPO_VIDEO_PROPS = {
18
+ rate: 1,
19
+ isMuted: false,
20
+ volume: 1
21
+ };
22
+ const RETRY_RECOVER = 30000;
23
+ const RETRY_LOADING = 10000;
24
+
25
+ class MediaPlayer extends Component {
26
+ constructor(props) {
27
+ var _this;
28
+
29
+ super(props);
30
+ _this = this;
31
+
32
+ _defineProperty(this, "componentDidMount", async () => {
33
+ await this.setupForPlaying();
34
+ ScreenOrientation.lockAsync(Platform.OS === 'ios' ? ScreenOrientation.OrientationLock.DEFAULT : ScreenOrientation.OrientationLock.ALL);
35
+ const motionAvailalble = await DeviceMotion.isAvailableAsync(); // console.log('motionAvailalble', motionAvailalble);
36
+
37
+ if (motionAvailalble) {
38
+ DeviceMotion.setUpdateInterval(500);
39
+ DeviceMotion.addListener(this.onMotionChange);
40
+ }
41
+ });
42
+
43
+ _defineProperty(this, "componentWillUnmount", () => {
44
+ if (this.checkStreamLoaded) clearInterval(this.checkStreamLoaded);
45
+ DeviceMotion.removeAllListeners();
46
+ ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP);
47
+ });
48
+
49
+ _defineProperty(this, "getYoutubeVideoId", url => {
50
+ url = url.replace(/(>|<)/gi, '').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
51
+
52
+ if (url[2] !== undefined) {
53
+ const ids = url[2].split(/[^0-9a-z_\-]/i);
54
+ return ids[0];
55
+ } else {
56
+ return '';
57
+ }
58
+ });
59
+
60
+ _defineProperty(this, "getVimeoId", url => {
61
+ const result = url.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i);
62
+ return result[1];
63
+ });
64
+
65
+ _defineProperty(this, "setupForPlaying", async () => {
66
+ // Extract live stream info
67
+ const {
68
+ source,
69
+ useVideoPlayer
70
+ } = this.props;
71
+ const isUrlLink = source && source.startsWith('http');
72
+ const isYoutube = source && (source.includes('youtube.com/watch?v=') || source.includes('youtu.be/'));
73
+ const isVimeo = source && source.includes('vimeo.com/');
74
+ let heightFactor = 0;
75
+
76
+ if (isYoutube) {
77
+ const metadata = await getYoutubeMeta(this.getYoutubeVideoId(source));
78
+ heightFactor = metadata.height / metadata.width;
79
+ } else if (useVideoPlayer) {
80
+ heightFactor = 0;
81
+ } else {
82
+ heightFactor = 0.565;
83
+ }
84
+
85
+ this.setState({
86
+ isUrlLink,
87
+ isYoutube,
88
+ isVimeo,
89
+ playbackLoaded: isYoutube || isVimeo,
90
+ heightFactor,
91
+ readyToRender: true
92
+ });
93
+ });
94
+
95
+ _defineProperty(this, "getStreamPlaybackUrl", () => {
96
+ // return 'https://stream.mux.com/Ym4nKktRpGuZNBBBlzhxpyRwZLpvMlPRchcu01x6Ur600.m3u8';
97
+ return `https://stream.mux.com/${this.props.playbackId}.m3u8`;
98
+ });
99
+
100
+ _defineProperty(this, "checkReloadStream", function () {
101
+ let wait = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : RETRY_LOADING;
102
+ let force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
103
+ if (!force && _this.retryLoading) return;
104
+ console.log(`Check loading in ${wait} milliseconds...`);
105
+ _this.retryLoading = true;
106
+ setTimeout(async () => {
107
+ const {
108
+ playbackLoaded,
109
+ playbackBuffering
110
+ } = _this.state;
111
+
112
+ try {
113
+ if (playbackLoaded === false || playbackBuffering === true) {
114
+ console.log('Reloading started');
115
+ await _this.videoPlayer.loadAsync({
116
+ uri: _this.getStreamPlaybackUrl(),
117
+ overrideFileExtensionAndroid: 'm3u8'
118
+ }, EXPO_VIDEO_PROPS, false);
119
+ } else {
120
+ console.log('Already loaded - not reloading');
121
+ }
122
+
123
+ _this.retryLoading = false;
124
+ } catch {}
125
+ }, wait);
126
+ });
127
+
128
+ _defineProperty(this, "isLandscape", deviceRotation => {
129
+ const {
130
+ beta,
131
+ gamma
132
+ } = deviceRotation;
133
+ const absGamma = Math.abs(gamma);
134
+ const absBeta = Math.abs(beta);
135
+ const isGammaNegative = Math.sign(gamma) === -1;
136
+
137
+ if (absGamma <= 0.04 && absBeta <= 0.24) {
138
+ //Portrait mode, on a flat surface.
139
+ return false;
140
+ } else if ((absGamma <= 1.0 || absGamma >= 2.3) && absBeta >= 0.5) {
141
+ //General Portrait mode, accounting for forward and back tilt on the top of the phone.
142
+ return false;
143
+ } else {
144
+ if (isGammaNegative) {
145
+ //Landscape mode with the top of the phone to the left.
146
+ return true;
147
+ } else {
148
+ //Landscape mode with the top of the phone to the right.
149
+ return true;
150
+ }
151
+ }
152
+ });
153
+
154
+ _defineProperty(this, "onMotionChange", async changeEvent => {
155
+ const deviceRotation = changeEvent.rotation;
156
+ const deviceOrientation = changeEvent.orientation;
157
+ const isLandscape = this.isLandscape(deviceRotation);
158
+ this.orientationQueue.push(isLandscape);
159
+ if (this.orientationQueue.length > 2) this.orientationQueue = this.orientationQueue.slice(-2); // console.log('onMotionChange - orientationQueue', this.orientationQueue);
160
+
161
+ if (isLandscape !== this.state.isLandscape && isLandscape === (Math.abs(deviceOrientation) === 90) && this.orientationQueue.every(i => i === isLandscape)) {
162
+ this.setState({
163
+ isLandscape
164
+ }, () => {
165
+ // console.log('isLandscape', this.state.isLandscape);
166
+ if (this.props.orientationChanged) this.props.orientationChanged(this.state.isLandscape);
167
+ });
168
+ }
169
+ });
170
+
171
+ _defineProperty(this, "onStreamLoadStart", () => {
172
+ console.log('Stream load started');
173
+ this.checkStreamLoaded = setInterval(() => {
174
+ const {
175
+ playbackLoaded
176
+ } = this.state;
177
+
178
+ if (playbackLoaded === false) {
179
+ console.log('Stream loading failed unexpectedly');
180
+ this.checkReloadStream(1000, true);
181
+ } else {
182
+ clearInterval(this.checkStreamLoaded);
183
+ }
184
+ }, RETRY_RECOVER);
185
+ });
186
+
187
+ _defineProperty(this, "onStreamLoaded", status => {
188
+ console.log(`Stream loaded - isLoaded:${status.isLoaded}, isBuffering:${status.isBuffering}, isPlaying:${status.isPlaying}`);
189
+ });
190
+
191
+ _defineProperty(this, "onStreamError", error => {
192
+ console.log('Stream error', error);
193
+ });
194
+
195
+ _defineProperty(this, "onStreamStatusUpdate", status => {
196
+ this.setState({
197
+ playbackLoaded: status.isLoaded,
198
+ playbackBuffering: status.isBuffering,
199
+ playbackPlaying: status.isPlaying
200
+ }, () => {
201
+ const {
202
+ playbackLoaded,
203
+ playbackBuffering,
204
+ playbackPlaying,
205
+ shouldPlay
206
+ } = this.state; // console.log(`Status updated - isLoaded:${playbackLoaded}, isBuffering:${playbackBuffering}, isPlaying:${playbackPlaying}`);
207
+
208
+ if (playbackLoaded === false && playbackBuffering === undefined && playbackPlaying === undefined) {
209
+ this.checkReloadStream();
210
+ } else if (playbackLoaded === true && playbackBuffering === true) {
211
+ this.checkReloadStream(RETRY_RECOVER);
212
+ }
213
+ });
214
+ });
215
+
216
+ _defineProperty(this, "onYoutubeError", e => {
217
+ // console.log('onYoutubeError', e);
218
+ this.setState({
219
+ forceWebview: true
220
+ });
221
+ });
222
+
223
+ _defineProperty(this, "onYoutubeReady", () => {// console.log('onYoutubeReady');
224
+ });
225
+
226
+ _defineProperty(this, "onVideoPlayStatusUpdate", status => {// console.log('onVideoPlayStatusUpdate', status);
227
+ });
228
+
229
+ _defineProperty(this, "onVideoPlayError", error => {
230
+ // console.log('onVideoPlayError', error);
231
+ this.setState({
232
+ forceWebview: true
233
+ });
234
+ });
235
+
236
+ _defineProperty(this, "getYoutubePlayer", (youtubeId, width, height, autoPlay) => /*#__PURE__*/React.createElement(YoutubePlayer, {
237
+ ref: ref => this.youtubePlayer = ref,
238
+ height: height,
239
+ width: width,
240
+ videoId: youtubeId,
241
+ play: autoPlay // onChangeState={event => console.log('onChangeState', event)}
242
+ ,
243
+ onReady: this.onYoutubeReady,
244
+ onError: this.onYoutubeError // onPlaybackQualityChange={q => console.log('onPlaybackQualityChange', q)}
245
+ ,
246
+ volume: 50,
247
+ playbackRate: 1,
248
+ playerParams: {
249
+ cc_lang_pref: 'us',
250
+ showClosedCaptions: true
251
+ }
252
+ }));
253
+
254
+ _defineProperty(this, "getVimeoPlayer", (vimeoId, width, height, autoPlay) => /*#__PURE__*/React.createElement(View, {
255
+ style: {
256
+ width,
257
+ height
258
+ }
259
+ }, /*#__PURE__*/React.createElement(Vimeo, {
260
+ style: {
261
+ marginLeft: -8,
262
+ marginRight: -5
263
+ },
264
+ videoId: vimeoId // onReady={() => console.log('Video is ready')}
265
+ // onPlay={() => console.log('Video is playing')}
266
+ // onPlayProgress={data => console.log('Video progress data:', data)}
267
+ // onFinish={() => console.log('Video is finished')}
268
+ ,
269
+ loop: false,
270
+ autoPlay: autoPlay,
271
+ controls: true,
272
+ speed: true,
273
+ time: '0m0s'
274
+ })));
275
+
276
+ _defineProperty(this, "getWebviewPlayer", embedUrl => /*#__PURE__*/React.createElement(WebView, {
277
+ startInLoadingState: true,
278
+ javaScriptEnabled: true,
279
+ scrollEnabled: false,
280
+ automaticallyAdjustContentInsets: false,
281
+ mediaPlaybackRequiresUserAction: true,
282
+ style: styles.webView,
283
+ source: {
284
+ uri: embedUrl
285
+ }
286
+ }));
287
+
288
+ _defineProperty(this, "getStreamPlayer", (embedUrl, width, height, autoPlay) => /*#__PURE__*/React.createElement(Video, _extends({
289
+ ref: vp => {
290
+ this.videoPlayer = vp;
291
+ },
292
+ source: {
293
+ uri: embedUrl
294
+ }
295
+ }, EXPO_VIDEO_PROPS, {
296
+ shouldPlay: autoPlay,
297
+ resizeMode: Video.RESIZE_MODE_CONTAIN,
298
+ useNativeControls: true,
299
+ style: {
300
+ width,
301
+ height
302
+ },
303
+ onLoadStart: this.onStreamLoadStart,
304
+ onLoad: this.onStreamLoaded,
305
+ onError: this.onStreamError,
306
+ onPlaybackStatusUpdate: this.onStreamStatusUpdate
307
+ })));
308
+
309
+ _defineProperty(this, "getVideoPlayer", (embedUrl, width, height, autoPlay) => /*#__PURE__*/React.createElement(VideoPlayer, {
310
+ videoProps: {
311
+ shouldPlay: autoPlay,
312
+ resizeMode: Video.RESIZE_MODE_CONTAIN,
313
+ source: {
314
+ uri: embedUrl
315
+ }
316
+ },
317
+ showFullscreenButton: false,
318
+ errorCallback: this.onVideoPlayError,
319
+ playbackCallback: this.onVideoPlayStatusUpdate,
320
+ height: height,
321
+ width: width
322
+ }));
323
+
324
+ this.state = {
325
+ deviceOrientation: null,
326
+ isLandscape: false,
327
+ isUrlLink: true,
328
+ isYoutube: false,
329
+ isVimeo: false,
330
+ forceWebview: false,
331
+ heightFactor: 0,
332
+ playbackLoaded: false,
333
+ playbackBuffering: false,
334
+ playbackPlaying: false,
335
+ readyToRender: false
336
+ };
337
+ this.youtubePlayer = null;
338
+ this.videoPlayer = null;
339
+ this.checkStreamLoaded = null;
340
+ this.retryLoading = false;
341
+ this.orientationQueue = [];
342
+ }
343
+
344
+ render() {
345
+ let width, height;
346
+ const {
347
+ playbackId,
348
+ source,
349
+ autoPlay,
350
+ useVideoPlayer
351
+ } = this.props;
352
+ const {
353
+ readyToRender,
354
+ isLandscape,
355
+ heightFactor,
356
+ isUrlLink,
357
+ isYoutube,
358
+ isVimeo,
359
+ forceWebview,
360
+ playbackLoaded,
361
+ playbackBuffering
362
+ } = this.state;
363
+ if (!readyToRender) return null;
364
+
365
+ if (isLandscape) {
366
+ width = SCREEN_HEIGHT;
367
+ height = SCREEN_WIDTH;
368
+ } else {
369
+ width = SCREEN_WIDTH;
370
+ height = heightFactor ? SCREEN_WIDTH * heightFactor : SCREEN_HEIGHT;
371
+ }
372
+
373
+ let embedUrl, player, showLoading;
374
+
375
+ if (!forceWebview) {
376
+ if (isYoutube) {
377
+ const youtubeId = this.getYoutubeVideoId(source);
378
+ embedUrl = youtubeId ? `https://www.youtube.com/embed/${youtubeId}` : source;
379
+ player = this.getYoutubePlayer(youtubeId, width, height, autoPlay);
380
+ } else if (isVimeo) {
381
+ const vimeoId = this.getVimeoId(source);
382
+ embedUrl = source;
383
+ player = this.getVimeoPlayer(vimeoId, width, height, autoPlay);
384
+ } else if (playbackId) {
385
+ embedUrl = this.getStreamPlaybackUrl();
386
+ player = this.getStreamPlayer(embedUrl, width, height, autoPlay);
387
+ showLoading = true;
388
+ } else if (useVideoPlayer) {
389
+ embedUrl = source;
390
+ player = this.getVideoPlayer(embedUrl, width, height, autoPlay);
391
+ }
392
+ }
393
+
394
+ if (!player && isUrlLink) {
395
+ embedUrl = source;
396
+ player = this.getWebviewPlayer(embedUrl);
397
+ } // console.log({
398
+ // Streaming: embedUrl,
399
+ // Landscape: isLandscape,
400
+ // Loaded: playbackLoaded,
401
+ // Buffering: playbackBuffering,
402
+ // LoadingIndicator: showLoading,
403
+ // Width: width,
404
+ // Height: height,
405
+ // HeightFactor: heightFactor,
406
+ // });
407
+
408
+
409
+ return /*#__PURE__*/React.createElement(View, {
410
+ style: styles.container
411
+ }, player, showLoading && (!playbackLoaded || playbackBuffering) && /*#__PURE__*/React.createElement(View, {
412
+ style: styles.loadingContainer
413
+ }, /*#__PURE__*/React.createElement(Spinner, {
414
+ color: '#fff'
415
+ })));
416
+ }
417
+
418
+ }
419
+
420
+ const styles = StyleSheet.create({
421
+ container: {
422
+ backgroundColor: '#000',
423
+ alignItems: 'center',
424
+ justifyContent: 'center'
425
+ },
426
+ webView: {
427
+ flex: 1
428
+ },
429
+ loadingContainer: {
430
+ position: 'absolute',
431
+ top: 50,
432
+ left: 0,
433
+ right: 0,
434
+ bottom: 50,
435
+ justifyContent: 'center',
436
+ alignItems: 'center'
437
+ }
438
+ });
439
+ export default MediaPlayer;
440
+ //# sourceMappingURL=MediaPlayer.js.map