@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.
Files changed (210) 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 +29 -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 +223 -0
  8. package/dist/module/actions/UserActions.js.map +1 -0
  9. package/dist/module/actions/UserSettingsActions.js +14 -0
  10. package/dist/module/actions/UserSettingsActions.js.map +1 -0
  11. package/dist/module/actions/index.js +6 -0
  12. package/dist/module/actions/index.js.map +1 -0
  13. package/dist/module/actions/types.js +17 -0
  14. package/dist/module/actions/types.js.map +1 -0
  15. package/dist/module/apis/analyticsActions.js +20 -0
  16. package/dist/module/apis/analyticsActions.js.map +1 -0
  17. package/dist/module/apis/contactActions.js +27 -0
  18. package/dist/module/apis/contactActions.js.map +1 -0
  19. package/dist/module/apis/eventActions.js +161 -0
  20. package/dist/module/apis/eventActions.js.map +1 -0
  21. package/dist/module/apis/fileActions.js +93 -0
  22. package/dist/module/apis/fileActions.js.map +1 -0
  23. package/dist/module/apis/followerActions.js +38 -0
  24. package/dist/module/apis/followerActions.js.map +1 -0
  25. package/dist/module/apis/index.js +13 -0
  26. package/dist/module/apis/index.js.map +1 -0
  27. package/dist/module/apis/notificationActions.js +60 -0
  28. package/dist/module/apis/notificationActions.js.map +1 -0
  29. package/dist/module/apis/profileActions.js +14 -0
  30. package/dist/module/apis/profileActions.js.map +1 -0
  31. package/dist/module/apis/reactionActions.js +76 -0
  32. package/dist/module/apis/reactionActions.js.map +1 -0
  33. package/dist/module/apis/settingActions.js +22 -0
  34. package/dist/module/apis/settingActions.js.map +1 -0
  35. package/dist/module/apis/stringActions.js +30 -0
  36. package/dist/module/apis/stringActions.js.map +1 -0
  37. package/dist/module/apis/typeActions.js +15 -0
  38. package/dist/module/apis/typeActions.js.map +1 -0
  39. package/dist/module/apis/userActions.js +104 -0
  40. package/dist/module/apis/userActions.js.map +1 -0
  41. package/dist/module/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  42. package/dist/module/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  43. package/dist/module/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  44. package/dist/module/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  45. package/dist/module/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  46. package/dist/module/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  47. package/dist/module/assets/icons/reactions/heart.png +0 -0
  48. package/dist/module/assets/icons/reactions/party.png +0 -0
  49. package/dist/module/assets/icons/reactions/sad.png +0 -0
  50. package/dist/module/assets/icons/reactions/smile.png +0 -0
  51. package/dist/module/colours.js +165 -0
  52. package/dist/module/colours.js.map +1 -0
  53. package/dist/module/components/AddButton.js +43 -0
  54. package/dist/module/components/AddButton.js.map +1 -0
  55. package/dist/module/components/AddToCalendarButton.js +225 -0
  56. package/dist/module/components/AddToCalendarButton.js.map +1 -0
  57. package/dist/module/components/Attachment.js +55 -0
  58. package/dist/module/components/Attachment.js.map +1 -0
  59. package/dist/module/components/AudienceSelectorLauncher.js +64 -0
  60. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
  61. package/dist/module/components/AudienceSelectorPage.js +351 -0
  62. package/dist/module/components/AudienceSelectorPage.js.map +1 -0
  63. package/dist/module/components/AutoOffsetImage.js +184 -0
  64. package/dist/module/components/AutoOffsetImage.js.map +1 -0
  65. package/dist/module/components/BackButton.js +58 -0
  66. package/dist/module/components/BackButton.js.map +1 -0
  67. package/dist/module/components/CalendarPopup.js +126 -0
  68. package/dist/module/components/CalendarPopup.js.map +1 -0
  69. package/dist/module/components/CategoryTabs.js +155 -0
  70. package/dist/module/components/CategoryTabs.js.map +1 -0
  71. package/dist/module/components/CommentReply.js +334 -0
  72. package/dist/module/components/CommentReply.js.map +1 -0
  73. package/dist/module/components/CommentSection.js +823 -0
  74. package/dist/module/components/CommentSection.js.map +1 -0
  75. package/dist/module/components/ConfirmPopup.js +109 -0
  76. package/dist/module/components/ConfirmPopup.js.map +1 -0
  77. package/dist/module/components/ConfirmationPopup.js +72 -0
  78. package/dist/module/components/ConfirmationPopup.js.map +1 -0
  79. package/dist/module/components/DocumentUploader.js +253 -0
  80. package/dist/module/components/DocumentUploader.js.map +1 -0
  81. package/dist/module/components/DropDownItem.js +75 -0
  82. package/dist/module/components/DropDownItem.js.map +1 -0
  83. package/dist/module/components/DropDownMenu.js +41 -0
  84. package/dist/module/components/DropDownMenu.js.map +1 -0
  85. package/dist/module/components/EmptyStateMain.js +51 -0
  86. package/dist/module/components/EmptyStateMain.js.map +1 -0
  87. package/dist/module/components/EmptyStateWidget.js +48 -0
  88. package/dist/module/components/EmptyStateWidget.js.map +1 -0
  89. package/dist/module/components/FontScaleButton.js +37 -0
  90. package/dist/module/components/FontScaleButton.js.map +1 -0
  91. package/dist/module/components/FontScalePopup.js +76 -0
  92. package/dist/module/components/FontScalePopup.js.map +1 -0
  93. package/dist/module/components/Forbidden.js +58 -0
  94. package/dist/module/components/Forbidden.js.map +1 -0
  95. package/dist/module/components/FormCard.js +25 -0
  96. package/dist/module/components/FormCard.js.map +1 -0
  97. package/dist/module/components/FormCardSection.js +214 -0
  98. package/dist/module/components/FormCardSection.js.map +1 -0
  99. package/dist/module/components/FormCardSectionOptionLauncher.js +73 -0
  100. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
  101. package/dist/module/components/FormattedText.js +133 -0
  102. package/dist/module/components/FormattedText.js.map +1 -0
  103. package/dist/module/components/GenericInput.js +151 -0
  104. package/dist/module/components/GenericInput.js.map +1 -0
  105. package/dist/module/components/GenericInputSection.js +173 -0
  106. package/dist/module/components/GenericInputSection.js.map +1 -0
  107. package/dist/module/components/Header.js +459 -0
  108. package/dist/module/components/Header.js.map +1 -0
  109. package/dist/module/components/Icon.js +109 -0
  110. package/dist/module/components/Icon.js.map +1 -0
  111. package/dist/module/components/ImagePopup.js +400 -0
  112. package/dist/module/components/ImagePopup.js.map +1 -0
  113. package/dist/module/components/ImageUploadProgress.js +69 -0
  114. package/dist/module/components/ImageUploadProgress.js.map +1 -0
  115. package/dist/module/components/ImageUploader.js +831 -0
  116. package/dist/module/components/ImageUploader.js.map +1 -0
  117. package/dist/module/components/InlineButton.js +66 -0
  118. package/dist/module/components/InlineButton.js.map +1 -0
  119. package/dist/module/components/Input.js +156 -0
  120. package/dist/module/components/Input.js.map +1 -0
  121. package/dist/module/components/LoadingCircles.js +219 -0
  122. package/dist/module/components/LoadingCircles.js.map +1 -0
  123. package/dist/module/components/LoadingIndicator.js +86 -0
  124. package/dist/module/components/LoadingIndicator.js.map +1 -0
  125. package/dist/module/components/LoadingStateWidget.js +46 -0
  126. package/dist/module/components/LoadingStateWidget.js.map +1 -0
  127. package/dist/module/components/MediaPlayer.js +407 -0
  128. package/dist/module/components/MediaPlayer.js.map +1 -0
  129. package/dist/module/components/MiddlePopup.js +49 -0
  130. package/dist/module/components/MiddlePopup.js.map +1 -0
  131. package/dist/module/components/PDFPopup.js +296 -0
  132. package/dist/module/components/PDFPopup.js.map +1 -0
  133. package/dist/module/components/PlussChat.js +1078 -0
  134. package/dist/module/components/PlussChat.js.map +1 -0
  135. package/dist/module/components/PlussChatMessage.js +299 -0
  136. package/dist/module/components/PlussChatMessage.js.map +1 -0
  137. package/dist/module/components/PlussChatTime.js +59 -0
  138. package/dist/module/components/PlussChatTime.js.map +1 -0
  139. package/dist/module/components/Popup.js +126 -0
  140. package/dist/module/components/Popup.js.map +1 -0
  141. package/dist/module/components/PopupMenu.js +120 -0
  142. package/dist/module/components/PopupMenu.js.map +1 -0
  143. package/dist/module/components/PositionedImage.js +313 -0
  144. package/dist/module/components/PositionedImage.js.map +1 -0
  145. package/dist/module/components/ProfilePic.js +105 -0
  146. package/dist/module/components/ProfilePic.js.map +1 -0
  147. package/dist/module/components/RadioButton.js +78 -0
  148. package/dist/module/components/RadioButton.js.map +1 -0
  149. package/dist/module/components/Reaction.js +117 -0
  150. package/dist/module/components/Reaction.js.map +1 -0
  151. package/dist/module/components/Reactions.js +71 -0
  152. package/dist/module/components/Reactions.js.map +1 -0
  153. package/dist/module/components/SharingTools.js +189 -0
  154. package/dist/module/components/SharingTools.js.map +1 -0
  155. package/dist/module/components/Spinner.js +22 -0
  156. package/dist/module/components/Spinner.js.map +1 -0
  157. package/dist/module/components/StickyFooter.js +34 -0
  158. package/dist/module/components/StickyFooter.js.map +1 -0
  159. package/dist/module/components/Text.js +57 -0
  160. package/dist/module/components/Text.js.map +1 -0
  161. package/dist/module/components/TickIcon.js +24 -0
  162. package/dist/module/components/TickIcon.js.map +1 -0
  163. package/dist/module/components/Toggle.js +66 -0
  164. package/dist/module/components/Toggle.js.map +1 -0
  165. package/dist/module/components/TouchableSearchBar.js +68 -0
  166. package/dist/module/components/TouchableSearchBar.js.map +1 -0
  167. package/dist/module/components/UserListPopup.js +136 -0
  168. package/dist/module/components/UserListPopup.js.map +1 -0
  169. package/dist/module/components/UserListing.js +268 -0
  170. package/dist/module/components/UserListing.js.map +1 -0
  171. package/dist/module/components/VideoPopup.js +113 -0
  172. package/dist/module/components/VideoPopup.js.map +1 -0
  173. package/dist/module/components/WarningPopup.js +85 -0
  174. package/dist/module/components/WarningPopup.js.map +1 -0
  175. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +289 -0
  176. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
  177. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +117 -0
  178. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
  179. package/dist/module/components/index.js +60 -0
  180. package/dist/module/components/index.js.map +1 -0
  181. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +422 -0
  182. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
  183. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +387 -0
  184. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
  185. package/dist/module/config.js +27 -0
  186. package/dist/module/config.js.map +1 -0
  187. package/dist/module/constants.js +18 -0
  188. package/dist/module/constants.js.map +1 -0
  189. package/dist/module/helper.js +424 -0
  190. package/dist/module/helper.js.map +1 -0
  191. package/dist/module/index.js +13 -0
  192. package/dist/module/index.js.map +1 -0
  193. package/dist/module/js/images/detectFaces.js +31 -0
  194. package/dist/module/js/images/detectFaces.js.map +1 -0
  195. package/dist/module/js/images/findLandmarkRange.js +93 -0
  196. package/dist/module/js/images/findLandmarkRange.js.map +1 -0
  197. package/dist/module/js/images/getScaledOffset.js +81 -0
  198. package/dist/module/js/images/getScaledOffset.js.map +1 -0
  199. package/dist/module/js/site/getSiteLevelFromState.js +29 -0
  200. package/dist/module/js/site/getSiteLevelFromState.js.map +1 -0
  201. package/dist/module/js/site/isTVEnabled.js +10 -0
  202. package/dist/module/js/site/isTVEnabled.js.map +1 -0
  203. package/dist/module/session.js +58 -0
  204. package/dist/module/session.js.map +1 -0
  205. package/dist/module/styles.js +67 -0
  206. package/dist/module/styles.js.map +1 -0
  207. package/dist/module/withNavigationFocus.js +30 -0
  208. package/dist/module/withNavigationFocus.js.map +1 -0
  209. package/package.json +1 -1
  210. package/src/components/PDFPopup.js +130 -35
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Component","Text","View","TouchableOpacity","StyleSheet","ActivityIndicator","Icon","DocumentPicker","connect","Config","fileActions","getValueOrDefault","TEXT_DARK","getMainBrandingColourFromState","DEFAULT_DOCUMENT_NAME","DocumentUploader","constructor","args","_defineProperty","isUploading","uploadProgress","allowedTypes","multiple","props","result","getDocumentAsync","type","copyToCacheDirectory","canceled","handleDocumentPicked","error","console","log","onUploadFailed","message","documentResult","assets","userId","setState","uploadPromises","map","asset","name","uri","mimeType","file","fileExt","includes","lastDotIndex","lastIndexOf","substring","mimeTypeParts","split","startsWith","fileName","uploadUri","getUploadUrl","onUploadStarted","toUpperCase","res","uploadUserMediaWithProgress","progress","onUploadProgress","fileUrl","env","baseUploadsUrl","key","onUploadSuccess","success","url","results","Promise","all","buttonTitle","buttonStyle","buttonTextStyle","disabled","state","mainColor","createElement","style","styles","uploadButton","borderColor","onPress","pickDocument","activeOpacity","buttonContent","color","size","icon","buttonText","progressContainer","progressBar","progressFill","width","progressText","Math","round","render","container","renderUploadButton","renderProgress","create","marginVertical","flexDirection","alignItems","justifyContent","paddingVertical","paddingHorizontal","borderRadius","backgroundColor","borderWidth","fontSize","fontWeight","marginLeft","marginRight","marginTop","height","overflow","mapStateToProps","user","colourBrandingMain"],"sources":["DocumentUploader.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tView,\n\tTouchableOpacity,\n\tStyleSheet,\n\tActivityIndicator,\n} from \"react-native\";\nimport { Icon } from \"@rneui/themed\";\nimport * as DocumentPicker from \"expo-document-picker\";\nimport { connect } from \"react-redux\";\nimport Config from \"../config\";\nimport { fileActions } from \"../apis\";\nimport { getValueOrDefault } from \"../helper\";\nimport { TEXT_DARK, getMainBrandingColourFromState } from \"../colours\";\n\nconst DEFAULT_DOCUMENT_NAME = \"document\";\n\nclass DocumentUploader extends Component {\n\tstatic defaultProps = {\n\t\tallowedTypes: [\"application/pdf\"],\n\t\tbuttonTitle: \"Upload Document\",\n\t\tbuttonStyle: {},\n\t\tbuttonTextStyle: {},\n\t\tonUploadStarted: () => {},\n\t\tonUploadSuccess: () => {},\n\t\tonUploadFailed: () => {},\n\t\tonUploadProgress: null,\n\t\tuserId: null,\n\t\tfileName: null,\n\t\tdisabled: false,\n\t};\n\n\tstate = {\n\t\tisUploading: false,\n\t\tuploadProgress: 0,\n\t};\n\n\tpickDocument = async () => {\n\t\tconst { allowedTypes, multiple } = this.props;\n\n\t\ttry {\n\t\t\tconst result = await DocumentPicker.getDocumentAsync({\n\t\t\t\ttype: allowedTypes,\n\t\t\t\tcopyToCacheDirectory: true,\n\t\t\t\tmultiple: multiple || false,\n\t\t\t});\n\t\t\t// console.log('pickDocument', JSON.stringify(result, null, 2));\n\n\t\t\tif (!result.canceled) {\n\t\t\t\tawait this.handleDocumentPicked(result);\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.log(\"Document picker error:\", error);\n\t\t\tthis.props.onUploadFailed(null, error.message);\n\t\t}\n\t};\n\n\thandleDocumentPicked = async (documentResult) => {\n\t\tconst { assets } = documentResult;\n\t\tconst { userId } = this.props;\n\n\t\ttry {\n\t\t\tthis.setState({ isUploading: true, uploadProgress: 0 });\n\n\t\t\t// Process each asset in parallel\n\t\t\tconst uploadPromises = assets.map(async (asset) => {\n\t\t\t\tconst { name, uri, mimeType } = asset;\n\n\t\t\t\tlet file, fileExt;\n\t\t\t\tif (name && name.includes(\".\")) {\n\t\t\t\t\tconst lastDotIndex = name.lastIndexOf(\".\");\n\t\t\t\t\tfile = name.substring(0, lastDotIndex);\n\t\t\t\t\tfileExt = name.substring(lastDotIndex + 1);\n\t\t\t\t} else {\n\t\t\t\t\t// Fallback: extract extension from mimeType\n\t\t\t\t\tfile = name || \"document\";\n\t\t\t\t\tif (mimeType) {\n\t\t\t\t\t\tconst mimeTypeParts = mimeType.split(\"/\");\n\t\t\t\t\t\t// Handle specific MIME type mappings\n\t\t\t\t\t\tif (mimeType === \"application/pdf\") fileExt = \"pdf\";\n\t\t\t\t\t\telse if (mimeType.startsWith(\"image/\")) fileExt = mimeTypeParts[1];\n\t\t\t\t\t\telse if (mimeType.startsWith(\"text/\")) fileExt = \"txt\";\n\t\t\t\t\t\telse fileExt = mimeTypeParts[1] || \"pdf\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfileExt = \"pdf\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Generate a unique filename if not provided\n\t\t\t\tconst fileName = `${getValueOrDefault(this.props.fileName, DEFAULT_DOCUMENT_NAME)}.${fileExt}`;\n\t\t\t\tconst uploadUri = fileActions.getUploadUrl(userId, fileName);\n\t\t\t\t// console.log('handleDocumentPicked', JSON.stringify({ uploadUri, uri, name, fileName, mimeType, file, fileExt }, null, 2));\n\n\t\t\t\ttry {\n\t\t\t\t\t// Notify parent component that upload has started for this file\n\t\t\t\t\tthis.props.onUploadStarted(\n\t\t\t\t\t\tuploadUri,\n\t\t\t\t\t\turi,\n\t\t\t\t\t\tfile,\n\t\t\t\t\t\tfileExt.toUpperCase(),\n\t\t\t\t\t);\n\n\t\t\t\t\tconst res = await fileActions.uploadUserMediaWithProgress(\n\t\t\t\t\t\turi,\n\t\t\t\t\t\tuploadUri,\n\t\t\t\t\t\t(progress) => {\n\t\t\t\t\t\t\tif (this.props.onUploadProgress)\n\t\t\t\t\t\t\t\tthis.props.onUploadProgress(progress);\n\t\t\t\t\t\t},\n\t\t\t\t\t);\n\n\t\t\t\t\tconst fileUrl = Config.env.baseUploadsUrl + res.key;\n\t\t\t\t\tthis.props.onUploadSuccess(fileUrl, uploadUri);\n\t\t\t\t\tconsole.log(\"Upload success\", fileUrl);\n\t\t\t\t\treturn { success: true, url: fileUrl, uploadUri };\n\t\t\t\t} catch (error) {\n\t\t\t\t\tconsole.error(`Upload failed for ${name}:`, error);\n\t\t\t\t\tthis.props.onUploadFailed(uploadUri, error.message);\n\t\t\t\t\treturn { success: false, error, uploadUri };\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t// Wait for all uploads to complete\n\t\t\tconst results = await Promise.all(uploadPromises);\n\t\t\treturn results;\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Document upload error:\", error);\n\t\t\treturn [];\n\t\t} finally {\n\t\t\tthis.setState({ isUploading: false, uploadProgress: 0 });\n\t\t}\n\t};\n\n\trenderUploadButton = () => {\n\t\tconst { buttonTitle, buttonStyle, buttonTextStyle, disabled } = this.props;\n\t\tconst { isUploading } = this.state;\n\t\tconst mainColor = getMainBrandingColourFromState(this.props);\n\n\t\treturn (\n\t\t\t<TouchableOpacity\n\t\t\t\tstyle={[styles.uploadButton, { borderColor: mainColor }, buttonStyle]}\n\t\t\t\tonPress={this.pickDocument}\n\t\t\t\tdisabled={isUploading || disabled}\n\t\t\t\tactiveOpacity={0.7}\n\t\t\t>\n\t\t\t\t<View style={styles.buttonContent}>\n\t\t\t\t\t{isUploading ? (\n\t\t\t\t\t\t<ActivityIndicator color={mainColor} />\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tname=\"attachment\"\n\t\t\t\t\t\t\ttype=\"entypo\"\n\t\t\t\t\t\t\tcolor={mainColor}\n\t\t\t\t\t\t\tsize={18}\n\t\t\t\t\t\t\tstyle={styles.icon}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={[styles.buttonText, { color: mainColor }, buttonTextStyle]}\n\t\t\t\t\t>\n\t\t\t\t\t\t{buttonTitle}\n\t\t\t\t\t</Text>\n\t\t\t\t</View>\n\t\t\t</TouchableOpacity>\n\t\t);\n\t};\n\n\trenderProgress = () => {\n\t\tconst { uploadProgress } = this.state;\n\t\tif (uploadProgress <= 0 || uploadProgress >= 1) return null;\n\n\t\treturn (\n\t\t\t<View style={styles.progressContainer}>\n\t\t\t\t<View style={styles.progressBar}>\n\t\t\t\t\t<View\n\t\t\t\t\t\tstyle={[styles.progressFill, { width: `${uploadProgress * 100}%` }]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t\t<Text style={styles.progressText}>\n\t\t\t\t\t{Math.round(uploadProgress * 100)}%\n\t\t\t\t</Text>\n\t\t\t</View>\n\t\t);\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={styles.container}>\n\t\t\t\t{this.renderUploadButton()}\n\t\t\t\t{this.renderProgress()}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tmarginVertical: 10,\n\t},\n\tuploadButton: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tpaddingVertical: 8,\n\t\tpaddingHorizontal: 16,\n\t\tborderRadius: 6,\n\t\tbackgroundColor: \"#fff\",\n\t\tborderWidth: 1,\n\t\tborderColor: \"#007AFF\",\n\t},\n\tbuttonContent: {\n\t\tflexDirection: \"row\",\n\t\talignItems: \"center\",\n\t},\n\tbuttonText: {\n\t\tcolor: \"#fff\",\n\t\tfontSize: 16,\n\t\tfontWeight: \"500\",\n\t\tmarginLeft: 8,\n\t},\n\ticon: {\n\t\tmarginRight: 8,\n\t},\n\tprogressContainer: {\n\t\tmarginTop: 8,\n\t\talignItems: \"center\",\n\t},\n\tprogressBar: {\n\t\theight: 4,\n\t\twidth: \"100%\",\n\t\tbackgroundColor: \"#E0E0E0\",\n\t\tborderRadius: 2,\n\t\toverflow: \"hidden\",\n\t},\n\tprogressFill: {\n\t\theight: \"100%\",\n\t\tbackgroundColor: \"#4CAF50\",\n\t},\n\tprogressText: {\n\t\tmarginTop: 4,\n\t\tfontSize: 12,\n\t\tcolor: TEXT_DARK,\n\t},\n});\n\nconst mapStateToProps = (state) => {\n\tconst { user } = state;\n\treturn {\n\t\tuser,\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nexport default connect(mapStateToProps)(DocumentUploader);\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SACCC,IAAI,EACJC,gBAAgB,EAChBC,UAAU,EACVC,iBAAiB,QACX,cAAc;AACrB,SAASC,IAAI,QAAQ,eAAe;AACpC,OAAO,KAAKC,cAAc,MAAM,sBAAsB;AACtD,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,WAAW,QAAQ,SAAS;AACrC,S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AQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,eAAe,EAAE,CAAC;IAClBC,iBAAiB,EAAE,EAAE;IACrBC,YAAY,EAAE,CAAC;IACfC,eAAe,EAAE,MAAM;IACvBC,WAAW,EAAE,CAAC;IACd7B,WAAW,EAAE;EACd,CAAC;EACDI,aAAa,EAAE;IACdkB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE;EACb,CAAC;EACDf,UAAU,EAAE;IACXH,KAAK,EAAE,MAAM;IACbyB,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE;EACb,CAAC;EACDzB,IAAI,EAAE;IACL0B,WAAW,EAAE;EACd,CAAC;EACDxB,iBAAiB,EAAE;IAClByB,SAAS,EAAE,CAAC;IACZX,UAAU,EAAE;EACb,CAAC;EACDb,WAAW,EAAE;IACZyB,MAAM,EAAE,CAAC;IACTvB,KAAK,EAAE,MAAM;IACbgB,eAAe,EAAE,SAAS;IAC1BD,YAAY,EAAE,CAAC;IACfS,QAAQ,EAAE;EACX,CAAC;EACDzB,YAAY,EAAE;IACbwB,MAAM,EAAE,MAAM;IACdP,eAAe,EAAE;EAClB,CAAC;EACDf,YAAY,EAAE;IACbqB,SAAS,EAAE,CAAC;IACZJ,QAAQ,EAAE,EAAE;IACZzB,KAAK,EAAE5E;EACR;AACD,CAAC,CAAC;AAEF,MAAM4G,eAAe,GAAI3C,KAAK,IAAK;EAClC,MAAM;IAAE4C;EAAK,CAAC,GAAG5C,KAAK;EACtB,OAAO;IACN4C,IAAI;IACJC,kBAAkB,EAAE7G,8BAA8B,CAACgE,KAAK;EACzD,CAAC;AACF,CAAC;AAED,eAAerE,OAAO,CAACgH,eAAe,CAAC,CAACzG,gBAAgB,CAAC","ignoreList":[]}
@@ -0,0 +1,75 @@
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 _ from "lodash";
6
+ import { TouchableOpacity } from "react-native";
7
+ import { Text } from "./Text";
8
+ import { Icon } from "@rneui/themed";
9
+ import { connect } from "react-redux";
10
+ import { TEXT_DARK, getMainBrandingColourFromState } from "../colours";
11
+ class DropDownItem extends Component {
12
+ constructor(...args) {
13
+ super(...args);
14
+ _defineProperty(this, "state", {});
15
+ }
16
+ renderIcon() {
17
+ if (!_.isUndefined(this.props.icon)) {
18
+ return /*#__PURE__*/React.createElement(Icon, {
19
+ name: this.props.icon,
20
+ type: "font-awesome",
21
+ style: styles.dropDownItem_Icon,
22
+ iconStyle: [styles.dropDownItem_IconStyle, {
23
+ fontSize: 16,
24
+ color: this.props.colourBrandingMain
25
+ }]
26
+ });
27
+ }
28
+ return null;
29
+ }
30
+ render() {
31
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
32
+ style: [styles.container, this.props.last && {
33
+ marginBottom: 0
34
+ }, this.props.style],
35
+ onPress: this.props.onPress,
36
+ activeOpacity: 0.6
37
+ }, this.renderIcon(), /*#__PURE__*/React.createElement(Text, {
38
+ style: [styles.text, this.props.textStyle]
39
+ }, this.props.text));
40
+ }
41
+ }
42
+ const styles = {
43
+ container: {
44
+ flexDirection: "row",
45
+ marginBottom: 12,
46
+ minHeight: 18,
47
+ width: "100%",
48
+ position: "relative"
49
+ },
50
+ text: {
51
+ fontFamily: "sf-medium",
52
+ fontSize: 16,
53
+ lineHeight: 18,
54
+ color: TEXT_DARK,
55
+ backgroundColor: "transparent"
56
+ },
57
+ dropDownItem_Icon: {
58
+ marginRight: 8,
59
+ width: 18,
60
+ alignSelf: "center"
61
+ },
62
+ dropDownItem_IconStyle: {
63
+ fontSize: 16,
64
+ lineHeight: 18,
65
+ textAlign: "center"
66
+ }
67
+ };
68
+ const mapStateToProps = state => {
69
+ return {
70
+ colourBrandingMain: getMainBrandingColourFromState(state)
71
+ };
72
+ };
73
+ const dropDownItem = connect(mapStateToProps, {})(DropDownItem);
74
+ export { dropDownItem as DropDownItem };
75
+ //# sourceMappingURL=DropDownItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Component","_","TouchableOpacity","Text","Icon","connect","TEXT_DARK","getMainBrandingColourFromState","DropDownItem","constructor","args","_defineProperty","renderIcon","isUndefined","props","icon","createElement","name","type","style","styles","dropDownItem_Icon","iconStyle","dropDownItem_IconStyle","fontSize","color","colourBrandingMain","render","container","last","marginBottom","onPress","activeOpacity","text","textStyle","flexDirection","minHeight","width","position","fontFamily","lineHeight","backgroundColor","marginRight","alignSelf","textAlign","mapStateToProps","state","dropDownItem"],"sources":["DropDownItem.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport _ from \"lodash\";\nimport { TouchableOpacity } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { Icon } from \"@rneui/themed\";\nimport { connect } from \"react-redux\";\nimport { TEXT_DARK, getMainBrandingColourFromState } from \"../colours\";\n\nclass DropDownItem extends Component {\n\tstate = {};\n\n\trenderIcon() {\n\t\tif (!_.isUndefined(this.props.icon)) {\n\t\t\treturn (\n\t\t\t\t<Icon\n\t\t\t\t\tname={this.props.icon}\n\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\tstyle={styles.dropDownItem_Icon}\n\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\tstyles.dropDownItem_IconStyle,\n\t\t\t\t\t\t{ fontSize: 16, color: this.props.colourBrandingMain },\n\t\t\t\t\t]}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<TouchableOpacity\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.container,\n\t\t\t\t\tthis.props.last && { marginBottom: 0 },\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t\tonPress={this.props.onPress}\n\t\t\t\tactiveOpacity={0.6}\n\t\t\t>\n\t\t\t\t{this.renderIcon()}\n\t\t\t\t<Text style={[styles.text, this.props.textStyle]}>\n\t\t\t\t\t{this.props.text}\n\t\t\t\t</Text>\n\t\t\t</TouchableOpacity>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\tflexDirection: \"row\",\n\t\tmarginBottom: 12,\n\t\tminHeight: 18,\n\t\twidth: \"100%\",\n\t\tposition: \"relative\",\n\t},\n\ttext: {\n\t\tfontFamily: \"sf-medium\",\n\t\tfontSize: 16,\n\t\tlineHeight: 18,\n\t\tcolor: TEXT_DARK,\n\t\tbackgroundColor: \"transparent\",\n\t},\n\tdropDownItem_Icon: {\n\t\tmarginRight: 8,\n\t\twidth: 18,\n\t\talignSelf: \"center\",\n\t},\n\tdropDownItem_IconStyle: {\n\t\tfontSize: 16,\n\t\tlineHeight: 18,\n\t\ttextAlign: \"center\",\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst dropDownItem = connect(mapStateToProps, {})(DropDownItem);\nexport { dropDownItem as DropDownItem };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,SAAS,EAAEC,8BAA8B,QAAQ,YAAY;AAEtE,MAAMC,YAAY,SAASR,SAAS,CAAC;EAAAS,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,g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W;IACvBf,QAAQ,EAAE,EAAE;IACZgB,UAAU,EAAE,EAAE;IACdf,KAAK,EAAEnB,SAAS;IAChBmC,eAAe,EAAE;EAClB,CAAC;EACDpB,iBAAiB,EAAE;IAClBqB,WAAW,EAAE,CAAC;IACdL,KAAK,EAAE,EAAE;IACTM,SAAS,EAAE;EACZ,CAAC;EACDpB,sBAAsB,EAAE;IACvBC,QAAQ,EAAE,EAAE;IACZgB,UAAU,EAAE,EAAE;IACdI,SAAS,EAAE;EACZ;AACD,CAAC;AAED,MAAMC,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACNpB,kBAAkB,EAAEnB,8BAA8B,CAACuC,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAMC,YAAY,GAAG1C,OAAO,CAACwC,eAAe,EAAE,CAAC,CAAC,CAAC,CAACrC,YAAY,CAAC;AAC/D,SAASuC,YAAY,IAAIvC,YAAY","ignoreList":[]}
@@ -0,0 +1,41 @@
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 { View } from "react-native";
6
+ class DropDownMenu extends Component {
7
+ constructor(...args) {
8
+ super(...args);
9
+ _defineProperty(this, "state", {});
10
+ }
11
+ render() {
12
+ if (!this.props.visible) {
13
+ return null;
14
+ }
15
+ return /*#__PURE__*/React.createElement(View, {
16
+ style: [styles.container, this.props.style]
17
+ }, this.props.children);
18
+ }
19
+ }
20
+ const styles = {
21
+ container: {
22
+ borderRadius: 2,
23
+ shadowColor: "#000",
24
+ shadowOffset: {
25
+ width: 0,
26
+ height: 2
27
+ },
28
+ shadowOpacity: 0.2,
29
+ shadowRadius: 4,
30
+ elevation: 4,
31
+ zIndex: 10,
32
+ backgroundColor: "#fff",
33
+ padding: 16,
34
+ paddingVertical: 14,
35
+ position: "absolute",
36
+ right: 0,
37
+ top: 0
38
+ }
39
+ };
40
+ export { DropDownMenu };
41
+ //# sourceMappingURL=DropDownMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Component","View","DropDownMenu","constructor","args","_defineProperty","render","props","visible","createElement","style","styles","container","children","borderRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","zIndex","backgroundColor","padding","paddingVertical","position","right","top"],"sources":["DropDownMenu.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View } from \"react-native\";\n\nclass DropDownMenu extends Component {\n\tstate = {};\n\n\trender() {\n\t\tif (!this.props.visible) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<View style={[styles.container, this.props.style]}>\n\t\t\t\t{this.props.children}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\tborderRadius: 2,\n\t\tshadowColor: \"#000\",\n\t\tshadowOffset: {\n\t\t\twidth: 0,\n\t\t\theight: 2,\n\t\t},\n\t\tshadowOpacity: 0.2,\n\t\tshadowRadius: 4,\n\t\televation: 4,\n\t\tzIndex: 10,\n\t\tbackgroundColor: \"#fff\",\n\t\tpadding: 16,\n\t\tpaddingVertical: 14,\n\n\t\tposition: \"absolute\",\n\t\tright: 0,\n\t\ttop: 0,\n\t},\n};\n\nexport { DropDownMenu };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,YAAY,SAASF,SAAS,CAAC;EAAAG,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,gBAC5B,CAAC,CAAC;EAAA;EAEVC,MAAMA,CAAA,EAAG;IACR,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,OAAO,EAAE;MACxB,OAAO,IAAI;IACZ;IACA,oBACCT,KAAA,CAAAU,aAAA,CAACR,IAAI;MAACS,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE,IAAI,CAACL,KAAK,CAACG,KAAK;IAAE,GAChD,IAAI,CAACH,KAAK,CAACM,QACP,CAAC;EAET;AACD;AAEA,MAAMF,MAAM,GAAG;EACdC,SAAS,EAAE;IACVE,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MACbC,KAAK,EAAE,CAAC;MACRC,MAAM,EAAE;IACT,CAAC;IACDC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE,CAAC;IACZC,MAAM,EAAE,EAAE;IACVC,eAAe,EAAE,MAAM;IACvBC,OAAO,EAAE,EAAE;IACXC,eAAe,EAAE,EAAE;IAEnBC,QAAQ,EAAE,UAAU;IACpBC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE;EACN;AACD,CAAC;AAED,SAAS1B,YAAY","ignoreList":[]}
@@ -0,0 +1,51 @@
1
+ import React, { PureComponent } from "react";
2
+ import { View, ScrollView, StyleSheet } from "react-native";
3
+ import { Text } from "./Text";
4
+ import _ from "lodash";
5
+ import { TEXT_BLUEGREY } from "../colours";
6
+ class EmptyStateMain extends PureComponent {
7
+ renderPlaceHolder(index, opacity = 1) {
8
+ const barCount = _.isUndefined(this.props.barCount) ? 3 : this.props.barCount;
9
+ if (barCount <= index) {
10
+ return null;
11
+ }
12
+ return /*#__PURE__*/React.createElement(View, {
13
+ style: [styles.item, {
14
+ opacity
15
+ }]
16
+ });
17
+ }
18
+ render() {
19
+ return /*#__PURE__*/React.createElement(View, {
20
+ style: [styles.container, this.props.style]
21
+ }, !this.props.hideTitle && /*#__PURE__*/React.createElement(Text, {
22
+ style: styles.titleText
23
+ }, this.props.title || "Nothing to see here"), this.props.content, /*#__PURE__*/React.createElement(ScrollView, {
24
+ style: styles.itemContainer
25
+ }, this.renderPlaceHolder(0, 0.8), this.renderPlaceHolder(1, 0.6), this.renderPlaceHolder(2, 0.4)));
26
+ }
27
+ }
28
+ const styles = StyleSheet.create({
29
+ container: {
30
+ borderRadius: 5,
31
+ paddingVertical: 5
32
+ },
33
+ titleText: {
34
+ fontFamily: "qs-bold",
35
+ fontSize: 16,
36
+ color: TEXT_BLUEGREY
37
+ },
38
+ itemContainer: {
39
+ marginTop: 20,
40
+ flexDirection: "column"
41
+ },
42
+ item: {
43
+ borderRadius: 4,
44
+ width: "100%",
45
+ height: 32,
46
+ backgroundColor: "#e6ebef",
47
+ marginBottom: 17
48
+ }
49
+ });
50
+ export default EmptyStateMain;
51
+ //# sourceMappingURL=EmptyStateMain.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","PureComponent","View","ScrollView","StyleSheet","Text","_","TEXT_BLUEGREY","EmptyStateMain","renderPlaceHolder","index","opacity","barCount","isUndefined","props","createElement","style","styles","item","render","container","hideTitle","titleText","title","content","itemContainer","create","borderRadius","paddingVertical","fontFamily","fontSize","color","marginTop","flexDirection","width","height","backgroundColor","marginBottom"],"sources":["EmptyStateMain.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, ScrollView, StyleSheet } from \"react-native\";\nimport { Text } from \"./Text\";\nimport _ from \"lodash\";\nimport { TEXT_BLUEGREY } from \"../colours\";\n\nclass EmptyStateMain extends PureComponent {\n\trenderPlaceHolder(index, opacity = 1) {\n\t\tconst barCount = _.isUndefined(this.props.barCount)\n\t\t\t? 3\n\t\t\t: this.props.barCount;\n\t\tif (barCount <= index) {\n\t\t\treturn null;\n\t\t}\n\t\treturn <View style={[styles.item, { opacity }]} />;\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<View style={[styles.container, this.props.style]}>\n\t\t\t\t{!this.props.hideTitle && (\n\t\t\t\t\t<Text style={styles.titleText}>\n\t\t\t\t\t\t{this.props.title || \"Nothing to see here\"}\n\t\t\t\t\t</Text>\n\t\t\t\t)}\n\t\t\t\t{this.props.content}\n\t\t\t\t<ScrollView style={styles.itemContainer}>\n\t\t\t\t\t{this.renderPlaceHolder(0, 0.8)}\n\t\t\t\t\t{this.renderPlaceHolder(1, 0.6)}\n\t\t\t\t\t{this.renderPlaceHolder(2, 0.4)}\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\tflexDirection: \"column\",\n\t},\n\titem: {\n\t\tborderRadius: 4,\n\t\twidth: \"100%\",\n\t\theight: 32,\n\t\tbackgroundColor: \"#e6ebef\",\n\t\tmarginBottom: 17,\n\t},\n});\n\nexport default EmptyStateMain;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,aAAa,QAAQ,YAAY;AAE1C,MAAMC,cAAc,SAASP,aAAa,CAAC;EAC1CQ,iBAAiBA,CAACC,KAAK,EAAEC,OAAO,GAAG,CAAC,EAAE;IACrC,MAAMC,QAAQ,GAAGN,CAAC,CAACO,WAAW,CAAC,IAAI,CAACC,KAAK,CAACF,QAAQ,CAAC,GAChD,CAAC,GACD,IAAI,CAACE,KAAK,CAACF,QAAQ;IACtB,IAAIA,QAAQ,IAAIF,KAAK,EAAE;MACtB,OAAO,IAAI;IACZ;IACA,oBAAOV,KAAA,CAAAe,aAAA,CAACb,IAAI;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,48 @@
1
+ import React, { PureComponent } from "react";
2
+ import { View, ScrollView, StyleSheet } from "react-native";
3
+ import { Text } from "./Text";
4
+ import { TEXT_BLUEGREY } from "../colours";
5
+ class EmptyStateWidget extends PureComponent {
6
+ renderPlaceHolder(opacity = 1) {
7
+ return /*#__PURE__*/React.createElement(View, {
8
+ style: [styles.item, {
9
+ opacity
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(Text, {
19
+ style: styles.titleText
20
+ }, this.props.title || "Nothing to see here"), /*#__PURE__*/React.createElement(ScrollView, {
21
+ horizontal: true,
22
+ style: styles.itemContainer
23
+ }, this.renderPlaceHolder(0.8), this.renderPlaceHolder(0.6), this.renderPlaceHolder(0.4), this.renderPlaceHolder(0.2)));
24
+ }
25
+ }
26
+ const styles = StyleSheet.create({
27
+ container: {
28
+ borderRadius: 5,
29
+ paddingVertical: 5
30
+ },
31
+ titleText: {
32
+ fontFamily: "qs-bold",
33
+ fontSize: 16,
34
+ color: TEXT_BLUEGREY
35
+ },
36
+ itemContainer: {
37
+ marginTop: 20
38
+ },
39
+ item: {
40
+ borderRadius: 4,
41
+ width: 97,
42
+ height: 98,
43
+ backgroundColor: "#e6ebef",
44
+ marginRight: 17
45
+ }
46
+ });
47
+ export default EmptyStateWidget;
48
+ //# sourceMappingURL=EmptyStateWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","PureComponent","View","ScrollView","StyleSheet","Text","TEXT_BLUEGREY","EmptyStateWidget","renderPlaceHolder","opacity","createElement","style","styles","item","render","container","props","height","titleText","title","horizontal","itemContainer","create","borderRadius","paddingVertical","fontFamily","fontSize","color","marginTop","width","backgroundColor","marginRight"],"sources":["EmptyStateWidget.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, ScrollView, StyleSheet } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { TEXT_BLUEGREY } from \"../colours\";\n\nclass EmptyStateWidget extends PureComponent {\n\trenderPlaceHolder(opacity = 1) {\n\t\treturn <View style={[styles.item, { opacity }]} />;\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<Text style={styles.titleText}>\n\t\t\t\t\t{this.props.title || \"Nothing to see here\"}\n\t\t\t\t</Text>\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: 17,\n\t},\n});\n\nexport default EmptyStateWidget;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,UAAU,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,aAAa,QAAQ,YAAY;AAE1C,MAAMC,gBAAgB,SAASN,aAAa,CAAC;EAC5CO,iBAAiBA,CAACC,OAAO,GAAG,CAAC,EAAE;IAC9B,oBAAOT,KAAA,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AAexB,gBAAgB","ignoreList":[]}
@@ -0,0 +1,37 @@
1
+ import React, { PureComponent } from "react";
2
+ import { TouchableOpacity } from "react-native";
3
+ import { Text } from "./Text";
4
+ import { TEXT_DARK } from "../colours";
5
+
6
+ /*
7
+ Props-
8
+ style - custom style for container
9
+ */
10
+
11
+ class FontScaleButton extends PureComponent {
12
+ render() {
13
+ return /*#__PURE__*/React.createElement(TouchableOpacity, {
14
+ style: [styles.container, this.props.style],
15
+ onPress: this.props.onPress
16
+ }, /*#__PURE__*/React.createElement(Text, {
17
+ style: styles.text
18
+ }, /*#__PURE__*/React.createElement(Text, null, "A"), /*#__PURE__*/React.createElement(Text, null, ` `), /*#__PURE__*/React.createElement(Text, {
19
+ style: styles.largeText
20
+ }, "A")));
21
+ }
22
+ }
23
+ const styles = {
24
+ container: {
25
+ padding: 15
26
+ },
27
+ text: {
28
+ fontFamily: "sf-medium",
29
+ color: TEXT_DARK,
30
+ fontSize: 14
31
+ },
32
+ largeText: {
33
+ fontSize: 24
34
+ }
35
+ };
36
+ export { FontScaleButton };
37
+ //# sourceMappingURL=FontScaleButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","PureComponent","TouchableOpacity","Text","TEXT_DARK","FontScaleButton","render","createElement","style","styles","container","props","onPress","text","largeText","padding","fontFamily","color","fontSize"],"sources":["FontScaleButton.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { TouchableOpacity } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { TEXT_DARK } from \"../colours\";\n\n/* \nProps- \n style - custom style for container\n*/\n\nclass FontScaleButton extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<TouchableOpacity\n\t\t\t\tstyle={[styles.container, this.props.style]}\n\t\t\t\tonPress={this.props.onPress}\n\t\t\t>\n\t\t\t\t<Text style={styles.text}>\n\t\t\t\t\t<Text>A</Text>\n\t\t\t\t\t<Text>{` `}</Text>\n\t\t\t\t\t<Text style={styles.largeText}>A</Text>\n\t\t\t\t</Text>\n\t\t\t</TouchableOpacity>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\tpadding: 15,\n\t},\n\ttext: {\n\t\tfontFamily: \"sf-medium\",\n\t\tcolor: TEXT_DARK,\n\t\tfontSize: 14,\n\t},\n\tlargeText: {\n\t\tfontSize: 24,\n\t},\n};\n\nexport { FontScaleButton };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,gBAAgB,QAAQ,cAAc;AAC/C,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,SAAS,QAAQ,YAAY;;AAEtC;AACA;AACA;AACA;;AAEA,MAAMC,eAAe,SAASJ,aAAa,CAAC;EAC3CK,MAAMA,CAAA,EAAG;IACR,oBACCN,KAAA,CAAAO,aAAA,CAACL,gBAAgB;MAChBM,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE,IAAI,CAACC,KAAK,CAACH,KAAK,CAAE;MAC5CI,OAAO,EAAE,IAAI,CAACD,KAAK,CAACC;IAAQ,gBAE5BZ,KAAA,CAAAO,aAAA,CAACJ,IAAI;MAACK,KAAK,EAAEC,MAAM,CAACI;IAAK,gBACxBb,KAAA,CAAAO,aAAA,CAACJ,IAAI,QAAC,GAAO,CAAC,eACdH,KAAA,CAAAO,aAAA,CAACJ,IAAI,QAAE,GAAU,CAAC,eAClBH,KAAA,CAAAO,aAAA,CAACJ,IAAI;MAACK,KAAK,EAAEC,MAAM,CAACK;IAAU,GAAC,GAAO,CACjC,CACW,CAAC;EAErB;AACD;AAEA,MAAML,MAAM,GAAG;EACdC,SAAS,EAAE;IACVK,OAAO,EAAE;EACV,CAAC;EACDF,IAAI,EAAE;IACLG,UAAU,EAAE,WAAW;IACvBC,KAAK,EAAEb,SAAS;IAChBc,QAAQ,EAAE;EACX,CAAC;EACDJ,SAAS,EAAE;IACVI,QAAQ,EAAE;EACX;AACD,CAAC;AAED,SAASb,eAAe","ignoreList":[]}
@@ -0,0 +1,76 @@
1
+ import React, { PureComponent } from "react";
2
+ import { TouchableOpacity, View } from "react-native";
3
+ import { Text } from "./Text";
4
+ import { TEXT_DARK, LINEGREY } from "../colours";
5
+
6
+ /*
7
+ Props-
8
+ style - custom style for container
9
+ buttonLeftStyle - custom style for left button
10
+ buttonRightStyle - custom style for right button
11
+ onPressSmall - callback function
12
+ onPressLarge - custom style for right button
13
+ */
14
+
15
+ class FontScalePopup extends PureComponent {
16
+ render() {
17
+ if (!this.props.visible) {
18
+ return null;
19
+ }
20
+ return /*#__PURE__*/React.createElement(View, {
21
+ style: [styles.container, this.props.style]
22
+ }, /*#__PURE__*/React.createElement(TouchableOpacity, {
23
+ style: [styles.button, styles.buttonLeft, this.props.buttonLeftStyle],
24
+ onPress: this.props.onPressSmall
25
+ }, /*#__PURE__*/React.createElement(Text, {
26
+ style: styles.smallText
27
+ }, "A")), /*#__PURE__*/React.createElement(TouchableOpacity, {
28
+ style: [styles.button, styles.buttonRight, this.props.buttonRightStyle],
29
+ onPress: this.props.onPressLarge
30
+ }, /*#__PURE__*/React.createElement(Text, {
31
+ style: styles.largeText
32
+ }, "A")));
33
+ }
34
+ }
35
+ const styles = {
36
+ container: {
37
+ flexDirection: "row",
38
+ borderRadius: 2,
39
+ shadowColor: "#000",
40
+ shadowOffset: {
41
+ width: 0,
42
+ height: 2
43
+ },
44
+ shadowOpacity: 0.2,
45
+ shadowRadius: 4,
46
+ elevation: 4,
47
+ zIndex: 10,
48
+ backgroundColor: "#fff",
49
+ padding: 2
50
+ },
51
+ button: {
52
+ height: 50,
53
+ width: 64,
54
+ borderColor: LINEGREY,
55
+ alignItems: "center",
56
+ justifyContent: "center"
57
+ },
58
+ buttonLeft: {
59
+ borderRightWidth: 1
60
+ },
61
+ buttonRight: {
62
+ borderLeftWidth: 1
63
+ },
64
+ smallText: {
65
+ fontFamily: "sf-medium",
66
+ color: TEXT_DARK,
67
+ fontSize: 16
68
+ },
69
+ largeText: {
70
+ fontFamily: "sf-medium",
71
+ color: TEXT_DARK,
72
+ fontSize: 24
73
+ }
74
+ };
75
+ export { FontScalePopup };
76
+ //# sourceMappingURL=FontScalePopup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","PureComponent","TouchableOpacity","View","Text","TEXT_DARK","LINEGREY","FontScalePopup","render","props","visible","createElement","style","styles","container","button","buttonLeft","buttonLeftStyle","onPress","onPressSmall","smallText","buttonRight","buttonRightStyle","onPressLarge","largeText","flexDirection","borderRadius","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","zIndex","backgroundColor","padding","borderColor","alignItems","justifyContent","borderRightWidth","borderLeftWidth","fontFamily","color","fontSize"],"sources":["FontScalePopup.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { TouchableOpacity, View } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { TEXT_DARK, LINEGREY } from \"../colours\";\n\n/* \nProps- \n style - custom style for container\n buttonLeftStyle - custom style for left button\n buttonRightStyle - custom style for right button\n onPressSmall - callback function \n onPressLarge - custom style for right button\n*/\n\nclass FontScalePopup extends PureComponent {\n\trender() {\n\t\tif (!this.props.visible) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<View style={[styles.container, this.props.style]}>\n\t\t\t\t<TouchableOpacity\n\t\t\t\t\tstyle={[styles.button, styles.buttonLeft, this.props.buttonLeftStyle]}\n\t\t\t\t\tonPress={this.props.onPressSmall}\n\t\t\t\t>\n\t\t\t\t\t<Text style={styles.smallText}>A</Text>\n\t\t\t\t</TouchableOpacity>\n\t\t\t\t<TouchableOpacity\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.button,\n\t\t\t\t\t\tstyles.buttonRight,\n\t\t\t\t\t\tthis.props.buttonRightStyle,\n\t\t\t\t\t]}\n\t\t\t\t\tonPress={this.props.onPressLarge}\n\t\t\t\t>\n\t\t\t\t\t<Text style={styles.largeText}>A</Text>\n\t\t\t\t</TouchableOpacity>\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\tflexDirection: \"row\",\n\t\tborderRadius: 2,\n\t\tshadowColor: \"#000\",\n\t\tshadowOffset: {\n\t\t\twidth: 0,\n\t\t\theight: 2,\n\t\t},\n\t\tshadowOpacity: 0.2,\n\t\tshadowRadius: 4,\n\t\televation: 4,\n\t\tzIndex: 10,\n\t\tbackgroundColor: \"#fff\",\n\t\tpadding: 2,\n\t},\n\tbutton: {\n\t\theight: 50,\n\t\twidth: 64,\n\t\tborderColor: LINEGREY,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t},\n\tbuttonLeft: {\n\t\tborderRightWidth: 1,\n\t},\n\tbuttonRight: {\n\t\tborderLeftWidth: 1,\n\t},\n\tsmallText: {\n\t\tfontFamily: \"sf-medium\",\n\t\tcolor: TEXT_DARK,\n\t\tfontSize: 16,\n\t},\n\tlargeText: {\n\t\tfontFamily: \"sf-medium\",\n\t\tcolor: TEXT_DARK,\n\t\tfontSize: 24,\n\t},\n};\n\nexport { FontScalePopup };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,gBAAgB,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,SAAS,EAAEC,QAAQ,QAAQ,YAAY;;AAEhD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,cAAc,SAASN,aAAa,CAAC;EAC1CO,MAAMA,CAAA,EAAG;IACR,IAAI,CAAC,IAAI,CAACC,KAAK,CAACC,OAAO,EAAE;MACxB,OAAO,IAAI;IACZ;IACA,oBACCV,KAAA,CAAAW,aAAA,CAACR,IAAI;MAACS,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE,IAAI,CAACL,KAAK,CAACG,KAAK;IAAE,gBACjDZ,KAAA,CAAAW,aAAA,CAACT,gBAAgB;MAChBU,KAAK,EAAE,CAACC,MAAM,CAACE,MAAM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AQ,EAAE;EACX,CAAC;EACDpB,SAAS,EAAE;IACVkB,UAAU,EAAE,WAAW;IACvBC,KAAK,EAAEtC,SAAS;IAChBuC,QAAQ,EAAE;EACX;AACD,CAAC;AAED,SAASrC,cAAc","ignoreList":[]}
@@ -0,0 +1,58 @@
1
+ import React from "react";
2
+ import _ from "lodash";
3
+ import { View } from "react-native";
4
+ import { Text } from ".";
5
+ import { getMainBrandingColourFromState } from "../colours";
6
+ import { InlineButton } from "./InlineButton";
7
+ import { Services } from "../config";
8
+ import { connect } from "react-redux";
9
+ import Header from "./Header";
10
+ const Forbidden = ({
11
+ colourBrandingMain,
12
+ title,
13
+ description
14
+ }) => {
15
+ const goBack = () => {
16
+ Services.navigation.goBack();
17
+ };
18
+ return /*#__PURE__*/React.createElement(View, {
19
+ style: {
20
+ flex: 1,
21
+ backgroundColor: "#fff"
22
+ }
23
+ }, /*#__PURE__*/React.createElement(Header, {
24
+ leftIcon: "angle-left",
25
+ onPressLeft: goBack
26
+ }), /*#__PURE__*/React.createElement(View, {
27
+ style: {
28
+ padding: 16
29
+ }
30
+ }, /*#__PURE__*/React.createElement(Text, {
31
+ type: "pageHeading",
32
+ style: {
33
+ color: colourBrandingMain
34
+ }
35
+ }, !_.isEmpty(title) ? title : "Oops!"), /*#__PURE__*/React.createElement(Text, {
36
+ type: "body",
37
+ style: {
38
+ marginTop: 10
39
+ }
40
+ }, !_.isEmpty(description) ? description : "It seems this item is no longer accessible. It may have been removed or your access might have changed."), /*#__PURE__*/React.createElement(View, {
41
+ style: {
42
+ marginTop: 20
43
+ }
44
+ }, /*#__PURE__*/React.createElement(InlineButton, {
45
+ onPress: goBack,
46
+ color: colourBrandingMain
47
+ }, "Go back"))));
48
+ };
49
+ const mapStateToProps = state => {
50
+ return {
51
+ colourBrandingMain: getMainBrandingColourFromState(state)
52
+ };
53
+ };
54
+ const forbidden = connect(mapStateToProps, {}, null, {
55
+ forwardRef: true
56
+ })(Forbidden);
57
+ export { forbidden as Forbidden };
58
+ //# sourceMappingURL=Forbidden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","_","View","Text","getMainBrandingColourFromState","InlineButton","Services","connect","Header","Forbidden","colourBrandingMain","title","description","goBack","navigation","createElement","style","flex","backgroundColor","leftIcon","onPressLeft","padding","type","color","isEmpty","marginTop","onPress","mapStateToProps","state","forbidden","forwardRef"],"sources":["Forbidden.js"],"sourcesContent":["import React from \"react\";\nimport _ from \"lodash\";\nimport { View } from \"react-native\";\nimport { Text } from \".\";\nimport { getMainBrandingColourFromState } from \"../colours\";\nimport { InlineButton } from \"./InlineButton\";\nimport { Services } from \"../config\";\nimport { connect } from \"react-redux\";\nimport Header from \"./Header\";\n\nconst Forbidden = ({ colourBrandingMain, title, description }) => {\n\tconst goBack = () => {\n\t\tServices.navigation.goBack();\n\t};\n\n\treturn (\n\t\t<View\n\t\t\tstyle={{\n\t\t\t\tflex: 1,\n\t\t\t\tbackgroundColor: \"#fff\",\n\t\t\t}}\n\t\t>\n\t\t\t<Header leftIcon=\"angle-left\" onPressLeft={goBack} />\n\t\t\t<View\n\t\t\t\tstyle={{\n\t\t\t\t\tpadding: 16,\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<Text type=\"pageHeading\" style={{ color: colourBrandingMain }}>\n\t\t\t\t\t{!_.isEmpty(title) ? title : \"Oops!\"}\n\t\t\t\t</Text>\n\t\t\t\t<Text type=\"body\" style={{ marginTop: 10 }}>\n\t\t\t\t\t{!_.isEmpty(description)\n\t\t\t\t\t\t? description\n\t\t\t\t\t\t: \"It seems this item is no longer accessible. It may have been removed or your access might have changed.\"}\n\t\t\t\t</Text>\n\t\t\t\t<View style={{ marginTop: 20 }}>\n\t\t\t\t\t<InlineButton onPress={goBack} color={colourBrandingMain}>\n\t\t\t\t\t\tGo back\n\t\t\t\t\t</InlineButton>\n\t\t\t\t</View>\n\t\t\t</View>\n\t\t</View>\n\t);\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst forbidden = connect(mapStateToProps, {}, null, { forwardRef: true })(\n\tForbidden,\n);\nexport { forbidden as Forbidden };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,IAAI,QAAQ,GAAG;AACxB,SAASC,8BAA8B,QAAQ,YAAY;AAC3D,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,QAAQ,QAAQ,WAAW;AACpC,SAASC,OAAO,QAAQ,aAAa;AACrC,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,SAAS,GAAGA,CAAC;EAAEC,kBAAkB;EAAEC,KAAK;EAAEC;AAAY,CAAC,KAAK;EACjE,MAAMC,MAAM,GAAGA,CAAA,KAAM;IACpBP,QAAQ,CAACQ,UAAU,CAACD,MAAM,CAAC,CAAC;EAC7B,CAAC;EAED,oBACCb,KAAA,CAAAe,aAAA,CAACb,IAAI;IACJc,KAAK,EAAE;MACNC,IAAI,EAAE,CAAC;MACPC,eAAe,EAAE;IAClB;EAAE,gBAEFlB,KAAA,CAAAe,aAAA,CAACP,MAAM;IAACW,QAAQ,EAAC,YAAY;IAACC,WAAW,EAAEP;EAAO,CAAE,CAAC,eACrDb,KAAA,CAAAe,aAAA,CAACb,IAAI;IACJc,KAAK,EAAE;MACNK,OAAO,EAAE;IACV;EAAE,gBAEFrB,KAAA,CAAAe,aAAA,CAACZ,IAAI;IAACmB,IAAI,EAAC,aAAa;IAACN,KAAK,EAAE;MAAEO,KAAK,EAAEb;IAAmB;EAAE,GAC5D,CAACT,CAAC,CAACuB,OAAO,CAACb,KAAK,CAAC,GAAGA,KAAK,GAAG,OACxB,CAAC,eACPX,KAAA,CAAAe,aAAA,CAACZ,IAAI;IAACmB,IAAI,EAAC,MAAM;IAACN,KAAK,EAAE;MAAES,SAAS,EAAE;IAAG;EAAE,GACzC,CAACxB,CAAC,CAACuB,OAAO,CAACZ,WAAW,CAAC,GACrBA,WAAW,GACX,yGACE,CAAC,eACPZ,KAAA,CAAAe,aAAA,CAACb,IAAI;IAACc,KAAK,EAAE;MAAES,SAAS,EAAE;IAAG;EAAE,gBAC9BzB,KAAA,CAAAe,aAAA,CAACV,YAAY;IAACqB,OAAO,EAAEb,MAAO;IAACU,KAAK,EAAEb;EAAmB,GAAC,SAE5C,CACT,CACD,CACD,CAAC;AAET,CAAC;AAED,MAAMiB,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACNlB,kBAAkB,EAAEN,8BAA8B,CAACwB,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAMC,SAAS,GAAGtB,OAAO,CAACoB,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE;EAAEG,UAAU,EAAE;AAAK,CAAC,CAAC,CACzErB,SACD,CAAC;AACD,SAASoB,SAAS,IAAIpB,SAAS","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ import React, { PureComponent } from "react";
2
+ import { View } from "react-native";
3
+ class FormCard extends PureComponent {
4
+ render() {
5
+ return /*#__PURE__*/React.createElement(View, {
6
+ style: [styles.section, this.props.style]
7
+ }, this.props.children);
8
+ }
9
+ }
10
+ const styles = {
11
+ section: {
12
+ backgroundColor: "#fff",
13
+ paddingHorizontal: 16,
14
+ shadowColor: "#000",
15
+ shadowOffset: {
16
+ width: 0,
17
+ height: 1
18
+ },
19
+ shadowOpacity: 0.1,
20
+ shadowRadius: 6,
21
+ elevation: 2
22
+ }
23
+ };
24
+ export { FormCard };
25
+ //# sourceMappingURL=FormCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","PureComponent","View","FormCard","render","createElement","style","styles","section","props","children","backgroundColor","paddingHorizontal","shadowColor","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation"],"sources":["FormCard.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View } from \"react-native\";\n\nclass FormCard extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<View style={[styles.section, this.props.style]}>\n\t\t\t\t{this.props.children}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tsection: {\n\t\tbackgroundColor: \"#fff\",\n\t\tpaddingHorizontal: 16,\n\t\tshadowColor: \"#000\",\n\t\tshadowOffset: {\n\t\t\twidth: 0,\n\t\t\theight: 1,\n\t\t},\n\t\tshadowOpacity: 0.1,\n\t\tshadowRadius: 6,\n\t\televation: 2,\n\t},\n};\n\nexport { FormCard };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AAEnC,MAAMC,QAAQ,SAASF,aAAa,CAAC;EACpCG,MAAMA,CAAA,EAAG;IACR,oBACCJ,KAAA,CAAAK,aAAA,CAACH,IAAI;MAACI,KAAK,EAAE,CAACC,MAAM,CAACC,OAAO,EAAE,IAAI,CAACC,KAAK,CAACH,KAAK;IAAE,GAC9C,IAAI,CAACG,KAAK,CAACC,QACP,CAAC;EAET;AACD;AAEA,MAAMH,MAAM,GAAG;EACdC,OAAO,EAAE;IACRG,eAAe,EAAE,MAAM;IACvBC,iBAAiB,EAAE,EAAE;IACrBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MACbC,KAAK,EAAE,CAAC;MACRC,MAAM,EAAE;IACT,CAAC;IACDC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACZ;AACD,CAAC;AAED,SAAShB,QAAQ","ignoreList":[]}