/* Metro module 15212; source: modules/integration_settings/native/IntegrationsSettingsEditLinkedLobby.tsx; dependencies: [31, 27, 1878, 33, 4501, 697, 3860, 1484, 6771, 6789, 6777, 4805, 566, 12134, 8743, 1244, 4573, 7972, 4572, 1305, 1423, 6231, 6238, 2] */
function _fun116355(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#116355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:6, offset: 0x02485f23, size: 321 bytes, params: 8, frame: 22
var object2;
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 */).View;
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
let value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.Fragment;
const env0_8 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
object2 = {};
const BACKGROUND_BASE_LOWER = (importDefault(697) /* metro dependency 697: native */).colors.BACKGROUND_BASE_LOWER;
object2.screenContainer = {backgroundColor: BACKGROUND_BASE_LOWER};
object2.header = {'alignItems': 'center', 'marginTop': 8, 'marginBottom': 32, 'gap': 12};
const BORDER_STRONG = (importDefault(697) /* metro dependency 697: native */).colors.BORDER_STRONG;
object2.divider = {'height': 1, 'width': 48, backgroundColor: BORDER_STRONG};
const env0_9 = Reflect.apply(createStyles, value, [object2]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/integration_settings/native/IntegrationsSettingsEditLinkedLobby.tsx');
exports.default = EditLinkedLobby;
}
function EditLinkedLobby({channel, numScreensToPop}) { // fn#116356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:15409:525, offset: 0x02486064, size: 1206 bytes, params: 2, frame: 37
var r0;
var Form;
var Stack;
var object3;
var Avatar;
var defaultImport4;
var items2;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
var items3;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const useTokenModule = require(3860) /* metro dependency 3860: useToken */;
const useToken = useTokenModule.useToken;
const TABLE_ROW_PADDING = (importDefault(697) /* metro dependency 697: native */).modules.mobile.TABLE_ROW_PADDING;
const value3 = Reflect.apply(useToken, useTokenModule, [TABLE_ROW_PADDING]);
const styles = useStyles();
const value4 = (require(1484) /* metro dependency 1484: useNavigationNative */).useNavigation();
const defaultImport = importDefault(6771) /* metro dependency 6771: useAnalyticsLocations */;
const EDIT_CHANNEL_SYNCING = (importDefault(6789) /* metro dependency 6789: AnalyticsLocation */).EDIT_CHANNEL_SYNCING;
const analyticsLocations = defaultImport(EDIT_CHANNEL_SYNCING).analyticsLocations;
const env0_3 = analyticsLocations;
const value6 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(channel.linkedLobby?.application_id);
const value7 = (importDefault(4805) /* metro dependency 4805: useChannelName */)(channel, true);
const linked_at = channel.linkedLobby?.linked_at;
const user = (require(566) /* metro dependency 566: flux */).useStateFromStores([UserStore], _fun116357);
let binding = env0_3;
let useCallback = binding.useCallback;
const value10 = (importDefault(12134) /* metro dependency 12134: useShowUnlinkChannelAlert */)(channel.id,
value6?.name ?? '', Reflect.apply(useCallback, binding, [_fun116358, [value4, numScreensToPop]]));
binding = env0_3;
useCallback = binding.useCallback;
const value12 = binding.useMemo(_fun116360, [linked_at, user, Reflect.apply(useCallback, binding, [_fun116359,
[user, analyticsLocations, channel.id]])]);
if (value6 == null) {
r0 = null;
} else {
Form = (require(7972) /* metro dependency 7972: native */).Form;
var formProps = {style: styles.screenContainer, contentContainerStyle: {paddingTop: 16}};
Stack = (require(4572) /* metro dependency 4572: StackNative */).Stack;
var stackProps = {spacing: (importDefault(697) /* metro dependency 697: native */).space.PX_24,
style: {paddingHorizontal: value3}};
var viewBindingProps = {style: styles.header};
Avatar = (require(1305) /* metro dependency 1305: native */).Avatar;
defaultImport4 = importDefault(1423) /* metro dependency 1423: AvatarUtils */;
items2 = [