/* 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] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import UserStore from '../../../stores/UserStore.tsx'; /* Metro dependency 1878 */
import UseChannelName from '../../channel/useChannelName.tsx'; /* Metro dependency 4805 */
import UseAnalyticsLocations from '../../app_analytics/useAnalyticsLocations.tsx'; /* Metro dependency 6771 */
import AnalyticsLocation from '../../app_analytics/AnalyticsLocation.tsx'; /* Metro dependency 6789 */
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 FluxModule from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseNavigationNativeModule from '../../../design/components/Navigator/native/useNavigation.native.tsx'; /* Metro dependency 1484 */
import * as UseTokenModule from '../../../design/tokens/native/useToken.tsx'; /* Metro dependency 3860 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
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
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = JsxRuntimeModule;
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;
object = {};
const BACKGROUND_BASE_LOWER = (Native).colors.BACKGROUND_BASE_LOWER;
object.screenContainer = {backgroundColor: BACKGROUND_BASE_LOWER};
object.header = {'alignItems': 'center', 'marginTop': 8, 'marginBottom': 32, 'gap': 12};
const BORDER_STRONG = (Native).colors.BORDER_STRONG;
object.divider = {'height': 1, 'width': 48, backgroundColor: BORDER_STRONG};
const env0_9 = Reflect.apply(createStyles, value, [object]);
(FileImportTrackerModule).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 object;
var Avatar;
var defaultImport4;
var items2;
const Text = (TextModule).Text;
var items3;
const intl = (IndexNativeModule).intl;
const t = (IndexNativeModule).t;
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 = (UseNavigationNativeModule).useNavigation();
const defaultImport = UseAnalyticsLocations;
const EDIT_CHANNEL_SYNCING = (AnalyticsLocation).EDIT_CHANNEL_SYNCING;
const analyticsLocations = defaultImport(EDIT_CHANNEL_SYNCING).analyticsLocations;
const analyticsLocations2 = analyticsLocations;
const value6 = (require(6777) /* metro dependency 6777: useGetOrFetchApplications */).useGetOrFetchApplication(channel.linkedLobby?.application_id);
const value7 = (UseChannelName)(channel, true);
const linked_at = channel.linkedLobby?.linked_at;
const user = (FluxModule).useStateFromStores([UserStore], _fun116357);
let binding = analyticsLocations2;
let useCallback = binding.useCallback;
const value10 = (importDefault(12134) /* metro dependency 12134: useShowUnlinkChannelAlert */)(channel.id,
value6?.name ?? '', Reflect.apply(useCallback, binding, [_fun116358, [value4, numScreensToPop]]));
binding = analyticsLocations2;
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 = [