@plusscommunities/pluss-core-app 8.0.29 → 8.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/actions/FollowerActions.js +34 -0
- package/dist/module/actions/FollowerActions.js.map +1 -0
- package/dist/module/actions/MediaActions.js +29 -0
- package/dist/module/actions/MediaActions.js.map +1 -0
- package/dist/module/actions/ResidentActions.js +26 -0
- package/dist/module/actions/ResidentActions.js.map +1 -0
- package/dist/module/actions/UserActions.js +223 -0
- package/dist/module/actions/UserActions.js.map +1 -0
- package/dist/module/actions/UserSettingsActions.js +14 -0
- package/dist/module/actions/UserSettingsActions.js.map +1 -0
- package/dist/module/actions/index.js +6 -0
- package/dist/module/actions/index.js.map +1 -0
- package/dist/module/actions/types.js +17 -0
- package/dist/module/actions/types.js.map +1 -0
- package/dist/module/apis/analyticsActions.js +20 -0
- package/dist/module/apis/analyticsActions.js.map +1 -0
- package/dist/module/apis/contactActions.js +27 -0
- package/dist/module/apis/contactActions.js.map +1 -0
- package/dist/module/apis/eventActions.js +161 -0
- package/dist/module/apis/eventActions.js.map +1 -0
- package/dist/module/apis/fileActions.js +93 -0
- package/dist/module/apis/fileActions.js.map +1 -0
- package/dist/module/apis/followerActions.js +38 -0
- package/dist/module/apis/followerActions.js.map +1 -0
- package/dist/module/apis/index.js +13 -0
- package/dist/module/apis/index.js.map +1 -0
- package/dist/module/apis/notificationActions.js +60 -0
- package/dist/module/apis/notificationActions.js.map +1 -0
- package/dist/module/apis/profileActions.js +14 -0
- package/dist/module/apis/profileActions.js.map +1 -0
- package/dist/module/apis/reactionActions.js +76 -0
- package/dist/module/apis/reactionActions.js.map +1 -0
- package/dist/module/apis/settingActions.js +22 -0
- package/dist/module/apis/settingActions.js.map +1 -0
- package/dist/module/apis/stringActions.js +30 -0
- package/dist/module/apis/stringActions.js.map +1 -0
- package/dist/module/apis/typeActions.js +15 -0
- package/dist/module/apis/typeActions.js.map +1 -0
- package/dist/module/apis/userActions.js +104 -0
- package/dist/module/apis/userActions.js.map +1 -0
- package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
- package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
- package/dist/module/assets/icons/reactions/heart.png +0 -0
- package/dist/module/assets/icons/reactions/party.png +0 -0
- package/dist/module/assets/icons/reactions/sad.png +0 -0
- package/dist/module/assets/icons/reactions/smile.png +0 -0
- package/dist/module/colours.js +165 -0
- package/dist/module/colours.js.map +1 -0
- package/dist/module/components/AddButton.js +43 -0
- package/dist/module/components/AddButton.js.map +1 -0
- package/dist/module/components/AddToCalendarButton.js +225 -0
- package/dist/module/components/AddToCalendarButton.js.map +1 -0
- package/dist/module/components/Attachment.js +55 -0
- package/dist/module/components/Attachment.js.map +1 -0
- package/dist/module/components/AudienceSelectorLauncher.js +64 -0
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
- package/dist/module/components/AudienceSelectorPage.js +351 -0
- package/dist/module/components/AudienceSelectorPage.js.map +1 -0
- package/dist/module/components/AutoOffsetImage.js +184 -0
- package/dist/module/components/AutoOffsetImage.js.map +1 -0
- package/dist/module/components/BackButton.js +58 -0
- package/dist/module/components/BackButton.js.map +1 -0
- package/dist/module/components/CalendarPopup.js +126 -0
- package/dist/module/components/CalendarPopup.js.map +1 -0
- package/dist/module/components/CategoryTabs.js +155 -0
- package/dist/module/components/CategoryTabs.js.map +1 -0
- package/dist/module/components/CommentReply.js +334 -0
- package/dist/module/components/CommentReply.js.map +1 -0
- package/dist/module/components/CommentSection.js +823 -0
- package/dist/module/components/CommentSection.js.map +1 -0
- package/dist/module/components/ConfirmPopup.js +109 -0
- package/dist/module/components/ConfirmPopup.js.map +1 -0
- package/dist/module/components/ConfirmationPopup.js +72 -0
- package/dist/module/components/ConfirmationPopup.js.map +1 -0
- package/dist/module/components/DocumentUploader.js +253 -0
- package/dist/module/components/DocumentUploader.js.map +1 -0
- package/dist/module/components/DropDownItem.js +75 -0
- package/dist/module/components/DropDownItem.js.map +1 -0
- package/dist/module/components/DropDownMenu.js +41 -0
- package/dist/module/components/DropDownMenu.js.map +1 -0
- package/dist/module/components/EmptyStateMain.js +51 -0
- package/dist/module/components/EmptyStateMain.js.map +1 -0
- package/dist/module/components/EmptyStateWidget.js +48 -0
- package/dist/module/components/EmptyStateWidget.js.map +1 -0
- package/dist/module/components/FontScaleButton.js +37 -0
- package/dist/module/components/FontScaleButton.js.map +1 -0
- package/dist/module/components/FontScalePopup.js +76 -0
- package/dist/module/components/FontScalePopup.js.map +1 -0
- package/dist/module/components/Forbidden.js +58 -0
- package/dist/module/components/Forbidden.js.map +1 -0
- package/dist/module/components/FormCard.js +25 -0
- package/dist/module/components/FormCard.js.map +1 -0
- package/dist/module/components/FormCardSection.js +214 -0
- package/dist/module/components/FormCardSection.js.map +1 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js +73 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
- package/dist/module/components/FormattedText.js +133 -0
- package/dist/module/components/FormattedText.js.map +1 -0
- package/dist/module/components/GenericInput.js +151 -0
- package/dist/module/components/GenericInput.js.map +1 -0
- package/dist/module/components/GenericInputSection.js +173 -0
- package/dist/module/components/GenericInputSection.js.map +1 -0
- package/dist/module/components/Header.js +459 -0
- package/dist/module/components/Header.js.map +1 -0
- package/dist/module/components/Icon.js +109 -0
- package/dist/module/components/Icon.js.map +1 -0
- package/dist/module/components/ImagePopup.js +400 -0
- package/dist/module/components/ImagePopup.js.map +1 -0
- package/dist/module/components/ImageUploadProgress.js +69 -0
- package/dist/module/components/ImageUploadProgress.js.map +1 -0
- package/dist/module/components/ImageUploader.js +831 -0
- package/dist/module/components/ImageUploader.js.map +1 -0
- package/dist/module/components/InlineButton.js +66 -0
- package/dist/module/components/InlineButton.js.map +1 -0
- package/dist/module/components/Input.js +156 -0
- package/dist/module/components/Input.js.map +1 -0
- package/dist/module/components/LoadingCircles.js +219 -0
- package/dist/module/components/LoadingCircles.js.map +1 -0
- package/dist/module/components/LoadingIndicator.js +86 -0
- package/dist/module/components/LoadingIndicator.js.map +1 -0
- package/dist/module/components/LoadingStateWidget.js +46 -0
- package/dist/module/components/LoadingStateWidget.js.map +1 -0
- package/dist/module/components/MediaPlayer.js +407 -0
- package/dist/module/components/MediaPlayer.js.map +1 -0
- package/dist/module/components/MiddlePopup.js +49 -0
- package/dist/module/components/MiddlePopup.js.map +1 -0
- package/dist/module/components/PDFPopup.js +296 -0
- package/dist/module/components/PDFPopup.js.map +1 -0
- package/dist/module/components/PlussChat.js +1078 -0
- package/dist/module/components/PlussChat.js.map +1 -0
- package/dist/module/components/PlussChatMessage.js +299 -0
- package/dist/module/components/PlussChatMessage.js.map +1 -0
- package/dist/module/components/PlussChatTime.js +59 -0
- package/dist/module/components/PlussChatTime.js.map +1 -0
- package/dist/module/components/Popup.js +126 -0
- package/dist/module/components/Popup.js.map +1 -0
- package/dist/module/components/PopupMenu.js +120 -0
- package/dist/module/components/PopupMenu.js.map +1 -0
- package/dist/module/components/PositionedImage.js +313 -0
- package/dist/module/components/PositionedImage.js.map +1 -0
- package/dist/module/components/ProfilePic.js +105 -0
- package/dist/module/components/ProfilePic.js.map +1 -0
- package/dist/module/components/RadioButton.js +78 -0
- package/dist/module/components/RadioButton.js.map +1 -0
- package/dist/module/components/Reaction.js +117 -0
- package/dist/module/components/Reaction.js.map +1 -0
- package/dist/module/components/Reactions.js +71 -0
- package/dist/module/components/Reactions.js.map +1 -0
- package/dist/module/components/SharingTools.js +189 -0
- package/dist/module/components/SharingTools.js.map +1 -0
- package/dist/module/components/Spinner.js +22 -0
- package/dist/module/components/Spinner.js.map +1 -0
- package/dist/module/components/StickyFooter.js +34 -0
- package/dist/module/components/StickyFooter.js.map +1 -0
- package/dist/module/components/Text.js +57 -0
- package/dist/module/components/Text.js.map +1 -0
- package/dist/module/components/TickIcon.js +24 -0
- package/dist/module/components/TickIcon.js.map +1 -0
- package/dist/module/components/Toggle.js +66 -0
- package/dist/module/components/Toggle.js.map +1 -0
- package/dist/module/components/TouchableSearchBar.js +68 -0
- package/dist/module/components/TouchableSearchBar.js.map +1 -0
- package/dist/module/components/UserListPopup.js +136 -0
- package/dist/module/components/UserListPopup.js.map +1 -0
- package/dist/module/components/UserListing.js +268 -0
- package/dist/module/components/UserListing.js.map +1 -0
- package/dist/module/components/VideoPopup.js +113 -0
- package/dist/module/components/VideoPopup.js.map +1 -0
- package/dist/module/components/WarningPopup.js +85 -0
- package/dist/module/components/WarningPopup.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +289 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +117 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
- package/dist/module/components/index.js +60 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +422 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +387 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
- package/dist/module/config.js +27 -0
- package/dist/module/config.js.map +1 -0
- package/dist/module/constants.js +18 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/helper.js +424 -0
- package/dist/module/helper.js.map +1 -0
- package/dist/module/index.js +13 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/js/images/detectFaces.js +31 -0
- package/dist/module/js/images/detectFaces.js.map +1 -0
- package/dist/module/js/images/findLandmarkRange.js +93 -0
- package/dist/module/js/images/findLandmarkRange.js.map +1 -0
- package/dist/module/js/images/getScaledOffset.js +81 -0
- package/dist/module/js/images/getScaledOffset.js.map +1 -0
- package/dist/module/js/site/getSiteLevelFromState.js +29 -0
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -0
- package/dist/module/js/site/isTVEnabled.js +10 -0
- package/dist/module/js/site/isTVEnabled.js.map +1 -0
- package/dist/module/session.js +58 -0
- package/dist/module/session.js.map +1 -0
- package/dist/module/styles.js +67 -0
- package/dist/module/styles.js.map +1 -0
- package/dist/module/withNavigationFocus.js +30 -0
- package/dist/module/withNavigationFocus.js.map +1 -0
- package/package.json +1 -1
- package/src/components/PDFPopup.js +130 -35
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","Animated","connect","getMainBrandingColourFromState","LoadingCircles","constructor","args","_defineProperty","animatedSize","Value","animatedOpacity","animatedSize2","animatedOpacity2","animatedSize3","animatedOpacity3","animatedSize4","animatedOpacity4","animatedSize5","animatedOpacity5","componentDidMount","animate","sequence","parallel","timing","state","toValue","duration","useNativeDriver","delay","start","render","createElement","style","styles","container","absolute","circle","borderColor","props","color","colourBrandingMain","width","height","opacity","alignItems","justifyContent","borderRadius","borderWidth","position","top","left","right","bottom","mapStateToProps","loadingCircles"],"sources":["LoadingCircles.js"],"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\tstate = {\n\t\tanimatedSize: new Animated.Value(1),\n\t\tanimatedOpacity: new Animated.Value(0),\n\t\tanimatedSize2: new Animated.Value(1),\n\t\tanimatedOpacity2: new Animated.Value(0),\n\t\tanimatedSize3: new Animated.Value(1),\n\t\tanimatedOpacity3: new Animated.Value(0),\n\t\tanimatedSize4: new Animated.Value(1),\n\t\tanimatedOpacity4: new Animated.Value(0),\n\t\tanimatedSize5: new Animated.Value(1),\n\t\tanimatedOpacity5: new Animated.Value(0),\n\t};\n\n\t/* 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\tcomponentDidMount() {\n\t\tthis.animate();\n\t\t/* setTimeout(() => {\n this.animate2();\n }, 150);\n setTimeout(() => {\n this.animate3();\n }, 300); */\n\t}\n\n\tanimate() {\n\t\tAnimated.sequence([\n\t\t\tAnimated.parallel([\n\t\t\t\tAnimated.timing(this.state.animatedSize, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize2, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 150,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity2, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 150,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize3, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 300,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity3, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 400,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize4, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 450,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity4, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 450,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize5, {\n\t\t\t\t\ttoValue: 20,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 600,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity5, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 900,\n\t\t\t\t\tdelay: 600,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t]),\n\n\t\t\tAnimated.parallel([\n\t\t\t\tAnimated.timing(this.state.animatedOpacity, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity2, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity3, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity4, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedOpacity5, {\n\t\t\t\t\ttoValue: 0,\n\t\t\t\t\tduration: 500,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t]),\n\n\t\t\tAnimated.parallel([\n\t\t\t\tAnimated.timing(this.state.animatedSize, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize2, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize3, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize4, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t\tAnimated.timing(this.state.animatedSize5, {\n\t\t\t\t\ttoValue: 1,\n\t\t\t\t\tduration: 1,\n\t\t\t\t\tuseNativeDriver: false,\n\t\t\t\t}),\n\t\t\t]),\n\t\t]).start(() => {\n\t\t\tthis.animate();\n\t\t});\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize2,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize2,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity2,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize3,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize3,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity3,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize4,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize4,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity4,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<View style={[styles.container, styles.absolute]}>\n\t\t\t\t\t<Animated.View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.circle,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tborderColor: this.props.color || this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\twidth: this.state.animatedSize5,\n\t\t\t\t\t\t\t\theight: this.state.animatedSize5,\n\t\t\t\t\t\t\t\topacity: this.state.animatedOpacity5,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\twidth: 30,\n\t\theight: 30,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tcircle: {\n\t\tborderRadius: 15,\n\t\tborderWidth: 1,\n\t},\n\tabsolute: {\n\t\tposition: \"absolute\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 0,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst loadingCircles = connect(mapStateToProps, {})(LoadingCircles);\nexport { loadingCircles as LoadingCircles };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7C,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,8BAA8B,QAAQ,YAAY;;AAE3D;AACA;AACA;AACA;;AAEA,MAAMC,cAAc,SAASL,SAAS,CAAC;EAAAM,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,gBAC9B;MACPC,YAAY,EAAE,IAAIP,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACnCC,eAAe,EAAE,IAAIT,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACtCE,aAAa,EAAE,IAAIV,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACpCG,gBAAgB,EAAE,IAAIX,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACvCI,aAAa,EAAE,IAAIZ,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;MACpCK,gBAAgB,EAAE,IAAIb,QAAQ,CAACQ,KAAK,CAAC,CAAC,CAAC;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,CACI,CAAC,eACPlB,KAAA,CAAAiC,aAAA,CAAC/B,IAAI;MAACgC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAED,MAAM,CAACE,QAAQ;IAAE,gBAChDrC,KAAA,CAAAiC,aAAA,CAAC9B,QAAQ,CAACD,IAAI;MACbgC,KAAK,EAAE,CACNC,MAAM,CAACG,MAAM,EACb;QACCC,WAAW,EAAE,IAAI,CAACC,KAAK,CAACC,KAAK,IAAI,IAAI,CAACD,KAAK,CAACE,kBAAkB;QAC9DC,KAAK,EAAE,IAAI,CAACjB,KAAK,CAACP,aAAa;QAC/ByB,MAAM,EAAE,IAAI,CAAClB,KAAK,CAACP,aAAa;QAChC0B,OAAO,EAAE,IAAI,CAACnB,KAAK,CAACN;MACrB,CAAC;IACA,CACF,CACI,CACD,CAAC;EAET;AACD;AAEA,MAAMe,MAAM,GAAG;EACdC,SAAS,EAAE;IACVO,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVE,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EACjB,CAAC;EACDT,MAAM,EAAE;IACPU,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE;EACd,CAAC;EACDZ,QAAQ,EAAE;IACTa,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACT;AACD,CAAC;AAED,MAAMC,eAAe,GAAI7B,KAAK,IAAK;EAClC,OAAO;IACNgB,kBAAkB,EAAErC,8BAA8B,CAACqB,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAM8B,cAAc,GAAGpD,OAAO,CAACmD,eAAe,EAAE,CAAC,CAAC,CAAC,CAACjD,cAAc,CAAC;AACnE,SAASkD,cAAc,IAAIlD,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
|
+
import React, { Component } from "react";
|
|
5
|
+
import { StyleSheet, Animated, Dimensions } from "react-native";
|
|
6
|
+
import { connect } from "react-redux";
|
|
7
|
+
import { getMainBrandingColourFromState } from "../colours";
|
|
8
|
+
const DEFAULT_HEIGHT = 4;
|
|
9
|
+
const DEFAULT_WIDTH = Dimensions.get("window").width;
|
|
10
|
+
class LoadingIndicator extends Component {
|
|
11
|
+
constructor(props) {
|
|
12
|
+
super(props);
|
|
13
|
+
_defineProperty(this, "animate", () => {
|
|
14
|
+
Animated.sequence([Animated.timing(this.state.animatedLeft, {
|
|
15
|
+
toValue: DEFAULT_WIDTH,
|
|
16
|
+
duration: 1500,
|
|
17
|
+
useNativeDriver: false
|
|
18
|
+
}), Animated.delay(500), Animated.timing(this.state.animatedLeft, {
|
|
19
|
+
toValue: -DEFAULT_WIDTH,
|
|
20
|
+
duration: 1500,
|
|
21
|
+
useNativeDriver: false
|
|
22
|
+
}), Animated.delay(500)]).start(() => {
|
|
23
|
+
this.animate();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
this.state = {
|
|
27
|
+
animatedLeft: new Animated.Value(-DEFAULT_WIDTH),
|
|
28
|
+
animatedOpacity: new Animated.Value(0)
|
|
29
|
+
};
|
|
30
|
+
this.height = 0;
|
|
31
|
+
}
|
|
32
|
+
componentDidMount() {
|
|
33
|
+
this.animate();
|
|
34
|
+
}
|
|
35
|
+
getSnapshotBeforeUpdate(prevProps) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
componentDidUpdate(prevProps) {
|
|
39
|
+
if (prevProps.visible !== this.props.visible) {
|
|
40
|
+
Animated.timing(this.state.animatedOpacity, {
|
|
41
|
+
toValue: this.props.visible ? 0.8 : 0,
|
|
42
|
+
duration: 300,
|
|
43
|
+
useNativeDriver: false
|
|
44
|
+
}).start();
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
render() {
|
|
48
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
49
|
+
style: [styles.container, this.props.style, {
|
|
50
|
+
height: DEFAULT_HEIGHT,
|
|
51
|
+
opacity: this.state.animatedOpacity
|
|
52
|
+
}],
|
|
53
|
+
onLayout: this.onLayout
|
|
54
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
55
|
+
style: [styles.line, {
|
|
56
|
+
backgroundColor: this.props.colourBrandingMain,
|
|
57
|
+
left: this.state.animatedLeft,
|
|
58
|
+
height: DEFAULT_HEIGHT
|
|
59
|
+
}]
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const styles = StyleSheet.create({
|
|
64
|
+
container: {
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
overflow: "hidden",
|
|
68
|
+
backgroundColor: "#fff",
|
|
69
|
+
width: "100%",
|
|
70
|
+
height: 38
|
|
71
|
+
},
|
|
72
|
+
innerContainer: {
|
|
73
|
+
flexDirection: "row"
|
|
74
|
+
},
|
|
75
|
+
line: {
|
|
76
|
+
width: DEFAULT_WIDTH
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
const mapStateToProps = state => {
|
|
80
|
+
return {
|
|
81
|
+
colourBrandingMain: getMainBrandingColourFromState(state)
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export default connect(mapStateToProps, {})(LoadingIndicator);
|
|
85
|
+
// export { loadingIndicator as Default };
|
|
86
|
+
//# sourceMappingURL=LoadingIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","StyleSheet","Animated","Dimensions","connect","getMainBrandingColourFromState","DEFAULT_HEIGHT","DEFAULT_WIDTH","get","width","LoadingIndicator","constructor","props","_defineProperty","sequence","timing","state","animatedLeft","toValue","duration","useNativeDriver","delay","start","animate","Value","animatedOpacity","height","componentDidMount","getSnapshotBeforeUpdate","prevProps","componentDidUpdate","visible","render","createElement","View","style","styles","container","opacity","onLayout","line","backgroundColor","colourBrandingMain","left","create","alignItems","justifyContent","overflow","innerContainer","flexDirection","mapStateToProps"],"sources":["LoadingIndicator.js"],"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\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tanimatedLeft: new Animated.Value(-DEFAULT_WIDTH),\n\t\t\tanimatedOpacity: new Animated.Value(0),\n\t\t};\n\t\tthis.height = 0;\n\t}\n\n\tcomponentDidMount() {\n\t\tthis.animate();\n\t}\n\n\tgetSnapshotBeforeUpdate(prevProps) {\n\t\treturn null;\n\t}\n\n\tcomponentDidUpdate(prevProps) {\n\t\tif (prevProps.visible !== this.props.visible) {\n\t\t\tAnimated.timing(this.state.animatedOpacity, {\n\t\t\t\ttoValue: this.props.visible ? 0.8 : 0,\n\t\t\t\tduration: 300,\n\t\t\t\tuseNativeDriver: false,\n\t\t\t}).start();\n\t\t}\n\t}\n\n\tanimate = () => {\n\t\tAnimated.sequence([\n\t\t\tAnimated.timing(this.state.animatedLeft, {\n\t\t\t\ttoValue: DEFAULT_WIDTH,\n\t\t\t\tduration: 1500,\n\t\t\t\tuseNativeDriver: false,\n\t\t\t}),\n\t\t\tAnimated.delay(500),\n\t\t\tAnimated.timing(this.state.animatedLeft, {\n\t\t\t\ttoValue: -DEFAULT_WIDTH,\n\t\t\t\tduration: 1500,\n\t\t\t\tuseNativeDriver: false,\n\t\t\t}),\n\t\t\tAnimated.delay(500),\n\t\t]).start(() => {\n\t\t\tthis.animate();\n\t\t});\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<Animated.View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.container,\n\t\t\t\t\tthis.props.style,\n\t\t\t\t\t{ height: DEFAULT_HEIGHT, opacity: this.state.animatedOpacity },\n\t\t\t\t]}\n\t\t\t\tonLayout={this.onLayout}\n\t\t\t>\n\t\t\t\t<Animated.View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.line,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\tleft: this.state.animatedLeft,\n\t\t\t\t\t\t\theight: DEFAULT_HEIGHT,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t/>\n\t\t\t</Animated.View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\toverflow: \"hidden\",\n\t\tbackgroundColor: \"#fff\",\n\t\twidth: \"100%\",\n\t\theight: 38,\n\t},\n\tinnerContainer: {\n\t\tflexDirection: \"row\",\n\t},\n\tline: {\n\t\twidth: DEFAULT_WIDTH,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nexport default connect(mapStateToProps, {})(LoadingIndicator);\n// export { loadingIndicator as Default };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,UAAU,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAC/D,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,8BAA8B,QAAQ,YAAY;A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C,OAAO;IACN0B,kBAAkB,EAAErC,8BAA8B,CAACW,KAAK;EACzD,CAAC;AACF,CAAC;AAED,eAAeZ,OAAO,CAAC8C,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxC,gBAAgB,CAAC;AAC7D","ignoreList":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { PureComponent } from "react";
|
|
2
|
+
import { View, ScrollView, StyleSheet } from "react-native";
|
|
3
|
+
import { TEXT_BLUEGREY } from "../colours";
|
|
4
|
+
class LoadingStateWidget extends PureComponent {
|
|
5
|
+
renderPlaceHolder(opacity = 1) {
|
|
6
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
7
|
+
style: [styles.item, {
|
|
8
|
+
opacity,
|
|
9
|
+
height: this.props.height - 20
|
|
10
|
+
}]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
15
|
+
style: [styles.container, this.props.height && {
|
|
16
|
+
height: this.props.height
|
|
17
|
+
}, this.props.style]
|
|
18
|
+
}, /*#__PURE__*/React.createElement(ScrollView, {
|
|
19
|
+
horizontal: true,
|
|
20
|
+
style: styles.itemContainer
|
|
21
|
+
}, this.renderPlaceHolder(0.8), this.renderPlaceHolder(0.6), this.renderPlaceHolder(0.4), this.renderPlaceHolder(0.2)));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
const styles = StyleSheet.create({
|
|
25
|
+
container: {
|
|
26
|
+
borderRadius: 5,
|
|
27
|
+
paddingVertical: 5
|
|
28
|
+
},
|
|
29
|
+
titleText: {
|
|
30
|
+
fontFamily: "qs-bold",
|
|
31
|
+
fontSize: 16,
|
|
32
|
+
color: TEXT_BLUEGREY
|
|
33
|
+
},
|
|
34
|
+
itemContainer: {
|
|
35
|
+
marginTop: 20
|
|
36
|
+
},
|
|
37
|
+
item: {
|
|
38
|
+
borderRadius: 4,
|
|
39
|
+
width: 97,
|
|
40
|
+
height: 98,
|
|
41
|
+
backgroundColor: "#e6ebef",
|
|
42
|
+
marginRight: 16
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export default LoadingStateWidget;
|
|
46
|
+
//# sourceMappingURL=LoadingStateWidget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","PureComponent","View","ScrollView","StyleSheet","TEXT_BLUEGREY","LoadingStateWidget","renderPlaceHolder","opacity","createElement","style","styles","item","height","props","render","container","horizontal","itemContainer","create","borderRadius","paddingVertical","titleText","fontFamily","fontSize","color","marginTop","width","backgroundColor","marginRight"],"sources":["LoadingStateWidget.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, ScrollView, StyleSheet } from \"react-native\";\nimport { TEXT_BLUEGREY } from \"../colours\";\n\nclass LoadingStateWidget extends PureComponent {\n\trenderPlaceHolder(opacity = 1) {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[styles.item, { opacity, height: this.props.height - 20 }]}\n\t\t\t/>\n\t\t);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.container,\n\t\t\t\t\tthis.props.height && { height: this.props.height },\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<ScrollView horizontal style={styles.itemContainer}>\n\t\t\t\t\t{this.renderPlaceHolder(0.8)}\n\t\t\t\t\t{this.renderPlaceHolder(0.6)}\n\t\t\t\t\t{this.renderPlaceHolder(0.4)}\n\t\t\t\t\t{this.renderPlaceHolder(0.2)}\n\t\t\t\t</ScrollView>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tborderRadius: 5,\n\t\tpaddingVertical: 5,\n\t},\n\ttitleText: {\n\t\tfontFamily: \"qs-bold\",\n\t\tfontSize: 16,\n\t\tcolor: TEXT_BLUEGREY,\n\t},\n\titemContainer: {\n\t\tmarginTop: 20,\n\t},\n\titem: {\n\t\tborderRadius: 4,\n\t\twidth: 97,\n\t\theight: 98,\n\t\tbackgroundColor: \"#e6ebef\",\n\t\tmarginRight: 16,\n\t},\n});\n\nexport default LoadingStateWidget;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,aAAa,QAAQ,YAAY;AAE1C,MAAMC,kBAAkB,SAASL,aAAa,CAAC;EAC9CM,iBAAiBA,CAACC,OAAO,GAAG,CAAC,EAAE;IAC9B,oBACCR,KAAA,CAAAS,aAAA,CAACP,IAAI;MACJQ,KAAK,EAAE,CAACC,MAAM,CAACC,IAAI,EAAE;QAAEJ,OAAO;QAAEK,MAAM,EAAE,IAAI,CAACC,KAAK,CAACD,MAAM,GAAG;MAAG,CAAC;IAAE,CAClE,CAAC;EAEJ;EAEAE,MAAMA,CAAA,EAAG;IACR,oBACCf,KAAA,CAAAS,aAAA,CAACP,IAAI;MACJQ,KAAK,EAAE,CACNC,MAAM,CAACK,SAAS,EAChB,IAAI,CAACF,KAAK,CAACD,MAAM,IAAI;QAAEA,MAAM,EAAE,IAAI,CAACC,KAAK,CAACD;MAAO,CAAC,EAClD,IAAI,CAACC,KAAK,CAACJ,KAAK;IACf,gBAEFV,KAAA,CAAAS,aAAA,CAACN,UAAU;MAACc,UAAU;MAACP,KAAK,EAAEC,MAAM,CAACO;IAAc,GACjD,IAAI,CAACX,iBAAiB,CAAC,GAAG,CAAC,EAC3B,IAAI,CAACA,iBAAiB,CAAC,GAAG,CAAC,EAC3B,IAAI,CAACA,iBAAiB,CAAC,GAAG,CAAC,EAC3B,IAAI,CAACA,iBAAiB,CAAC,GAAG,CAChB,CACP,CAAC;EAET;AACD;AAEA,MAAMI,MAAM,GAAGP,UAAU,CAACe,MAAM,CAAC;EAChCH,SAAS,EAAE;IACVI,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE;EAClB,CAAC;EACDC,SAAS,EAAE;IACVC,UAAU,EAAE,SAAS;IACrBC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEpB;EACR,CAAC;EACDa,aAAa,EAAE;IACdQ,SAAS,EAAE;EACZ,CAAC;EACDd,IAAI,EAAE;IACLQ,YAAY,EAAE,CAAC;IACfO,KAAK,EAAE,EAAE;IACTd,MAAM,EAAE,EAAE;IACVe,eAAe,EAAE,SAAS;IAC1BC,WAAW,EAAE;EACd;AACD,CAAC,CAAC;AAEF,eAAevB,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
+
import React, { Component } from "react";
|
|
6
|
+
import { View, StyleSheet, Dimensions } from "react-native";
|
|
7
|
+
import YoutubePlayer, { getYoutubeMeta } from "react-native-youtube-iframe";
|
|
8
|
+
import { Vimeo } from "react-native-vimeo-iframe";
|
|
9
|
+
import { WebView } from "react-native-webview";
|
|
10
|
+
import { Video, ResizeMode } from "expo-av";
|
|
11
|
+
import { Spinner } from "./Spinner";
|
|
12
|
+
const SCREEN_HEIGHT = Dimensions.get("window").height;
|
|
13
|
+
const SCREEN_WIDTH = Dimensions.get("window").width;
|
|
14
|
+
const EXPO_VIDEO_PROPS = {
|
|
15
|
+
rate: 1,
|
|
16
|
+
isMuted: false,
|
|
17
|
+
volume: 1
|
|
18
|
+
};
|
|
19
|
+
const RETRY_RECOVER = 30000;
|
|
20
|
+
const RETRY_LOADING = 10000;
|
|
21
|
+
class MediaPlayer extends Component {
|
|
22
|
+
constructor(props) {
|
|
23
|
+
super(props);
|
|
24
|
+
_defineProperty(this, "componentDidMount", async () => {
|
|
25
|
+
await this.setupForPlaying();
|
|
26
|
+
});
|
|
27
|
+
_defineProperty(this, "componentWillUnmount", () => {
|
|
28
|
+
if (this.checkStreamLoaded) clearInterval(this.checkStreamLoaded);
|
|
29
|
+
});
|
|
30
|
+
_defineProperty(this, "getYoutubeVideoId", url => {
|
|
31
|
+
url = url.replace(/(>|<)/gi, "").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
|
|
32
|
+
if (url[2] !== undefined) {
|
|
33
|
+
const ids = url[2].split(/[^0-9a-z_\-]/i);
|
|
34
|
+
return ids[0];
|
|
35
|
+
} else {
|
|
36
|
+
return "";
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
_defineProperty(this, "getVimeoId", url => {
|
|
40
|
+
const result = url.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i);
|
|
41
|
+
return result[1];
|
|
42
|
+
});
|
|
43
|
+
_defineProperty(this, "setupForPlaying", async () => {
|
|
44
|
+
// Extract live stream info
|
|
45
|
+
const {
|
|
46
|
+
source,
|
|
47
|
+
useVideoPlayer
|
|
48
|
+
} = this.props;
|
|
49
|
+
const isUrlLink = source && source.startsWith("http");
|
|
50
|
+
const isYoutube = source && (source.includes("youtube.com/watch?v=") || source.includes("youtu.be/"));
|
|
51
|
+
const isVimeo = source && source.includes("vimeo.com/");
|
|
52
|
+
let heightFactor = 0;
|
|
53
|
+
if (isYoutube) {
|
|
54
|
+
const metadata = await getYoutubeMeta(this.getYoutubeVideoId(source));
|
|
55
|
+
heightFactor = metadata.height / metadata.width;
|
|
56
|
+
} else if (useVideoPlayer) {
|
|
57
|
+
heightFactor = 0;
|
|
58
|
+
} else {
|
|
59
|
+
heightFactor = 0.565;
|
|
60
|
+
}
|
|
61
|
+
this.setState({
|
|
62
|
+
isUrlLink,
|
|
63
|
+
isYoutube,
|
|
64
|
+
isVimeo,
|
|
65
|
+
playbackLoaded: isYoutube || isVimeo,
|
|
66
|
+
heightFactor,
|
|
67
|
+
readyToRender: true
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
_defineProperty(this, "getStreamPlaybackUrl", () => {
|
|
71
|
+
// return 'https://stream.mux.com/Ym4nKktRpGuZNBBBlzhxpyRwZLpvMlPRchcu01x6Ur600.m3u8';
|
|
72
|
+
return `https://stream.mux.com/${this.props.playbackId}.m3u8`;
|
|
73
|
+
});
|
|
74
|
+
_defineProperty(this, "checkReloadStream", (wait = RETRY_LOADING, force = false) => {
|
|
75
|
+
if (!force && this.retryLoading) return;
|
|
76
|
+
console.log(`Check loading in ${wait} milliseconds...`);
|
|
77
|
+
this.retryLoading = true;
|
|
78
|
+
setTimeout(async () => {
|
|
79
|
+
const {
|
|
80
|
+
playbackLoaded,
|
|
81
|
+
playbackBuffering
|
|
82
|
+
} = this.state;
|
|
83
|
+
try {
|
|
84
|
+
if (playbackLoaded === false || playbackBuffering === true) {
|
|
85
|
+
console.log("Reloading started");
|
|
86
|
+
await this.videoPlayer.loadAsync({
|
|
87
|
+
uri: this.getStreamPlaybackUrl(),
|
|
88
|
+
overrideFileExtensionAndroid: "m3u8"
|
|
89
|
+
}, EXPO_VIDEO_PROPS, false);
|
|
90
|
+
} else {
|
|
91
|
+
console.log("Already loaded - not reloading");
|
|
92
|
+
}
|
|
93
|
+
this.retryLoading = false;
|
|
94
|
+
} catch {}
|
|
95
|
+
}, wait);
|
|
96
|
+
});
|
|
97
|
+
_defineProperty(this, "isLandscape", deviceRotation => {
|
|
98
|
+
const {
|
|
99
|
+
beta,
|
|
100
|
+
gamma
|
|
101
|
+
} = deviceRotation;
|
|
102
|
+
const absGamma = Math.abs(gamma);
|
|
103
|
+
const absBeta = Math.abs(beta);
|
|
104
|
+
const isGammaNegative = Math.sign(gamma) === -1;
|
|
105
|
+
if (absGamma <= 0.04 && absBeta <= 0.24) {
|
|
106
|
+
//Portrait mode, on a flat surface.
|
|
107
|
+
return false;
|
|
108
|
+
} else if ((absGamma <= 1.0 || absGamma >= 2.3) && absBeta >= 0.5) {
|
|
109
|
+
//General Portrait mode, accounting for forward and back tilt on the top of the phone.
|
|
110
|
+
return false;
|
|
111
|
+
} else {
|
|
112
|
+
if (isGammaNegative) {
|
|
113
|
+
//Landscape mode with the top of the phone to the left.
|
|
114
|
+
return true;
|
|
115
|
+
} else {
|
|
116
|
+
//Landscape mode with the top of the phone to the right.
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
_defineProperty(this, "onMotionChange", async changeEvent => {
|
|
122
|
+
const deviceRotation = changeEvent.rotation;
|
|
123
|
+
const deviceOrientation = changeEvent.orientation;
|
|
124
|
+
const isLandscape = this.isLandscape(deviceRotation);
|
|
125
|
+
this.orientationQueue.push(isLandscape);
|
|
126
|
+
if (this.orientationQueue.length > 2) this.orientationQueue = this.orientationQueue.slice(-2);
|
|
127
|
+
// console.log('onMotionChange - orientationQueue', this.orientationQueue);
|
|
128
|
+
if (isLandscape !== this.state.isLandscape && isLandscape === (Math.abs(deviceOrientation) === 90) && this.orientationQueue.every(i => i === isLandscape)) {
|
|
129
|
+
this.setState({
|
|
130
|
+
isLandscape
|
|
131
|
+
}, () => {
|
|
132
|
+
// console.log('isLandscape', this.state.isLandscape);
|
|
133
|
+
if (this.props.orientationChanged) this.props.orientationChanged(this.state.isLandscape);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
_defineProperty(this, "onStreamLoadStart", () => {
|
|
138
|
+
console.log("Stream load started");
|
|
139
|
+
this.checkStreamLoaded = setInterval(() => {
|
|
140
|
+
const {
|
|
141
|
+
playbackLoaded
|
|
142
|
+
} = this.state;
|
|
143
|
+
if (playbackLoaded === false) {
|
|
144
|
+
console.log("Stream loading failed unexpectedly");
|
|
145
|
+
this.checkReloadStream(1000, true);
|
|
146
|
+
} else {
|
|
147
|
+
clearInterval(this.checkStreamLoaded);
|
|
148
|
+
}
|
|
149
|
+
}, RETRY_RECOVER);
|
|
150
|
+
});
|
|
151
|
+
_defineProperty(this, "onStreamLoaded", status => {
|
|
152
|
+
console.log(`Stream loaded - isLoaded:${status.isLoaded}, isBuffering:${status.isBuffering}, isPlaying:${status.isPlaying}`);
|
|
153
|
+
});
|
|
154
|
+
_defineProperty(this, "onStreamError", error => {
|
|
155
|
+
console.log("Stream error", error);
|
|
156
|
+
});
|
|
157
|
+
_defineProperty(this, "onStreamStatusUpdate", status => {
|
|
158
|
+
this.setState({
|
|
159
|
+
playbackLoaded: status.isLoaded,
|
|
160
|
+
playbackBuffering: status.isBuffering,
|
|
161
|
+
playbackPlaying: status.isPlaying
|
|
162
|
+
}, () => {
|
|
163
|
+
const {
|
|
164
|
+
playbackLoaded,
|
|
165
|
+
playbackBuffering,
|
|
166
|
+
playbackPlaying,
|
|
167
|
+
shouldPlay
|
|
168
|
+
} = this.state;
|
|
169
|
+
// console.log(`Status updated - isLoaded:${playbackLoaded}, isBuffering:${playbackBuffering}, isPlaying:${playbackPlaying}`);
|
|
170
|
+
if (playbackLoaded === false && playbackBuffering === undefined && playbackPlaying === undefined) {
|
|
171
|
+
this.checkReloadStream();
|
|
172
|
+
} else if (playbackLoaded === true && playbackBuffering === true) {
|
|
173
|
+
this.checkReloadStream(RETRY_RECOVER);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
_defineProperty(this, "onYoutubeError", e => {
|
|
178
|
+
// console.log('onYoutubeError', e);
|
|
179
|
+
this.setState({
|
|
180
|
+
forceWebview: true
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
_defineProperty(this, "onYoutubeReady", () => {
|
|
184
|
+
// console.log('onYoutubeReady');
|
|
185
|
+
});
|
|
186
|
+
_defineProperty(this, "onVideoPlayStatusUpdate", status => {
|
|
187
|
+
// console.log('onVideoPlayStatusUpdate', status);
|
|
188
|
+
});
|
|
189
|
+
_defineProperty(this, "onVideoPlayError", error => {
|
|
190
|
+
if (error && error.type === "NonFatal") {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
// console.log('onVideoPlayError', error);
|
|
194
|
+
this.setState({
|
|
195
|
+
forceWebview: true
|
|
196
|
+
});
|
|
197
|
+
});
|
|
198
|
+
_defineProperty(this, "getYoutubePlayer", (youtubeId, width, height, autoPlay) => /*#__PURE__*/React.createElement(YoutubePlayer, {
|
|
199
|
+
ref: ref => this.youtubePlayer = ref,
|
|
200
|
+
height: height,
|
|
201
|
+
width: width,
|
|
202
|
+
videoId: youtubeId,
|
|
203
|
+
play: autoPlay
|
|
204
|
+
// onChangeState={event => console.log('onChangeState', event)}
|
|
205
|
+
,
|
|
206
|
+
onReady: this.onYoutubeReady,
|
|
207
|
+
onError: this.onYoutubeError
|
|
208
|
+
// onPlaybackQualityChange={q => console.log('onPlaybackQualityChange', q)}
|
|
209
|
+
,
|
|
210
|
+
volume: 50,
|
|
211
|
+
playbackRate: 1,
|
|
212
|
+
playerParams: {
|
|
213
|
+
cc_lang_pref: "us",
|
|
214
|
+
showClosedCaptions: true
|
|
215
|
+
}
|
|
216
|
+
}));
|
|
217
|
+
_defineProperty(this, "getVimeoPlayer", (vimeoId, width, height, autoPlay) => /*#__PURE__*/React.createElement(View, {
|
|
218
|
+
style: {
|
|
219
|
+
width,
|
|
220
|
+
height
|
|
221
|
+
}
|
|
222
|
+
}, /*#__PURE__*/React.createElement(Vimeo, {
|
|
223
|
+
style: {
|
|
224
|
+
marginLeft: -8,
|
|
225
|
+
marginRight: -5
|
|
226
|
+
},
|
|
227
|
+
videoId: vimeoId
|
|
228
|
+
// onReady={() => console.log('Video is ready')}
|
|
229
|
+
// onPlay={() => console.log('Video is playing')}
|
|
230
|
+
// onPlayProgress={data => console.log('Video progress data:', data)}
|
|
231
|
+
// onFinish={() => console.log('Video is finished')}
|
|
232
|
+
,
|
|
233
|
+
loop: false,
|
|
234
|
+
autoPlay: autoPlay,
|
|
235
|
+
controls: true,
|
|
236
|
+
speed: true,
|
|
237
|
+
time: "0m0s"
|
|
238
|
+
})));
|
|
239
|
+
_defineProperty(this, "getWebviewPlayer", (embedUrl, width, height) => /*#__PURE__*/React.createElement(WebView, {
|
|
240
|
+
startInLoadingState: true,
|
|
241
|
+
javaScriptEnabled: true,
|
|
242
|
+
scrollEnabled: false,
|
|
243
|
+
automaticallyAdjustContentInsets: false,
|
|
244
|
+
mediaPlaybackRequiresUserAction: true,
|
|
245
|
+
style: [styles.webView, {
|
|
246
|
+
width,
|
|
247
|
+
height
|
|
248
|
+
}],
|
|
249
|
+
source: {
|
|
250
|
+
uri: embedUrl
|
|
251
|
+
}
|
|
252
|
+
}));
|
|
253
|
+
_defineProperty(this, "getStreamPlayer", (embedUrl, width, height, autoPlay) => /*#__PURE__*/React.createElement(Video, _extends({
|
|
254
|
+
ref: vp => {
|
|
255
|
+
this.videoPlayer = vp;
|
|
256
|
+
},
|
|
257
|
+
source: {
|
|
258
|
+
uri: embedUrl
|
|
259
|
+
}
|
|
260
|
+
}, EXPO_VIDEO_PROPS, {
|
|
261
|
+
shouldPlay: autoPlay,
|
|
262
|
+
resizeMode: ResizeMode.CONTAIN,
|
|
263
|
+
useNativeControls: true,
|
|
264
|
+
style: {
|
|
265
|
+
width,
|
|
266
|
+
height
|
|
267
|
+
},
|
|
268
|
+
onLoadStart: this.onStreamLoadStart,
|
|
269
|
+
onLoad: this.onStreamLoaded,
|
|
270
|
+
onError: this.onStreamError,
|
|
271
|
+
onPlaybackStatusUpdate: this.onStreamStatusUpdate
|
|
272
|
+
})));
|
|
273
|
+
this.state = {
|
|
274
|
+
deviceOrientation: null,
|
|
275
|
+
isLandscape: false,
|
|
276
|
+
isUrlLink: true,
|
|
277
|
+
isYoutube: false,
|
|
278
|
+
isVimeo: false,
|
|
279
|
+
forceWebview: false,
|
|
280
|
+
heightFactor: 0,
|
|
281
|
+
playbackLoaded: false,
|
|
282
|
+
playbackBuffering: false,
|
|
283
|
+
playbackPlaying: false,
|
|
284
|
+
readyToRender: false
|
|
285
|
+
};
|
|
286
|
+
this.youtubePlayer = null;
|
|
287
|
+
this.videoPlayer = null;
|
|
288
|
+
this.checkStreamLoaded = null;
|
|
289
|
+
this.retryLoading = false;
|
|
290
|
+
this.orientationQueue = [];
|
|
291
|
+
}
|
|
292
|
+
// getVideoPlayer = (embedUrl, width, height, autoPlay) => (
|
|
293
|
+
// <VideoPlayer
|
|
294
|
+
// videoProps={{
|
|
295
|
+
// shouldPlay: autoPlay,
|
|
296
|
+
// resizeMode: Video.RESIZE_MODE_CONTAIN,
|
|
297
|
+
// source: { uri: embedUrl },
|
|
298
|
+
// }}
|
|
299
|
+
// showFullscreenButton={false}
|
|
300
|
+
// errorCallback={this.onVideoPlayError}
|
|
301
|
+
// playbackCallback={this.onVideoPlayStatusUpdate}
|
|
302
|
+
// height={height}
|
|
303
|
+
// width={width}
|
|
304
|
+
// />
|
|
305
|
+
// );
|
|
306
|
+
|
|
307
|
+
render() {
|
|
308
|
+
let width, height;
|
|
309
|
+
const {
|
|
310
|
+
playbackId,
|
|
311
|
+
source,
|
|
312
|
+
autoPlay,
|
|
313
|
+
useVideoPlayer
|
|
314
|
+
} = this.props;
|
|
315
|
+
const {
|
|
316
|
+
readyToRender,
|
|
317
|
+
isLandscape,
|
|
318
|
+
heightFactor,
|
|
319
|
+
isUrlLink,
|
|
320
|
+
isYoutube,
|
|
321
|
+
isVimeo,
|
|
322
|
+
forceWebview,
|
|
323
|
+
playbackLoaded,
|
|
324
|
+
playbackBuffering
|
|
325
|
+
} = this.state;
|
|
326
|
+
if (!readyToRender) return null;
|
|
327
|
+
if (isLandscape) {
|
|
328
|
+
width = SCREEN_HEIGHT;
|
|
329
|
+
height = SCREEN_WIDTH;
|
|
330
|
+
} else {
|
|
331
|
+
width = SCREEN_WIDTH;
|
|
332
|
+
height = heightFactor ? SCREEN_WIDTH * heightFactor : SCREEN_HEIGHT;
|
|
333
|
+
}
|
|
334
|
+
let embedUrl, player, showLoading;
|
|
335
|
+
if (!forceWebview) {
|
|
336
|
+
if (isYoutube) {
|
|
337
|
+
const youtubeId = this.getYoutubeVideoId(source);
|
|
338
|
+
embedUrl = youtubeId ? `https://www.youtube.com/embed/${youtubeId}` : source;
|
|
339
|
+
// console.log('getYoutubePlayer', youtubeId, width, height, autoPlay);
|
|
340
|
+
player = this.getYoutubePlayer(youtubeId, width, height, autoPlay);
|
|
341
|
+
} else if (isVimeo) {
|
|
342
|
+
const vimeoId = this.getVimeoId(source);
|
|
343
|
+
embedUrl = source;
|
|
344
|
+
// console.log('getVimeoPlayer', vimeoId, width, height, autoPlay);
|
|
345
|
+
player = this.getVimeoPlayer(vimeoId, width, height, autoPlay);
|
|
346
|
+
} else if (playbackId) {
|
|
347
|
+
embedUrl = this.getStreamPlaybackUrl();
|
|
348
|
+
// console.log('getStreamPlayer', embedUrl, width, height, autoPlay);
|
|
349
|
+
player = this.getStreamPlayer(embedUrl, width, height, autoPlay);
|
|
350
|
+
showLoading = true;
|
|
351
|
+
} else if (useVideoPlayer) {
|
|
352
|
+
embedUrl = source;
|
|
353
|
+
// console.log('getVideoPlayer', embedUrl, width, height, autoPlay);
|
|
354
|
+
player = this.getStreamPlayer(embedUrl, width, height, autoPlay);
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (!player && isUrlLink) {
|
|
358
|
+
embedUrl = source;
|
|
359
|
+
console.log("getWebviewPlayer", embedUrl, width, height);
|
|
360
|
+
player = this.getWebviewPlayer(embedUrl, width, height);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
// console.log({
|
|
364
|
+
// Streaming: embedUrl,
|
|
365
|
+
// Landscape: isLandscape,
|
|
366
|
+
// Loaded: playbackLoaded,
|
|
367
|
+
// Buffering: playbackBuffering,
|
|
368
|
+
// LoadingIndicator: showLoading,
|
|
369
|
+
// Width: width,
|
|
370
|
+
// Height: height,
|
|
371
|
+
// HeightFactor: heightFactor,
|
|
372
|
+
// isYoutube,
|
|
373
|
+
// isVimeo,
|
|
374
|
+
// playbackId,
|
|
375
|
+
// useVideoPlayer,
|
|
376
|
+
// });
|
|
377
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
378
|
+
style: styles.container
|
|
379
|
+
}, player, showLoading && (!playbackLoaded || playbackBuffering) && /*#__PURE__*/React.createElement(View, {
|
|
380
|
+
style: styles.loadingContainer
|
|
381
|
+
}, /*#__PURE__*/React.createElement(Spinner, {
|
|
382
|
+
color: "#fff"
|
|
383
|
+
})));
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
const styles = StyleSheet.create({
|
|
387
|
+
container: {
|
|
388
|
+
flex: 1,
|
|
389
|
+
backgroundColor: "#000",
|
|
390
|
+
alignItems: "center",
|
|
391
|
+
justifyContent: "center"
|
|
392
|
+
},
|
|
393
|
+
webView: {
|
|
394
|
+
flex: 1
|
|
395
|
+
},
|
|
396
|
+
loadingContainer: {
|
|
397
|
+
position: "absolute",
|
|
398
|
+
top: 50,
|
|
399
|
+
left: 0,
|
|
400
|
+
right: 0,
|
|
401
|
+
bottom: 50,
|
|
402
|
+
justifyContent: "center",
|
|
403
|
+
alignItems: "center"
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
export default MediaPlayer;
|
|
407
|
+
//# sourceMappingURL=MediaPlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Component","View","StyleSheet","Dimensions","YoutubePlayer","getYoutubeMeta","Vimeo","WebView","Video","ResizeMode","Spinner","SCREEN_HEIGHT","get","height","SCREEN_WIDTH","width","EXPO_VIDEO_PROPS","rate","isMuted","volume","RETRY_RECOVER","RETRY_LOADING","MediaPlayer","constructor","props","_defineProperty","setupForPlaying","checkStreamLoaded","clearInterval","url","replace","split","undefined","ids","result","match","source","useVideoPlayer","isUrlLink","startsWith","isYoutube","includes","isVimeo","heightFactor","metadata","getYoutubeVideoId","setState","playbackLoaded","readyToRender","playbackId","wait","force","retryLoading","console","log","setTimeout","playbackBuffering","state","videoPlayer","loadAsync","uri","getStreamPlaybackUrl","overrideFileExtensionAndroid","deviceRotation","beta","gamma","absGamma","Math","abs","absBeta","isGammaNegative","sign","changeEvent","rotation","deviceOrientation","orientation","isLandscape","orientationQueue","push","length","slice","every","i","orientationChanged","setInterval","checkReloadStream","status","isLoaded","isBuffering","isPlaying","error","playbackPlaying","shouldPlay","e","forceWebview","type","youtubeId","autoPlay","createElement","ref","youtubePlayer","videoId","play","onReady","onYoutubeReady","onError","onYoutubeError","playbackRate","playerParams","cc_lang_pref","showClosedCaptions","vimeoId","style","marginLeft","marginRight","loop","controls","speed","time","embedUrl","startInLoadingState","javaScriptEnabled","scrollEnabled","automaticallyAdjustContentInsets","mediaPlaybackRequiresUserAction","styles","webView","_extends","vp","resizeMode","CONTAIN","useNativeControls","onLoadStart","onStreamLoadStart","onLoad","onStreamLoaded","onStreamError","onPlaybackStatusUpdate","onStreamStatusUpdate","render","player","showLoading","getYoutubePlayer","getVimeoId","getVimeoPlayer","getStreamPlayer","getWebviewPlayer","container","loadingContainer","color","create","flex","backgroundColor","alignItems","justifyContent","position","top","left","right","bottom"],"sources":["MediaPlayer.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, StyleSheet, Dimensions } from \"react-native\";\nimport YoutubePlayer, { getYoutubeMeta } from \"react-native-youtube-iframe\";\nimport { Vimeo } from \"react-native-vimeo-iframe\";\nimport { WebView } from \"react-native-webview\";\nimport { Video, ResizeMode } from \"expo-av\";\nimport { Spinner } from \"./Spinner\";\n\nconst SCREEN_HEIGHT = Dimensions.get(\"window\").height;\nconst SCREEN_WIDTH = Dimensions.get(\"window\").width;\nconst EXPO_VIDEO_PROPS = { rate: 1, isMuted: false, volume: 1 };\nconst RETRY_RECOVER = 30000;\nconst RETRY_LOADING = 10000;\n\nclass MediaPlayer extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\t\tthis.state = {\n\t\t\tdeviceOrientation: null,\n\t\t\tisLandscape: false,\n\t\t\tisUrlLink: true,\n\t\t\tisYoutube: false,\n\t\t\tisVimeo: false,\n\t\t\tforceWebview: false,\n\t\t\theightFactor: 0,\n\t\t\tplaybackLoaded: false,\n\t\t\tplaybackBuffering: false,\n\t\t\tplaybackPlaying: false,\n\t\t\treadyToRender: false,\n\t\t};\n\t\tthis.youtubePlayer = null;\n\t\tthis.videoPlayer = null;\n\t\tthis.checkStreamLoaded = null;\n\t\tthis.retryLoading = false;\n\t\tthis.orientationQueue = [];\n\t}\n\n\tcomponentDidMount = async () => {\n\t\tawait this.setupForPlaying();\n\t};\n\n\tcomponentWillUnmount = () => {\n\t\tif (this.checkStreamLoaded) clearInterval(this.checkStreamLoaded);\n\t};\n\n\tgetYoutubeVideoId = (url) => {\n\t\turl = url\n\t\t\t.replace(/(>|<)/gi, \"\")\n\t\t\t.split(/(vi\\/|v=|\\/v\\/|youtu\\.be\\/|\\/embed\\/)/);\n\t\tif (url[2] !== undefined) {\n\t\t\tconst ids = url[2].split(/[^0-9a-z_\\-]/i);\n\t\t\treturn ids[0];\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t};\n\n\tgetVimeoId = (url) => {\n\t\tconst result = url.match(\n\t\t\t/(?:www\\.|player\\.)?vimeo.com\\/(?:channels\\/(?:\\w+\\/)?|groups\\/(?:[^\\/]*)\\/videos\\/|album\\/(?:\\d+)\\/video\\/|video\\/|)(\\d+)(?:[a-zA-Z0-9_\\-]+)?/i,\n\t\t);\n\t\treturn result[1];\n\t};\n\n\tsetupForPlaying = async () => {\n\t\t// Extract live stream info\n\t\tconst { source, useVideoPlayer } = this.props;\n\t\tconst isUrlLink = source && source.startsWith(\"http\");\n\t\tconst isYoutube =\n\t\t\tsource &&\n\t\t\t(source.includes(\"youtube.com/watch?v=\") || source.includes(\"youtu.be/\"));\n\t\tconst isVimeo = source && source.includes(\"vimeo.com/\");\n\t\tlet heightFactor = 0;\n\n\t\tif (isYoutube) {\n\t\t\tconst metadata = await getYoutubeMeta(this.getYoutubeVideoId(source));\n\t\t\theightFactor = metadata.height / metadata.width;\n\t\t} else if (useVideoPlayer) {\n\t\t\theightFactor = 0;\n\t\t} else {\n\t\t\theightFactor = 0.565;\n\t\t}\n\n\t\tthis.setState({\n\t\t\tisUrlLink,\n\t\t\tisYoutube,\n\t\t\tisVimeo,\n\t\t\tplaybackLoaded: isYoutube || isVimeo,\n\t\t\theightFactor,\n\t\t\treadyToRender: true,\n\t\t});\n\t};\n\n\tgetStreamPlaybackUrl = () => {\n\t\t// return 'https://stream.mux.com/Ym4nKktRpGuZNBBBlzhxpyRwZLpvMlPRchcu01x6Ur600.m3u8';\n\t\treturn `https://stream.mux.com/${this.props.playbackId}.m3u8`;\n\t};\n\n\tcheckReloadStream = (wait = RETRY_LOADING, force = false) => {\n\t\tif (!force && this.retryLoading) return;\n\n\t\tconsole.log(`Check loading in ${wait} milliseconds...`);\n\t\tthis.retryLoading = true;\n\t\tsetTimeout(async () => {\n\t\t\tconst { playbackLoaded, playbackBuffering } = this.state;\n\t\t\ttry {\n\t\t\t\tif (playbackLoaded === false || playbackBuffering === true) {\n\t\t\t\t\tconsole.log(\"Reloading started\");\n\t\t\t\t\tawait this.videoPlayer.loadAsync(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\turi: this.getStreamPlaybackUrl(),\n\t\t\t\t\t\t\toverrideFileExtensionAndroid: \"m3u8\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tEXPO_VIDEO_PROPS,\n\t\t\t\t\t\tfalse,\n\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tconsole.log(\"Already loaded - not reloading\");\n\t\t\t\t}\n\t\t\t\tthis.retryLoading = false;\n\t\t\t} catch {}\n\t\t}, wait);\n\t};\n\n\tisLandscape = (deviceRotation) => {\n\t\tconst { beta, gamma } = deviceRotation;\n\t\tconst absGamma = Math.abs(gamma);\n\t\tconst absBeta = Math.abs(beta);\n\t\tconst isGammaNegative = Math.sign(gamma) === -1;\n\n\t\tif (absGamma <= 0.04 && absBeta <= 0.24) {\n\t\t\t//Portrait mode, on a flat surface.\n\t\t\treturn false;\n\t\t} else if ((absGamma <= 1.0 || absGamma >= 2.3) && absBeta >= 0.5) {\n\t\t\t//General Portrait mode, accounting for forward and back tilt on the top of the phone.\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (isGammaNegative) {\n\t\t\t\t//Landscape mode with the top of the phone to the left.\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\t//Landscape mode with the top of the phone to the right.\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t};\n\n\tonMotionChange = async (changeEvent) => {\n\t\tconst deviceRotation = changeEvent.rotation;\n\t\tconst deviceOrientation = changeEvent.orientation;\n\t\tconst isLandscape = this.isLandscape(deviceRotation);\n\t\tthis.orientationQueue.push(isLandscape);\n\t\tif (this.orientationQueue.length > 2)\n\t\t\tthis.orientationQueue = this.orientationQueue.slice(-2);\n\t\t// console.log('onMotionChange - orientationQueue', this.orientationQueue);\n\t\tif (\n\t\t\tisLandscape !== this.state.isLandscape &&\n\t\t\tisLandscape === (Math.abs(deviceOrientation) === 90) &&\n\t\t\tthis.orientationQueue.every((i) => i === isLandscape)\n\t\t) {\n\t\t\tthis.setState({ isLandscape }, () => {\n\t\t\t\t// console.log('isLandscape', this.state.isLandscape);\n\t\t\t\tif (this.props.orientationChanged)\n\t\t\t\t\tthis.props.orientationChanged(this.state.isLandscape);\n\t\t\t});\n\t\t}\n\t};\n\n\tonStreamLoadStart = () => {\n\t\tconsole.log(\"Stream load started\");\n\t\tthis.checkStreamLoaded = setInterval(() => {\n\t\t\tconst { playbackLoaded } = this.state;\n\t\t\tif (playbackLoaded === false) {\n\t\t\t\tconsole.log(\"Stream loading failed unexpectedly\");\n\t\t\t\tthis.checkReloadStream(1000, true);\n\t\t\t} else {\n\t\t\t\tclearInterval(this.checkStreamLoaded);\n\t\t\t}\n\t\t}, RETRY_RECOVER);\n\t};\n\n\tonStreamLoaded = (status) => {\n\t\tconsole.log(\n\t\t\t`Stream loaded - isLoaded:${status.isLoaded}, isBuffering:${status.isBuffering}, isPlaying:${status.isPlaying}`,\n\t\t);\n\t};\n\n\tonStreamError = (error) => {\n\t\tconsole.log(\"Stream error\", error);\n\t};\n\n\tonStreamStatusUpdate = (status) => {\n\t\tthis.setState(\n\t\t\t{\n\t\t\t\tplaybackLoaded: status.isLoaded,\n\t\t\t\tplaybackBuffering: status.isBuffering,\n\t\t\t\tplaybackPlaying: status.isPlaying,\n\t\t\t},\n\t\t\t() => {\n\t\t\t\tconst {\n\t\t\t\t\tplaybackLoaded,\n\t\t\t\t\tplaybackBuffering,\n\t\t\t\t\tplaybackPlaying,\n\t\t\t\t\tshouldPlay,\n\t\t\t\t} = this.state;\n\t\t\t\t// console.log(`Status updated - isLoaded:${playbackLoaded}, isBuffering:${playbackBuffering}, isPlaying:${playbackPlaying}`);\n\t\t\t\tif (\n\t\t\t\t\tplaybackLoaded === false &&\n\t\t\t\t\tplaybackBuffering === undefined &&\n\t\t\t\t\tplaybackPlaying === undefined\n\t\t\t\t) {\n\t\t\t\t\tthis.checkReloadStream();\n\t\t\t\t} else if (playbackLoaded === true && playbackBuffering === true) {\n\t\t\t\t\tthis.checkReloadStream(RETRY_RECOVER);\n\t\t\t\t}\n\t\t\t},\n\t\t);\n\t};\n\n\tonYoutubeError = (e) => {\n\t\t// console.log('onYoutubeError', e);\n\t\tthis.setState({ forceWebview: true });\n\t};\n\n\tonYoutubeReady = () => {\n\t\t// console.log('onYoutubeReady');\n\t};\n\n\tonVideoPlayStatusUpdate = (status) => {\n\t\t// console.log('onVideoPlayStatusUpdate', status);\n\t};\n\n\tonVideoPlayError = (error) => {\n\t\tif (error && error.type === \"NonFatal\") {\n\t\t\treturn;\n\t\t}\n\t\t// console.log('onVideoPlayError', error);\n\t\tthis.setState({ forceWebview: true });\n\t};\n\n\tgetYoutubePlayer = (youtubeId, width, height, autoPlay) => (\n\t\t<YoutubePlayer\n\t\t\tref={(ref) => (this.youtubePlayer = ref)}\n\t\t\theight={height}\n\t\t\twidth={width}\n\t\t\tvideoId={youtubeId}\n\t\t\tplay={autoPlay}\n\t\t\t// onChangeState={event => console.log('onChangeState', event)}\n\t\t\tonReady={this.onYoutubeReady}\n\t\t\tonError={this.onYoutubeError}\n\t\t\t// onPlaybackQualityChange={q => console.log('onPlaybackQualityChange', q)}\n\t\t\tvolume={50}\n\t\t\tplaybackRate={1}\n\t\t\tplayerParams={{\n\t\t\t\tcc_lang_pref: \"us\",\n\t\t\t\tshowClosedCaptions: true,\n\t\t\t}}\n\t\t/>\n\t);\n\n\tgetVimeoPlayer = (vimeoId, width, height, autoPlay) => (\n\t\t<View style={{ width, height }}>\n\t\t\t<Vimeo\n\t\t\t\tstyle={{ marginLeft: -8, marginRight: -5 }}\n\t\t\t\tvideoId={vimeoId}\n\t\t\t\t// onReady={() => console.log('Video is ready')}\n\t\t\t\t// onPlay={() => console.log('Video is playing')}\n\t\t\t\t// onPlayProgress={data => console.log('Video progress data:', data)}\n\t\t\t\t// onFinish={() => console.log('Video is finished')}\n\t\t\t\tloop={false}\n\t\t\t\tautoPlay={autoPlay}\n\t\t\t\tcontrols={true}\n\t\t\t\tspeed={true}\n\t\t\t\ttime={\"0m0s\"}\n\t\t\t/>\n\t\t</View>\n\t);\n\n\tgetWebviewPlayer = (embedUrl, width, height) => (\n\t\t<WebView\n\t\t\tstartInLoadingState\n\t\t\tjavaScriptEnabled\n\t\t\tscrollEnabled={false}\n\t\t\tautomaticallyAdjustContentInsets={false}\n\t\t\tmediaPlaybackRequiresUserAction\n\t\t\tstyle={[styles.webView, { width, height }]}\n\t\t\tsource={{ uri: embedUrl }}\n\t\t/>\n\t);\n\n\tgetStreamPlayer = (embedUrl, width, height, autoPlay) => (\n\t\t<Video\n\t\t\tref={(vp) => {\n\t\t\t\tthis.videoPlayer = vp;\n\t\t\t}}\n\t\t\tsource={{ uri: embedUrl }}\n\t\t\t{...EXPO_VIDEO_PROPS}\n\t\t\tshouldPlay={autoPlay}\n\t\t\tresizeMode={ResizeMode.CONTAIN}\n\t\t\tuseNativeControls\n\t\t\tstyle={{ width, height }}\n\t\t\tonLoadStart={this.onStreamLoadStart}\n\t\t\tonLoad={this.onStreamLoaded}\n\t\t\tonError={this.onStreamError}\n\t\t\tonPlaybackStatusUpdate={this.onStreamStatusUpdate}\n\t\t/>\n\t);\n\n\t// getVideoPlayer = (embedUrl, width, height, autoPlay) => (\n\t// <VideoPlayer\n\t// videoProps={{\n\t// shouldPlay: autoPlay,\n\t// resizeMode: Video.RESIZE_MODE_CONTAIN,\n\t// source: { uri: embedUrl },\n\t// }}\n\t// showFullscreenButton={false}\n\t// errorCallback={this.onVideoPlayError}\n\t// playbackCallback={this.onVideoPlayStatusUpdate}\n\t// height={height}\n\t// width={width}\n\t// />\n\t// );\n\n\trender() {\n\t\tlet width, height;\n\t\tconst { playbackId, source, autoPlay, useVideoPlayer } = this.props;\n\t\tconst {\n\t\t\treadyToRender,\n\t\t\tisLandscape,\n\t\t\theightFactor,\n\t\t\tisUrlLink,\n\t\t\tisYoutube,\n\t\t\tisVimeo,\n\t\t\tforceWebview,\n\t\t\tplaybackLoaded,\n\t\t\tplaybackBuffering,\n\t\t} = this.state;\n\t\tif (!readyToRender) return null;\n\n\t\tif (isLandscape) {\n\t\t\twidth = SCREEN_HEIGHT;\n\t\t\theight = SCREEN_WIDTH;\n\t\t} else {\n\t\t\twidth = SCREEN_WIDTH;\n\t\t\theight = heightFactor ? SCREEN_WIDTH * heightFactor : SCREEN_HEIGHT;\n\t\t}\n\n\t\tlet embedUrl, player, showLoading;\n\t\tif (!forceWebview) {\n\t\t\tif (isYoutube) {\n\t\t\t\tconst youtubeId = this.getYoutubeVideoId(source);\n\t\t\t\tembedUrl = youtubeId\n\t\t\t\t\t? `https://www.youtube.com/embed/${youtubeId}`\n\t\t\t\t\t: source;\n\t\t\t\t// console.log('getYoutubePlayer', youtubeId, width, height, autoPlay);\n\t\t\t\tplayer = this.getYoutubePlayer(youtubeId, width, height, autoPlay);\n\t\t\t} else if (isVimeo) {\n\t\t\t\tconst vimeoId = this.getVimeoId(source);\n\t\t\t\tembedUrl = source;\n\t\t\t\t// console.log('getVimeoPlayer', vimeoId, width, height, autoPlay);\n\t\t\t\tplayer = this.getVimeoPlayer(vimeoId, width, height, autoPlay);\n\t\t\t} else if (playbackId) {\n\t\t\t\tembedUrl = this.getStreamPlaybackUrl();\n\t\t\t\t// console.log('getStreamPlayer', embedUrl, width, height, autoPlay);\n\t\t\t\tplayer = this.getStreamPlayer(embedUrl, width, height, autoPlay);\n\t\t\t\tshowLoading = true;\n\t\t\t} else if (useVideoPlayer) {\n\t\t\t\tembedUrl = source;\n\t\t\t\t// console.log('getVideoPlayer', embedUrl, width, height, autoPlay);\n\t\t\t\tplayer = this.getStreamPlayer(embedUrl, width, height, autoPlay);\n\t\t\t}\n\t\t}\n\t\tif (!player && isUrlLink) {\n\t\t\tembedUrl = source;\n\t\t\tconsole.log(\"getWebviewPlayer\", embedUrl, width, height);\n\t\t\tplayer = this.getWebviewPlayer(embedUrl, width, height);\n\t\t}\n\n\t\t// console.log({\n\t\t// Streaming: embedUrl,\n\t\t// Landscape: isLandscape,\n\t\t// Loaded: playbackLoaded,\n\t\t// Buffering: playbackBuffering,\n\t\t// LoadingIndicator: showLoading,\n\t\t// Width: width,\n\t\t// Height: height,\n\t\t// HeightFactor: heightFactor,\n\t\t// isYoutube,\n\t\t// isVimeo,\n\t\t// playbackId,\n\t\t// useVideoPlayer,\n\t\t// });\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t{player}\n\t\t\t\t{showLoading && (!playbackLoaded || playbackBuffering) && (\n\t\t\t\t\t<View style={styles.loadingContainer}>\n\t\t\t\t\t\t<Spinner color={\"#fff\"} />\n\t\t\t\t\t</View>\n\t\t\t\t)}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tflex: 1,\n\t\tbackgroundColor: \"#000\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\twebView: {\n\t\tflex: 1,\n\t},\n\tloadingContainer: {\n\t\tposition: \"absolute\",\n\t\ttop: 50,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 50,\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t},\n});\n\nexport default MediaPlayer;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,OAAOC,aAAa,IAAIC,cAAc,QAAQ,6BAA6B;AAC3E,SAASC,KAAK,QAAQ,2BAA2B;AACjD,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,KAAK,EAAEC,UAAU,QAAQ,SAAS;AAC3C,SAASC,OAAO,QAAQ,WAAW;AAEnC,MAAMC,aAAa,GAAGR,UAAU,CAACS,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AACrD,MAAMC,YAAY,GAAGX,UAAU,CAACS,GAAG,CAAC,QAAQ,CAAC,CAACG,KAAK;AACnD,MAAMC,gBAAgB,GAAG;EAAEC,IAAI,EAAE,CAAC;EAAEC,OAAO,EAAE,KAAK;EAAEC,MAAM,EAAE;AAAE,CAAC;AAC/D,MAAMC,aAAa,GAAG,KAAK;AAC3B,MAAMC,aAAa,GAAG,KAAK;AAE3B,MAAMC,WAAW,SAAStB,SAAS,CAAC;EACnCuB,WAAWA,CAACC,KAAK,E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