/* Metro module 9663; source: modules/create_guild/native/CreateGuild.tsx; dependencies: [31, 27, 1878, 661, 33, 4501, 697, 4559, 4570, 4572, 4573, 1244, 9664, 7981, 6808, 6766, 4578, 8970, 2] */
function _fun75755(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#75755, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9849:6, offset: 0x01db7e52, size: 362 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importAll(31) /* metro dependency 31 */;
const env0_4 = (require(27) /* metro dependency 27 */).ScrollView;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
const env0_6 = (require(661) /* metro dependency 661: Constants */).MarketingURLs;
let value = require(33) /* metro dependency 33 */;
const env0_7 = value.jsx;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
const env0_9 = Reflect.apply(createStyles, value, [{flex: {flex: 1}, contentContainer: {'backgroundColor': null,
'paddingHorizontal': 16, 'paddingBottom': 16, backgroundColor: BACKGROUND_BASE_LOWER},
header: {textAlign: 'center'}, description: {'lineHeight': 18, 'textAlign': 'center', 'marginBottom': 24},
iconUploader: {'alignSelf': 'center', 'marginBottom': 4}, hint: {marginBottom: 8}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/create_guild/native/CreateGuild.tsx');
exports.default = CreateGuild;
}
function CreateGuild({guild, onIconPress, onNameChange, onStaffOnlyChange, onCreate, submitting, error, customTitle, customDescription, customButtonLabel, autoFocus}) { // fn#75756, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9849:588, offset: 0x01db7fbc, size: 1331 bytes, params: 2, frame: 42
var r8;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
var TableSwitchRow;
autoFocus = autoFocus === undefined || autoFocus;
const styles = useStyles();
const currentUser = UserStore.getCurrentUser();
const r10 = currentUser == null || !currentUser.isStaff();
const value8 = !r10;
const value9 = (require(4559) /* metro dependency 4559: useIsScreenReaderEnabledNative */).useIsScreenReaderEnabled();
const binding = env0_3;
const value10 = binding.useRef(null);
binding.useEffect(_fun75757, [value9]);
const scrollViewBindingProps = {'style': null, 'contentInset': null, 'automaticallyAdjustContentInsets': false,
'keyboardShouldPersistTaps': 'handled', 'alwaysBounceVertical': false, style: styles.flex,
contentInset: {top: 0}, contentContainerStyle: styles.contentContainer};
const Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const items2 = [{customTitle ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t.XioBx6)}];
items2[1] = {customDescription ?? intl.string((require(1244) /* metro dependency 1244: indexNative */).t['/k/L/j'])};
items2[2] = ((Component) => )(importDefault(9664) /* metro dependency 9664: GuildIconUploader */);
const TextInput = (require(7981) /* metro dependency 7981: TextInputNative */).TextInput;
items2[3] = ;
if (r10) {
r8 = value8;
} else {
TableSwitchRow = (require(6808) /* metro dependency 6808: TableSwitchRowNative */).TableSwitchRow;
r8 = ;
}
items2[4] = r8;
const TextWithIOSLinkWorkaround = (require(6766) /* metro dependency 6766: TextWithIOSLinkWorkaround */).TextWithIOSLinkWorkaround;
const format = intl.format;
const property = (require(1244) /* metro dependency 1244: indexNative */).t['2bprXx'];
const GUIDELINES = MarketingURLs.GUIDELINES;
items2[5] = {Reflect.apply(format,
intl, [property, {guidelinesURL: GUIDELINES}])};
const Button = (require(4578) /* metro dependency 4578: ButtonNative */).Button;
items2[6] = ;
r8 = error?.getFirstFieldErrorMessage('name');
r8 = r8 == null && error?.message != null ? error?.message === '' ? null : ((Component) => {error?.message})(importDefault(8970) /* metro dependency 8970: FreeFormErrorLabel */) : null;
items2[7] = r8;
return (
{items2}
);
}
function _fun75757() { // fn#75757, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9849:904, offset: 0x01db84ef, size: 86 bytes, params: 1, frame: 12
var value3;
var moduleValue;
if (env0_0 && env0_1.current != null) {
value3 = environment.__proto__;
moduleValue = require(4570) /* metro dependency 4570: setAccessibilityFocusAndroid */;
moduleValue.setAccessibilityFocus({ref: env0_1, delay: 100});
}
}