@plusscommunities/pluss-core-app 8.0.0 → 8.0.1-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 +15 -15
  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 +43 -37
  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 +50 -50
  76. package/dist/module/components/DocumentUploader.js.map +1 -1
  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 +211 -73
  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 +116 -96
  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 +31 -31
  124. package/dist/module/components/MediaPlayer.js.map +1 -1
  125. package/dist/module/components/MiddlePopup.js +17 -11
  126. package/dist/module/components/MiddlePopup.js.map +1 -1
  127. package/dist/module/components/PDFPopup.js +52 -39
  128. package/dist/module/components/PDFPopup.js.map +1 -1
  129. package/dist/module/components/PlussChat.js +168 -149
  130. package/dist/module/components/PlussChat.js.map +1 -1
  131. package/dist/module/components/PlussChatMessage.js +42 -42
  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 +78 -43
  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 -58
  176. package/dist/module/components/index.js.map +1 -1
  177. package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +94 -64
  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 +15 -10
  182. package/dist/module/config.js.map +1 -1
  183. package/dist/module/constants.js +3 -4
  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 +11 -10
  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 +6 -6
  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 +71 -68
  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 +96 -86
  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 +370 -309
  242. package/src/components/CommentSection.js +974 -781
  243. package/src/components/ConfirmPopup.js +141 -110
  244. package/src/components/ConfirmationPopup.js +80 -69
  245. package/src/components/DocumentUploader.js +245 -215
  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 -221
  262. package/src/components/ImageUploadProgress.js +49 -41
  263. package/src/components/ImageUploader.js +968 -797
  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 +62 -33
  271. package/src/components/PDFPopup.js +212 -159
  272. package/src/components/PlussChat.js +1224 -1025
  273. package/src/components/PlussChatMessage.js +329 -298
  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 +185 -134
  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 -58
  296. package/src/components/react-native-expo-image-cropper/ExpoImageManipulator.js +444 -359
  297. package/src/components/react-native-expo-image-cropper/ImageCropOverlay.js +420 -324
  298. package/src/config.js +26 -21
  299. package/src/constants.js +8 -10
  300. package/src/helper.js +469 -438
  301. package/src/index.js +24 -12
  302. package/src/js/images/detectFaces.js +28 -21
  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 +32 -32
  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 -7
  320. package/src/fonts/pluss60-icons.json +0 -1097
@@ -1,8 +1,9 @@
1
- import React, { Component } from 'react';
2
- import { Animated, View, StatusBar, Image, Dimensions, TouchableOpacity, Text, Platform } from 'react-native';
3
- import { Icon } from '@rneui/themed';
4
- import { LinearGradient } from 'expo-linear-gradient';
5
- import { connect } from 'react-redux';
1
+ import React, { Component } from "react";
2
+ import { Text } from "@plusscommunities/pluss-core-app/components";
3
+ import { Animated, View, StatusBar, Image, Dimensions, TouchableOpacity, Platform } from "react-native";
4
+ import { Icon } from "@rneui/themed";
5
+ import { LinearGradient } from "expo-linear-gradient";
6
+ import { connect } from "react-redux";
6
7
  // import {
7
8
  // StatusBarHeight,
8
9
  // COLOUR_TRANSPARENT,
@@ -14,10 +15,10 @@ import { connect } from 'react-redux';
14
15
  // hexToRGBAstring,
15
16
  // getSiteSettingFromState,
16
17
  // } from '../../js';
17
- import { StatusBarHeight, getSiteSettingFromState } from '../helper';
18
- import { COLOUR_TRANSPARENT, TEXT_DARK, TEXT_LIGHT, LINEGREY, COLOUR_GREEN, getMainBrandingColourFromState, hexToRGBAstring } from '../colours';
19
- import { Pl60Icon } from '../fonts';
20
- import Config from '../config';
18
+ import { StatusBarHeight, getSiteSettingFromState } from "../helper";
19
+ import { COLOUR_TRANSPARENT, TEXT_DARK, TEXT_LIGHT, LINEGREY, COLOUR_GREEN, getMainBrandingColourFromState, hexToRGBAstring } from "../colours";
20
+ import { FontAwesome } from "./Icon";
21
+ import Config from "../config";
21
22
  // import { HAS_GRADIENT_HEADER } from '../../config';
22
23
 
23
24
  class Header extends Component {
@@ -27,16 +28,16 @@ class Header extends Component {
27
28
  }
28
29
  UNSAFE_componentWillMount() {
29
30
  let barStyle = Platform.select({
30
- ios: 'dark-content',
31
- android: 'default'
31
+ ios: "dark-content",
32
+ android: "default"
32
33
  });
33
34
  if (this.props.barStyle) {
34
35
  barStyle = this.props.barStyle;
35
- } else if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {
36
- barStyle = 'light-content';
36
+ } else if (this.props.headerType !== "white" && !this.props.noGradient && !this.props.transparent) {
37
+ barStyle = "light-content";
37
38
  }
38
39
  this.setState({
39
- windowWidth: Dimensions.get('window').width,
40
+ windowWidth: Dimensions.get("window").width,
40
41
  barStyle
41
42
  });
42
43
  }
@@ -46,9 +47,9 @@ class Header extends Component {
46
47
  color: this.props.textColour
47
48
  };
48
49
  }
49
- if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {
50
+ if (this.props.headerType !== "white" && !this.props.noGradient && !this.props.transparent) {
50
51
  return {
51
- color: '#fff'
52
+ color: "#fff"
52
53
  };
53
54
  }
54
55
  return null;
@@ -65,7 +66,7 @@ class Header extends Component {
65
66
  }
66
67
  });
67
68
  }
68
- if (this.props.headerType === 'pattern' && !this.props.noGradient && !this.props.transparent) {
69
+ if (this.props.headerType === "pattern" && !this.props.noGradient && !this.props.transparent) {
69
70
  return /*#__PURE__*/React.createElement(View, {
70
71
  style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
71
72
  backgroundColor: this.props.colourBrandingMain,
@@ -80,7 +81,7 @@ class Header extends Component {
80
81
  }
81
82
  }));
82
83
  }
83
- if (this.props.headerType === 'block' && !this.props.noGradient && !this.props.transparent) {
84
+ if (this.props.headerType === "block" && !this.props.noGradient && !this.props.transparent) {
84
85
  return /*#__PURE__*/React.createElement(View, {
85
86
  style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
86
87
  backgroundColor: this.props.colourBrandingMain,
@@ -88,7 +89,7 @@ class Header extends Component {
88
89
  }, this.props.popupHeader && styles.thumbnailPopupHeader]
89
90
  });
90
91
  }
91
- if (this.props.headerType === 'gradient' && !this.props.noGradient && !this.props.transparent) {
92
+ if (this.props.headerType === "gradient" && !this.props.noGradient && !this.props.transparent) {
92
93
  return /*#__PURE__*/React.createElement(View, {
93
94
  style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
94
95
  width: this.state.windowWidth
@@ -126,7 +127,7 @@ class Header extends Component {
126
127
  if (this.props.leftText) {
127
128
  return /*#__PURE__*/React.createElement(View, {
128
129
  style: [styles.headerContentIcon, {
129
- width: 'auto'
130
+ width: "auto"
130
131
  }]
131
132
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
132
133
  onPress: this.props.onPressLeft,
@@ -136,12 +137,12 @@ class Header extends Component {
136
137
  paddingRight: 5,
137
138
  paddingLeft: 15,
138
139
  color: this.props.colourBrandingMain
139
- }, this.props.leftTextStyle, this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent && {
140
- color: '#fff'
140
+ }, this.props.leftTextStyle, this.props.headerType !== "white" && !this.props.noGradient && !this.props.transparent && {
141
+ color: "#fff"
141
142
  }]
142
143
  }, this.props.leftText)));
143
144
  }
144
- if (this.props.leftIconType && this.props.leftIconType === 'pluss') {
145
+ if (this.props.leftIconType && this.props.leftIconType === "pluss") {
145
146
  return /*#__PURE__*/React.createElement(View, {
146
147
  style: styles.headerContentIcon
147
148
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
@@ -149,7 +150,7 @@ class Header extends Component {
149
150
  activeOpacity: 0.6
150
151
  }, /*#__PURE__*/React.createElement(View, {
151
152
  style: styles.headerContentIcon
152
- }, /*#__PURE__*/React.createElement(Pl60Icon, {
153
+ }, /*#__PURE__*/React.createElement(FontAwesome, {
153
154
  name: this.props.leftIcon,
154
155
  style: [styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]
155
156
  }), this.renderLeftBubble())));
@@ -208,7 +209,7 @@ class Header extends Component {
208
209
  if (this.props.rightText && this.props.onPressRight) {
209
210
  return /*#__PURE__*/React.createElement(View, {
210
211
  style: [styles.headerContentIcon, {
211
- width: 'auto'
212
+ width: "auto"
212
213
  }, this.props.absoluteRight && styles.absoluteRight, this.props.rightContainerStyle]
213
214
  }, /*#__PURE__*/React.createElement(TouchableOpacity, {
214
215
  onPress: this.props.onPressRight,
@@ -217,8 +218,8 @@ class Header extends Component {
217
218
  style: [styles.buttonText, {
218
219
  paddingRight: 15,
219
220
  paddingLeft: 5,
220
- textAlign: 'right',
221
- fontFamily: 'sf-semibold',
221
+ textAlign: "right",
222
+ fontFamily: "sf-semibold",
222
223
  color: this.props.colourBrandingMain
223
224
  }, this.getTextColourStyle(), this.props.optionalRightStyle]
224
225
  }, this.props.rightText)));
@@ -243,15 +244,15 @@ class Header extends Component {
243
244
  return /*#__PURE__*/React.createElement(TouchableOpacity, {
244
245
  onPress: this.props.onPressRight,
245
246
  activeOpacity: 0.6
246
- }, this.props.rightIconType && this.props.rightIconType === 'pluss' ? /*#__PURE__*/React.createElement(View, {
247
+ }, this.props.rightIconType && this.props.rightIconType === "pluss" ? /*#__PURE__*/React.createElement(View, {
247
248
  style: styles.headerContentIcon
248
- }, /*#__PURE__*/React.createElement(Pl60Icon, {
249
+ }, /*#__PURE__*/React.createElement(FontAwesome, {
249
250
  name: this.props.rightIcon,
250
251
  style: [styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]
251
252
  })) : /*#__PURE__*/React.createElement(Icon, {
252
253
  name: this.props.rightIcon,
253
254
  style: styles.headerContentIcon,
254
- type: this.props.rightIconType ? this.props.rightIconType : 'font-awesome',
255
+ type: this.props.rightIconType ? this.props.rightIconType : "font-awesome",
255
256
  iconStyle: [styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]
256
257
  }));
257
258
  }
@@ -288,12 +289,12 @@ class Header extends Component {
288
289
  }
289
290
  const styles = {
290
291
  container: {
291
- alignSelf: 'stretch',
292
- backgroundColor: '#fff',
292
+ alignSelf: "stretch",
293
+ backgroundColor: "#fff",
293
294
  zIndex: 10
294
295
  },
295
296
  containerShadow: {
296
- shadowColor: '#000',
297
+ shadowColor: "#000",
297
298
  shadowOffset: {
298
299
  width: 0,
299
300
  height: 1
@@ -318,8 +319,8 @@ const styles = {
318
319
  },
319
320
  contentContainer: {
320
321
  height: StatusBarHeight(70),
321
- alignSelf: 'stretch',
322
- flexDirection: 'row'
322
+ alignSelf: "stretch",
323
+ flexDirection: "row"
323
324
  },
324
325
  popupContentContainer: {
325
326
  height: 70,
@@ -334,21 +335,21 @@ const styles = {
334
335
  thumbnailStyle: {
335
336
  height: StatusBarHeight(70),
336
337
  width: null,
337
- position: 'absolute',
338
+ position: "absolute",
338
339
  top: 0,
339
340
  left: 0,
340
- resizeMode: 'cover'
341
+ resizeMode: "cover"
341
342
  },
342
343
  thumbnailPopupHeader: {
343
344
  height: 70,
344
- width: '100%',
345
+ width: "100%",
345
346
  borderTopLeftRadius: 12,
346
347
  borderTopRightRadius: 12,
347
- overflow: 'hidden'
348
+ overflow: "hidden"
348
349
  },
349
350
  headerContent: {
350
- alignSelf: 'stretch',
351
- flexDirection: 'row',
351
+ alignSelf: "stretch",
352
+ flexDirection: "row",
352
353
  flex: 1,
353
354
  paddingTop: StatusBarHeight(0)
354
355
  },
@@ -358,14 +359,14 @@ const styles = {
358
359
  headerContentIcon: {
359
360
  height: 70,
360
361
  width: 55,
361
- alignItems: 'center',
362
- flexDirection: 'row',
363
- justifyContent: 'space-between'
362
+ alignItems: "center",
363
+ flexDirection: "row",
364
+ justifyContent: "space-between"
364
365
  },
365
366
  absoluteRight: {
366
367
  height: 70,
367
- justifyContent: 'center',
368
- position: 'absolute',
368
+ justifyContent: "center",
369
+ position: "absolute",
369
370
  right: 0,
370
371
  top: StatusBarHeight(0)
371
372
  },
@@ -373,35 +374,35 @@ const styles = {
373
374
  fontSize: 25,
374
375
  padding: 15,
375
376
  width: 55,
376
- textAlign: 'center',
377
+ textAlign: "center",
377
378
  color: TEXT_LIGHT
378
379
  },
379
380
  headerTextContainer: {
380
381
  height: 70,
381
382
  flex: 1,
382
- alignItems: 'center',
383
- flexDirection: 'row',
384
- justifyContent: 'space-between'
383
+ alignItems: "center",
384
+ flexDirection: "row",
385
+ justifyContent: "space-between"
385
386
  },
386
387
  headerText: {
387
388
  fontSize: 16,
388
389
  flex: 1,
389
- fontFamily: 'sf-semibold',
390
+ fontFamily: "sf-semibold",
390
391
  color: TEXT_DARK,
391
- textAlign: 'center',
392
- backgroundColor: 'rgba(255,255,255,0)'
392
+ textAlign: "center",
393
+ backgroundColor: "rgba(255,255,255,0)"
393
394
  },
394
395
  buttonText: {
395
396
  fontSize: 15,
396
- fontFamily: 'sf-regular',
397
+ fontFamily: "sf-regular",
397
398
  width: 80,
398
- backgroundColor: 'rgba(255,255,255,0)'
399
+ backgroundColor: "rgba(255,255,255,0)"
399
400
  },
400
401
  rightIcon: {
401
402
  fontSize: 25,
402
403
  padding: 15,
403
404
  width: 55,
404
- textAlign: 'center',
405
+ textAlign: "center",
405
406
  color: TEXT_LIGHT
406
407
  },
407
408
  rightImage: {
@@ -414,19 +415,19 @@ const styles = {
414
415
  top: 15,
415
416
  right: 5,
416
417
  borderRadius: 10,
417
- position: 'absolute',
418
+ position: "absolute",
418
419
  height: 20,
419
420
  minWidth: 20,
420
421
  backgroundColor: COLOUR_GREEN,
421
- justifyContent: 'center'
422
+ justifyContent: "center"
422
423
  },
423
424
  counterText: {
424
- color: '#fff',
425
- textAlign: 'center',
426
- fontFamily: 'sf-bold',
425
+ color: "#fff",
426
+ textAlign: "center",
427
+ fontFamily: "sf-bold",
427
428
  fontSize: 10,
428
429
  lineHeight: 12,
429
- backgroundColor: 'transparent'
430
+ backgroundColor: "transparent"
430
431
  },
431
432
  smallCounter: {
432
433
  width: 5,
@@ -436,22 +437,22 @@ const styles = {
436
437
  right: 10
437
438
  },
438
439
  headerPattern: {
439
- position: 'absolute',
440
+ position: "absolute",
440
441
  top: 0,
441
442
  left: 0,
442
443
  right: 0,
443
444
  bottom: 0,
444
- width: '100%',
445
- height: '100%',
446
- resizeMode: 'cover'
445
+ width: "100%",
446
+ height: "100%",
447
+ resizeMode: "cover"
447
448
  }
448
449
  };
449
450
  const mapStateToProps = state => {
450
451
  return {
451
452
  colourBrandingMain: getMainBrandingColourFromState(state),
452
- headerType: getSiteSettingFromState(state, 'HeaderType', getSiteSettingFromState(state, 'UseGradientHeader', Config.env.hasGradientHeader) ? 'gradient' : 'white'),
453
- headerPattern: getSiteSettingFromState(state, 'HeaderPattern'),
454
- patternColour: getSiteSettingFromState(state, 'PatternColour')
453
+ headerType: getSiteSettingFromState(state, "HeaderType", getSiteSettingFromState(state, "UseGradientHeader", Config.env.hasGradientHeader) ? "gradient" : "white"),
454
+ headerPattern: getSiteSettingFromState(state, "HeaderPattern"),
455
+ patternColour: getSiteSettingFromState(state, "PatternColour")
455
456
  };
456
457
  };
457
458
  export default connect(mapStateToProps, {})(Header);
@@ -1 +1 @@
1
- {"version":3,"names":["React","Component","Animated","View","StatusBar","Image","Dimensions","TouchableOpacity","Text","Platform","Icon","LinearGradient","connect","StatusBarHeight","getSiteSettingFromState","COLOUR_TRANSPARENT","TEXT_DARK","TEXT_LIGHT","LINEGREY","COLOUR_GREEN","getMainBrandingColourFromState","hexToRGBAstring","Pl60Icon","Config","Header","constructor","props","state","UNSAFE_componentWillMount","barStyle","select","ios","android","headerType","noGradient","transparent","setState","windowWidth","get","width","getTextColourStyle","textColour","color","renderBackground","headerBackground","headerImage","createElement","style","styles","thumbnailStyle","source","uri","contentContainerStyle","backgroundColor","colourBrandingMain","popupHeader","thumbnailPopupHeader","headerPattern","patternColour","tintColor","flex","colors","start","x","y","end","locations","renderLeftBubble","hasLeftBubble","counter","smallCounter","renderLeftIcon","leftIcon","leftText","onPressLeft","headerContentIcon","onPress","activeOpacity","buttonText","paddingRight","paddingLeft","leftTextStyle","leftIconType","name","leftIconStyle","type","iconStyle","renderHeaderText","text","centerContent","onTextPress","headerTextContainer","rightIcon","rightText","absoluteRight","textContainerStyle","headerText","textStyle","numberOfLines","ellipsizeMode","absoluteLeft","renderRightIcon","rightContent","onPressRight","rightContainerStyle","textAlign","fontFamily","optionalRightStyle","rightImage","resizeMode","rightIconType","rightIconStyle","render","animatedHeader","container","noShadow","containerShadow","transparentContainer","headerColourOffset","elevation","headerElev","shadowColor","headerShadow","translucent","headerContent","children","extraHeaderContent","lineSeparated","colourBrandingHeader","contentContainer","popupContentContainer","headerContentPopup","alignSelf","zIndex","shadowOffset","height","shadowOpacity","shadowRadius","borderBottomWidth","borderColor","borderTopLeftRadius","borderTopRightRadius","flexDirection","position","top","left","overflow","paddingTop","alignItems","justifyContent","right","fontSize","padding","marginRight","marginLeft","borderRadius","minWidth","counterText","lineHeight","bottom","mapStateToProps","env","hasGradientHeader"],"sources":["Header.js"],"sourcesContent":["import React, { Component } from 'react';\nimport { Animated, View, StatusBar, Image, Dimensions, TouchableOpacity, Text, Platform } from 'react-native';\nimport { Icon } from '@rneui/themed';\nimport { LinearGradient } from 'expo-linear-gradient';\nimport { connect } from 'react-redux';\n// import {\n// StatusBarHeight,\n// COLOUR_TRANSPARENT,\n// TEXT_DARK,\n// TEXT_LIGHT,\n// LINEGREY,\n// COLOUR_GREEN,\n// getMainBrandingColourFromState,\n// hexToRGBAstring,\n// getSiteSettingFromState,\n// } from '../../js';\nimport { StatusBarHeight, getSiteSettingFromState } from '../helper';\nimport {\n COLOUR_TRANSPARENT,\n TEXT_DARK,\n TEXT_LIGHT,\n LINEGREY,\n COLOUR_GREEN,\n getMainBrandingColourFromState,\n hexToRGBAstring,\n} from '../colours';\nimport { Pl60Icon } from '../fonts';\nimport Config from '../config';\n// import { HAS_GRADIENT_HEADER } from '../../config';\n\nclass Header extends Component {\n constructor(props) {\n super(props);\n\n this.state = {};\n }\n\n UNSAFE_componentWillMount() {\n let barStyle = Platform.select({ ios: 'dark-content', android: 'default' });\n if (this.props.barStyle) {\n barStyle = this.props.barStyle;\n } else if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {\n barStyle = 'light-content';\n }\n this.setState({ windowWidth: Dimensions.get('window').width, barStyle });\n }\n\n getTextColourStyle() {\n if (this.props.textColour) {\n return { color: this.props.textColour };\n }\n if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {\n return { color: '#fff' };\n }\n return null;\n }\n\n renderBackground() {\n if (this.props.headerBackground) return this.props.headerBackground;\n if (this.props.headerImage) {\n return <Image style={[styles.thumbnailStyle, { width: this.state.windowWidth }]} source={{ uri: this.props.headerImage }} />;\n }\n if (this.props.headerType === 'pattern' && !this.props.noGradient && !this.props.transparent) {\n return (\n <View\n style={[\n styles.thumbnailStyle,\n this.props.contentContainerStyle,\n { backgroundColor: this.props.colourBrandingMain, width: this.state.windowWidth },\n this.props.popupHeader && styles.thumbnailPopupHeader,\n ]}\n >\n <Image\n style={[styles.headerPattern, this.props.patternColour && { tintColor: this.props.patternColour }]}\n source={{ uri: this.props.headerPattern }}\n />\n </View>\n );\n }\n if (this.props.headerType === 'block' && !this.props.noGradient && !this.props.transparent) {\n return (\n <View\n style={[\n styles.thumbnailStyle,\n this.props.contentContainerStyle,\n { backgroundColor: this.props.colourBrandingMain, width: this.state.windowWidth },\n this.props.popupHeader && styles.thumbnailPopupHeader,\n ]}\n />\n );\n }\n if (this.props.headerType === 'gradient' && !this.props.noGradient && !this.props.transparent) {\n return (\n <View\n style={[\n styles.thumbnailStyle,\n this.props.contentContainerStyle,\n { width: this.state.windowWidth },\n this.props.popupHeader && styles.thumbnailPopupHeader,\n ]}\n >\n <LinearGradient\n style={{ flex: 1 }}\n colors={[this.props.colourBrandingMain, hexToRGBAstring(this.props.colourBrandingMain, 0.7)]}\n start={{ x: 0, y: 0 }}\n end={{ x: 1, y: 1 }}\n locations={[0.4, 1]}\n />\n </View>\n );\n }\n return null;\n }\n\n renderLeftBubble() {\n if (!this.props.hasLeftBubble) {\n return null;\n }\n return <View style={[styles.counter, styles.smallCounter]} />;\n }\n\n renderLeftIcon() {\n if ((!this.props.leftIcon && !this.props.leftText) || !this.props.onPressLeft) {\n return null;\n }\n if (this.props.leftText) {\n return (\n <View style={[styles.headerContentIcon, { width: 'auto' }]}>\n <TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n <Text\n style={[\n styles.buttonText,\n { paddingRight: 5, paddingLeft: 15, color: this.props.colourBrandingMain },\n this.props.leftTextStyle,\n this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent && { color: '#fff' },\n ]}\n >\n {this.props.leftText}\n </Text>\n </TouchableOpacity>\n </View>\n );\n }\n if (this.props.leftIconType && this.props.leftIconType === 'pluss') {\n return (\n <View style={styles.headerContentIcon}>\n <TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n <View style={styles.headerContentIcon}>\n <Pl60Icon name={this.props.leftIcon} style={[styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]} />\n {this.renderLeftBubble()}\n </View>\n </TouchableOpacity>\n </View>\n );\n }\n return (\n <View style={styles.headerContentIcon}>\n <TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n <Icon\n name={this.props.leftIcon}\n style={styles.headerContentIcon}\n type=\"font-awesome\"\n iconStyle={[styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]}\n />\n {this.renderLeftBubble()}\n </TouchableOpacity>\n </View>\n );\n }\n\n renderHeaderText() {\n if (!this.props.text) {\n if (this.props.centerContent) {\n return this.props.centerContent;\n }\n return null;\n }\n if (this.props.onTextPress) {\n return (\n <TouchableOpacity\n onPress={this.props.onTextPress}\n activeOpacity={0.6}\n style={[\n styles.headerTextContainer,\n this.props.leftIcon && ((!this.props.rightIcon && !this.props.rightText) || this.props.absoluteRight) && { paddingRight: 55 },\n this.props.textContainerStyle,\n ]}\n >\n <Text style={[styles.headerText, this.props.textStyle, this.getTextColourStyle()]} numberOfLines={1} ellipsizeMode=\"tail\">\n {this.props.text}\n </Text>\n </TouchableOpacity>\n );\n }\n return (\n <View\n style={[\n styles.headerTextContainer,\n this.props.leftIcon && ((!this.props.rightIcon && !this.props.rightText) || this.props.absoluteRight) && { paddingRight: 55 },\n this.props.rightIcon && ((!this.props.leftIcon && !this.props.leftText) || this.props.absoluteLeft) && { paddingLeft: 55 },\n this.props.textContainerStyle,\n ]}\n >\n <Text style={[styles.headerText, this.props.textStyle, this.getTextColourStyle()]} numberOfLines={1} ellipsizeMode=\"tail\">\n {this.props.text}\n </Text>\n </View>\n );\n }\n\n renderRightIcon() {\n if (this.props.rightContent) {\n return this.props.rightContent;\n }\n if (!this.props.onPressRight) {\n return null;\n }\n if (this.props.rightText && this.props.onPressRight) {\n return (\n <View\n style={[\n styles.headerContentIcon,\n { width: 'auto' },\n this.props.absoluteRight && styles.absoluteRight,\n this.props.rightContainerStyle,\n ]}\n >\n <TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n <Text\n style={[\n styles.buttonText,\n { paddingRight: 15, paddingLeft: 5, textAlign: 'right', fontFamily: 'sf-semibold', color: this.props.colourBrandingMain },\n this.getTextColourStyle(),\n this.props.optionalRightStyle,\n ]}\n >\n {this.props.rightText}\n </Text>\n </TouchableOpacity>\n </View>\n );\n }\n if (!this.props.rightIcon) {\n if (this.props.rightImage) {\n return (\n <TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n <View style={styles.headerContentIcon}>\n <Image source={{ uri: this.props.rightImage }} style={styles.rightImage} resizeMode=\"contain\" />\n </View>\n </TouchableOpacity>\n );\n }\n return null;\n }\n return (\n <TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n {this.props.rightIconType && this.props.rightIconType === 'pluss' ? (\n <View style={styles.headerContentIcon}>\n <Pl60Icon name={this.props.rightIcon} style={[styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]} />\n </View>\n ) : (\n <Icon\n name={this.props.rightIcon}\n style={styles.headerContentIcon}\n type={this.props.rightIconType ? this.props.rightIconType : 'font-awesome'}\n iconStyle={[styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]}\n />\n )}\n </TouchableOpacity>\n );\n }\n\n render() {\n if (this.props.animatedHeader) {\n return (\n <Animated.View\n style={[\n styles.container,\n !this.props.noShadow && styles.containerShadow,\n this.props.transparent && styles.transparentContainer,\n this.props.style,\n { backgroundColor: this.props.headerColourOffset, elevation: this.props.headerElev, shadowColor: this.props.headerShadow },\n ]}\n >\n {this.renderBackground()}\n <StatusBar barStyle={this.state.barStyle} translucent />\n <View style={styles.headerContent}>\n {this.renderLeftIcon()}\n {this.renderHeaderText()}\n {this.renderRightIcon()}\n {this.props.children}\n </View>\n {this.props.extraHeaderContent}\n </Animated.View>\n );\n }\n return (\n <View\n style={[\n styles.container,\n !this.props.noShadow && styles.containerShadow,\n this.props.transparent && styles.transparentContainer,\n this.props.lineSeparated && styles.lineSeparated,\n this.props.popupHeader && styles.popupHeader,\n this.props.style,\n this.props.colourBrandingHeader && { backgroundColor: this.props.colourBrandingHeader },\n ]}\n >\n <View\n style={[\n styles.contentContainer,\n this.props.popupHeader && styles.popupContentContainer,\n this.props.contentContainerStyle,\n this.props.colourBrandingHeader && { backgroundColor: this.props.colourBrandingHeader },\n ]}\n >\n {this.renderBackground()}\n <StatusBar barStyle={this.state.barStyle} translucent />\n <View style={[styles.headerContent, this.props.popupHeader && styles.headerContentPopup]}>\n {this.renderLeftIcon()}\n {this.renderHeaderText()}\n {this.renderRightIcon()}\n {this.props.children}\n </View>\n </View>\n {this.props.extraHeaderContent}\n </View>\n );\n }\n}\n\nconst styles = {\n container: {\n alignSelf: 'stretch',\n backgroundColor: '#fff',\n zIndex: 10,\n },\n containerShadow: {\n shadowColor: '#000',\n shadowOffset: {\n width: 0,\n height: 1,\n },\n shadowOpacity: 0.1,\n shadowRadius: 6,\n elevation: 3,\n },\n lineSeparated: {\n borderBottomWidth: 1,\n borderColor: LINEGREY,\n shadowOpacity: 0,\n elevation: 0,\n },\n popupHeader: {\n borderBottomWidth: 1,\n borderColor: LINEGREY,\n shadowOpacity: 0,\n elevation: 0,\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n },\n contentContainer: {\n height: StatusBarHeight(70),\n alignSelf: 'stretch',\n flexDirection: 'row',\n },\n popupContentContainer: {\n height: 70,\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n },\n transparentContainer: {\n backgroundColor: COLOUR_TRANSPARENT,\n shadowColor: COLOUR_TRANSPARENT,\n elevation: 0,\n },\n thumbnailStyle: {\n height: StatusBarHeight(70),\n width: null,\n position: 'absolute',\n top: 0,\n left: 0,\n resizeMode: 'cover',\n },\n thumbnailPopupHeader: {\n height: 70,\n width: '100%',\n borderTopLeftRadius: 12,\n borderTopRightRadius: 12,\n overflow: 'hidden',\n },\n headerContent: {\n alignSelf: 'stretch',\n flexDirection: 'row',\n flex: 1,\n paddingTop: StatusBarHeight(0),\n },\n headerContentPopup: {\n paddingTop: 0,\n },\n headerContentIcon: {\n height: 70,\n width: 55,\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n absoluteRight: {\n height: 70,\n justifyContent: 'center',\n position: 'absolute',\n right: 0,\n top: StatusBarHeight(0),\n },\n leftIcon: {\n fontSize: 25,\n padding: 15,\n width: 55,\n textAlign: 'center',\n color: TEXT_LIGHT,\n },\n headerTextContainer: {\n height: 70,\n flex: 1,\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between',\n },\n headerText: {\n fontSize: 16,\n flex: 1,\n fontFamily: 'sf-semibold',\n color: TEXT_DARK,\n textAlign: 'center',\n backgroundColor: 'rgba(255,255,255,0)',\n },\n buttonText: {\n fontSize: 15,\n fontFamily: 'sf-regular',\n width: 80,\n backgroundColor: 'rgba(255,255,255,0)',\n },\n rightIcon: {\n fontSize: 25,\n padding: 15,\n width: 55,\n textAlign: 'center',\n color: TEXT_LIGHT,\n },\n rightImage: {\n width: 24,\n height: 24,\n marginRight: 15,\n marginLeft: 13,\n },\n counter: {\n top: 15,\n right: 5,\n borderRadius: 10,\n position: 'absolute',\n height: 20,\n minWidth: 20,\n backgroundColor: COLOUR_GREEN,\n justifyContent: 'center',\n },\n counterText: {\n color: '#fff',\n textAlign: 'center',\n fontFamily: 'sf-bold',\n fontSize: 10,\n lineHeight: 12,\n backgroundColor: 'transparent',\n },\n smallCounter: {\n width: 5,\n height: 5,\n minWidth: 5,\n top: 20,\n right: 10,\n },\n headerPattern: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n width: '100%',\n height: '100%',\n resizeMode: 'cover',\n },\n};\n\nconst mapStateToProps = state => {\n return {\n colourBrandingMain: getMainBrandingColourFromState(state),\n headerType: getSiteSettingFromState(\n state,\n 'HeaderType',\n getSiteSettingFromState(state, 'UseGradientHeader', Config.env.hasGradientHeader) ? 'gradient' : 'white',\n ),\n headerPattern: getSiteSettingFromState(state, 'HeaderPattern'),\n patternColour: getSiteSettingFromState(state, 'PatternColour'),\n };\n};\n\nexport default connect(mapStateToProps, {})(Header);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,QAAQ,EAAEC,IAAI,EAAEC,SAAS,EAAEC,KAAK,EAAEC,UAAU,EAAEC,gBAAgB,EAAEC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7G,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,OAAO,QAAQ,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,eAAe,EAAEC,uBAAuB,QAAQ,WAAW;AACpE,SACEC,kBAAkB,EAClBC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,YAAY,EACZC,8BAA8B,EAC9BC,eAAe,QACV,YAAY;AACnB,SAASC,QAAQ,QAAQ,UAAU;AACnC,O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","View","StatusBar","Image","Dimensions","TouchableOpacity","Platform","Icon","LinearGradient","connect","StatusBarHeight","getSiteSettingFromState","COLOUR_TRANSPARENT","TEXT_DARK","TEXT_LIGHT","LINEGREY","COLOUR_GREEN","getMainBrandingColourFromState","hexToRGBAstring","FontAwesome","Config","Header","constructor","props","state","UNSAFE_componentWillMount","barStyle","select","ios","android","headerType","noGradient","transparent","setState","windowWidth","get","width","getTextColourStyle","textColour","color","renderBackground","headerBackground","headerImage","createElement","style","styles","thumbnailStyle","source","uri","contentContainerStyle","backgroundColor","colourBrandingMain","popupHeader","thumbnailPopupHeader","headerPattern","patternColour","tintColor","flex","colors","start","x","y","end","locations","renderLeftBubble","hasLeftBubble","counter","smallCounter","renderLeftIcon","leftIcon","leftText","onPressLeft","headerContentIcon","onPress","activeOpacity","buttonText","paddingRight","paddingLeft","leftTextStyle","leftIconType","name","leftIconStyle","type","iconStyle","renderHeaderText","text","centerContent","onTextPress","headerTextContainer","rightIcon","rightText","absoluteRight","textContainerStyle","headerText","textStyle","numberOfLines","ellipsizeMode","absoluteLeft","renderRightIcon","rightContent","onPressRight","rightContainerStyle","textAlign","fontFamily","optionalRightStyle","rightImage","resizeMode","rightIconType","rightIconStyle","render","animatedHeader","container","noShadow","containerShadow","transparentContainer","headerColourOffset","elevation","headerElev","shadowColor","headerShadow","translucent","headerContent","children","extraHeaderContent","lineSeparated","colourBrandingHeader","contentContainer","popupContentContainer","headerContentPopup","alignSelf","zIndex","shadowOffset","height","shadowOpacity","shadowRadius","borderBottomWidth","borderColor","borderTopLeftRadius","borderTopRightRadius","flexDirection","position","top","left","overflow","paddingTop","alignItems","justifyContent","right","fontSize","padding","marginRight","marginLeft","borderRadius","minWidth","counterText","lineHeight","bottom","mapStateToProps","env","hasGradientHeader"],"sources":["Header.js"],"sourcesContent":["import React, { Component } from \"react\";\nimport { Text } from \"@plusscommunities/pluss-core-app/components\";\nimport {\n\tAnimated,\n\tView,\n\tStatusBar,\n\tImage,\n\tDimensions,\n\tTouchableOpacity,\n\tPlatform,\n} from \"react-native\";\nimport { Icon } from \"@rneui/themed\";\nimport { LinearGradient } from \"expo-linear-gradient\";\nimport { connect } from \"react-redux\";\n// import {\n// StatusBarHeight,\n// COLOUR_TRANSPARENT,\n// TEXT_DARK,\n// TEXT_LIGHT,\n// LINEGREY,\n// COLOUR_GREEN,\n// getMainBrandingColourFromState,\n// hexToRGBAstring,\n// getSiteSettingFromState,\n// } from '../../js';\nimport { StatusBarHeight, getSiteSettingFromState } from \"../helper\";\nimport {\n\tCOLOUR_TRANSPARENT,\n\tTEXT_DARK,\n\tTEXT_LIGHT,\n\tLINEGREY,\n\tCOLOUR_GREEN,\n\tgetMainBrandingColourFromState,\n\thexToRGBAstring,\n} from \"../colours\";\nimport { FontAwesome } from \"./Icon\";\nimport Config from \"../config\";\n// import { HAS_GRADIENT_HEADER } from '../../config';\n\nclass Header extends Component {\n\tconstructor(props) {\n\t\tsuper(props);\n\n\t\tthis.state = {};\n\t}\n\n\tUNSAFE_componentWillMount() {\n\t\tlet barStyle = Platform.select({ ios: \"dark-content\", android: \"default\" });\n\t\tif (this.props.barStyle) {\n\t\t\tbarStyle = this.props.barStyle;\n\t\t} else if (\n\t\t\tthis.props.headerType !== \"white\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\tbarStyle = \"light-content\";\n\t\t}\n\t\tthis.setState({ windowWidth: Dimensions.get(\"window\").width, barStyle });\n\t}\n\n\tgetTextColourStyle() {\n\t\tif (this.props.textColour) {\n\t\t\treturn { color: this.props.textColour };\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType !== \"white\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn { color: \"#fff\" };\n\t\t}\n\t\treturn null;\n\t}\n\n\trenderBackground() {\n\t\tif (this.props.headerBackground) return this.props.headerBackground;\n\t\tif (this.props.headerImage) {\n\t\t\treturn (\n\t\t\t\t<Image\n\t\t\t\t\tstyle={[styles.thumbnailStyle, { width: this.state.windowWidth }]}\n\t\t\t\t\tsource={{ uri: this.props.headerImage }}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType === \"pattern\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.thumbnailStyle,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\twidth: this.state.windowWidth,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.popupHeader && styles.thumbnailPopupHeader,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<Image\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.headerPattern,\n\t\t\t\t\t\t\tthis.props.patternColour && {\n\t\t\t\t\t\t\t\ttintColor: this.props.patternColour,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]}\n\t\t\t\t\t\tsource={{ uri: this.props.headerPattern }}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType === \"block\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.thumbnailStyle,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\twidth: this.state.windowWidth,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tthis.props.popupHeader && styles.thumbnailPopupHeader,\n\t\t\t\t\t]}\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\t\tif (\n\t\t\tthis.props.headerType === \"gradient\" &&\n\t\t\t!this.props.noGradient &&\n\t\t\t!this.props.transparent\n\t\t) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.thumbnailStyle,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\t{ width: this.state.windowWidth },\n\t\t\t\t\t\tthis.props.popupHeader && styles.thumbnailPopupHeader,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<LinearGradient\n\t\t\t\t\t\tstyle={{ flex: 1 }}\n\t\t\t\t\t\tcolors={[\n\t\t\t\t\t\t\tthis.props.colourBrandingMain,\n\t\t\t\t\t\t\thexToRGBAstring(this.props.colourBrandingMain, 0.7),\n\t\t\t\t\t\t]}\n\t\t\t\t\t\tstart={{ x: 0, y: 0 }}\n\t\t\t\t\t\tend={{ x: 1, y: 1 }}\n\t\t\t\t\t\tlocations={[0.4, 1]}\n\t\t\t\t\t/>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn null;\n\t}\n\n\trenderLeftBubble() {\n\t\tif (!this.props.hasLeftBubble) {\n\t\t\treturn null;\n\t\t}\n\t\treturn <View style={[styles.counter, styles.smallCounter]} />;\n\t}\n\n\trenderLeftIcon() {\n\t\tif (\n\t\t\t(!this.props.leftIcon && !this.props.leftText) ||\n\t\t\t!this.props.onPressLeft\n\t\t) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.leftText) {\n\t\t\treturn (\n\t\t\t\t<View style={[styles.headerContentIcon, { width: \"auto\" }]}>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressLeft}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.buttonText,\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpaddingRight: 5,\n\t\t\t\t\t\t\t\t\tpaddingLeft: 15,\n\t\t\t\t\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tthis.props.leftTextStyle,\n\t\t\t\t\t\t\t\tthis.props.headerType !== \"white\" &&\n\t\t\t\t\t\t\t\t\t!this.props.noGradient &&\n\t\t\t\t\t\t\t\t\t!this.props.transparent && { color: \"#fff\" },\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.props.leftText}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (this.props.leftIconType && this.props.leftIconType === \"pluss\") {\n\t\t\treturn (\n\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressLeft}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t\t\t<FontAwesome\n\t\t\t\t\t\t\t\tname={this.props.leftIcon}\n\t\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\t\tstyles.leftIcon,\n\t\t\t\t\t\t\t\t\tthis.props.leftIconStyle,\n\t\t\t\t\t\t\t\t\tthis.getTextColourStyle(),\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{this.renderLeftBubble()}\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t<TouchableOpacity onPress={this.props.onPressLeft} activeOpacity={0.6}>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tname={this.props.leftIcon}\n\t\t\t\t\t\tstyle={styles.headerContentIcon}\n\t\t\t\t\t\ttype=\"font-awesome\"\n\t\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\t\tstyles.leftIcon,\n\t\t\t\t\t\t\tthis.props.leftIconStyle,\n\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t\t{this.renderLeftBubble()}\n\t\t\t\t</TouchableOpacity>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderHeaderText() {\n\t\tif (!this.props.text) {\n\t\t\tif (this.props.centerContent) {\n\t\t\t\treturn this.props.centerContent;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.onTextPress) {\n\t\t\treturn (\n\t\t\t\t<TouchableOpacity\n\t\t\t\t\tonPress={this.props.onTextPress}\n\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.headerTextContainer,\n\t\t\t\t\t\tthis.props.leftIcon &&\n\t\t\t\t\t\t\t((!this.props.rightIcon && !this.props.rightText) ||\n\t\t\t\t\t\t\t\tthis.props.absoluteRight) && { paddingRight: 55 },\n\t\t\t\t\t\tthis.props.textContainerStyle,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<Text\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.headerText,\n\t\t\t\t\t\t\tthis.props.textStyle,\n\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t]}\n\t\t\t\t\t\tnumberOfLines={1}\n\t\t\t\t\t\tellipsizeMode=\"tail\"\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.props.text}\n\t\t\t\t\t</Text>\n\t\t\t\t</TouchableOpacity>\n\t\t\t);\n\t\t}\n\t\treturn (\n\t\t\t<View\n\t\t\t\tstyle={[\n\t\t\t\t\tstyles.headerTextContainer,\n\t\t\t\t\tthis.props.leftIcon &&\n\t\t\t\t\t\t((!this.props.rightIcon && !this.props.rightText) ||\n\t\t\t\t\t\t\tthis.props.absoluteRight) && { paddingRight: 55 },\n\t\t\t\t\tthis.props.rightIcon &&\n\t\t\t\t\t\t((!this.props.leftIcon && !this.props.leftText) ||\n\t\t\t\t\t\t\tthis.props.absoluteLeft) && { paddingLeft: 55 },\n\t\t\t\t\tthis.props.textContainerStyle,\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<Text\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.headerText,\n\t\t\t\t\t\tthis.props.textStyle,\n\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t]}\n\t\t\t\t\tnumberOfLines={1}\n\t\t\t\t\tellipsizeMode=\"tail\"\n\t\t\t\t>\n\t\t\t\t\t{this.props.text}\n\t\t\t\t</Text>\n\t\t\t</View>\n\t\t);\n\t}\n\n\trenderRightIcon() {\n\t\tif (this.props.rightContent) {\n\t\t\treturn this.props.rightContent;\n\t\t}\n\t\tif (!this.props.onPressRight) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.props.rightText && this.props.onPressRight) {\n\t\t\treturn (\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.headerContentIcon,\n\t\t\t\t\t\t{ width: \"auto\" },\n\t\t\t\t\t\tthis.props.absoluteRight && styles.absoluteRight,\n\t\t\t\t\t\tthis.props.rightContainerStyle,\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressRight}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Text\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.buttonText,\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tpaddingRight: 15,\n\t\t\t\t\t\t\t\t\tpaddingLeft: 5,\n\t\t\t\t\t\t\t\t\ttextAlign: \"right\",\n\t\t\t\t\t\t\t\t\tfontFamily: \"sf-semibold\",\n\t\t\t\t\t\t\t\t\tcolor: this.props.colourBrandingMain,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\t\tthis.props.optionalRightStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.props.rightText}\n\t\t\t\t\t\t</Text>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t</View>\n\t\t\t);\n\t\t}\n\t\tif (!this.props.rightIcon) {\n\t\t\tif (this.props.rightImage) {\n\t\t\t\treturn (\n\t\t\t\t\t<TouchableOpacity\n\t\t\t\t\t\tonPress={this.props.onPressRight}\n\t\t\t\t\t\tactiveOpacity={0.6}\n\t\t\t\t\t>\n\t\t\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t\t\t<Image\n\t\t\t\t\t\t\t\tsource={{ uri: this.props.rightImage }}\n\t\t\t\t\t\t\t\tstyle={styles.rightImage}\n\t\t\t\t\t\t\t\tresizeMode=\"contain\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</View>\n\t\t\t\t\t</TouchableOpacity>\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\treturn (\n\t\t\t<TouchableOpacity onPress={this.props.onPressRight} activeOpacity={0.6}>\n\t\t\t\t{this.props.rightIconType && this.props.rightIconType === \"pluss\" ? (\n\t\t\t\t\t<View style={styles.headerContentIcon}>\n\t\t\t\t\t\t<FontAwesome\n\t\t\t\t\t\t\tname={this.props.rightIcon}\n\t\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\t\tstyles.rightIcon,\n\t\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\t\tthis.props.rightIconStyle,\n\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</View>\n\t\t\t\t) : (\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tname={this.props.rightIcon}\n\t\t\t\t\t\tstyle={styles.headerContentIcon}\n\t\t\t\t\t\ttype={\n\t\t\t\t\t\t\tthis.props.rightIconType\n\t\t\t\t\t\t\t\t? this.props.rightIconType\n\t\t\t\t\t\t\t\t: \"font-awesome\"\n\t\t\t\t\t\t}\n\t\t\t\t\t\ticonStyle={[\n\t\t\t\t\t\t\tstyles.rightIcon,\n\t\t\t\t\t\t\tthis.getTextColourStyle(),\n\t\t\t\t\t\t\tthis.props.rightIconStyle,\n\t\t\t\t\t\t]}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</TouchableOpacity>\n\t\t);\n\t}\n\n\trender() {\n\t\tif (this.props.animatedHeader) {\n\t\t\treturn (\n\t\t\t\t<Animated.View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.container,\n\t\t\t\t\t\t!this.props.noShadow && styles.containerShadow,\n\t\t\t\t\t\tthis.props.transparent && styles.transparentContainer,\n\t\t\t\t\t\tthis.props.style,\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbackgroundColor: this.props.headerColourOffset,\n\t\t\t\t\t\t\televation: this.props.headerElev,\n\t\t\t\t\t\t\tshadowColor: this.props.headerShadow,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{this.renderBackground()}\n\t\t\t\t\t<StatusBar barStyle={this.state.barStyle} translucent />\n\t\t\t\t\t<View style={styles.headerContent}>\n\t\t\t\t\t\t{this.renderLeftIcon()}\n\t\t\t\t\t\t{this.renderHeaderText()}\n\t\t\t\t\t\t{this.renderRightIcon()}\n\t\t\t\t\t\t{this.props.children}\n\t\t\t\t\t</View>\n\t\t\t\t\t{this.props.extraHeaderContent}\n\t\t\t\t</Animated.View>\n\t\t\t);\n\t\t}\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\t!this.props.noShadow && styles.containerShadow,\n\t\t\t\t\tthis.props.transparent && styles.transparentContainer,\n\t\t\t\t\tthis.props.lineSeparated && styles.lineSeparated,\n\t\t\t\t\tthis.props.popupHeader && styles.popupHeader,\n\t\t\t\t\tthis.props.style,\n\t\t\t\t\tthis.props.colourBrandingHeader && {\n\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingHeader,\n\t\t\t\t\t},\n\t\t\t\t]}\n\t\t\t>\n\t\t\t\t<View\n\t\t\t\t\tstyle={[\n\t\t\t\t\t\tstyles.contentContainer,\n\t\t\t\t\t\tthis.props.popupHeader && styles.popupContentContainer,\n\t\t\t\t\t\tthis.props.contentContainerStyle,\n\t\t\t\t\t\tthis.props.colourBrandingHeader && {\n\t\t\t\t\t\t\tbackgroundColor: this.props.colourBrandingHeader,\n\t\t\t\t\t\t},\n\t\t\t\t\t]}\n\t\t\t\t>\n\t\t\t\t\t{this.renderBackground()}\n\t\t\t\t\t<StatusBar barStyle={this.state.barStyle} translucent />\n\t\t\t\t\t<View\n\t\t\t\t\t\tstyle={[\n\t\t\t\t\t\t\tstyles.headerContent,\n\t\t\t\t\t\t\tthis.props.popupHeader && styles.headerContentPopup,\n\t\t\t\t\t\t]}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.renderLeftIcon()}\n\t\t\t\t\t\t{this.renderHeaderText()}\n\t\t\t\t\t\t{this.renderRightIcon()}\n\t\t\t\t\t\t{this.props.children}\n\t\t\t\t\t</View>\n\t\t\t\t</View>\n\t\t\t\t{this.props.extraHeaderContent}\n\t\t\t</View>\n\t\t);\n\t}\n}\n\nconst styles = {\n\tcontainer: {\n\t\talignSelf: \"stretch\",\n\t\tbackgroundColor: \"#fff\",\n\t\tzIndex: 10,\n\t},\n\tcontainerShadow: {\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: 3,\n\t},\n\tlineSeparated: {\n\t\tborderBottomWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tshadowOpacity: 0,\n\t\televation: 0,\n\t},\n\tpopupHeader: {\n\t\tborderBottomWidth: 1,\n\t\tborderColor: LINEGREY,\n\t\tshadowOpacity: 0,\n\t\televation: 0,\n\t\tborderTopLeftRadius: 12,\n\t\tborderTopRightRadius: 12,\n\t},\n\tcontentContainer: {\n\t\theight: StatusBarHeight(70),\n\t\talignSelf: \"stretch\",\n\t\tflexDirection: \"row\",\n\t},\n\tpopupContentContainer: {\n\t\theight: 70,\n\t\tborderTopLeftRadius: 12,\n\t\tborderTopRightRadius: 12,\n\t},\n\ttransparentContainer: {\n\t\tbackgroundColor: COLOUR_TRANSPARENT,\n\t\tshadowColor: COLOUR_TRANSPARENT,\n\t\televation: 0,\n\t},\n\tthumbnailStyle: {\n\t\theight: StatusBarHeight(70),\n\t\twidth: null,\n\t\tposition: \"absolute\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tresizeMode: \"cover\",\n\t},\n\tthumbnailPopupHeader: {\n\t\theight: 70,\n\t\twidth: \"100%\",\n\t\tborderTopLeftRadius: 12,\n\t\tborderTopRightRadius: 12,\n\t\toverflow: \"hidden\",\n\t},\n\theaderContent: {\n\t\talignSelf: \"stretch\",\n\t\tflexDirection: \"row\",\n\t\tflex: 1,\n\t\tpaddingTop: StatusBarHeight(0),\n\t},\n\theaderContentPopup: {\n\t\tpaddingTop: 0,\n\t},\n\theaderContentIcon: {\n\t\theight: 70,\n\t\twidth: 55,\n\t\talignItems: \"center\",\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\tabsoluteRight: {\n\t\theight: 70,\n\t\tjustifyContent: \"center\",\n\t\tposition: \"absolute\",\n\t\tright: 0,\n\t\ttop: StatusBarHeight(0),\n\t},\n\tleftIcon: {\n\t\tfontSize: 25,\n\t\tpadding: 15,\n\t\twidth: 55,\n\t\ttextAlign: \"center\",\n\t\tcolor: TEXT_LIGHT,\n\t},\n\theaderTextContainer: {\n\t\theight: 70,\n\t\tflex: 1,\n\t\talignItems: \"center\",\n\t\tflexDirection: \"row\",\n\t\tjustifyContent: \"space-between\",\n\t},\n\theaderText: {\n\t\tfontSize: 16,\n\t\tflex: 1,\n\t\tfontFamily: \"sf-semibold\",\n\t\tcolor: TEXT_DARK,\n\t\ttextAlign: \"center\",\n\t\tbackgroundColor: \"rgba(255,255,255,0)\",\n\t},\n\tbuttonText: {\n\t\tfontSize: 15,\n\t\tfontFamily: \"sf-regular\",\n\t\twidth: 80,\n\t\tbackgroundColor: \"rgba(255,255,255,0)\",\n\t},\n\trightIcon: {\n\t\tfontSize: 25,\n\t\tpadding: 15,\n\t\twidth: 55,\n\t\ttextAlign: \"center\",\n\t\tcolor: TEXT_LIGHT,\n\t},\n\trightImage: {\n\t\twidth: 24,\n\t\theight: 24,\n\t\tmarginRight: 15,\n\t\tmarginLeft: 13,\n\t},\n\tcounter: {\n\t\ttop: 15,\n\t\tright: 5,\n\t\tborderRadius: 10,\n\t\tposition: \"absolute\",\n\t\theight: 20,\n\t\tminWidth: 20,\n\t\tbackgroundColor: COLOUR_GREEN,\n\t\tjustifyContent: \"center\",\n\t},\n\tcounterText: {\n\t\tcolor: \"#fff\",\n\t\ttextAlign: \"center\",\n\t\tfontFamily: \"sf-bold\",\n\t\tfontSize: 10,\n\t\tlineHeight: 12,\n\t\tbackgroundColor: \"transparent\",\n\t},\n\tsmallCounter: {\n\t\twidth: 5,\n\t\theight: 5,\n\t\tminWidth: 5,\n\t\ttop: 20,\n\t\tright: 10,\n\t},\n\theaderPattern: {\n\t\tposition: \"absolute\",\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tright: 0,\n\t\tbottom: 0,\n\t\twidth: \"100%\",\n\t\theight: \"100%\",\n\t\tresizeMode: \"cover\",\n\t},\n};\n\nconst mapStateToProps = (state) => {\n\treturn {\n\t\tcolourBrandingMain: getMainBrandingColourFromState(state),\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\theaderPattern: getSiteSettingFromState(state, \"HeaderPattern\"),\n\t\tpatternColour: getSiteSettingFromState(state, \"PatternColour\"),\n\t};\n};\n\nexport default connect(mapStateToProps, {})(Header);\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,IAAI,QAAQ,6CAA6C;AAClE,SACCC,QAAQ,EACRC,IAAI,EACJC,SAAS,EACTC,KAAK,EACLC,UAAU,EACVC,gBAAgB,EAChBC,QAAQ,QACF,cAAc;AACrB,SAASC,IAAI,QAAQ,eAAe;AACpC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,OAAO,QAAQ,aAAa;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASC,eAAe,EAAEC,uBAAuB,QAAQ,WAAW;AACpE,SACCC,kBAAkB,EAClBC,SAAS,EACTC,UAAU,EACVC,QAAQ,EACRC,YAAY,EACZC,8BAA8B,EAC9BC,eAAe,QACT,YAAY;AACnB,SAASC,WAAW,QAAQ,QAAQ;AACpC,OAAOC,MAAM,MAAM,WAAW;AAC9B;;AAEA,MAAMC,MAAM,SAASvB,SAAS,CAAC;EAC9BwB,WAAWA,CAACC,KAAK,EAAE;IAClB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EAChB;EAEAC,yBAAyBA,CAAA,EAAG;IAC3B,IAAIC,QAAQ,GAAGpB,QAAQ,CAACqB,MAAM,CAAC;MAAEC,GAAG,EAAE,cAAc;MAAEC,OAAO,EAAE;IAAU,CAAC,CAAC;IAC3E,IAAI,IAAI,CAACN,KAAK,CAACG,QAAQ,EAAE;MACxBA,QAAQ,GAAG,IAAI,CAACH,KAAK,CAACG,QAAQ;IAC/B,CAAC,MAAM,IACN,IAAI,CAACH,KAAK,CAACO,UA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IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPK,KAAK,EAAE,CAAC;IACRS,MAAM,EAAE,CAAC;IACTxH,KAAK,EAAE,MAAM;IACbgG,MAAM,EAAE,MAAM;IACd1B,UAAU,EAAE;EACb;AACD,CAAC;AAED,MAAMmD,eAAe,GAAIrI,KAAK,IAAK;EAClC,OAAO;IACN2B,kBAAkB,EAAElC,8BAA8B,CAACO,KAAK,CAAC;IACzDM,UAAU,EAAEnB,uBAAuB,CAClCa,KAAK,EACL,YAAY,EACZb,uBAAuB,CACtBa,KAAK,EACL,mBAAmB,EACnBJ,MAAM,CAAC0I,GAAG,CAACC,iBACZ,CAAC,GACE,UAAU,GACV,OACJ,CAAC;IACDzG,aAAa,EAAE3C,uBAAuB,CAACa,KAAK,EAAE,eAAe,CAAC;IAC9D+B,aAAa,EAAE5C,uBAAuB,CAACa,KAAK,EAAE,eAAe;EAC9D,CAAC;AACF,CAAC;AAED,eAAef,OAAO,CAACoJ,eAAe,EAAE,CAAC,CAAC,CAAC,CAACxI,MAAM,CAAC","ignoreList":[]}
@@ -0,0 +1,109 @@
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, { useEffect, useMemo } from "react";
3
+ import { createIconSet } from "@expo/vector-icons";
4
+ import glyphMap from "../assets/icons/fontawesome/fa7-glyphmap.json";
5
+ const v4ToV6Map = {
6
+ dashboard: "gauge",
7
+ navicon: "bars",
8
+ remove: "xmark",
9
+ close: "xmark",
10
+ pencil: "pen",
11
+ times: "xmark",
12
+ "trash-o": "trash-can",
13
+ "file-o": "file",
14
+ "picture-o": "image",
15
+ "photo-o": "image",
16
+ "camera-o": "camera",
17
+ "video-camera": "video",
18
+ "clock-o": "clock",
19
+ "calendar-o": "calendar",
20
+ "drivers-license": "id-card",
21
+ "drivers-license-o": "id-card",
22
+ "user-o": "user",
23
+ "user-circle-o": "circle-user",
24
+ "user-plus-o": "user-plus",
25
+ "user-times-o": "user-xmark",
26
+ "angle-left": "chevron-left",
27
+ "angle-right": "chevron-right",
28
+ "angle-up": "chevron-up",
29
+ "angle-down": "chevron-down",
30
+ "chevron-left": "chevron-left",
31
+ "chevron-right": "chevron-right",
32
+ "chevron-up": "chevron-up",
33
+ "chevron-down": "chevron-down",
34
+ "envelope-o": "envelope",
35
+ "comment-o": "comment",
36
+ "commenting-o": "comment-dots",
37
+ "comments-o": "comments",
38
+ "share-square-o": "share-from-square",
39
+ "bookmark-o": "bookmark",
40
+ "thumbs-o-up": "thumbs-up",
41
+ "thumbs-o-down": "thumbs-down",
42
+ "heart-o": "heart",
43
+ "star-o": "star",
44
+ "check-square-o": "square-check",
45
+ "circle-o": "circle",
46
+ "check-circle-o": "circle-check",
47
+ "circle-check": "circle-check",
48
+ warning: "triangle-exclamation",
49
+ "exclamation-circle": "circle-exclamation",
50
+ "exclamation-triangle": "triangle-exclamation",
51
+ "info-circle": "circle-info",
52
+ "question-circle": "circle-question",
53
+ "sign-out": "right-from-bracket",
54
+ "sign-in": "right-to-bracket",
55
+ "unlock-alt": "unlock",
56
+ "lock-alt": "lock",
57
+ "play-circle-o": "circle-play",
58
+ "pause-circle-o": "circle-pause",
59
+ "stop-circle-o": "circle-stop",
60
+ "shopping-cart": "cart-shopping",
61
+ "shopping-basket": "basket-shopping",
62
+ briefcase: "briefcase",
63
+ "building-o": "building",
64
+ "bell-o": "bell",
65
+ cog: "gear",
66
+ cogs: "gears",
67
+ check: "check",
68
+ "close-o": "xmark"
69
+ };
70
+ const IconSolid = createIconSet(glyphMap, "FontAwesomePro-Solid");
71
+ const IconRegular = createIconSet(glyphMap, "FontAwesomePro-Regular");
72
+ const IconLight = createIconSet(glyphMap, "FontAwesomePro-Light");
73
+ const IconBrand = createIconSet(glyphMap, "FontAwesomePro-Brands");
74
+ export const FontAwesome = ({
75
+ name,
76
+ size,
77
+ color,
78
+ style,
79
+ solid = false,
80
+ regular = false,
81
+ light = false,
82
+ brand = false,
83
+ ...props
84
+ }) => {
85
+ useEffect(() => {
86
+ if (__DEV__) {
87
+ // Use __DEV__ for React Native
88
+ if (v4ToV6Map[name]) {
89
+ console.warn(`[FA7 Upgrade] "${name}" is a legacy name. Please use "${v4ToV6Map[name]}" instead.`);
90
+ }
91
+ }
92
+ }, [name]);
93
+ let iconName = name || "question";
94
+ iconName = iconName.replace(/^fa-/, "");
95
+ if (v4ToV6Map[iconName]) {
96
+ iconName = v4ToV6Map[iconName];
97
+ }
98
+ let SelectedIconComponent = IconSolid; // Default to Solid
99
+ if (regular) SelectedIconComponent = IconRegular;
100
+ if (light) SelectedIconComponent = IconLight;
101
+ if (brand) SelectedIconComponent = IconBrand;
102
+ return /*#__PURE__*/React.createElement(SelectedIconComponent, _extends({
103
+ name: iconName,
104
+ size: size,
105
+ color: color,
106
+ style: style
107
+ }, props));
108
+ };
109
+ //# sourceMappingURL=Icon.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useEffect","useMemo","createIconSet","glyphMap","v4ToV6Map","dashboard","navicon","remove","close","pencil","times","warning","briefcase","cog","cogs","check","IconSolid","IconRegular","IconLight","IconBrand","FontAwesome","name","size","color","style","solid","regular","light","brand","props","__DEV__","console","warn","iconName","replace","SelectedIconComponent","createElement","_extends"],"sources":["Icon.js"],"sourcesContent":["import React, { useEffect, useMemo } from \"react\";\nimport { createIconSet } from \"@expo/vector-icons\";\n\nimport glyphMap from \"../assets/icons/fontawesome/fa7-glyphmap.json\";\n\nconst v4ToV6Map = {\n\tdashboard: \"gauge\",\n\tnavicon: \"bars\",\n\tremove: \"xmark\",\n\tclose: \"xmark\",\n\tpencil: \"pen\",\n\ttimes: \"xmark\",\n\t\"trash-o\": \"trash-can\",\n\t\"file-o\": \"file\",\n\t\"picture-o\": \"image\",\n\t\"photo-o\": \"image\",\n\t\"camera-o\": \"camera\",\n\t\"video-camera\": \"video\",\n\t\"clock-o\": \"clock\",\n\t\"calendar-o\": \"calendar\",\n\t\"drivers-license\": \"id-card\",\n\t\"drivers-license-o\": \"id-card\",\n\t\"user-o\": \"user\",\n\t\"user-circle-o\": \"circle-user\",\n\t\"user-plus-o\": \"user-plus\",\n\t\"user-times-o\": \"user-xmark\",\n\t\"angle-left\": \"chevron-left\",\n\t\"angle-right\": \"chevron-right\",\n\t\"angle-up\": \"chevron-up\",\n\t\"angle-down\": \"chevron-down\",\n\t\"chevron-left\": \"chevron-left\",\n\t\"chevron-right\": \"chevron-right\",\n\t\"chevron-up\": \"chevron-up\",\n\t\"chevron-down\": \"chevron-down\",\n\t\"envelope-o\": \"envelope\",\n\t\"comment-o\": \"comment\",\n\t\"commenting-o\": \"comment-dots\",\n\t\"comments-o\": \"comments\",\n\t\"share-square-o\": \"share-from-square\",\n\t\"bookmark-o\": \"bookmark\",\n\t\"thumbs-o-up\": \"thumbs-up\",\n\t\"thumbs-o-down\": \"thumbs-down\",\n\t\"heart-o\": \"heart\",\n\t\"star-o\": \"star\",\n\t\"check-square-o\": \"square-check\",\n\t\"circle-o\": \"circle\",\n\t\"check-circle-o\": \"circle-check\",\n\t\"circle-check\": \"circle-check\",\n\twarning: \"triangle-exclamation\",\n\t\"exclamation-circle\": \"circle-exclamation\",\n\t\"exclamation-triangle\": \"triangle-exclamation\",\n\t\"info-circle\": \"circle-info\",\n\t\"question-circle\": \"circle-question\",\n\t\"sign-out\": \"right-from-bracket\",\n\t\"sign-in\": \"right-to-bracket\",\n\t\"unlock-alt\": \"unlock\",\n\t\"lock-alt\": \"lock\",\n\t\"play-circle-o\": \"circle-play\",\n\t\"pause-circle-o\": \"circle-pause\",\n\t\"stop-circle-o\": \"circle-stop\",\n\t\"shopping-cart\": \"cart-shopping\",\n\t\"shopping-basket\": \"basket-shopping\",\n\tbriefcase: \"briefcase\",\n\t\"building-o\": \"building\",\n\t\"bell-o\": \"bell\",\n\tcog: \"gear\",\n\tcogs: \"gears\",\n\tcheck: \"check\",\n\t\"close-o\": \"xmark\",\n};\n\nconst IconSolid = createIconSet(glyphMap, \"FontAwesomePro-Solid\");\nconst IconRegular = createIconSet(glyphMap, \"FontAwesomePro-Regular\");\nconst IconLight = createIconSet(glyphMap, \"FontAwesomePro-Light\");\nconst IconBrand = createIconSet(glyphMap, \"FontAwesomePro-Brands\");\n\nexport const FontAwesome = ({\n\tname,\n\tsize,\n\tcolor,\n\tstyle,\n\tsolid = false,\n\tregular = false,\n\tlight = false,\n\tbrand = false,\n\t...props\n}) => {\n\tuseEffect(() => {\n\t\tif (__DEV__) {\n\t\t\t// Use __DEV__ for React Native\n\t\t\tif (v4ToV6Map[name]) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`[FA7 Upgrade] \"${name}\" is a legacy name. Please use \"${v4ToV6Map[name]}\" instead.`,\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}, [name]);\n\n\tlet iconName = name || \"question\";\n\ticonName = iconName.replace(/^fa-/, \"\");\n\tif (v4ToV6Map[iconName]) {\n\t\ticonName = v4ToV6Map[iconName];\n\t}\n\n\tlet SelectedIconComponent = IconSolid; // Default to Solid\n\tif (regular) SelectedIconComponent = IconRegular;\n\tif (light) SelectedIconComponent = IconLight;\n\tif (brand) SelectedIconComponent = IconBrand;\n\n\treturn (\n\t\t<SelectedIconComponent\n\t\t\tname={iconName}\n\t\t\tsize={size}\n\t\t\tcolor={color}\n\t\t\tstyle={style}\n\t\t\t{...props}\n\t\t/>\n\t);\n};\n"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AACjD,SAASC,aAAa,QAAQ,oBAAoB;AAElD,OAAOC,QAAQ,MAAM,+CAA+C;AAEpE,MAAMC,SAAS,GAAG;EACjBC,SAAS,EAAE,OAAO;EAClBC,OAAO,EAAE,MAAM;EACfC,MAAM,EAAE,OAAO;EACfC,KAAK,EAAE,OAAO;EACdC,MAAM,EAAE,KAAK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