/* Metro module 15211; source: components_native/common/IconLabelBlock.tsx; dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 4573, 9896, 4002, 3868, 2] */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */ import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */ import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */ import ObjectWithoutProperties from '../../by-id/module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */ import Native from '../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as ReactModule from '../../by-id/module-00031-React.js'; /* Metro dependency 31 */ import * as JsxRuntimeModule from '../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */ import * as NativeModule from '../../external/discord_common/js/packages/design/native.tsx'; /* Metro dependency 3868 */ import * as CreateStylesModule from '../../design/components/Styles/native/createStyles.tsx'; /* Metro dependency 4501 */ function _fun116345(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116345, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:6, offset: 0x024858e9, size: 498 bytes, params: 8, frame: 25 const env0_0 = require; const env0_3 = ['error']; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); let value = ReactModule; const createLegacyClassComponentStyles = CreateStylesModule.createLegacyClassComponentStyles; object = {wrapper: {'alignItems': 'center', 'paddingTop': 26, 'paddingBottom': 16}}; const RED_400 = (Native).unsafe_rawColors.RED_400; object.error = {'fontSize': 12, 'textAlign': 'center', 'alignSelf': 'center', 'marginBottom': 10, color: RED_400}; const TEXT_SUBTLE = (Native).colors.TEXT_SUBTLE; object.label = {'fontSize': 12, 'marginTop': 20, color: TEXT_SUBTLE}; object.iconUploaderWrapper = {'alignSelf': 'stretch', 'alignItems': 'center'}; object.text = {marginTop: 9}; const env0_14 = Reflect.apply(createLegacyClassComponentStyles, CreateStylesModule, [object]); const PureComponent = value.PureComponent; value = _fun116349(PureComponent); const ThemeContext = (NativeModule).ThemeContext; value.contextType = ThemeContext; (FileImportTrackerModule).fileFinishedImporting('components_native/common/IconLabelBlock.tsx'); exports.default = value; function _isNativeReflectConstruct_116346() { // fn#116346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:240, offset: 0x02485adb, size: 98 bytes, params: 1, frame: 18 var Boolean; var prototype; var valueOf; var call; var Reflect; var construct; var closure; var value; var error; try { Boolean = global.Boolean; prototype = Boolean.prototype; valueOf = prototype.valueOf; call = valueOf.call; Reflect = global.Reflect; construct = Reflect.construct; Boolean = global.Boolean; closure = function() { }; value = Reflect.apply(construct, Reflect, [Boolean, [], closure]); value = Reflect.apply(call, valueOf, [value]); var result = !value; } catch (error) { } return (_isNativeReflectConstruct_116346_isNativeReflectConstruct = function() { return !!result; })(); } function _fun116349(a0) { // fn#116349, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:808, offset: 0x02485b3d, size: 149 bytes, params: 2, frame: 16 const IconLabelBlock2 = IconLabelBlock; Inherits(IconLabelBlock2, a0); return CreateClass(IconLabelBlock2, [{key: 'renderLabel', value: value_116351}, {key: 'renderText', value: value_116352}, {key: 'renderIcon', value: value_116353}, {key: 'render', value: value_116354}]); function IconLabelBlock() { // fn#116350, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:820, offset: 0x02485bd2, size: 113 bytes, params: 1, frame: 20 const value = environment.__proto__; env1_5(this, IconLabelBlock); const value3 = env1_8(IconLabelBlock); return env1_7(this, _isNativeReflectConstruct_116346() ? global.Reflect.construct(value3, arguments, env1_8(this).constructor) : value3.apply(this, arguments)); } function value_116351() { // fn#116351, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1109, offset: 0x02485c43, size: 112 bytes, params: 1, frame: 18 const value = environment.__proto__; const value2 = env1_14(this.context); const {label, labelStyle} = this.props; const value3 = null; if (value3 == label) { return value3; } else { const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText; return ( {label} ); } } function value_116352() { // fn#116352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1280, offset: 0x02485cb3, size: 133 bytes, params: 1, frame: 19 const value = environment.__proto__; const value2 = env1_14(this.context); const {text, textStyle, textAccessibilityRole} = this.props; const value3 = null; if (value3 == text) { return value3; } else { const Text = (require(4573) /* metro dependency 4573: Text */).Text; return ( {text} ); } } function value_116353() { // fn#116353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1537, offset: 0x02485d38, size: 352 bytes, params: 1, frame: 27 var r8; var error; var value4; var items2; let value = environment.__proto__; const value2 = env1_14(this.context); const {iconProps, source, lightSource, darkSource, iconStyles, errorProps, errorStyles} = this.props; const value3 = null; if (value3 != iconProps) { error = iconProps.error; value4 = env1_4(iconProps, env1_3); var viewBindingProps = {style: value2.iconUploaderWrapper}; items2 = [ ((Component) => )(importDefault(9896) /* metro dependency 9896: IconUploader */), ]; items2[1] = ( value3 == error ? value3 : ((LegacyText) => {error})((require(1305) /* metro dependency 1305: native */).LegacyText) ); return ( {items2} ); } if (value3 != source) { r8 = source; } else { value = require(4002) /* metro dependency 4002: shared */; r8 = value.isThemeLight(this.context.theme) ? lightSource : darkSource; } return ( ); } function value_116354() { // fn#116354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15408:1992, offset: 0x02485e98, size: 139 bytes, params: 1, frame: 16 const value = environment.__proto__; const items3 = [env1_14(this.context).wrapper]; items3[1] = this.props.wrapperStyles; const items2 = [this.renderIcon()]; items2[1] = this.props.children; items2[2] = this.renderLabel(); items2[3] = this.renderText(); return ( {items2} ); } } } global.__d(_fun116345, 15211, [29, 6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 4573, 9896, 4002, 3868, 2]) /* metro module 15211, dependencies: [29, 6, 7, 15, 17, 18, 31, 27, 33, 4501, 697, 1305, 4573, 9896, 4002, 3868, 2] */;