/* Metro module 11317; source: modules/messages/native/ChatBanner.tsx; dependencies: [31, 27, 4257, 4605, 11318, 661, 33, 4501, 697, 11319, 11320, 566, 21, 1357, 683, 4863, 6609, 4573, 1244, 4578, 6860, 7153, 5278, 5097, 8222, 2] */ function _fun86326(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#86326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11503:6, offset: 0x01f90ec2, size: 713 bytes, params: 8, frame: 26 var object2; const env0_0 = require; const closure = OptInChannelBanner; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_3 = importAll(31) /* metro dependency 31 */; let value = require(27) /* metro dependency 27 */; const StyleSheet = value.StyleSheet; const env0_4 = value.View; const gatewayConnectionStore = importDefault(4257) /* metro dependency 4257: GatewayConnectionStore */; const readStateStore = importDefault(4605) /* metro dependency 4605: ReadStateStore */; const env0_7 = (require(11318) /* metro dependency 11318: ChatOverlayConstants */).ChatOverlays; value = require(661) /* metro dependency 661: Constants */; const env0_8 = value.AnalyticsObjectTypes; const env0_9 = value.AnalyticsObjects; const env0_10 = value.AnalyticEvents; const env0_11 = value.AnalyticsSections; value = require(33) /* metro dependency 33 */; const env0_12 = value.jsx; const env0_13 = value.jsxs; value = require(4501) /* metro dependency 4501: createStyles */; const createStyles = value.createStyles; object2 = {}; const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH; object2.threadBannerContainer = {'alignSelf': 'stretch', 'minHeight': 60, 'flexDirection': 'row', 'paddingHorizontal': 16, 'paddingVertical': 12, 'alignItems': 'center', 'flexGrow': 0, 'zIndex': 100, backgroundColor: BACKGROUND_SURFACE_HIGH}; object2.threadBannerTitle = {'flex': 1, 'lineHeight': 18}; object2.threadBannerButton = {'flexGrow': 0, 'paddingVertical': 7, 'paddingHorizontal': 16, 'marginLeft': 16}; const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND; object2.newMessageBar = {'backgroundColor': null, 'flexDirection': 'row', 'justifyContent': 'center', 'alignItems': 'center', 'overflow': 'hidden', 'zIndex': 100, 'minHeight': 45, backgroundColor: BACKGROUND_BRAND}; object2.newMessageBarTextContainer = {'flex': 1, 'paddingLeft': 16, 'paddingVertical': 10}; object2.newMessageBarCloseButton = {paddingHorizontal: 12}; const object3 = {'flexDirection': 'row', 'justifyContent': 'space-between', 'alignItems': 'center', 'overflow': 'hidden', 'padding': 8, 'paddingLeft': 16, 'paddingRight': 16, 'zIndex': 100}; const CHAT_BANNER_BG = (importDefault(697) /* metro dependency 697: native */).colors.CHAT_BANNER_BG; object3.backgroundColor = CHAT_BANNER_BG; object3.borderBottomWidth = StyleSheet.hairlineWidth; let CHAT_BORDER = (importDefault(697) /* metro dependency 697: native */).colors.CHAT_BORDER; object3.borderBottomColor = CHAT_BORDER; object2.optInChannelBannerContainer = object3; const BORDER_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_SUBTLE; object2.optInChannelBannerLegacyBorder = {borderBottomWidth: 1, borderBottomColor: BORDER_SUBTLE}; const object4 = {}; object4.borderTopWidth = StyleSheet.hairlineWidth; CHAT_BORDER = (importDefault(697) /* metro dependency 697: native */).colors.CHAT_BORDER; object4.borderTopColor = CHAT_BORDER; object2.topBorder = object4; object2.optInChannelBannerText = {flex: 1}; object2.optInChannelBannerButtonContainer = {'flexShrink': 0, 'marginLeft': 8}; const env0_14 = Reflect.apply(createStyles, value, [object2]); (require(2) /* metro dependency 2 */).fileFinishedImporting('modules/messages/native/ChatBanner.tsx'); exports.default = ChatBanner; exports.OptInChannelBanner = closure; } function OptInChannelBanner({channel, topBorder}) { // fn#86327, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:11503:1536, offset: 0x01f9118b, size: 439 bytes, params: 2, frame: 25 const styles = useStyles(); const value2 = (importDefault(1357) /* metro dependency 1357: MobileVisualRefreshExperiment */)('OptInChannelBanner'); env0_3.useEffect(_fun86328, [channel]); const value3 = env0_3.useCallback(_fun86329, [channel]); const items2 = [styles.optInChannelBannerContainer]; items2[1] = value2 ? null : styles.optInChannelBannerLegacyBorder; topBorder = topBorder ? styles.topBorder : null; items2[2] = topBorder; const Text = (require(4573) /* metro dependency 4573: Text */).Text; const intl = (require(1244) /* metro dependency 1244: indexNative */).intl; const text = {intl.string((require(1244) /* metro dependency 1244: indexNative */).t.iOWmmB)}; const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button; return ( {text}