@plusscommunities/pluss-core-app 4.0.4-auth.0 → 6.0.0-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.
- package/dist/module/actions/FollowerActions.js +34 -0
- package/dist/module/actions/FollowerActions.js.map +1 -0
- package/dist/module/actions/MediaActions.js +29 -0
- package/dist/module/actions/MediaActions.js.map +1 -0
- package/dist/module/actions/ResidentActions.js +26 -0
- package/dist/module/actions/ResidentActions.js.map +1 -0
- package/dist/module/actions/UserActions.js +223 -0
- package/dist/module/actions/UserActions.js.map +1 -0
- package/dist/module/actions/UserSettingsActions.js +14 -0
- package/dist/module/actions/UserSettingsActions.js.map +1 -0
- package/dist/module/actions/index.js +6 -0
- package/dist/module/actions/index.js.map +1 -0
- package/dist/module/actions/types.js +17 -0
- package/dist/module/actions/types.js.map +1 -0
- package/dist/module/apis/analyticsActions.js +20 -0
- package/dist/module/apis/analyticsActions.js.map +1 -0
- package/dist/module/apis/contactActions.js +27 -0
- package/dist/module/apis/contactActions.js.map +1 -0
- package/dist/module/apis/eventActions.js +161 -0
- package/dist/module/apis/eventActions.js.map +1 -0
- package/dist/module/apis/fileActions.js +86 -0
- package/dist/module/apis/fileActions.js.map +1 -0
- package/dist/module/apis/followerActions.js +38 -0
- package/dist/module/apis/followerActions.js.map +1 -0
- package/dist/module/apis/index.js +12 -0
- package/dist/module/apis/index.js.map +1 -0
- package/dist/module/apis/notificationActions.js +60 -0
- package/dist/module/apis/notificationActions.js.map +1 -0
- package/dist/module/apis/profileActions.js +14 -0
- package/dist/module/apis/profileActions.js.map +1 -0
- package/dist/module/apis/reactionActions.js +76 -0
- package/dist/module/apis/reactionActions.js.map +1 -0
- package/dist/module/apis/stringActions.js +30 -0
- package/dist/module/apis/stringActions.js.map +1 -0
- package/dist/module/apis/typeActions.js +15 -0
- package/dist/module/apis/typeActions.js.map +1 -0
- package/dist/module/apis/userActions.js +104 -0
- package/dist/module/apis/userActions.js.map +1 -0
- package/dist/module/assets/icons/reactions/heart.png +0 -0
- package/dist/module/assets/icons/reactions/party.png +0 -0
- package/dist/module/assets/icons/reactions/sad.png +0 -0
- package/dist/module/assets/icons/reactions/smile.png +0 -0
- package/dist/module/colours.js +168 -0
- package/dist/module/colours.js.map +1 -0
- package/dist/module/components/AddButton.js +43 -0
- package/dist/module/components/AddButton.js.map +1 -0
- package/dist/module/components/AddToCalendarButton.js +225 -0
- package/dist/module/components/AddToCalendarButton.js.map +1 -0
- package/dist/module/components/Attachment.js +54 -0
- package/dist/module/components/Attachment.js.map +1 -0
- package/dist/module/components/AudienceSelectorLauncher.js +64 -0
- package/dist/module/components/AudienceSelectorLauncher.js.map +1 -0
- package/dist/module/components/AudienceSelectorPage.js +350 -0
- package/dist/module/components/AudienceSelectorPage.js.map +1 -0
- package/dist/module/components/AutoOffsetImage.js +186 -0
- package/dist/module/components/AutoOffsetImage.js.map +1 -0
- package/dist/module/components/BackButton.js +58 -0
- package/dist/module/components/BackButton.js.map +1 -0
- package/dist/module/components/CategoryTabs.js +154 -0
- package/dist/module/components/CategoryTabs.js.map +1 -0
- package/dist/module/components/CommentReply.js +328 -0
- package/dist/module/components/CommentReply.js.map +1 -0
- package/dist/module/components/CommentSection.js +822 -0
- package/dist/module/components/CommentSection.js.map +1 -0
- package/dist/module/components/ConfirmPopup.js +108 -0
- package/dist/module/components/ConfirmPopup.js.map +1 -0
- package/dist/module/components/ConfirmationPopup.js +72 -0
- package/dist/module/components/ConfirmationPopup.js.map +1 -0
- package/dist/module/components/DropDownItem.js +74 -0
- package/dist/module/components/DropDownItem.js.map +1 -0
- package/dist/module/components/DropDownMenu.js +41 -0
- package/dist/module/components/DropDownMenu.js.map +1 -0
- package/dist/module/components/EmptyStateMain.js +50 -0
- package/dist/module/components/EmptyStateMain.js.map +1 -0
- package/dist/module/components/EmptyStateWidget.js +47 -0
- package/dist/module/components/EmptyStateWidget.js.map +1 -0
- package/dist/module/components/FontScaleButton.js +36 -0
- package/dist/module/components/FontScaleButton.js.map +1 -0
- package/dist/module/components/FontScalePopup.js +75 -0
- package/dist/module/components/FontScalePopup.js.map +1 -0
- package/dist/module/components/FormCard.js +25 -0
- package/dist/module/components/FormCard.js.map +1 -0
- package/dist/module/components/FormCardSection.js +212 -0
- package/dist/module/components/FormCardSection.js.map +1 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js +72 -0
- package/dist/module/components/FormCardSectionOptionLauncher.js.map +1 -0
- package/dist/module/components/FormattedText.js +131 -0
- package/dist/module/components/FormattedText.js.map +1 -0
- package/dist/module/components/GenericInput.js +148 -0
- package/dist/module/components/GenericInput.js.map +1 -0
- package/dist/module/components/GenericInputSection.js +158 -0
- package/dist/module/components/GenericInputSection.js.map +1 -0
- package/dist/module/components/Header.js +458 -0
- package/dist/module/components/Header.js.map +1 -0
- package/dist/module/components/ImagePopup.js +240 -0
- package/dist/module/components/ImagePopup.js.map +1 -0
- package/dist/module/components/ImageUploadProgress.js +68 -0
- package/dist/module/components/ImageUploadProgress.js.map +1 -0
- package/dist/module/components/ImageUploader.js +795 -0
- package/dist/module/components/ImageUploader.js.map +1 -0
- package/dist/module/components/InlineButton.js +65 -0
- package/dist/module/components/InlineButton.js.map +1 -0
- package/dist/module/components/Input.js +154 -0
- package/dist/module/components/Input.js.map +1 -0
- package/dist/module/components/LoadingCircles.js +220 -0
- package/dist/module/components/LoadingCircles.js.map +1 -0
- package/dist/module/components/LoadingIndicator.js +86 -0
- package/dist/module/components/LoadingIndicator.js.map +1 -0
- package/dist/module/components/LoadingStateWidget.js +46 -0
- package/dist/module/components/LoadingStateWidget.js.map +1 -0
- package/dist/module/components/MediaPlayer.js +418 -0
- package/dist/module/components/MediaPlayer.js.map +1 -0
- package/dist/module/components/MiddlePopup.js +43 -0
- package/dist/module/components/MiddlePopup.js.map +1 -0
- package/dist/module/components/PDFPopup.js +191 -0
- package/dist/module/components/PDFPopup.js.map +1 -0
- package/dist/module/components/PlussChat.js +986 -0
- package/dist/module/components/PlussChat.js.map +1 -0
- package/dist/module/components/PlussChatMessage.js +262 -0
- package/dist/module/components/PlussChatMessage.js.map +1 -0
- package/dist/module/components/PlussChatTime.js +58 -0
- package/dist/module/components/PlussChatTime.js.map +1 -0
- package/dist/module/components/Popup.js +125 -0
- package/dist/module/components/Popup.js.map +1 -0
- package/dist/module/components/PopupMenu.js +119 -0
- package/dist/module/components/PopupMenu.js.map +1 -0
- package/dist/module/components/PositionedImage.js +313 -0
- package/dist/module/components/PositionedImage.js.map +1 -0
- package/dist/module/components/ProfilePic.js +106 -0
- package/dist/module/components/ProfilePic.js.map +1 -0
- package/dist/module/components/RadioButton.js +77 -0
- package/dist/module/components/RadioButton.js.map +1 -0
- package/dist/module/components/Reaction.js +116 -0
- package/dist/module/components/Reaction.js.map +1 -0
- package/dist/module/components/Reactions.js +71 -0
- package/dist/module/components/Reactions.js.map +1 -0
- package/dist/module/components/SharingTools.js +154 -0
- package/dist/module/components/SharingTools.js.map +1 -0
- package/dist/module/components/Spinner.js +22 -0
- package/dist/module/components/Spinner.js.map +1 -0
- package/dist/module/components/StickyFooter.js +34 -0
- package/dist/module/components/StickyFooter.js.map +1 -0
- package/dist/module/components/TextStyle.js +45 -0
- package/dist/module/components/TextStyle.js.map +1 -0
- package/dist/module/components/Toggle.js +65 -0
- package/dist/module/components/Toggle.js.map +1 -0
- package/dist/module/components/TouchableSearchBar.js +67 -0
- package/dist/module/components/TouchableSearchBar.js.map +1 -0
- package/dist/module/components/UserListPopup.js +135 -0
- package/dist/module/components/UserListPopup.js.map +1 -0
- package/dist/module/components/UserListing.js +267 -0
- package/dist/module/components/UserListing.js.map +1 -0
- package/dist/module/components/VideoPopup.js +113 -0
- package/dist/module/components/VideoPopup.js.map +1 -0
- package/dist/module/components/WarningPopup.js +82 -0
- package/dist/module/components/WarningPopup.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js +289 -0
- package/dist/module/components/expo-image-picker-multiple/ImageBrowser.js.map +1 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js +116 -0
- package/dist/module/components/expo-image-picker-multiple/ImageTile.js.map +1 -0
- package/dist/module/components/index.js +55 -0
- package/dist/module/components/index.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js +385 -0
- package/dist/module/components/react-native-expo-image-cropper/ExpoImageManipulator.js.map +1 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js +387 -0
- package/dist/module/components/react-native-expo-image-cropper/ImageCropOverlay.js.map +1 -0
- package/dist/module/config.js +32 -0
- package/dist/module/config.js.map +1 -0
- package/dist/module/constants.js +19 -0
- package/dist/module/constants.js.map +1 -0
- package/dist/module/fonts/index.js +2 -0
- package/dist/module/fonts/index.js.map +1 -0
- package/dist/module/fonts/pluss60-icons.js +5 -0
- package/dist/module/fonts/pluss60-icons.js.map +1 -0
- package/dist/module/fonts/pluss60-icons.json +1097 -0
- package/dist/module/helper.js +397 -0
- package/dist/module/helper.js.map +1 -0
- package/dist/module/index.js +13 -0
- package/dist/module/index.js.map +1 -0
- package/dist/module/js/images/detectFaces.js +30 -0
- package/dist/module/js/images/detectFaces.js.map +1 -0
- package/dist/module/js/images/findLandmarkRange.js +93 -0
- package/dist/module/js/images/findLandmarkRange.js.map +1 -0
- package/dist/module/js/images/getScaledOffset.js +81 -0
- package/dist/module/js/images/getScaledOffset.js.map +1 -0
- package/dist/module/js/site/getSiteLevelFromState.js +29 -0
- package/dist/module/js/site/getSiteLevelFromState.js.map +1 -0
- package/dist/module/js/site/isTVEnabled.js +10 -0
- package/dist/module/js/site/isTVEnabled.js.map +1 -0
- package/dist/module/session.js +58 -0
- package/dist/module/session.js.map +1 -0
- package/dist/module/styles.js +67 -0
- package/dist/module/styles.js.map +1 -0
- package/package.json +20 -24
- package/src/js/images/detectFaces.js +8 -4
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import { Animated, View, StatusBar, Image, Dimensions, TouchableOpacity, Text, Platform } from 'react-native';
|
|
3
|
+
import { Icon } from 'react-native-elements';
|
|
4
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
5
|
+
import { connect } from 'react-redux';
|
|
6
|
+
// import {
|
|
7
|
+
// StatusBarHeight,
|
|
8
|
+
// COLOUR_TRANSPARENT,
|
|
9
|
+
// TEXT_DARK,
|
|
10
|
+
// TEXT_LIGHT,
|
|
11
|
+
// LINEGREY,
|
|
12
|
+
// COLOUR_GREEN,
|
|
13
|
+
// getMainBrandingColourFromState,
|
|
14
|
+
// hexToRGBAstring,
|
|
15
|
+
// getSiteSettingFromState,
|
|
16
|
+
// } 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';
|
|
21
|
+
// import { HAS_GRADIENT_HEADER } from '../../config';
|
|
22
|
+
|
|
23
|
+
class Header extends Component {
|
|
24
|
+
constructor(props) {
|
|
25
|
+
super(props);
|
|
26
|
+
this.state = {};
|
|
27
|
+
}
|
|
28
|
+
UNSAFE_componentWillMount() {
|
|
29
|
+
let barStyle = Platform.select({
|
|
30
|
+
ios: 'dark-content',
|
|
31
|
+
android: 'default'
|
|
32
|
+
});
|
|
33
|
+
if (this.props.barStyle) {
|
|
34
|
+
barStyle = this.props.barStyle;
|
|
35
|
+
} else if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {
|
|
36
|
+
barStyle = 'light-content';
|
|
37
|
+
}
|
|
38
|
+
this.setState({
|
|
39
|
+
windowWidth: Dimensions.get('window').width,
|
|
40
|
+
barStyle
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
getTextColourStyle() {
|
|
44
|
+
if (this.props.textColour) {
|
|
45
|
+
return {
|
|
46
|
+
color: this.props.textColour
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
if (this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent) {
|
|
50
|
+
return {
|
|
51
|
+
color: '#fff'
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
renderBackground() {
|
|
57
|
+
if (this.props.headerBackground) return this.props.headerBackground;
|
|
58
|
+
if (this.props.headerImage) {
|
|
59
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
60
|
+
style: [styles.thumbnailStyle, {
|
|
61
|
+
width: this.state.windowWidth
|
|
62
|
+
}],
|
|
63
|
+
source: {
|
|
64
|
+
uri: this.props.headerImage
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (this.props.headerType === 'pattern' && !this.props.noGradient && !this.props.transparent) {
|
|
69
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
70
|
+
style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
|
|
71
|
+
backgroundColor: this.props.colourBrandingMain,
|
|
72
|
+
width: this.state.windowWidth
|
|
73
|
+
}, this.props.popupHeader && styles.thumbnailPopupHeader]
|
|
74
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
75
|
+
style: [styles.headerPattern, this.props.patternColour && {
|
|
76
|
+
tintColor: this.props.patternColour
|
|
77
|
+
}],
|
|
78
|
+
source: {
|
|
79
|
+
uri: this.props.headerPattern
|
|
80
|
+
}
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
if (this.props.headerType === 'block' && !this.props.noGradient && !this.props.transparent) {
|
|
84
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
85
|
+
style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
|
|
86
|
+
backgroundColor: this.props.colourBrandingMain,
|
|
87
|
+
width: this.state.windowWidth
|
|
88
|
+
}, this.props.popupHeader && styles.thumbnailPopupHeader]
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (this.props.headerType === 'gradient' && !this.props.noGradient && !this.props.transparent) {
|
|
92
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
93
|
+
style: [styles.thumbnailStyle, this.props.contentContainerStyle, {
|
|
94
|
+
width: this.state.windowWidth
|
|
95
|
+
}, this.props.popupHeader && styles.thumbnailPopupHeader]
|
|
96
|
+
}, /*#__PURE__*/React.createElement(LinearGradient, {
|
|
97
|
+
style: {
|
|
98
|
+
flex: 1
|
|
99
|
+
},
|
|
100
|
+
colors: [this.props.colourBrandingMain, hexToRGBAstring(this.props.colourBrandingMain, 0.7)],
|
|
101
|
+
start: {
|
|
102
|
+
x: 0,
|
|
103
|
+
y: 0
|
|
104
|
+
},
|
|
105
|
+
end: {
|
|
106
|
+
x: 1,
|
|
107
|
+
y: 1
|
|
108
|
+
},
|
|
109
|
+
locations: [0.4, 1]
|
|
110
|
+
}));
|
|
111
|
+
}
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
renderLeftBubble() {
|
|
115
|
+
if (!this.props.hasLeftBubble) {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
119
|
+
style: [styles.counter, styles.smallCounter]
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
renderLeftIcon() {
|
|
123
|
+
if (!this.props.leftIcon && !this.props.leftText || !this.props.onPressLeft) {
|
|
124
|
+
return null;
|
|
125
|
+
}
|
|
126
|
+
if (this.props.leftText) {
|
|
127
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
128
|
+
style: [styles.headerContentIcon, {
|
|
129
|
+
width: 'auto'
|
|
130
|
+
}]
|
|
131
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
132
|
+
onPress: this.props.onPressLeft,
|
|
133
|
+
activeOpacity: 0.6
|
|
134
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
135
|
+
style: [styles.buttonText, {
|
|
136
|
+
paddingRight: 5,
|
|
137
|
+
paddingLeft: 15,
|
|
138
|
+
color: this.props.colourBrandingMain
|
|
139
|
+
}, this.props.leftTextStyle, this.props.headerType !== 'white' && !this.props.noGradient && !this.props.transparent && {
|
|
140
|
+
color: '#fff'
|
|
141
|
+
}]
|
|
142
|
+
}, this.props.leftText)));
|
|
143
|
+
}
|
|
144
|
+
if (this.props.leftIconType && this.props.leftIconType === 'pluss') {
|
|
145
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
146
|
+
style: styles.headerContentIcon
|
|
147
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
148
|
+
onPress: this.props.onPressLeft,
|
|
149
|
+
activeOpacity: 0.6
|
|
150
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
151
|
+
style: styles.headerContentIcon
|
|
152
|
+
}, /*#__PURE__*/React.createElement(Pl60Icon, {
|
|
153
|
+
name: this.props.leftIcon,
|
|
154
|
+
style: [styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]
|
|
155
|
+
}), this.renderLeftBubble())));
|
|
156
|
+
}
|
|
157
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
158
|
+
style: styles.headerContentIcon
|
|
159
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
160
|
+
onPress: this.props.onPressLeft,
|
|
161
|
+
activeOpacity: 0.6
|
|
162
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
|
163
|
+
name: this.props.leftIcon,
|
|
164
|
+
style: styles.headerContentIcon,
|
|
165
|
+
type: "font-awesome",
|
|
166
|
+
iconStyle: [styles.leftIcon, this.props.leftIconStyle, this.getTextColourStyle()]
|
|
167
|
+
}), this.renderLeftBubble()));
|
|
168
|
+
}
|
|
169
|
+
renderHeaderText() {
|
|
170
|
+
if (!this.props.text) {
|
|
171
|
+
if (this.props.centerContent) {
|
|
172
|
+
return this.props.centerContent;
|
|
173
|
+
}
|
|
174
|
+
return null;
|
|
175
|
+
}
|
|
176
|
+
if (this.props.onTextPress) {
|
|
177
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
178
|
+
onPress: this.props.onTextPress,
|
|
179
|
+
activeOpacity: 0.6,
|
|
180
|
+
style: [styles.headerTextContainer, this.props.leftIcon && (!this.props.rightIcon && !this.props.rightText || this.props.absoluteRight) && {
|
|
181
|
+
paddingRight: 55
|
|
182
|
+
}, this.props.textContainerStyle]
|
|
183
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
184
|
+
style: [styles.headerText, this.props.textStyle, this.getTextColourStyle()],
|
|
185
|
+
numberOfLines: 1,
|
|
186
|
+
ellipsizeMode: "tail"
|
|
187
|
+
}, this.props.text));
|
|
188
|
+
}
|
|
189
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
190
|
+
style: [styles.headerTextContainer, this.props.leftIcon && (!this.props.rightIcon && !this.props.rightText || this.props.absoluteRight) && {
|
|
191
|
+
paddingRight: 55
|
|
192
|
+
}, this.props.rightIcon && (!this.props.leftIcon && !this.props.leftText || this.props.absoluteLeft) && {
|
|
193
|
+
paddingLeft: 55
|
|
194
|
+
}, this.props.textContainerStyle]
|
|
195
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
196
|
+
style: [styles.headerText, this.props.textStyle, this.getTextColourStyle()],
|
|
197
|
+
numberOfLines: 1,
|
|
198
|
+
ellipsizeMode: "tail"
|
|
199
|
+
}, this.props.text));
|
|
200
|
+
}
|
|
201
|
+
renderRightIcon() {
|
|
202
|
+
if (this.props.rightContent) {
|
|
203
|
+
return this.props.rightContent;
|
|
204
|
+
}
|
|
205
|
+
if (!this.props.onPressRight) {
|
|
206
|
+
return null;
|
|
207
|
+
}
|
|
208
|
+
if (this.props.rightText && this.props.onPressRight) {
|
|
209
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
210
|
+
style: [styles.headerContentIcon, {
|
|
211
|
+
width: 'auto'
|
|
212
|
+
}, this.props.absoluteRight && styles.absoluteRight, this.props.rightContainerStyle]
|
|
213
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
214
|
+
onPress: this.props.onPressRight,
|
|
215
|
+
activeOpacity: 0.6
|
|
216
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
217
|
+
style: [styles.buttonText, {
|
|
218
|
+
paddingRight: 15,
|
|
219
|
+
paddingLeft: 5,
|
|
220
|
+
textAlign: 'right',
|
|
221
|
+
fontFamily: 'sf-semibold',
|
|
222
|
+
color: this.props.colourBrandingMain
|
|
223
|
+
}, this.getTextColourStyle(), this.props.optionalRightStyle]
|
|
224
|
+
}, this.props.rightText)));
|
|
225
|
+
}
|
|
226
|
+
if (!this.props.rightIcon) {
|
|
227
|
+
if (this.props.rightImage) {
|
|
228
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
229
|
+
onPress: this.props.onPressRight,
|
|
230
|
+
activeOpacity: 0.6
|
|
231
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
232
|
+
style: styles.headerContentIcon
|
|
233
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
|
234
|
+
source: {
|
|
235
|
+
uri: this.props.rightImage
|
|
236
|
+
},
|
|
237
|
+
style: styles.rightImage,
|
|
238
|
+
resizeMode: "contain"
|
|
239
|
+
})));
|
|
240
|
+
}
|
|
241
|
+
return null;
|
|
242
|
+
}
|
|
243
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
244
|
+
onPress: this.props.onPressRight,
|
|
245
|
+
activeOpacity: 0.6
|
|
246
|
+
}, this.props.rightIconType && this.props.rightIconType === 'pluss' ? /*#__PURE__*/React.createElement(View, {
|
|
247
|
+
style: styles.headerContentIcon
|
|
248
|
+
}, /*#__PURE__*/React.createElement(Pl60Icon, {
|
|
249
|
+
name: this.props.rightIcon,
|
|
250
|
+
style: [styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]
|
|
251
|
+
})) : /*#__PURE__*/React.createElement(Icon, {
|
|
252
|
+
name: this.props.rightIcon,
|
|
253
|
+
style: styles.headerContentIcon,
|
|
254
|
+
type: this.props.rightIconType ? this.props.rightIconType : 'font-awesome',
|
|
255
|
+
iconStyle: [styles.rightIcon, this.getTextColourStyle(), this.props.rightIconStyle]
|
|
256
|
+
}));
|
|
257
|
+
}
|
|
258
|
+
render() {
|
|
259
|
+
if (this.props.animatedHeader) {
|
|
260
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
261
|
+
style: [styles.container, !this.props.noShadow && styles.containerShadow, this.props.transparent && styles.transparentContainer, this.props.style, {
|
|
262
|
+
backgroundColor: this.props.headerColourOffset,
|
|
263
|
+
elevation: this.props.headerElev,
|
|
264
|
+
shadowColor: this.props.headerShadow
|
|
265
|
+
}]
|
|
266
|
+
}, this.renderBackground(), /*#__PURE__*/React.createElement(StatusBar, {
|
|
267
|
+
barStyle: this.state.barStyle,
|
|
268
|
+
translucent: true
|
|
269
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
270
|
+
style: styles.headerContent
|
|
271
|
+
}, this.renderLeftIcon(), this.renderHeaderText(), this.renderRightIcon(), this.props.children), this.props.extraHeaderContent);
|
|
272
|
+
}
|
|
273
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
274
|
+
style: [styles.container, !this.props.noShadow && styles.containerShadow, this.props.transparent && styles.transparentContainer, this.props.lineSeparated && styles.lineSeparated, this.props.popupHeader && styles.popupHeader, this.props.style, this.props.colourBrandingHeader && {
|
|
275
|
+
backgroundColor: this.props.colourBrandingHeader
|
|
276
|
+
}]
|
|
277
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
278
|
+
style: [styles.contentContainer, this.props.popupHeader && styles.popupContentContainer, this.props.contentContainerStyle, this.props.colourBrandingHeader && {
|
|
279
|
+
backgroundColor: this.props.colourBrandingHeader
|
|
280
|
+
}]
|
|
281
|
+
}, this.renderBackground(), /*#__PURE__*/React.createElement(StatusBar, {
|
|
282
|
+
barStyle: this.state.barStyle,
|
|
283
|
+
translucent: true
|
|
284
|
+
}), /*#__PURE__*/React.createElement(View, {
|
|
285
|
+
style: [styles.headerContent, this.props.popupHeader && styles.headerContentPopup]
|
|
286
|
+
}, this.renderLeftIcon(), this.renderHeaderText(), this.renderRightIcon(), this.props.children)), this.props.extraHeaderContent);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const styles = {
|
|
290
|
+
container: {
|
|
291
|
+
alignSelf: 'stretch',
|
|
292
|
+
backgroundColor: '#fff',
|
|
293
|
+
zIndex: 10
|
|
294
|
+
},
|
|
295
|
+
containerShadow: {
|
|
296
|
+
shadowColor: '#000',
|
|
297
|
+
shadowOffset: {
|
|
298
|
+
width: 0,
|
|
299
|
+
height: 1
|
|
300
|
+
},
|
|
301
|
+
shadowOpacity: 0.1,
|
|
302
|
+
shadowRadius: 6,
|
|
303
|
+
elevation: 3
|
|
304
|
+
},
|
|
305
|
+
lineSeparated: {
|
|
306
|
+
borderBottomWidth: 1,
|
|
307
|
+
borderColor: LINEGREY,
|
|
308
|
+
shadowOpacity: 0,
|
|
309
|
+
elevation: 0
|
|
310
|
+
},
|
|
311
|
+
popupHeader: {
|
|
312
|
+
borderBottomWidth: 1,
|
|
313
|
+
borderColor: LINEGREY,
|
|
314
|
+
shadowOpacity: 0,
|
|
315
|
+
elevation: 0,
|
|
316
|
+
borderTopLeftRadius: 12,
|
|
317
|
+
borderTopRightRadius: 12
|
|
318
|
+
},
|
|
319
|
+
contentContainer: {
|
|
320
|
+
height: StatusBarHeight(70),
|
|
321
|
+
alignSelf: 'stretch',
|
|
322
|
+
flexDirection: 'row'
|
|
323
|
+
},
|
|
324
|
+
popupContentContainer: {
|
|
325
|
+
height: 70,
|
|
326
|
+
borderTopLeftRadius: 12,
|
|
327
|
+
borderTopRightRadius: 12
|
|
328
|
+
},
|
|
329
|
+
transparentContainer: {
|
|
330
|
+
backgroundColor: COLOUR_TRANSPARENT,
|
|
331
|
+
shadowColor: COLOUR_TRANSPARENT,
|
|
332
|
+
elevation: 0
|
|
333
|
+
},
|
|
334
|
+
thumbnailStyle: {
|
|
335
|
+
height: StatusBarHeight(70),
|
|
336
|
+
width: null,
|
|
337
|
+
position: 'absolute',
|
|
338
|
+
top: 0,
|
|
339
|
+
left: 0,
|
|
340
|
+
resizeMode: 'cover'
|
|
341
|
+
},
|
|
342
|
+
thumbnailPopupHeader: {
|
|
343
|
+
height: 70,
|
|
344
|
+
width: '100%',
|
|
345
|
+
borderTopLeftRadius: 12,
|
|
346
|
+
borderTopRightRadius: 12,
|
|
347
|
+
overflow: 'hidden'
|
|
348
|
+
},
|
|
349
|
+
headerContent: {
|
|
350
|
+
alignSelf: 'stretch',
|
|
351
|
+
flexDirection: 'row',
|
|
352
|
+
flex: 1,
|
|
353
|
+
paddingTop: StatusBarHeight(0)
|
|
354
|
+
},
|
|
355
|
+
headerContentPopup: {
|
|
356
|
+
paddingTop: 0
|
|
357
|
+
},
|
|
358
|
+
headerContentIcon: {
|
|
359
|
+
height: 70,
|
|
360
|
+
width: 55,
|
|
361
|
+
alignItems: 'center',
|
|
362
|
+
flexDirection: 'row',
|
|
363
|
+
justifyContent: 'space-between'
|
|
364
|
+
},
|
|
365
|
+
absoluteRight: {
|
|
366
|
+
height: 70,
|
|
367
|
+
justifyContent: 'center',
|
|
368
|
+
position: 'absolute',
|
|
369
|
+
right: 0,
|
|
370
|
+
top: StatusBarHeight(0)
|
|
371
|
+
},
|
|
372
|
+
leftIcon: {
|
|
373
|
+
fontSize: 25,
|
|
374
|
+
padding: 15,
|
|
375
|
+
width: 55,
|
|
376
|
+
textAlign: 'center',
|
|
377
|
+
color: TEXT_LIGHT
|
|
378
|
+
},
|
|
379
|
+
headerTextContainer: {
|
|
380
|
+
height: 70,
|
|
381
|
+
flex: 1,
|
|
382
|
+
alignItems: 'center',
|
|
383
|
+
flexDirection: 'row',
|
|
384
|
+
justifyContent: 'space-between'
|
|
385
|
+
},
|
|
386
|
+
headerText: {
|
|
387
|
+
fontSize: 16,
|
|
388
|
+
flex: 1,
|
|
389
|
+
fontFamily: 'sf-semibold',
|
|
390
|
+
color: TEXT_DARK,
|
|
391
|
+
textAlign: 'center',
|
|
392
|
+
backgroundColor: 'rgba(255,255,255,0)'
|
|
393
|
+
},
|
|
394
|
+
buttonText: {
|
|
395
|
+
fontSize: 15,
|
|
396
|
+
fontFamily: 'sf-regular',
|
|
397
|
+
width: 80,
|
|
398
|
+
backgroundColor: 'rgba(255,255,255,0)'
|
|
399
|
+
},
|
|
400
|
+
rightIcon: {
|
|
401
|
+
fontSize: 25,
|
|
402
|
+
padding: 15,
|
|
403
|
+
width: 55,
|
|
404
|
+
textAlign: 'center',
|
|
405
|
+
color: TEXT_LIGHT
|
|
406
|
+
},
|
|
407
|
+
rightImage: {
|
|
408
|
+
width: 24,
|
|
409
|
+
height: 24,
|
|
410
|
+
marginRight: 15,
|
|
411
|
+
marginLeft: 13
|
|
412
|
+
},
|
|
413
|
+
counter: {
|
|
414
|
+
top: 15,
|
|
415
|
+
right: 5,
|
|
416
|
+
borderRadius: 10,
|
|
417
|
+
position: 'absolute',
|
|
418
|
+
height: 20,
|
|
419
|
+
minWidth: 20,
|
|
420
|
+
backgroundColor: COLOUR_GREEN,
|
|
421
|
+
justifyContent: 'center'
|
|
422
|
+
},
|
|
423
|
+
counterText: {
|
|
424
|
+
color: '#fff',
|
|
425
|
+
textAlign: 'center',
|
|
426
|
+
fontFamily: 'sf-bold',
|
|
427
|
+
fontSize: 10,
|
|
428
|
+
lineHeight: 12,
|
|
429
|
+
backgroundColor: 'transparent'
|
|
430
|
+
},
|
|
431
|
+
smallCounter: {
|
|
432
|
+
width: 5,
|
|
433
|
+
height: 5,
|
|
434
|
+
minWidth: 5,
|
|
435
|
+
top: 20,
|
|
436
|
+
right: 10
|
|
437
|
+
},
|
|
438
|
+
headerPattern: {
|
|
439
|
+
position: 'absolute',
|
|
440
|
+
top: 0,
|
|
441
|
+
left: 0,
|
|
442
|
+
right: 0,
|
|
443
|
+
bottom: 0,
|
|
444
|
+
width: '100%',
|
|
445
|
+
height: '100%',
|
|
446
|
+
resizeMode: 'cover'
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
const mapStateToProps = state => {
|
|
450
|
+
return {
|
|
451
|
+
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')
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
export default connect(mapStateToProps, {})(Header);
|
|
458
|
+
//# sourceMappingURL=Header.js.map
|
|
@@ -0,0 +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 'react-native-elements';\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,uBAAuB;AAC5C,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,OAAOC,MAAM,MAAM,WAAW;AAC9B;;AAEA,MAAMC,MAAM,SAASvB,SAAS,CAAC;EAC7BwB,WAAWA,CAACC,KAAK,EAAE;IACjB,KAAK,CAACA,KAAK,CAAC;IAEZ,IAAI,CAACC,KAAK,GAAG,CAAC,CAAC;EACjB;EAEAC,yBAAyBA,CAAA,EAAG;IAC1B,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