/* Metro module 9664; source: modules/guild/native/GuildIconUploader.tsx; dependencies: [6, 7, 15, 17, 18, 31, 27, 1310, 33, 4501, 697, 4002, 9665, 9666, 4573, 1244, 9667, 9668, 5278, 3868, 2] */
function _fun75758(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75758, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9850:6, offset: 0x01db8545, size: 661 bytes, params: 8, frame: 24
var object2;
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = importAll(31) /* metro dependency 31 */;
const value2 = require(27) /* metro dependency 27 */;
const env0_8 = value2.View;
const env0_9 = value2.Image;
const themeStore = importDefault(1310) /* metro dependency 1310: ThemeStore */;
const value3 = require(33) /* metro dependency 33 */;
const env0_11 = value3.jsx;
const env0_12 = value3.jsxs;
const createStylesModule = require(4501) /* metro dependency 4501: createStyles */;
const createLegacyClassComponentStyles = createStylesModule.createLegacyClassComponentStyles;
object2 = {container: {'width': 82, 'height': 82, 'marginTop': 4}};
const BACKGROUND_SURFACE_HIGH = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_SURFACE_HIGH;
object2.guildPlaceholder = {backgroundColor: BACKGROUND_SURFACE_HIGH};
object2.guildIcon = {'width': 82, 'height': 82, 'borderRadius': 41};
object2.iconWrapperBorder = {'position': 'absolute', 'top': -8, 'right': -8, 'width': 40, 'height': 40,
'borderRadius': 20, 'justifyContent': 'center', 'alignItems': 'center'};
const object5 = {'width': 32, 'height': 32, 'borderRadius': null, 'justifyContent': 'center',
'alignItems': 'center'};
object5.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const INTERACTIVE_TEXT_ACTIVE = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_ACTIVE;
object5.backgroundColor = INTERACTIVE_TEXT_ACTIVE;
object2.filledIconWrapper = object5;
const object6 = {'position': 'absolute', 'top': -4, 'right': -4, 'width': 32, 'height': 32, 'borderRadius': null,
'backgroundColor': null, 'justifyContent': 'center', 'alignItems': 'center'};
object6.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.lg;
const BACKGROUND_BRAND = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BRAND;
object6.backgroundColor = BACKGROUND_BRAND;
object2.emptyIconWrapper = object6;
const INTERACTIVE_TEXT_DEFAULT = (importDefault(697) /* metro dependency 697: native */).colors.INTERACTIVE_TEXT_DEFAULT;
object2.emptyGuildIcon = {'borderWidth': 2, 'borderStyle': 'dashed', 'justifyContent': 'center',
'alignItems': 'center', borderColor: INTERACTIVE_TEXT_DEFAULT};
object2.emptyGuildIconText = {'textAlign': 'center', 'lineHeight': 16, 'paddingTop': 4};
object2.uploadIcon = {'height': 16, 'width': 16};
const env0_13 = Reflect.apply(createLegacyClassComponentStyles, createStylesModule, [object2]);
const PureComponent = value.PureComponent;
value = _fun75762(PureComponent);
const ThemeContext = (require(3868) /* metro dependency 3868: native */).ThemeContext;
value.contextType = ThemeContext;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild/native/GuildIconUploader.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_75759() { // fn#75759, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9850:224, offset: 0x01db87da, 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_75759_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun75762(a0) { // fn#75762, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9850:1385, offset: 0x01db883c, size: 124 bytes, params: 2, frame: 16
const closure = GuildIconUploader;
env0_7(closure, a0);
return env0_4(closure, [{key: 'renderIcon', value: value_75764}, {key: 'renderUpload', value: value_75765},
{key: 'render', value: value_75766}]);
}
function value_75764() { // fn#75764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9850:1700, offset: 0x01db88b8, size: 379 bytes, params: 1, frame: 25
var r0;
var object;
var moduleValue;
var items2;
var Text;
var intl;
let value = environment.__proto__;
const value2 = env1_13(this.context);
const icon = this.props.icon;
if (icon != null) {
r0 = ;
} else {
var viewProps = {style: [value2.guildIcon, value2.emptyGuildIcon]};
moduleValue = require(4002) /* metro dependency 4002: shared */;
items2 = [];
Text = (require(4573) /* metro dependency 4573: Text */).Text;
var textProps = {'style': null, 'variant': 'text-xs/bold', 'color': 'text-default',
style: value2.emptyGuildIconText};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
value = intl.string((require(1244) /* metro dependency 1244: indexNative */).t['3UB9ad']);
items2[1] = {value.toUpperCase()};
value = {items2};
r0 = value;
}
return r0;
}
function value_75765() { // fn#75765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9850:2128, offset: 0x01db8a33, size: 253 bytes, params: 1, frame: 23
var r0;
var object2;
const value2 = env1_13(this.context);
const {icon, iconBackgroundColor} = this.props;
if (icon != null) {
object2 = {};
object2.style = [value2.iconWrapperBorder, {backgroundColor: iconBackgroundColor}];
object2.children = ;
r0 = object2;
} else {
object2 = {};
object2.style = value2.emptyIconWrapper;
object2.children = ;
r0 = object2;
}
return ;
}
function value_75766() { // fn#75766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9850:2467, offset: 0x01db8b30, size: 323 bytes, params: 1, frame: 24
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const value = environment.__proto__;
const value2 = env1_13(this.context);
const {style, onPress, icon} = this.props;
const PressableOpacity = (require(5278) /* metro dependency 5278: Pressables */).PressableOpacity;
const r5 = icon != null ? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.VATxfe) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t['MsUY/S']);
const items3 = [value2.container, style];
const items2 = [{this.renderIcon()}];
items2[1] = this.renderUpload();
return (
{items2}
);
}