@plusscommunities/pluss-core-app 6.1.7 → 6.1.8-auth.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/dist/module/actions/FollowerActions.js +4 -4
  2. package/dist/module/actions/FollowerActions.js.map +1 -1
  3. package/dist/module/actions/MediaActions.js +1 -1
  4. package/dist/module/actions/MediaActions.js.map +1 -1
  5. package/dist/module/actions/ResidentActions.js +1 -1
  6. package/dist/module/actions/ResidentActions.js.map +1 -1
  7. package/dist/module/actions/UserActions.js +1 -1
  8. package/dist/module/actions/UserActions.js.map +1 -1
  9. package/dist/module/actions/UserSettingsActions.js +1 -1
  10. package/dist/module/actions/UserSettingsActions.js.map +1 -1
  11. package/dist/module/actions/index.js +5 -5
  12. package/dist/module/actions/index.js.map +1 -1
  13. package/dist/module/actions/types.js +16 -16
  14. package/dist/module/actions/types.js.map +1 -1
  15. package/dist/module/apis/analyticsActions.js +5 -5
  16. package/dist/module/apis/analyticsActions.js.map +1 -1
  17. package/dist/module/apis/contactActions.js +6 -6
  18. package/dist/module/apis/contactActions.js.map +1 -1
  19. package/dist/module/apis/eventActions.js +28 -28
  20. package/dist/module/apis/eventActions.js.map +1 -1
  21. package/dist/module/apis/fileActions.js +21 -28
  22. package/dist/module/apis/fileActions.js.map +1 -1
  23. package/dist/module/apis/followerActions.js +8 -8
  24. package/dist/module/apis/followerActions.js.map +1 -1
  25. package/dist/module/apis/index.js +12 -12
  26. package/dist/module/apis/index.js.map +1 -1
  27. package/dist/module/apis/notificationActions.js +17 -17
  28. package/dist/module/apis/notificationActions.js.map +1 -1
  29. package/dist/module/apis/profileActions.js +4 -4
  30. package/dist/module/apis/profileActions.js.map +1 -1
  31. package/dist/module/apis/reactionActions.js +15 -15
  32. package/dist/module/apis/reactionActions.js.map +1 -1
  33. package/dist/module/apis/settingActions.js +6 -6
  34. package/dist/module/apis/settingActions.js.map +1 -1
  35. package/dist/module/apis/stringActions.js +8 -8
  36. package/dist/module/apis/stringActions.js.map +1 -1
  37. package/dist/module/apis/typeActions.js +4 -4
  38. package/dist/module/apis/typeActions.js.map +1 -1
  39. package/dist/module/apis/userActions.js +8 -8
  40. package/dist/module/apis/userActions.js.map +1 -1
  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/colours.js +26 -29
  48. package/dist/module/colours.js.map +1 -1
  49. package/dist/module/components/AddButton.js +8 -8
  50. package/dist/module/components/AddButton.js.map +1 -1
  51. package/dist/module/components/AddToCalendarButton.js +30 -29
  52. package/dist/module/components/AddToCalendarButton.js.map +1 -1
  53. package/dist/module/components/Attachment.js +10 -9
  54. package/dist/module/components/Attachment.js.map +1 -1
  55. package/dist/module/components/AudienceSelectorLauncher.js +11 -11
  56. package/dist/module/components/AudienceSelectorLauncher.js.map +1 -1
  57. package/dist/module/components/AudienceSelectorPage.js +45 -44
  58. package/dist/module/components/AudienceSelectorPage.js.map +1 -1
  59. package/dist/module/components/AutoOffsetImage.js +13 -13
  60. package/dist/module/components/AutoOffsetImage.js.map +1 -1
  61. package/dist/module/components/BackButton.js +10 -10
  62. package/dist/module/components/BackButton.js.map +1 -1
  63. package/dist/module/components/CalendarPopup.js +21 -21
  64. package/dist/module/components/CalendarPopup.js.map +1 -1
  65. package/dist/module/components/CategoryTabs.js +30 -29
  66. package/dist/module/components/CategoryTabs.js.map +1 -1
  67. package/dist/module/components/CommentReply.js +36 -34
  68. package/dist/module/components/CommentReply.js.map +1 -1
  69. package/dist/module/components/CommentSection.js +74 -74
  70. package/dist/module/components/CommentSection.js.map +1 -1
  71. package/dist/module/components/ConfirmPopup.js +21 -20
  72. package/dist/module/components/ConfirmPopup.js.map +1 -1
  73. package/dist/module/components/ConfirmationPopup.js +11 -11
  74. package/dist/module/components/ConfirmationPopup.js.map +1 -1
  75. package/dist/module/components/DocumentUploader.js +253 -0
  76. package/dist/module/components/DocumentUploader.js.map +1 -0
  77. package/dist/module/components/DropDownItem.js +14 -13
  78. package/dist/module/components/DropDownItem.js.map +1 -1
  79. package/dist/module/components/DropDownMenu.js +5 -5
  80. package/dist/module/components/DropDownMenu.js.map +1 -1
  81. package/dist/module/components/EmptyStateMain.js +10 -9
  82. package/dist/module/components/EmptyStateMain.js.map +1 -1
  83. package/dist/module/components/EmptyStateWidget.js +7 -6
  84. package/dist/module/components/EmptyStateWidget.js.map +1 -1
  85. package/dist/module/components/FontScaleButton.js +5 -4
  86. package/dist/module/components/FontScaleButton.js.map +1 -1
  87. package/dist/module/components/FontScalePopup.js +11 -10
  88. package/dist/module/components/FontScalePopup.js.map +1 -1
  89. package/dist/module/components/Forbidden.js +13 -13
  90. package/dist/module/components/Forbidden.js.map +1 -1
  91. package/dist/module/components/FormCard.js +4 -4
  92. package/dist/module/components/FormCard.js.map +1 -1
  93. package/dist/module/components/FormCardSection.js +20 -18
  94. package/dist/module/components/FormCardSection.js.map +1 -1
  95. package/dist/module/components/FormCardSectionOptionLauncher.js +13 -12
  96. package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -1
  97. package/dist/module/components/FormattedText.js +18 -16
  98. package/dist/module/components/FormattedText.js.map +1 -1
  99. package/dist/module/components/GenericInput.js +24 -21
  100. package/dist/module/components/GenericInput.js.map +1 -1
  101. package/dist/module/components/GenericInputSection.js +27 -26
  102. package/dist/module/components/GenericInputSection.js.map +1 -1
  103. package/dist/module/components/Header.js +70 -69
  104. package/dist/module/components/Header.js.map +1 -1
  105. package/dist/module/components/Icon.js +109 -0
  106. package/dist/module/components/Icon.js.map +1 -0
  107. package/dist/module/components/ImagePopup.js +237 -77
  108. package/dist/module/components/ImagePopup.js.map +1 -1
  109. package/dist/module/components/ImageUploadProgress.js +10 -9
  110. package/dist/module/components/ImageUploadProgress.js.map +1 -1
  111. package/dist/module/components/ImageUploader.js +22 -13
  112. package/dist/module/components/ImageUploader.js.map +1 -1
  113. package/dist/module/components/InlineButton.js +9 -8
  114. package/dist/module/components/InlineButton.js.map +1 -1
  115. package/dist/module/components/Input.js +28 -26
  116. package/dist/module/components/Input.js.map +1 -1
  117. package/dist/module/components/LoadingCircles.js +20 -20
  118. package/dist/module/components/LoadingCircles.js.map +1 -1
  119. package/dist/module/components/LoadingIndicator.js +11 -11
  120. package/dist/module/components/LoadingIndicator.js.map +1 -1
  121. package/dist/module/components/LoadingStateWidget.js +5 -5
  122. package/dist/module/components/LoadingStateWidget.js.map +1 -1
  123. package/dist/module/components/MediaPlayer.js +32 -32
  124. package/dist/module/components/MediaPlayer.js.map +1 -1
  125. package/dist/module/components/MiddlePopup.js +9 -9
  126. package/dist/module/components/MiddlePopup.js.map +1 -1
  127. package/dist/module/components/PDFPopup.js +36 -36
  128. package/dist/module/components/PDFPopup.js.map +1 -1
  129. package/dist/module/components/PlussChat.js +234 -146
  130. package/dist/module/components/PlussChat.js.map +1 -1
  131. package/dist/module/components/PlussChatMessage.js +75 -38
  132. package/dist/module/components/PlussChatMessage.js.map +1 -1
  133. package/dist/module/components/PlussChatTime.js +18 -17
  134. package/dist/module/components/PlussChatTime.js.map +1 -1
  135. package/dist/module/components/Popup.js +20 -19
  136. package/dist/module/components/Popup.js.map +1 -1
  137. package/dist/module/components/PopupMenu.js +15 -14
  138. package/dist/module/components/PopupMenu.js.map +1 -1
  139. package/dist/module/components/PositionedImage.js +20 -20
  140. package/dist/module/components/PositionedImage.js.map +1 -1
  141. package/dist/module/components/ProfilePic.js +10 -10
  142. package/dist/module/components/ProfilePic.js.map +1 -1
  143. package/dist/module/components/RadioButton.js +10 -9
  144. package/dist/module/components/RadioButton.js.map +1 -1
  145. package/dist/module/components/Reaction.js +18 -17
  146. package/dist/module/components/Reaction.js.map +1 -1
  147. package/dist/module/components/Reactions.js +7 -7
  148. package/dist/module/components/Reactions.js.map +1 -1
  149. package/dist/module/components/SharingTools.js +29 -28
  150. package/dist/module/components/SharingTools.js.map +1 -1
  151. package/dist/module/components/Spinner.js +5 -5
  152. package/dist/module/components/Spinner.js.map +1 -1
  153. package/dist/module/components/StickyFooter.js +6 -6
  154. package/dist/module/components/StickyFooter.js.map +1 -1
  155. package/dist/module/components/Text.js +57 -0
  156. package/dist/module/components/Text.js.map +1 -0
  157. package/dist/module/components/TickIcon.js +6 -6
  158. package/dist/module/components/TickIcon.js.map +1 -1
  159. package/dist/module/components/Toggle.js +10 -9
  160. package/dist/module/components/Toggle.js.map +1 -1
  161. package/dist/module/components/TouchableSearchBar.js +18 -17
  162. package/dist/module/components/TouchableSearchBar.js.map +1 -1
  163. package/dist/module/components/UserListPopup.js +20 -19
  164. package/dist/module/components/UserListPopup.js.map +1 -1
  165. package/dist/module/components/UserListing.js +41 -40
  166. package/dist/module/components/UserListing.js.map +1 -1
  167. package/dist/module/components/VideoPopup.js +20 -20
  168. package/dist/module/components/VideoPopup.js.map +1 -1
  169. package/dist/module/components/WarningPopup.js +21 -20
  170. package/dist/module/components/WarningPopup.js.map +1 -1
  171. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +13 -13
  172. package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -1
  173. package/dist/module/components/expo-image-picker-multiple/ImageTile.js +24 -23
  174. package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -1
  175. package/dist/module/components/index.js +59 -57
  176. package/dist/module/components/index.js.map +1 -1
  177. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +90 -58
  178. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -1
  179. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +64 -64
  180. package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -1
  181. package/dist/module/config.js +6 -1
  182. package/dist/module/config.js.map +1 -1
  183. package/dist/module/constants.js +3 -3
  184. package/dist/module/constants.js.map +1 -1
  185. package/dist/module/helper.js +83 -82
  186. package/dist/module/helper.js.map +1 -1
  187. package/dist/module/index.js +12 -12
  188. package/dist/module/index.js.map +1 -1
  189. package/dist/module/js/images/detectFaces.js +6 -6
  190. package/dist/module/js/images/detectFaces.js.map +1 -1
  191. package/dist/module/js/images/findLandmarkRange.js +8 -8
  192. package/dist/module/js/images/findLandmarkRange.js.map +1 -1
  193. package/dist/module/js/images/getScaledOffset.js.map +1 -1
  194. package/dist/module/js/site/getSiteLevelFromState.js +2 -2
  195. package/dist/module/js/site/getSiteLevelFromState.js.map +1 -1
  196. package/dist/module/js/site/isTVEnabled.js +2 -2
  197. package/dist/module/js/site/isTVEnabled.js.map +1 -1
  198. package/dist/module/session.js +2 -2
  199. package/dist/module/session.js.map +1 -1
  200. package/dist/module/styles.js +17 -17
  201. package/dist/module/styles.js.map +1 -1
  202. package/dist/module/withNavigationFocus.js +30 -0
  203. package/dist/module/withNavigationFocus.js.map +1 -0
  204. package/package.json +4 -1
  205. package/src/actions/FollowerActions.js +36 -32
  206. package/src/actions/MediaActions.js +25 -20
  207. package/src/actions/ResidentActions.js +26 -21
  208. package/src/actions/UserActions.js +22 -22
  209. package/src/actions/UserSettingsActions.js +11 -11
  210. package/src/actions/index.js +5 -5
  211. package/src/actions/types.js +16 -16
  212. package/src/apis/analyticsActions.js +17 -17
  213. package/src/apis/contactActions.js +20 -20
  214. package/src/apis/eventActions.js +153 -144
  215. package/src/apis/fileActions.js +19 -27
  216. package/src/apis/followerActions.js +29 -29
  217. package/src/apis/index.js +12 -12
  218. package/src/apis/notificationActions.js +44 -44
  219. package/src/apis/profileActions.js +8 -8
  220. package/src/apis/reactionActions.js +81 -73
  221. package/src/apis/settingActions.js +15 -15
  222. package/src/apis/stringActions.js +29 -25
  223. package/src/apis/typeActions.js +10 -10
  224. package/src/apis/userActions.js +93 -93
  225. package/src/assets/icons/fontawesome/fa-brands-400.ttf +0 -0
  226. package/src/assets/icons/fontawesome/fa-light-300.ttf +0 -0
  227. package/src/assets/icons/fontawesome/fa-regular-400.ttf +0 -0
  228. package/src/assets/icons/fontawesome/fa-solid-900.ttf +0 -0
  229. package/src/assets/icons/fontawesome/fa-thin-100.ttf +0 -0
  230. package/src/assets/icons/fontawesome/fa7-glyphmap.json +4205 -0
  231. package/src/colours.js +116 -96
  232. package/src/components/AddButton.js +32 -27
  233. package/src/components/AddToCalendarButton.js +236 -202
  234. package/src/components/Attachment.js +59 -36
  235. package/src/components/AudienceSelectorLauncher.js +52 -48
  236. package/src/components/AudienceSelectorPage.js +353 -311
  237. package/src/components/AutoOffsetImage.js +237 -196
  238. package/src/components/BackButton.js +57 -41
  239. package/src/components/CalendarPopup.js +127 -97
  240. package/src/components/CategoryTabs.js +208 -163
  241. package/src/components/CommentReply.js +363 -309
  242. package/src/components/CommentSection.js +974 -782
  243. package/src/components/ConfirmPopup.js +141 -110
  244. package/src/components/ConfirmationPopup.js +80 -69
  245. package/src/components/DocumentUploader.js +255 -0
  246. package/src/components/DropDownItem.js +70 -60
  247. package/src/components/DropDownMenu.js +31 -27
  248. package/src/components/EmptyStateMain.js +51 -44
  249. package/src/components/EmptyStateWidget.js +47 -38
  250. package/src/components/FontScaleButton.js +29 -25
  251. package/src/components/FontScalePopup.js +67 -56
  252. package/src/components/Forbidden.js +48 -46
  253. package/src/components/FormCard.js +21 -17
  254. package/src/components/FormCardSection.js +284 -233
  255. package/src/components/FormCardSectionOptionLauncher.js +72 -46
  256. package/src/components/FormattedText.js +128 -111
  257. package/src/components/GenericInput.js +168 -136
  258. package/src/components/GenericInputSection.js +209 -161
  259. package/src/components/Header.js +620 -474
  260. package/src/components/Icon.js +119 -0
  261. package/src/components/ImagePopup.js +425 -206
  262. package/src/components/ImageUploadProgress.js +49 -41
  263. package/src/components/ImageUploader.js +23 -13
  264. package/src/components/InlineButton.js +79 -69
  265. package/src/components/Input.js +190 -156
  266. package/src/components/LoadingCircles.js +233 -233
  267. package/src/components/LoadingIndicator.js +87 -76
  268. package/src/components/LoadingStateWidget.js +47 -37
  269. package/src/components/MediaPlayer.js +416 -387
  270. package/src/components/MiddlePopup.js +50 -32
  271. package/src/components/PDFPopup.js +198 -159
  272. package/src/components/PlussChat.js +1271 -986
  273. package/src/components/PlussChatMessage.js +330 -262
  274. package/src/components/PlussChatTime.js +57 -53
  275. package/src/components/Popup.js +138 -116
  276. package/src/components/PopupMenu.js +140 -110
  277. package/src/components/PositionedImage.js +281 -237
  278. package/src/components/ProfilePic.js +122 -113
  279. package/src/components/RadioButton.js +76 -52
  280. package/src/components/Reaction.js +134 -96
  281. package/src/components/Reactions.js +65 -63
  282. package/src/components/SharingTools.js +136 -122
  283. package/src/components/Spinner.js +13 -13
  284. package/src/components/StickyFooter.js +36 -26
  285. package/src/components/Text.js +62 -0
  286. package/src/components/TickIcon.js +20 -20
  287. package/src/components/Toggle.js +74 -73
  288. package/src/components/TouchableSearchBar.js +68 -50
  289. package/src/components/UserListPopup.js +161 -124
  290. package/src/components/UserListing.js +273 -238
  291. package/src/components/VideoPopup.js +110 -96
  292. package/src/components/WarningPopup.js +92 -71
  293. package/src/components/expo-image-picker-multiple/ImageBrowser.js +288 -256
  294. package/src/components/expo-image-picker-multiple/ImageTile.js +108 -84
  295. package/src/components/index.js +59 -57
  296. package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +442 -358
  297. package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
  298. package/src/config.js +5 -0
  299. package/src/constants.js +8 -8
  300. package/src/helper.js +469 -438
  301. package/src/index.js +24 -12
  302. package/src/js/images/detectFaces.js +27 -20
  303. package/src/js/images/findLandmarkRange.js +97 -90
  304. package/src/js/images/getScaledOffset.js +80 -75
  305. package/src/js/site/getSiteLevelFromState.js +26 -26
  306. package/src/js/site/isTVEnabled.js +10 -10
  307. package/src/session.js +2 -2
  308. package/src/styles.js +61 -61
  309. package/src/withNavigationFocus.js +28 -0
  310. package/dist/module/components/TextStyle.js +0 -45
  311. package/dist/module/components/TextStyle.js.map +0 -1
  312. package/dist/module/fonts/index.js +0 -2
  313. package/dist/module/fonts/index.js.map +0 -1
  314. package/dist/module/fonts/pluss60-icons.js +0 -5
  315. package/dist/module/fonts/pluss60-icons.js.map +0 -1
  316. package/dist/module/fonts/pluss60-icons.json +0 -1097
  317. package/src/components/TextStyle.js +0 -48
  318. package/src/fonts/index.js +0 -1
  319. package/src/fonts/pluss60-icons.js +0 -6
  320. package/src/fonts/pluss60-icons.json +0 -1097
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","_","TouchableOpacity","StyleSheet","View","Text","Icon","FileSystem","Sharing","MediaLibrary","StatusBarHeight","isVideo","getMimeType","MiddlePopup","Config","SharingTools","constructor","props","_defineProperty","remoteUrl","uri","parts","split","splice","mediaId","extension","downloadPath","cacheDirectory","localUrl","downloadAsync","setState","message","downloadMedia","saveToLibraryAsync","setTimeout","isAvailableAsync","video","mimeType","fileDetails","shareOptions","dialogTitle","UTI","shareAsync","state","renderTools","createElement","style","styles","toolsContainer","env","allowMediaDownload","onPress","onSave","activeOpacity","name","type","iconStyle","toolIcon","toolIconContainer","allowMediaSharing","onShare","renderMessage","visible","isEmpty","messageContainer","messageText","render","container","create","position","flexDirection","justifyContent","left","zIndex","top","width","height","fontSize","padding","textAlign","color","backgroundColor","borderRadius","paddingVertical","paddingHorizontal","fontFamily"],"sources":["SharingTools.js"],"sourcesContent":["import React, { Component } from 'react';\nimport _ from 'lodash';\nimport { TouchableOpacity, StyleSheet, View, Text } from 'react-native';\nimport { Icon } from 'react-native-elements';\nimport * as FileSystem from 'expo-file-system';\nimport * as Sharing from 'expo-sharing';\nimport * as MediaLibrary from 'expo-media-library';\nimport { StatusBarHeight, isVideo, getMimeType } from '../helper';\nimport { MiddlePopup } from './MiddlePopup';\nimport Config from '../config';\n\nclass SharingTools extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n message: '',\n };\n }\n\n downloadMedia = async () => {\n const remoteUrl = this.props.uri;\n const parts = remoteUrl.split('/').splice(-2);\n const mediaId = parts[0];\n const extension = parts[1].split('.').splice(-1)[0];\n\n const downloadPath = `${FileSystem.cacheDirectory}${mediaId}.${extension}`;\n const { uri: localUrl } = await FileSystem.downloadAsync(remoteUrl, downloadPath);\n return { localUrl, extension };\n };\n\n onSave = () => {\n this.setState({ message: 'Saving...' }, async () => {\n const { localUrl } = await this.downloadMedia();\n await MediaLibrary.saveToLibraryAsync(localUrl);\n\n this.setState({ message: 'Saved' }, () => {\n setTimeout(() => {\n this.setState({ message: '' });\n }, 2000);\n });\n });\n };\n\n onShare = async () => {\n if (!(await Sharing.isAvailableAsync())) return;\n\n this.setState({ message: 'Preparing...' }, async () => {\n const { localUrl, extension } = await this.downloadMedia();\n // console.log('sharing...', localUrl);\n\n const video = isVideo(localUrl);\n const mimeType = getMimeType(localUrl);\n const fileDetails = {\n extension: `.${extension}`,\n shareOptions: {\n mimeType,\n dialogTitle: video ? 'Share video' : 'Share photo',\n UTI: mimeType,\n },\n };\n\n await Sharing.shareAsync(localUrl, fileDetails.shareOptions);\n this.setState({ message: '' });\n });\n };\n\n renderTools() {\n return (\n <View style={styles.toolsContainer}>\n {Config.env.allowMediaDownload && (\n <TouchableOpacity onPress={this.onSave} activeOpacity={0.6}>\n <Icon name=\"download\" type=\"font-awesome\" iconStyle={styles.toolIcon} style={styles.toolIconContainer} />\n </TouchableOpacity>\n )}\n {Config.env.allowMediaSharing && (\n <TouchableOpacity onPress={this.onShare} activeOpacity={0.6}>\n <Icon name=\"share-square-o\" type=\"font-awesome\" iconStyle={styles.toolIcon} style={styles.toolIconContainer} />\n </TouchableOpacity>\n )}\n </View>\n );\n }\n\n renderMessage() {\n return (\n <MiddlePopup visible={!_.isEmpty(this.state.message)}>\n <View style={styles.messageContainer}>\n <Text style={styles.messageText}>{this.state.message}</Text>\n </View>\n </MiddlePopup>\n );\n }\n\n render() {\n return (\n <View style={styles.container}>\n {this.renderTools()}\n {this.renderMessage()}\n </View>\n );\n }\n}\n\nconst styles = StyleSheet.create({\n container: {\n position: 'absolute',\n },\n toolsContainer: {\n position: 'absolute',\n flexDirection: 'row',\n justifyContent: 'space-between',\n left: 0,\n zIndex: 3,\n top: StatusBarHeight(0),\n },\n toolIconContainer: {\n width: 55,\n height: 55,\n },\n toolIcon: {\n fontSize: 25,\n padding: 15,\n width: 55,\n textAlign: 'center',\n color: '#fff',\n zIndex: 3,\n },\n messageContainer: {\n backgroundColor: '#000',\n borderRadius: 10,\n paddingVertical: 10,\n paddingHorizontal: 30,\n },\n messageText: {\n fontFamily: 'sf-bold',\n fontSize: 24,\n color: '#fff',\n },\n});\n\nexport { SharingTools };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,CAAC,MAAM,QAAQ;AACtB,SAASC,gBAAgB,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACvE,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,OAAO,KAAKC,UAAU,MAAM,kBAAkB;AAC9C,OAAO,KAAKC,OAAO,MAAM,cAAc;AACvC,OAAO,KAAKC,YAAY,MAAM,oBAAoB;AAClD,SAASC,eAAe,EAAEC,OAAO,EAAEC,WAAW,QAAQ,WAAW;AACjE,SAASC,WAAW,QAAQ,eAAe;AAC3C,OAAOC,MAAM,MAAM,WAAW;AAE9B,MAAMC,YAAY,SAASf,SAAS,CAAC;EACnCgB,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,wBAOC,YAAY;MAC1B,MAAMC,SAAS,GAAG,IAAI,CAACF,KAAK,CAACG,GAAG;MAChC,MAAMC,KAAK,GAAGF,SAAS,CAACG,KAAK,CAAC,GAAG,CAAC,CAACC,MAAM,CAAC,CAAC,CAAC,CAAC;MAC7C,MAAMC,OAAO,GAAGH,KA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AAe,EAAE,MAAM;IACvBC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE;EACrB,CAAC;EACDnB,WAAW,EAAE;IACXoB,UAAU,EAAE,SAAS;IACrBR,QAAQ,EAAE,EAAE;IACZG,KAAK,EAAE;EACT;AACF,CAAC,CAAC;AAEF,SAASjE,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["React","Component","_","TouchableOpacity","StyleSheet","View","Text","Icon","FileSystem","Sharing","MediaLibrary","StatusBarHeight","isVideo","getMimeType","MiddlePopup","Config","SharingTools","constructor","props","_defineProperty","remoteUrl","uri","parts","split","splice","mediaId","extension","downloadPath","cacheDirectory","localUrl","downloadAsync","setState","message","downloadMedia","saveToLibraryAsync","setTimeout","isAvailableAsync","video","mimeType","fileDetails","shareOptions","dialogTitle","UTI","shareAsync","state","renderTools","createElement","style","styles","toolsContainer","env","allowMediaDownload","onPress","onSave","activeOpacity","name","type","iconStyle","toolIcon","toolIconContainer","allowMediaSharing","onShare","renderMessage","visible","isEmpty","messageContainer","messageText","render","container","create","position","flexDirection","justifyContent","left","zIndex","top","width","height","fontSize","padding","textAlign","color","backgroundColor","borderRadius","paddingVertical","paddingHorizontal","fontFamily"],"sources":["SharingTools.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport _ from \"lodash\";\nimport { TouchableOpacity, StyleSheet, View } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { Icon } from \"@rneui/themed\";\nimport * as FileSystem from \"expo-file-system\";\nimport * as Sharing from \"expo-sharing\";\nimport * as MediaLibrary from \"expo-media-library\";\nimport { StatusBarHeight, isVideo, getMimeType } from \"../helper\";\nimport { MiddlePopup } from \"./MiddlePopup\";\nimport Config from \"../config\";\n\nclass SharingTools extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\tthis.state = {\n\t\t\tmessage: \"\",\n\t\t};\n\t}\n\n\tdownloadMedia = async () => {\n\t\tconst remoteUrl = this.props.uri;\n\t\tconst parts = remoteUrl.split(\"/\").splice(-2);\n\t\tconst mediaId = parts[0];\n\t\tconst extension = parts[1].split(\".\").splice(-1)[0];\n\n\t\tconst downloadPath = `${FileSystem.cacheDirectory}${mediaId}.${extension}`;\n\t\tconst { uri: localUrl } = await FileSystem.downloadAsync(\n\t\t\tremoteUrl,\n\t\t\tdownloadPath,\n\t\t);\n\t\treturn { localUrl, extension };\n\t};\n\n\tonSave = () => {\n\t\tthis.setState({ message: \"Saving...\" }, async () => {\n\t\t\tconst { localUrl } = await this.downloadMedia();\n\t\t\tawait MediaLibrary.saveToLibraryAsync(localUrl);\n\n\t\t\tthis.setState({ message: \"Saved\" }, () => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tthis.setState({ message: \"\" });\n\t\t\t\t}, 2000);\n\t\t\t});\n\t\t});\n\t};\n\n\tonShare = async () => {\n\t\tif (!(await Sharing.isAvailableAsync())) return;\n\n\t\tthis.setState({ message: \"Preparing...\" }, async () => {\n\t\t\tconst { localUrl, extension } = await this.downloadMedia();\n\t\t\t// console.log('sharing...', localUrl);\n\n\t\t\tconst video = isVideo(localUrl);\n\t\t\tconst mimeType = getMimeType(localUrl);\n\t\t\tconst fileDetails = {\n\t\t\t\textension: `.${extension}`,\n\t\t\t\tshareOptions: {\n\t\t\t\t\tmimeType,\n\t\t\t\t\tdialogTitle: video ? \"Share video\" : \"Share photo\",\n\t\t\t\t\tUTI: mimeType,\n\t\t\t\t},\n\t\t\t};\n\n\t\t\tawait Sharing.shareAsync(localUrl, fileDetails.shareOptions);\n\t\t\tthis.setState({ message: \"\" });\n\t\t});\n\t};\n\n\trenderTools() {\n\t\treturn (\n\t\t\t<View style={styles.toolsContainer}>\n\t\t\t\t{Config.env.allowMediaDownload && (\n\t\t\t\t\t<TouchableOpacity onPress={this.onSave} activeOpacity={0.6}>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tname=\"download\"\n\t\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\t\ticonStyle={styles.toolIcon}\n\t\t\t\t\t\t\tstyle={styles.toolIconContainer}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t)}\n\t\t\t\t{Config.env.allowMediaSharing && (\n\t\t\t\t\t<TouchableOpacity onPress={this.onShare} activeOpacity={0.6}>\n\t\t\t\t\t\t<Icon\n\t\t\t\t\t\t\tname=\"share-square-o\"\n\t\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\t\ticonStyle={styles.toolIcon}\n\t\t\t\t\t\t\tstyle={styles.toolIconContainer}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t)}\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderMessage() {\n\t\treturn (\n\t\t\t<MiddlePopup visible={!_.isEmpty(this.state.message)}>\n\t\t\t\t<View style={styles.messageContainer}>\n\t\t\t\t\t<Text style={styles.messageText}>{this.state.message}</Text>\n\t\t\t\t</View>\n\t\t\t</MiddlePopup>\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.renderTools()}\n\t\t\t\t{this.renderMessage()}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tcontainer: {\n\t\tposition: \"absolute\",\n\t},\n\ttoolsContainer: {\n\t\tposition: \"absolute\",\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t\tleft: 0,\n\t\tzIndex: 3,\n\t\ttop: StatusBarHeight(0),\n\t},\n\ttoolIconContainer: {\n\t\twidth: 55,\n\t\theight: 55,\n\t},\n\ttoolIcon: {\n\t\tfontSize: 25,\n\t\tpadding: 15,\n\t\twidth: 55,\n\t\ttextAlign: \"center\",\n\t\tcolor: \"#fff\",\n\t\tzIndex: 3,\n\t},\n\tmessageContainer: {\n\t\tbackgroundColor: \"#000\",\n\t\tborderRadius: 10,\n\t\tpaddingVertical: 10,\n\t\tpaddingHoriz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KAAK,EAAEC,MAAM,CAACkB;IAAY,GAAE,IAAI,CAACtB,KAAK,CAACZ,OAAc,CACtD,CACM,CAAC;EAEhB;EAEAmC,MAAMA,CAAA,EAAG;IACR,oBACCnE,KAAA,CAAA8C,aAAA,CAACzC,IAAI;MAAC0C,KAAK,EAAEC,MAAM,CAACoB;IAAU,GAC5B,IAAI,CAACvB,WAAW,CAAC,CAAC,EAClB,IAAI,CAACiB,aAAa,CAAC,CACf,CAAC;EAET;AACD;AAEA,MAAMd,MAAM,GAAG5C,UAAU,CAACiE,MAAM,CAAC;EAChCD,SAAS,EAAE;IACVE,QAAQ,EAAE;EACX,CAAC;EACDrB,cAAc,EAAE;IACfqB,QAAQ,EAAE,UAAU;IACpBC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,CAAC;IACTC,GAAG,EAAEhE,eAAe,CAAC,CAAC;EACvB,CAAC;EACDgD,iBAAiB,EAAE;IAClBiB,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE;EACT,CAAC;EACDnB,QAAQ,EAAE;IACToB,QAAQ,EAAE,EAAE;IACZC,OAAO,EAAE,EAAE;IACXH,KAAK,EAAE,EAAE;IACTI,SAAS,EAAE,QAAQ;IACnBC,KAAK,EAAE,MAAM;IACbP,MAAM,EAAE;EACT,CAAC;EACDT,gBAAgB,EAAE;IACjBiB,eAAe,EAAE,MAAM;IACvBC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE;EACpB,CAAC;EACDnB,WAAW,EAAE;IACZoB,UAAU,EAAE,SAAS;IACrBR,QAAQ,EAAE,EAAE;IACZG,KAAK,EAAE;EACR;AACD,CAAC,CAAC;AAEF,SAASjE,YAAY","ignoreList":[]}
@@ -1,6 +1,6 @@
1
- import React from 'react';
2
- import { View } from 'react-native';
3
- import { LoadingCircles } from './LoadingCircles';
1
+ import React from "react";
2
+ import { View } from "react-native";
3
+ import { LoadingCircles } from "./LoadingCircles";
4
4
  const Spinner = ({
5
5
  color,
6
6
  style
@@ -14,8 +14,8 @@ const Spinner = ({
14
14
  const styles = {
15
15
  spinnerStyle: {
16
16
  flex: 1,
17
- justifyContent: 'center',
18
- alignItems: 'center'
17
+ justifyContent: "center",
18
+ alignItems: "center"
19
19
  }
20
20
  };
21
21
  export { Spinner };
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","LoadingCircles","Spinner","color","style","createElement","styles","spinnerStyle","flex","justifyContent","alignItems"],"sources":["Spinner.js"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { LoadingCircles } from './LoadingCircles';\n\nconst Spinner = ({ color, style }) => {\n return (\n <View style={[styles.spinnerStyle, style]}>\n <LoadingCircles color={color} />\n </View>\n );\n};\n\nconst styles = {\n spinnerStyle: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n },\n};\n\nexport { Spinner };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,OAAO,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EACpC,oBACEL,KAAA,CAAAM,aAAA,CAACL,IAAI;IAACI,KAAK,EAAE,CAACE,MAAM,CAACC,YAAY,EAAEH,KAAK;EAAE,gBACxCL,KAAA,CAAAM,aAAA,CAACJ,cAAc;IAACE,KAAK,EAAEA;EAAM,CAAE,CAC3B,CAAC;AAEX,CAAC;AAED,MAAMG,MAAM,GAAG;EACbC,YAAY,EAAE;IACZC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC;AAED,SAASR,OAAO","ignoreList":[]}
1
+ {"version":3,"names":["React","View","LoadingCircles","Spinner","color","style","createElement","styles","spinnerStyle","flex","justifyContent","alignItems"],"sources":["Spinner.js"],"sourcesContent":["import React from \"react\";\nimport { View } from \"react-native\";\nimport { LoadingCircles } from \"./LoadingCircles\";\n\nconst Spinner = ({ color, style }) => {\n\treturn (\n\t\t<View style={[styles.spinnerStyle, style]}>\n\t\t\t<LoadingCircles color={color} />\n\t\t</View>\n\t);\n};\n\nconst styles = {\n\tspinnerStyle: {\n\t\tflex: 1,\n\t\tjustifyContent: \"center\",\n\t\talignItems: \"center\",\n\t},\n};\n\nexport { Spinner };\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,cAAc,QAAQ,kBAAkB;AAEjD,MAAMC,OAAO,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAM,CAAC,KAAK;EACrC,oBACCL,KAAA,CAAAM,aAAA,CAACL,IAAI;IAACI,KAAK,EAAE,CAACE,MAAM,CAACC,YAAY,EAAEH,KAAK;EAAE,gBACzCL,KAAA,CAAAM,aAAA,CAACJ,cAAc;IAACE,KAAK,EAAEA;EAAM,CAAE,CAC1B,CAAC;AAET,CAAC;AAED,MAAMG,MAAM,GAAG;EACdC,YAAY,EAAE;IACbC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACb;AACD,CAAC;AAED,SAASR,OAAO","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import React, { PureComponent } from 'react';
2
- import { View } from 'react-native';
3
- import { LINEGREY } from '../colours';
4
- import { FOOTER_HEIGHT } from '../constants';
1
+ import React, { PureComponent } from "react";
2
+ import { View } from "react-native";
3
+ import { LINEGREY } from "../colours";
4
+ import { FOOTER_HEIGHT } from "../constants";
5
5
  class StickyFooter extends PureComponent {
6
6
  render() {
7
7
  return /*#__PURE__*/React.createElement(View, {
@@ -11,10 +11,10 @@ class StickyFooter extends PureComponent {
11
11
  }
12
12
  const styles = {
13
13
  section: {
14
- backgroundColor: '#fff',
14
+ backgroundColor: "#fff",
15
15
  height: FOOTER_HEIGHT,
16
16
  borderTopWidth: 0,
17
- shadowColor: '#000',
17
+ shadowColor: "#000",
18
18
  shadowOffset: {
19
19
  width: 0,
20
20
  height: -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","PureComponent","View","LINEGREY","FOOTER_HEIGHT","StickyFooter","render","createElement","style","styles","section","props","lineSeparated","children","backgroundColor","height","borderTopWidth","shadowColor","shadowOffset","width","shadowOpacity","shadowRadius","elevation","borderColor"],"sources":["StickyFooter.js"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport { View } from 'react-native';\nimport { LINEGREY } from '../colours';\nimport { FOOTER_HEIGHT } from '../constants';\n\nclass StickyFooter extends PureComponent {\n render() {\n return <View style={[styles.section, this.props.lineSeparated && styles.lineSeparated, this.props.style]}>{this.props.children}</View>;\n }\n}\n\nconst styles = {\n section: {\n backgroundColor: '#fff',\n height: FOOTER_HEIGHT,\n borderTopWidth: 0,\n shadowColor: '#000',\n shadowOffset: {\n width: 0,\n height: -1,\n },\n shadowOpacity: 0.1,\n shadowRadius: 6,\n elevation: 16,\n },\n lineSeparated: {\n borderTopWidth: 1,\n borderColor: LINEGREY,\n shadowOpacity: 0,\n elevation: 0,\n },\n};\n\nexport { StickyFooter };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,aAAa,QAAQ,cAAc;AAE5C,MAAMC,YAAY,SAASJ,aAAa,CAAC;EACvCK,MAAMA,CAAA,EAAG;IACP,oBAAON,KAAA,CAAAO,aAAA,CAACL,IAAI;MAACM,KAAK,EAAE,CAACC,MAAM,CAACC,OAAO,EAAE,IAAI,CAACC,KAAK,CAACC,aAAa,IAAIH,MAAM,CAACG,aAAa,EAAE,IAAI,CAACD,KAAK,CAACH,KAAK;IAAE,GAAE,IAAI,CAACG,KAAK,CAACE,QAAe,CAAC;EACxI;AACF;AAEA,MAAMJ,MAAM,GAAG;EACbC,OAAO,EAAE;IACPI,eAAe,EAAE,MAAM;IACvBC,MAAM,EAAEX,aAAa;IACrBY,cAAc,EAAE,CAAC;IACjBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MACZC,KAAK,EAAE,CAAC;MACRJ,MAAM,EAAE,CAAC;IACX,CAAC;IACDK,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACb,CAAC;EACDV,aAAa,EAAE;IACbI,cAAc,EAAE,CAAC;IACjBO,WAAW,EAAEpB,QAAQ;IACrBiB,aAAa,EAAE,CAAC;IAChBE,SAAS,EAAE;EACb;AACF,CAAC;AAED,SAASjB,YAAY","ignoreList":[]}
1
+ {"version":3,"names":["React","PureComponent","View","LINEGREY","FOOTER_HEIGHT","StickyFooter","render","createElement","style","styles","section","props","lineSeparated","children","backgroundColor","height","borderTopWidth","shadowColor","shadowOffset","width","shadowOpacity","shadowRadius","elevation","borderColor"],"sources":["StickyFooter.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View } from \"react-native\";\nimport { LINEGREY } from \"../colours\";\nimport { FOOTER_HEIGHT } from \"../constants\";\n\nclass StickyFooter extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.section,\n\t\t\t\t\tthis.props.lineSeparated && styles.lineSeparated,\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t>\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\theight: FOOTER_HEIGHT,\n\t\tborderTopWidth: 0,\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: 16,\n\t},\n\tlineSeparated: {\n\t\tborderTopWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tshadowOpacity: 0,\n\t\televation: 0,\n\t},\n};\n\nexport { StickyFooter };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AACnC,SAASC,QAAQ,QAAQ,YAAY;AACrC,SAASC,aAAa,QAAQ,cAAc;AAE5C,MAAMC,YAAY,SAASJ,aAAa,CAAC;EACxCK,MAAMA,CAAA,EAAG;IACR,oBACCN,KAAA,CAAAO,aAAA,CAACL,IAAI;MACJM,KAAK,EAAE,CACNC,MAAM,CAACC,OAAO,EACd,IAAI,CAACC,KAAK,CAACC,aAAa,IAAIH,MAAM,CAACG,aAAa,EAChD,IAAI,CAACD,KAAK,CAACH,KAAK;IACf,GAED,IAAI,CAACG,KAAK,CAACE,QACP,CAAC;EAET;AACD;AAEA,MAAMJ,MAAM,GAAG;EACdC,OAAO,EAAE;IACRI,eAAe,EAAE,MAAM;IACvBC,MAAM,EAAEX,aAAa;IACrBY,cAAc,EAAE,CAAC;IACjBC,WAAW,EAAE,MAAM;IACnBC,YAAY,EAAE;MACbC,KAAK,EAAE,CAAC;MACRJ,MAAM,EAAE,CAAC;IACV,CAAC;IACDK,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE,CAAC;IACfC,SAAS,EAAE;EACZ,CAAC;EACDV,aAAa,EAAE;IACdI,cAAc,EAAE,CAAC;IACjBO,WAAW,EAAEpB,QAAQ;IACrBiB,aAAa,EAAE,CAAC;IAChBE,SAAS,EAAE;EACZ;AACD,CAAC;AAED,SAASjB,YAAY","ignoreList":[]}
@@ -0,0 +1,57 @@
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
+ import React, { PureComponent } from "react";
3
+ import { StyleSheet, Text as TextNative } from "react-native";
4
+ import { TEXT_DARKEST, COLOUR_RED } from "../colours";
5
+
6
+ /**
7
+ * A wrapper around the react-native Text component that applies a
8
+ * maximum font size multiplier (1.2) to prevent layout breaking.
9
+ *
10
+ * * @typedef {Object} TextProps
11
+ * @property {'pageHeading' | 'heading' | 'label' | 'detailLabel' | 'input' | 'error'} [type] - The style preset to apply.
12
+ * * @example
13
+ * <Text type="pageHeading" className="myClass">Welcome</Text>
14
+ */
15
+
16
+ class Text extends PureComponent {
17
+ render() {
18
+ return /*#__PURE__*/React.createElement(TextNative, _extends({}, this.props, {
19
+ style: [styles[this.props.type], this.props.style],
20
+ maxFontSizeMultiplier: 1.2
21
+ }), this.props.children);
22
+ }
23
+ }
24
+ const styles = StyleSheet.create({
25
+ pageHeading: {
26
+ fontFamily: "sf-bold",
27
+ fontSize: 24,
28
+ color: TEXT_DARKEST
29
+ },
30
+ body: {
31
+ fontFamily: "sf-regular",
32
+ fontSize: 14,
33
+ color: TEXT_DARKEST
34
+ },
35
+ label: {
36
+ fontFamily: "sf-semibold",
37
+ color: TEXT_DARKEST,
38
+ fontSize: 16
39
+ },
40
+ detailLabel: {
41
+ fontFamily: "sf-bold",
42
+ color: TEXT_DARKEST,
43
+ fontSize: 16
44
+ },
45
+ input: {
46
+ color: TEXT_DARKEST,
47
+ fontFamily: "sf-regular",
48
+ fontSize: 16
49
+ },
50
+ error: {
51
+ fontFamily: "sf-bold",
52
+ color: COLOUR_RED,
53
+ fontSize: 16
54
+ }
55
+ });
56
+ export { Text };
57
+ //# sourceMappingURL=Text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","PureComponent","StyleSheet","Text","TextNative","TEXT_DARKEST","COLOUR_RED","render","createElement","_extends","props","style","styles","type","maxFontSizeMultiplier","children","create","pageHeading","fontFamily","fontSize","color","body","label","detailLabel","input","error"],"sources":["Text.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { StyleSheet, Text as TextNative } from \"react-native\";\nimport { TEXT_DARKEST, COLOUR_RED } from \"../colours\";\n\n/**\n * A wrapper around the react-native Text component that applies a\n * maximum font size multiplier (1.2) to prevent layout breaking.\n *\n * * @typedef {Object} TextProps\n * @property {'pageHeading' | 'heading' | 'label' | 'detailLabel' | 'input' | 'error'} [type] - The style preset to apply.\n * * @example\n * <Text type=\"pageHeading\" className=\"myClass\">Welcome</Text>\n */\n\nclass Text extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<TextNative\n\t\t\t\t{...this.props}\n\t\t\t\tstyle={[styles[this.props.type], this.props.style]}\n\t\t\t\tmaxFontSizeMultiplier={1.2}\n\t\t\t>\n\t\t\t\t{this.props.children}\n\t\t\t</TextNative>\n\t\t);\n\t}\n}\n\nconst styles = StyleSheet.create({\n\tpageHeading: {\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 24,\n\t\tcolor: TEXT_DARKEST,\n\t},\n\tbody: {\n\t\tfontFamily: \"sf-regular\",\n\t\tfontSize: 14,\n\t\tcolor: TEXT_DARKEST,\n\t},\n\tlabel: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARKEST,\n\t\tfontSize: 16,\n\t},\n\tdetailLabel: {\n\t\tfontFamily: \"sf-bold\",\n\t\tcolor: TEXT_DARKEST,\n\t\tfontSize: 16,\n\t},\n\tinput: {\n\t\tcolor: TEXT_DARKEST,\n\t\tfontFamily: \"sf-regular\",\n\t\tfontSize: 16,\n\t},\n\terror: {\n\t\tfontFamily: \"sf-bold\",\n\t\tcolor: COLOUR_RED,\n\t\tfontSize: 16,\n\t},\n});\n\nexport { Text };\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,UAAU,EAAEC,IAAI,IAAIC,UAAU,QAAQ,cAAc;AAC7D,SAASC,YAAY,EAAEC,UAAU,QAAQ,YAAY;;AAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMH,IAAI,SAASF,aAAa,CAAC;EAChCM,MAAMA,CAAA,EAAG;IACR,oBACCP,KAAA,CAAAQ,aAAA,CAACJ,UAAU,EAAAK,QAAA,KACN,IAAI,CAACC,KAAK;MACdC,KAAK,EAAE,CAACC,MAAM,CAAC,IAAI,CAACF,KAAK,CAACG,IAAI,CAAC,EAAE,IAAI,CAACH,KAAK,CAACC,KAAK,CAAE;MACnDG,qBAAqB,EAAE;IAAI,IAE1B,IAAI,CAACJ,KAAK,CAACK,QACD,CAAC;EAEf;AACD;AAEA,MAAMH,MAAM,GAAGV,UAAU,CAACc,MAAM,CAAC;EAChCC,WAAW,EAAE;IACZC,UAAU,EAAE,SAAS;IACrBC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEf;EACR,CAAC;EACDgB,IAAI,EAAE;IACLH,UAAU,EAAE,YAAY;IACxBC,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEf;EACR,CAAC;EACDiB,KAAK,EAAE;IACNJ,UAAU,EAAE,aAAa;IACzBE,KAAK,EAAEf,YAAY;IACnBc,QAAQ,EAAE;EACX,CAAC;EACDI,WAAW,EAAE;IACZL,UAAU,EAAE,SAAS;IACrBE,KAAK,EAAEf,YAAY;IACnBc,QAAQ,EAAE;EACX,CAAC;EACDK,KAAK,EAAE;IACNJ,KAAK,EAAEf,YAAY;IACnBa,UAAU,EAAE,YAAY;IACxBC,QAAQ,EAAE;EACX,CAAC;EACDM,KAAK,EAAE;IACNP,UAAU,EAAE,SAAS;IACrBE,KAAK,EAAEd,UAAU;IACjBa,QAAQ,EAAE;EACX;AACD,CAAC,CAAC;AAEF,SAAShB,IAAI","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- import React, { PureComponent } from 'react';
2
- import { View } from 'react-native';
3
- import stylez from '../styles';
4
- import { Pl60Icon } from '../fonts';
1
+ import React, { PureComponent } from "react";
2
+ import { View } from "react-native";
3
+ import stylez from "../styles";
4
+ import { FontAwesome } from "./Icon";
5
5
  class TickIcon extends PureComponent {
6
6
  render() {
7
7
  const size = this.props.diameter || 20;
@@ -14,8 +14,8 @@ class TickIcon extends PureComponent {
14
14
  }, this.props.color && {
15
15
  backgroundColor: this.props.color
16
16
  }, this.props.style]
17
- }, /*#__PURE__*/React.createElement(Pl60Icon, {
18
- name: "tick",
17
+ }, /*#__PURE__*/React.createElement(FontAwesome, {
18
+ name: "check",
19
19
  style: stylez.tickIcon
20
20
  }));
21
21
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","PureComponent","View","stylez","Pl60Icon","TickIcon","render","size","props","diameter","radius","createElement","style","tickBox","height","width","borderRadius","color","backgroundColor","name","tickIcon"],"sources":["TickIcon.js"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport { View } from 'react-native';\nimport stylez from '../styles';\nimport { Pl60Icon } from '../fonts';\n\nclass TickIcon extends PureComponent {\n render() {\n const size = this.props.diameter || 20;\n const radius = size / 2;\n return (\n <View\n style={[\n stylez.tickBox,\n { height: size, width: size, borderRadius: radius },\n this.props.color && { backgroundColor: this.props.color },\n this.props.style,\n ]}\n >\n <Pl60Icon name=\"tick\" style={stylez.tickIcon} />\n </View>\n );\n }\n}\n\nexport { TickIcon };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,QAAQ,QAAQ,UAAU;AAEnC,MAAMC,QAAQ,SAASJ,aAAa,CAAC;EACnCK,MAAMA,CAAA,EAAG;IACP,MAAMC,IAAI,GAAG,IAAI,CAACC,KAAK,CAACC,QAAQ,IAAI,EAAE;IACtC,MAAMC,MAAM,GAAGH,IAAI,GAAG,CAAC;IACvB,oBACEP,KAAA,CAAAW,aAAA,CAACT,IAAI;MACHU,KAAK,EAAE,CACLT,MAAM,CAACU,OAAO,EACd;QAAEC,MAAM,EAAEP,IAAI;QAAEQ,KAAK,EAAER,IAAI;QAAES,YAAY,EAAEN;MAAO,CAAC,EACnD,IAAI,CAACF,KAAK,CAACS,KAAK,IAAI;QAAEC,eAAe,EAAE,IAAI,CAACV,KAAK,CAACS;MAAM,CAAC,EACzD,IAAI,CAACT,KAAK,CAACI,KAAK;IAChB,gBAEFZ,KAAA,CAAAW,aAAA,CAACP,QAAQ;MAACe,IAAI,EAAC,MAAM;MAACP,KAAK,EAAET,MAAM,CAACiB;IAAS,CAAE,CAC3C,CAAC;EAEX;AACF;AAEA,SAASf,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["React","PureComponent","View","stylez","FontAwesome","TickIcon","render","size","props","diameter","radius","createElement","style","tickBox","height","width","borderRadius","color","backgroundColor","name","tickIcon"],"sources":["TickIcon.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View } from \"react-native\";\nimport stylez from \"../styles\";\nimport { FontAwesome } from \"./Icon\";\n\nclass TickIcon extends PureComponent {\n\trender() {\n\t\tconst size = this.props.diameter || 20;\n\t\tconst radius = size / 2;\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstylez.tickBox,\n\t\t\t\t\t{ height: size, width: size, borderRadius: radius },\n\t\t\t\t\tthis.props.color && { backgroundColor: this.props.color },\n\t\t\t\t\tthis.props.style,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<FontAwesome name=\"check\" style={stylez.tickIcon} />\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nexport { TickIcon };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,QAAQ,cAAc;AACnC,OAAOC,MAAM,MAAM,WAAW;AAC9B,SAASC,WAAW,QAAQ,QAAQ;AAEpC,MAAMC,QAAQ,SAASJ,aAAa,CAAC;EACpCK,MAAMA,CAAA,EAAG;IACR,MAAMC,IAAI,GAAG,IAAI,CAACC,KAAK,CAACC,QAAQ,IAAI,EAAE;IACtC,MAAMC,MAAM,GAAGH,IAAI,GAAG,CAAC;IACvB,oBACCP,KAAA,CAAAW,aAAA,CAACT,IAAI;MACJU,KAAK,EAAE,CACNT,MAAM,CAACU,OAAO,EACd;QAAEC,MAAM,EAAEP,IAAI;QAAEQ,KAAK,EAAER,IAAI;QAAES,YAAY,EAAEN;MAAO,CAAC,EACnD,IAAI,CAACF,KAAK,CAACS,KAAK,IAAI;QAAEC,eAAe,EAAE,IAAI,CAACV,KAAK,CAACS;MAAM,CAAC,EACzD,IAAI,CAACT,KAAK,CAACI,KAAK;IACf,gBAEFZ,KAAA,CAAAW,aAAA,CAACP,WAAW;MAACe,IAAI,EAAC,OAAO;MAACP,KAAK,EAAET,MAAM,CAACiB;IAAS,CAAE,CAC9C,CAAC;EAET;AACD;AAEA,SAASf,QAAQ","ignoreList":[]}
@@ -1,7 +1,8 @@
1
- import React, { PureComponent } from 'react';
2
- import { Text, View, TouchableOpacity } from 'react-native';
3
- import { connect } from 'react-redux';
4
- import { getMainBrandingColourFromState } from '../colours';
1
+ import React, { PureComponent } from "react";
2
+ import { View, TouchableOpacity } from "react-native";
3
+ import { Text } from "./Text";
4
+ import { connect } from "react-redux";
5
+ import { getMainBrandingColourFromState } from "../colours";
5
6
  class Toggle extends PureComponent {
6
7
  render() {
7
8
  return /*#__PURE__*/React.createElement(View, {
@@ -28,22 +29,22 @@ class Toggle extends PureComponent {
28
29
  }
29
30
  const styles = {
30
31
  container: {
31
- flexDirection: 'row'
32
+ flexDirection: "row"
32
33
  },
33
34
  text: {
34
- fontFamily: 'sf-semibold',
35
+ fontFamily: "sf-semibold",
35
36
  fontSize: 14,
36
- textAlign: 'center'
37
+ textAlign: "center"
37
38
  },
38
39
  activeText: {
39
- color: '#fff'
40
+ color: "#fff"
40
41
  },
41
42
  tag: {
42
43
  flex: 1,
43
44
  height: 34,
44
45
  borderWidth: 1,
45
46
  borderLeftWidth: 0,
46
- justifyContent: 'center'
47
+ justifyContent: "center"
47
48
  },
48
49
  firstTag: {
49
50
  borderLeftWidth: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["React","PureComponent","Text","View","TouchableOpacity","connect","getMainBrandingColourFromState","Toggle","render","createElement","style","styles","container","props","options","map","option","index","onPress","tag","borderColor","colourBrandingMain","val","activeVal","backgroundColor","firstTag","length","lastTag","tagStyle","key","text","color","activeText","textStyle","flexDirection","fontFamily","fontSize","textAlign","flex","height","borderWidth","borderLeftWidth","justifyContent","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","mapStateToProps","state","toggle"],"sources":["Toggle.js"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport { Text, View, TouchableOpacity } from 'react-native';\nimport { connect } from 'react-redux';\nimport { getMainBrandingColourFromState } from '../colours';\n\nclass Toggle extends PureComponent {\n render() {\n return (\n <View style={[styles.container, this.props.style]}>\n {this.props.options.map((option, index) => {\n return (\n <TouchableOpacity\n onPress={() => {\n this.props.onPress(option);\n }}\n style={[\n styles.tag,\n { borderColor: this.props.colourBrandingMain },\n option.val === this.props.activeVal && {\n borderColor: this.props.colourBrandingMain,\n backgroundColor: this.props.colourBrandingMain,\n },\n index === 0 && styles.firstTag,\n index === this.props.options.length - 1 && styles.lastTag,\n this.props.tagStyle,\n ]}\n key={option.val}\n >\n <Text\n style={[\n styles.text,\n { color: this.props.colourBrandingMain },\n option.val === this.props.activeVal && styles.activeText,\n this.props.textStyle,\n ]}\n >\n {option.text}\n </Text>\n </TouchableOpacity>\n );\n })}\n </View>\n );\n }\n}\n\nconst styles = {\n container: {\n flexDirection: 'row',\n },\n text: {\n fontFamily: 'sf-semibold',\n fontSize: 14,\n textAlign: 'center',\n },\n activeText: {\n color: '#fff',\n },\n tag: {\n flex: 1,\n height: 34,\n borderWidth: 1,\n borderLeftWidth: 0,\n justifyContent: 'center',\n },\n firstTag: {\n borderLeftWidth: 1,\n borderTopLeftRadius: 4,\n borderBottomLeftRadius: 4,\n },\n lastTag: {\n borderTopRightRadius: 4,\n borderBottomRightRadius: 4,\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n };\n};\n\nconst toggle = connect(map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AAM,CAACmB,IAAI,EACX;UAAEC,KAAK,EAAE,IAAI,CAAClB,KAAK,CAACQ;QAAmB,CAAC,EACxCL,MAAM,CAACM,GAAG,KAAK,IAAI,CAACT,KAAK,CAACU,SAAS,IAAIZ,MAAM,CAACqB,UAAU,EACxD,IAAI,CAACnB,KAAK,CAACoB,SAAS;MACpB,GAEDjB,MAAM,CAACc,IACJ,CACU,CAAC;IAEvB,CAAC,CACG,CAAC;EAEX;AACF;AAEA,MAAMnB,MAAM,GAAG;EACbC,SAAS,EAAE;IACTsB,aAAa,EAAE;EACjB,CAAC;EACDJ,IAAI,EAAE;IACJK,UAAU,EAAE,aAAa;IACzBC,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE;EACb,CAAC;EACDL,UAAU,EAAE;IACVD,KAAK,EAAE;EACT,CAAC;EACDZ,GAAG,EAAE;IACHmB,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,eAAe,EAAE,CAAC;IAClBC,cAAc,EAAE;EAClB,CAAC;EACDjB,QAAQ,EAAE;IACRgB,eAAe,EAAE,CAAC;IAClBE,mBAAmB,EAAE,CAAC;IACtBC,sBAAsB,EAAE;EAC1B,CAAC;EACDjB,OAAO,EAAE;IACPkB,oBAAoB,EAAE,CAAC;IACvBC,uBAAuB,EAAE;EAC3B;AACF,CAAC;AAED,MAAMC,eAAe,GAAGC,KAAK,IAAI;EAC/B,OAAO;IACL3B,kBAAkB,EAAEf,8BAA8B,CAAC0C,KAAK;EAC1D,CAAC;AACH,CAAC;AAED,MAAMC,MAAM,GAAG5C,OAAO,CAAC0C,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxC,MAAM,CAAC;AACnD,SAAS0C,MAAM,IAAI1C,MAAM","ignoreList":[]}
1
+ {"version":3,"names":["React","PureComponent","View","TouchableOpacity","Text","connect","getMainBrandingColourFromState","Toggle","render","createElement","style","styles","container","props","options","map","option","index","onPress","tag","borderColor","colourBrandingMain","val","activeVal","backgroundColor","firstTag","length","lastTag","tagStyle","key","text","color","activeText","textStyle","flexDirection","fontFamily","fontSize","textAlign","flex","height","borderWidth","borderLeftWidth","justifyContent","borderTopLeftRadius","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","mapStateToProps","state","toggle"],"sources":["Toggle.js"],"sourcesContent":["import React, { PureComponent } from \"react\";\nimport { View, TouchableOpacity } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { connect } from \"react-redux\";\nimport { getMainBrandingColourFromState } from \"../colours\";\n\nclass Toggle extends PureComponent {\n\trender() {\n\t\treturn (\n\t\t\t<View style={[styles.container, this.props.style]}>\n\t\t\t\t{this.props.options.map((option, index) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\t\tonPress={() => {\n\t\t\t\t\t\t\t\tthis.props.onPress(option);\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.tag,\n\t\t\t\t\t\t\t\t{ borderColor: this.props.colourBrandingMain },\n\t\t\t\t\t\t\t\toption.val === this.props.activeVal && {\n\t\t\t\t\t\t\t\t\tborderColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tindex === 0 && styles.firstTag,\n\t\t\t\t\t\t\t\tindex === this.props.options.length - 1 && styles.lastTag,\n\t\t\t\t\t\t\t\tthis.props.tagStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\tkey={option.val}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\tstyles.text,\n\t\t\t\t\t\t\t\t\t{ color: this.props.colourBrandingMain },\n\t\t\t\t\t\t\t\t\toption.val === this.props.activeVal && styles.activeText,\n\t\t\t\t\t\t\t\t\tthis.props.textStyle,\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{option.text}\n\t\t\t\t\t\t\t</Text>\n\t\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\tflexDirection: \"row\",\n\t},\n\ttext: {\n\t\tfontFamily: \"sf-semibold\",\n\t\tfontSize: 14,\n\t\ttextAlign: \"center\",\n\t},\n\tactiveText: {\n\t\tcolor: \"#fff\",\n\t},\n\ttag: {\n\t\tflex: 1,\n\t\theight: 34,\n\t\tborderWidth: 1,\n\t\tborderLeftWidth: 0,\n\t\tjustifyContent: \"center\",\n\t},\n\tfirstTag: {\n\t\tborderLeftWidth: 1,\n\t\tborderTopLeftRadius: 4,\n\t\tborderBottomLeftRadius: 4,\n\t},\n\tlastTag: {\n\t\tborderTopRightRadius: 4,\n\t\tborderBottomRightRadius: 4,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst toggle = connect(mapStateToProps, {})(Toggle);\nexport { toggle as Toggle };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AACrD,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,8BAA8B,QAAQ,YAAY;AAE3D,MAAMC,MAAM,SAASN,aAAa,CAAC;EAClCO,MAAMA,CAAA,EAAG;IACR,oBACCR,KAAA,CAAAS,aAAA,CAACP,IAAI;MAACQ,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAE,IAAI,CAACC,KAAK,CAACH,KAAK;IAAE,GAChD,IAAI,CAACG,KAAK,CAACC,OAAO,CAACC,GAAG,CAAC,CAACC,MAAM,EAAEC,KAAK,KAAK;MAC1C,oBAC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EACDZ,GAAG,EAAE;IACJmB,IAAI,EAAE,CAAC;IACPC,MAAM,EAAE,EAAE;IACVC,WAAW,EAAE,CAAC;IACdC,eAAe,EAAE,CAAC;IAClBC,cAAc,EAAE;EACjB,CAAC;EACDjB,QAAQ,EAAE;IACTgB,eAAe,EAAE,CAAC;IAClBE,mBAAmB,EAAE,CAAC;IACtBC,sBAAsB,EAAE;EACzB,CAAC;EACDjB,OAAO,EAAE;IACRkB,oBAAoB,EAAE,CAAC;IACvBC,uBAAuB,EAAE;EAC1B;AACD,CAAC;AAED,MAAMC,eAAe,GAAIC,KAAK,IAAK;EAClC,OAAO;IACN3B,kBAAkB,EAAEf,8BAA8B,CAAC0C,KAAK;EACzD,CAAC;AACF,CAAC;AAED,MAAMC,MAAM,GAAG5C,OAAO,CAAC0C,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxC,MAAM,CAAC;AACnD,SAAS0C,MAAM,IAAI1C,MAAM","ignoreList":[]}
@@ -1,18 +1,19 @@
1
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
2
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
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, TouchableWithoutFeedback, Text } from 'react-native';
6
- import { connect } from 'react-redux';
7
- import { getSiteSettingFromState } from '../helper';
8
- import { TEXT_LIGHT, BOXGREY } from '../colours';
9
- import { Pl60Icon } from '../fonts';
10
- import Config, { Services } from '../config';
4
+ import React, { Component } from "react";
5
+ import { View, TouchableWithoutFeedback } from "react-native";
6
+ import { Text } from "./Text";
7
+ import { connect } from "react-redux";
8
+ import { getSiteSettingFromState } from "../helper";
9
+ import { TEXT_LIGHT, BOXGREY } from "../colours";
10
+ import { FontAwesome } from "./Icon";
11
+ import Config, { Services } from "../config";
11
12
  class TouchableSearchBar extends Component {
12
13
  constructor(...args) {
13
14
  super(...args);
14
15
  _defineProperty(this, "onPressSearch", () => {
15
- Services.navigation.navigate('search', {
16
+ Services.navigation.navigate("search", {
16
17
  priorityType: this.props.priorityType,
17
18
  searchName: this.props.searchName
18
19
  });
@@ -22,11 +23,11 @@ class TouchableSearchBar extends Component {
22
23
  return /*#__PURE__*/React.createElement(TouchableWithoutFeedback, {
23
24
  onPress: this.onPressSearch
24
25
  }, /*#__PURE__*/React.createElement(View, {
25
- style: [styles.searchInputContainer, this.props.headerType !== 'white' && {
26
- backgroundColor: '#fff'
26
+ style: [styles.searchInputContainer, this.props.headerType !== "white" && {
27
+ backgroundColor: "#fff"
27
28
  }, this.props.style]
28
- }, /*#__PURE__*/React.createElement(Pl60Icon, {
29
- name: "Ellipse",
29
+ }, /*#__PURE__*/React.createElement(FontAwesome, {
30
+ name: "magnifying-glass",
30
31
  style: styles.searchIcon
31
32
  }), /*#__PURE__*/React.createElement(Text, {
32
33
  style: styles.searchText
@@ -41,9 +42,9 @@ const styles = {
41
42
  marginVertical: 17,
42
43
  borderRadius: 25,
43
44
  backgroundColor: BOXGREY,
44
- alignItems: 'center',
45
- justifyContent: 'center',
46
- flexDirection: 'row',
45
+ alignItems: "center",
46
+ justifyContent: "center",
47
+ flexDirection: "row",
47
48
  paddingHorizontal: 16
48
49
  },
49
50
  searchIcon: {
@@ -54,12 +55,12 @@ const styles = {
54
55
  searchText: {
55
56
  fontSize: 14,
56
57
  color: TEXT_LIGHT,
57
- fontFamily: 'sf-medium'
58
+ fontFamily: "sf-medium"
58
59
  }
59
60
  };
60
61
  const mapStateToProps = state => {
61
62
  return {
62
- headerType: getSiteSettingFromState(state, 'HeaderType', getSiteSettingFromState(state, 'UseGradientHeader', Config.env.hasGradientHeader) ? 'gradient' : 'white')
63
+ headerType: getSiteSettingFromState(state, "HeaderType", getSiteSettingFromState(state, "UseGradientHeader", Config.env.hasGradientHeader) ? "gradient" : "white")
63
64
  };
64
65
  };
65
66
  const touchableSearchBar = connect(mapStateToProps, {})(TouchableSearchBar);
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","View","TouchableWithoutFeedback","Text","connect","getSiteSettingFromState","TEXT_LIGHT","BOXGREY","Pl60Icon","Config","Services","TouchableSearchBar","constructor","args","_defineProperty","navigation","navigate","priorityType","props","searchName","render","createElement","onPress","onPressSearch","style","styles","searchInputContainer","headerType","backgroundColor","name","searchIcon","searchText","flex","height","marginHorizontal","marginVertical","borderRadius","alignItems","justifyContent","flexDirection","paddingHorizontal","fontSize","color","marginRight","fontFamily","mapStateToProps","state","env","hasGradientHeader","touchableSearchBar"],"sources":["TouchableSearchBar.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { View, TouchableWithoutFeedback, Text } from 'react-native';\nimport { connect } from 'react-redux';\nimport { getSiteSettingFromState } from '../helper';\nimport { TEXT_LIGHT, BOXGREY } from '../colours';\nimport { Pl60Icon } from '../fonts';\nimport Config, { Services } from '../config';\n\nclass TouchableSearchBar extends Component {\n onPressSearch = () => {\n Services.navigation.navigate('search', { priorityType: this.props.priorityType, searchName: this.props.searchName });\n };\n\n render() {\n return (\n <TouchableWithoutFeedback onPress={this.onPressSearch}>\n <View style={[styles.searchInputContainer, this.props.headerType !== 'white' && { backgroundColor: '#fff' }, this.props.style]}>\n <Pl60Icon name=\"Ellipse\" style={styles.searchIcon} />\n <Text style={styles.searchText}>{`Search ${this.props.searchName}`}</Text>\n </View>\n </TouchableWithoutFeedback>\n );\n }\n}\n\nconst styles = {\n searchInputContainer: {\n flex: 1,\n height: 36,\n marginHorizontal: 16,\n marginVertical: 17,\n borderRadius: 25,\n backgroundColor: BOXGREY,\n alignItems: 'center',\n justifyContent: 'center',\n flexDirection: 'row',\n paddingHorizontal: 16,\n },\n searchIcon: {\n fontSize: 14,\n color: TEXT_LIGHT,\n marginRight: 8,\n },\n searchText: {\n fontSize: 14,\n color: TEXT_LIGHT,\n fontFamily: 'sf-medium',\n },\n};\n\nconst mapStateToProps = state => {\n return {\n headerType: getSiteSettingFromState(\n state,\n 'HeaderType',\n getSiteSettingFromState(state, 'UseGradientHeader', Config.env.hasGradientHeader) ? 'gradient' : 'white',\n ),\n };\n};\n\nconst touchableSearchBar = connect(mapStateToProps, {})(TouchableSearchBar);\nexport { touchableSearchBar as TouchableSearchBar };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,wBAAwB,EAAEC,IAAI,QAAQ,cAAc;AACnE,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,uBAAuB,QAAQ,WAAW;AACnD,SAASC,UAAU,EAAEC,OAAO,QAAQ,YAAY;AAChD,SAASC,QAAQ,QAAQ,UAAU;AACnC,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,WAAW;AAE5C,MAAMC,kBAAkB,SAASX,SAAS,CAAC;EAAAY,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,wBACzB,MAAM;MACpBJ,QAAQ,CAACK,UAAU,CAACC,QAAQ,CAAC,QAAQ,EAAE;QAAEC,YAAY,EAAE,IAAI,CAACC,KAAK,CAACD,YAAY;QAAEE,UAAU,EAAE,IAAI,CAACD,KAAK,CAACC;MAAW,CAAC,CAAC;IACtH,CAAC;EAAA;EAEDC,MAAMA,CAAA,EAAG;IACP,oBACErB,KAAA,CAAAsB,aAAA,CAACnB,wBAAwB;MAACoB,OAAO,EAAE,IAAI,CAACC;IAAc,gBACpDxB,KAAA,CAAAsB,aAAA,CAACpB,IAAI;MAACuB,KAAK,EAAE,CAACC,MAAM,CAACC,oBAAoB,EAAE,IAAI,CAACR,KAAK,CAACS,UAAU,KAAK,OAAO,IAAI;QAAEC,eAAe,EAAE;MAAO,CAAC,E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version":3,"names":["React","Component","View","TouchableWithoutFeedback","Text","connect","getSiteSettingFromState","TEXT_LIGHT","BOXGREY","FontAwesome","Config","Services","TouchableSearchBar","constructor","args","_defineProperty","navigation","navigate","priorityType","props","searchName","render","createElement","onPress","onPressSearch","style","styles","searchInputContainer","headerType","backgroundColor","name","searchIcon","searchText","flex","height","marginHorizontal","marginVertical","borderRadius","alignItems","justifyContent","flexDirection","paddingHorizontal","fontSize","color","marginRight","fontFamily","mapStateToProps","state","env","hasGradientHeader","touchableSearchBar"],"sources":["TouchableSearchBar.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { View, TouchableWithoutFeedback } from \"react-native\";\nimport { Text } from \"./Text\";\nimport { connect } from \"react-redux\";\nimport { getSiteSettingFromState } from \"../helper\";\nimport { TEXT_LIGHT, BOXGREY } from \"../colours\";\nimport { FontAwesome } from \"./Icon\";\nimport Config, { Services } from \"../config\";\n\nclass TouchableSearchBar extends Component {\n\tonPressSearch = () => {\n\t\tServices.navigation.navigate(\"search\", {\n\t\t\tpriorityType: this.props.priorityType,\n\t\t\tsearchName: this.props.searchName,\n\t\t});\n\t};\n\n\trender() {\n\t\treturn (\n\t\t\t<TouchableWithoutFeedback onPress={this.onPressSearch}>\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.searchInputContainer,\n\t\t\t\t\t\tthis.props.headerType !== \"white\" && { backgroundColor: \"#fff\" },\n\t\t\t\t\t\tthis.props.style,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<FontAwesome name=\"magnifying-glass\" style={styles.searchIcon} />\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={styles.searchText}\n\t\t\t\t\t>{`Search ${this.props.searchName}`}</Text>\n\t\t\t\t</View>\n\t\t\t</TouchableWithoutFeedback>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tsearchInputContainer: {\n\t\tflex: 1,\n\t\theight: 36,\n\t\tmarginHorizontal: 16,\n\t\tmarginVertical: 17,\n\t\tborderRadius: 25,\n\t\tbackgroundColor: BOXGREY,\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\",\n\t\tflexDirection: \"row\",\n\t\tpaddingHorizontal: 16,\n\t},\n\tsearchIcon: {\n\t\tfontSize: 14,\n\t\tcolor: TEXT_LIGHT,\n\t\tmarginRight: 8,\n\t},\n\tsearchText: {\n\t\tfontSize: 14,\n\t\tcolor: TEXT_LIGHT,\n\t\tfontFamily: \"sf-medium\",\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\theaderType: getSiteSettingFromState(\n\t\t\tstate,\n\t\t\t\"HeaderType\",\n\t\t\tgetSiteSettingFromState(\n\t\t\t\tstate,\n\t\t\t\t\"UseGradientHeader\",\n\t\t\t\tConfig.env.hasGradientHeader,\n\t\t\t)\n\t\t\t\t? \"gradient\"\n\t\t\t\t: \"white\",\n\t\t),\n\t};\n};\n\nconst touchableSearchBar = connect(mapStateToProps, {})(TouchableSearchBar);\nexport { touchableSearchBar as TouchableSearchBar };\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,EAAEC,wBAAwB,QAAQ,cAAc;AAC7D,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,OAAO,QAAQ,aAAa;AACrC,SAASC,uBAAuB,QAAQ,WAAW;AACnD,SAASC,UAAU,EAAEC,OAAO,QAAQ,YAAY;AAChD,SAASC,WAAW,QAAQ,QAAQ;AACpC,OAAOC,MAAM,IAAIC,QAAQ,QAAQ,WAAW;AAE5C,MAAMC,kBAAkB,SAASX,SAAS,CAAC;EAAAY,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,wBAC1B,MAAM;MACrBJ,QAAQ,CAACK,UAAU,CAACC,QAAQ,CAAC,QAAQ,EAAE;QACtCC,YAAY,EAAE,IAAI,CAACC,KAAK,CAACD,YAAY;QACrCE,UAAU,EAAE,IAAI,CAACD,KAAK,CA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EtB,uBAAuB,CAClCyC,KAAK,EACL,YAAY,EACZzC,uBAAuB,CACtByC,KAAK,EACL,mBAAmB,EACnBrC,MAAM,CAACsC,GAAG,CAACC,iBACZ,CAAC,GACE,UAAU,GACV,OACJ;EACD,CAAC;AACF,CAAC;AAED,MAAMC,kBAAkB,GAAG7C,OAAO,CAACyC,eAAe,EAAE,CAAC,CAAC,CAAC,CAAClC,kBAAkB,CAAC;AAC3E,SAASsC,kBAAkB,IAAItC,kBAAkB","ignoreList":[]}
@@ -1,10 +1,11 @@
1
- import React, { Component } from 'react';
2
- import { Text, View, Dimensions, Modal, ScrollView, TouchableWithoutFeedback, Platform } from 'react-native';
3
- import { connect } from 'react-redux';
4
- import { TEXT_DARK, LINEGREY, getMainBrandingColourFromState } from '../colours';
5
- import UserListing from './UserListing';
6
- import { InlineButton } from './InlineButton';
7
- const SCREEN_HEIGHT = Dimensions.get('window').height;
1
+ import React, { Component } from "react";
2
+ import { Text } from "@plusscommunities/pluss-core-app/components";
3
+ import { View, Dimensions, Modal, ScrollView, TouchableWithoutFeedback, Platform } from "react-native";
4
+ import { connect } from "react-redux";
5
+ import { TEXT_DARK, LINEGREY, getMainBrandingColourFromState } from "../colours";
6
+ import UserListing from "./UserListing";
7
+ import { InlineButton } from "./InlineButton";
8
+ const SCREEN_HEIGHT = Dimensions.get("window").height;
8
9
  class UserListPopup extends Component {
9
10
  getRenderKey(user, userKey) {
10
11
  if (user.id) {
@@ -63,10 +64,10 @@ class UserListPopup extends Component {
63
64
  style: styles.popupOverlay
64
65
  })), /*#__PURE__*/React.createElement(View, {
65
66
  style: [styles.popupContent, {
66
- minHeight: SCREEN_HEIGHT - (Platform.OS === 'android' ? 175 : 150)
67
+ minHeight: SCREEN_HEIGHT - (Platform.OS === "android" ? 175 : 150)
67
68
  }, {
68
69
  marginTop: 60,
69
- minHeight: SCREEN_HEIGHT - (Platform.OS === 'android' ? 85 : 60)
70
+ minHeight: SCREEN_HEIGHT - (Platform.OS === "android" ? 85 : 60)
70
71
  }]
71
72
  }, this.renderHeader(), this.renderScrollContainer(), this.renderFooter()))));
72
73
  }
@@ -74,11 +75,11 @@ class UserListPopup extends Component {
74
75
  const styles = {
75
76
  popup: {
76
77
  flex: 1,
77
- justifyContent: 'center'
78
+ justifyContent: "center"
78
79
  },
79
80
  popupOverlay: {
80
- position: 'absolute',
81
- backgroundColor: 'rgba(19, 19, 26, .25)',
81
+ position: "absolute",
82
+ backgroundColor: "rgba(19, 19, 26, .25)",
82
83
  top: 0,
83
84
  left: 0,
84
85
  right: 0,
@@ -87,7 +88,7 @@ const styles = {
87
88
  popupContent: {
88
89
  borderRadius: 3,
89
90
  marginTop: 150,
90
- backgroundColor: '#fff',
91
+ backgroundColor: "#fff",
91
92
  flex: 1,
92
93
  borderTopLeftRadius: 15,
93
94
  borderTopRightRadius: 15
@@ -96,14 +97,14 @@ const styles = {
96
97
  padding: 8,
97
98
  borderTopWidth: 1,
98
99
  borderColor: LINEGREY,
99
- backgroundColor: '#fff'
100
+ backgroundColor: "#fff"
100
101
  },
101
102
  footerButton: {
102
- width: '100%',
103
+ width: "100%",
103
104
  height: 40
104
105
  },
105
106
  titleContainer: {
106
- alignSelf: 'stretch',
107
+ alignSelf: "stretch",
107
108
  padding: 24,
108
109
  paddingTop: 16,
109
110
  paddingBottom: 0
@@ -111,13 +112,13 @@ const styles = {
111
112
  titleContent: {
112
113
  borderColor: LINEGREY,
113
114
  borderBottomWidth: 1,
114
- flexDirection: 'row',
115
- justifyContent: 'space-between',
115
+ flexDirection: "row",
116
+ justifyContent: "space-between",
116
117
  paddingBottom: 15
117
118
  },
118
119
  title: {
119
120
  fontSize: 15,
120
- fontFamily: 'sf-semibold',
121
+ fontFamily: "sf-semibold",
121
122
  color: TEXT_DARK
122
123
  },
123
124
  optionsContainer: {
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","Text","View","Dimensions","Modal","ScrollView","TouchableWithoutFeedback","Platform","connect","TEXT_DARK","LINEGREY","getMainBrandingColourFromState","UserListing","InlineButton","SCREEN_HEIGHT","get","height","UserListPopup","getRenderKey","user","userKey","id","userId","renderHeader","createElement","style","styles","titleContainer","titleContent","title","props","renderScrollContainer","optionsContainer","keyboardShouldPersistTaps","users","map","userIndex","key","index","scrollFooterSpace","renderFooter","footer","onPress","onClose","bind","color","colourBrandingMain","footerButton","render","visible","transparent","animationType","onRequestClose","popup","popupOverlay","popupContent","minHeight","OS","marginTop","flex","justifyContent","position","backgroundColor","top","left","right","bottom","borderRadius","borderTopLeftRadius","borderTopRightRadius","padding","borderTopWidth","borderColor","width","alignSelf","paddingTop","paddingBottom","borderBottomWidth","flexDirection","fontSize","fontFamily","paddingVertical","mapStateToProps","state","userListPopup"],"sources":["UserListPopup.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Text, View, Dimensions, Modal, ScrollView, TouchableWithoutFeedback, Platform } from 'react-native';\nimport { connect } from 'react-redux';\nimport { TEXT_DARK, LINEGREY, getMainBrandingColourFromState } from '../colours';\nimport UserListing from './UserListing';\nimport { InlineButton } from './InlineButton';\n\nconst SCREEN_HEIGHT = Dimensions.get('window').height;\n\nclass UserListPopup extends Component {\n getRenderKey(user, userKey) {\n if (user.id) {\n return `${user.id}${userKey}`;\n }\n if (user.userId) {\n return `${user.userId}${userKey}`;\n }\n return userKey;\n }\n\n renderHeader() {\n return (\n <View style={styles.titleContainer}>\n <View style={styles.titleContent}>\n <Text style={styles.title}>{this.props.title}</Text>\n </View>\n </View>\n );\n }\n\n renderScrollContainer() {\n return (\n <ScrollView style={styles.optionsContainer} keyboardShouldPersistTaps=\"handled\">\n {this.props.users.map((user, userIndex) => {\n return <UserListing user={user} key={this.getRenderKey(user, userIndex)} index={userIndex} />;\n })}\n <View style={styles.scrollFooterSpace} />\n </ScrollView>\n );\n }\n\n renderFooter() {\n return (\n <View style={styles.footer}>\n <InlineButton onPress={this.props.onClose.bind(this)} color={this.props.colourBrandingMain} style={[styles.footerButton]}>\n Done\n </InlineButton>\n </View>\n );\n }\n\n render() {\n return (\n <Modal visible={this.props.visible} transparent animationType=\"slide\" onRequestClose={this.props.onClose}>\n <ScrollView keyboardShouldPersistTaps=\"always\">\n <View style={styles.popup}>\n <TouchableWithoutFeedback onPress={this.props.onClose}>\n <View style={styles.popupOverlay} />\n </TouchableWithoutFeedback>\n <View\n style={[\n styles.popupContent,\n { minHeight: SCREEN_HEIGHT - (Platform.OS === 'android' ? 175 : 150) },\n { marginTop: 60, minHeight: SCREEN_HEIGHT - (Platform.OS === 'android' ? 85 : 60) },\n ]}\n >\n {this.renderHeader()}\n {this.renderScrollContainer()}\n {this.renderFooter()}\n </View>\n </View>\n </ScrollView>\n </Modal>\n );\n }\n}\n\nconst styles = {\n popup: {\n flex: 1,\n justifyContent: 'center',\n },\n popupOverlay: {\n position: 'absolute',\n backgroundColor: 'rgba(19, 19, 26, .25)',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n },\n popupContent: {\n borderRadius: 3,\n marginTop: 150,\n backgroundColor: '#fff',\n flex: 1,\n borderTopLeftRadius: 15,\n borderTopRightRadius: 15,\n },\n footer: {\n padding: 8,\n borderTopWidth: 1,\n borderColor: LINEGREY,\n backgroundColor: '#fff',\n },\n footerButton: {\n width: '100%',\n height: 40,\n },\n titleContainer: {\n alignSelf: 'stretch',\n padding: 24,\n paddingTop: 16,\n paddingBottom: 0,\n },\n titleContent: {\n borderColor: LINEGREY,\n borderBottomWidth: 1,\n flexDirection: 'row',\n justifyContent: 'space-between',\n paddingBottom: 15,\n },\n title: {\n fontSize: 15,\n fontFamily: 'sf-semibold',\n color: TEXT_DARK,\n },\n optionsContainer: {\n flex: 1,\n paddingVertical: 8,\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n };\n};\n\nconst userListPopup = connect(mapStateToProps, {})(UserListPopup);\nexport { userListPopup as UserListPopup };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,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,EAAE;EACjB,CAAC;EACDhD,YAAY,EAAE;IACZ4C,WAAW,EAAE9D,QAAQ;IACrBmE,iBAAiB,EAAE,CAAC;IACpBC,aAAa,EAAE,KAAK;IACpBlB,cAAc,EAAE,eAAe;IAC/BgB,aAAa,EAAE;EACjB,CAAC;EACD/C,KAAK,EAAE;IACLkD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,aAAa;IACzBnC,KAAK,EAAEpC;EACT,CAAC;EACDuB,gBAAgB,EAAE;IAChB2B,IAAI,EAAE,CAAC;IACPsB,eAAe,EAAE;EACnB;AACF,CAAC;AAED,MAAMC,eAAe,GAAGC,KAAK,IAAI;EAC/B,OAAO;IACLrC,kBAAkB,EAAEnC,8BAA8B,CAACwE,KAAK;EAC1D,CAAC;AACH,CAAC;AAED,MAAMC,aAAa,GAAG5E,OAAO,CAAC0E,eAAe,EAAE,CAAC,CAAC,CAAC,CAACjE,aAAa,CAAC;AACjE,SAASmE,aAAa,IAAInE,aAAa","ignoreList":[]}
1
+ {"version":3,"names":["React","Component","Text","View","Dimensions","Modal","ScrollView","TouchableWithoutFeedback","Platform","connect","TEXT_DARK","LINEGREY","getMainBrandingColourFromState","UserListing","InlineButton","SCREEN_HEIGHT","get","height","UserListPopup","getRenderKey","user","userKey","id","userId","renderHeader","createElement","style","styles","titleContainer","titleContent","title","props","renderScrollContainer","optionsContainer","keyboardShouldPersistTaps","users","map","userIndex","key","index","scrollFooterSpace","renderFooter","footer","onPress","onClose","bind","color","colourBrandingMain","footerButton","render","visible","transparent","animationType","onRequestClose","popup","popupOverlay","popupContent","minHeight","OS","marginTop","flex","justifyContent","position","backgroundColor","top","left","right","bottom","borderRadius","borderTopLeftRadius","borderTopRightRadius","padding","borderTopWidth","borderColor","width","alignSelf","paddingTop","paddingBottom","borderBottomWidth","flexDirection","fontSize","fontFamily","paddingVertical","mapStateToProps","state","userListPopup"],"sources":["UserListPopup.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tView,\n\tDimensions,\n\tModal,\n\tScrollView,\n\tTouchableWithoutFeedback,\n\tPlatform,\n} from \"react-native\";\nimport { connect } from \"react-redux\";\nimport {\n\tTEXT_DARK,\n\tLINEGREY,\n\tgetMainBrandingColourFromState,\n} from \"../colours\";\nimport UserListing from \"./UserListing\";\nimport { InlineButton } from \"./InlineButton\";\n\nconst SCREEN_HEIGHT = Dimensions.get(\"window\").height;\n\nclass UserListPopup extends Component {\n\tgetRenderKey(user, userKey) {\n\t\tif (user.id) {\n\t\t\treturn `${user.id}${userKey}`;\n\t\t}\n\t\tif (user.userId) {\n\t\t\treturn `${user.userId}${userKey}`;\n\t\t}\n\t\treturn userKey;\n\t}\n\n\trenderHeader() {\n\t\treturn (\n\t\t\t<View style={styles.titleContainer}>\n\t\t\t\t<View style={styles.titleContent}>\n\t\t\t\t\t<Text style={styles.title}>{this.props.title}</Text>\n\t\t\t\t</View>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderScrollContainer() {\n\t\treturn (\n\t\t\t<ScrollView\n\t\t\t\tstyle={styles.optionsContainer}\n\t\t\t\tkeyboardShouldPersistTaps=\"handled\"\n\t\t\t>\n\t\t\t\t{this.props.users.map((user, userIndex) => {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<UserListing\n\t\t\t\t\t\t\tuser={user}\n\t\t\t\t\t\t\tkey={this.getRenderKey(user, userIndex)}\n\t\t\t\t\t\t\tindex={userIndex}\n\t\t\t\t\t\t/>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t\t<View style={styles.scrollFooterSpace} />\n\t\t\t</ScrollView>\n\t\t);\n\t}\n\n\trenderFooter() {\n\t\treturn (\n\t\t\t<View style={styles.footer}>\n\t\t\t\t<InlineButton\n\t\t\t\t\tonPress={this.props.onClose.bind(this)}\n\t\t\t\t\tcolor={this.props.colourBrandingMain}\n\t\t\t\t\tstyle={[styles.footerButton]}\n\t\t\t\t>\n\t\t\t\t\tDone\n\t\t\t\t</InlineButton>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Modal\n\t\t\t\tvisible={this.props.visible}\n\t\t\t\ttransparent\n\t\t\t\tanimationType=\"slide\"\n\t\t\t\tonRequestClose={this.props.onClose}\n\t\t\t>\n\t\t\t\t<ScrollView keyboardShouldPersistTaps=\"always\">\n\t\t\t\t\t<View style={styles.popup}>\n\t\t\t\t\t\t<TouchableWithoutFeedback onPress={this.props.onClose}>\n\t\t\t\t\t\t\t<View style={styles.popupOverlay} />\n\t\t\t\t\t\t</TouchableWithoutFeedback>\n\t\t\t\t\t\t<View\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.popupContent,\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tminHeight:\n\t\t\t\t\t\t\t\t\t\tSCREEN_HEIGHT - (Platform.OS === \"android\" ? 175 : 150),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tmarginTop: 60,\n\t\t\t\t\t\t\t\t\tminHeight:\n\t\t\t\t\t\t\t\t\t\tSCREEN_HEIGHT - (Platform.OS === \"android\" ? 85 : 60),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.renderHeader()}\n\t\t\t\t\t\t\t{this.renderScrollContainer()}\n\t\t\t\t\t\t\t{this.renderFooter()}\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</View>\n\t\t\t\t</ScrollView>\n\t\t\t</Modal>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tpopup: {\n\t\tflex: 1,\n\t\tjustifyContent: \"center\",\n\t},\n\tpopupOverlay: {\n\t\tposition: \"absolute\",\n\t\tbackgroundColor: \"rgba(19, 19, 26, .25)\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 0,\n\t},\n\tpopupContent: {\n\t\tborderRadius: 3,\n\t\tmarginTop: 150,\n\t\tbackgroundColor: \"#fff\",\n\t\tflex: 1,\n\t\tborderTopLeftRadius: 15,\n\t\tborderTopRightRadius: 15,\n\t},\n\tfooter: {\n\t\tpadding: 8,\n\t\tborderTopWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tbackgroundColor: \"#fff\",\n\t},\n\tfooterButton: {\n\t\twidth: \"100%\",\n\t\theight: 40,\n\t},\n\ttitleContainer: {\n\t\talignSelf: \"stretch\",\n\t\tpadding: 24,\n\t\tpaddingTop: 16,\n\t\tpaddingBottom: 0,\n\t},\n\ttitleContent: {\n\t\tborderColor: LINEGREY,\n\t\tborderBottomWidth: 1,\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t\tpaddingBottom: 15,\n\t},\n\ttitle: {\n\t\tfontSize: 15,\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARK,\n\t},\n\toptionsContainer: {\n\t\tflex: 1,\n\t\tpaddingVertical: 8,\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\n\t};\n};\n\nconst userListPopup = connect(mapStateToProps, {})(UserListPopup);\nexport { userListPopup as UserListPopup };\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SACCC,IAAI,EACJC,UAAU,EACVC,KAAK,EACLC,UAAU,EACVC,wBAAwB,EACxBC,QAAQ,QACF,cAAc;AACrB,SAASC,OAAO,QAAQ,aAAa;AACrC,SACCC,SAAS,EACTC,QAAQ,EACRC,8BAA8B,QACxB,YAAY;AACnB,OAAOC,WAAW,MAAM,eAAe;AACvC,SAASC,YAAY,QAAQ,gBAAgB;AAE7C,MAAMC,aAAa,GAAGX,UAAU,CAACY,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AAErD,MAAMC,aAAa,SAASjB,SAAS,CA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