// Module ID: 15910 // Function ID: 15911 // Name: ProjectList // Dependencies: [5, 32, 19, 17, 1910, 4024, 15911, 15914, 15912, 676, 8746, 21, 4668, 712, 1629, 1500, 589, 7252, 15918, 1236, 3404, 4739, 8131, 4750, 6317, 6322, 4972, 5446, 15917, 8742, 12753, 4662, 4346, 15921, 7981, 6928, 9865, 14424, 10162, 6345, 5437, 9040, 9997, 9452, 15923, 7253, 6343, 2] // Exports: default // Module 15910 (ProjectList) import ThemesDefault from "Themes" /* 712 */; import closure_3 from "asyncGeneratorStep" /* 5 */; import closure_4 from "_slicedToArray" /* 32 */; import closure_5 from "noop" /* 19 */; import get_ActivityIndicator from "get ActivityIndicator" /* 17 */; import closure_9 from "createGuildRecordFromRust" /* 1910 */; import closure_10 from "getUncachedChannelPermissions" /* 4024 */; import closure_11 from "newMessage" /* 15911 */; import rejectPendingPublish from "rejectPendingPublish" /* 15914 */; import closure_15 from "rejectPendingPublish" /* 15914 */; import closure_16 from "isProjectOwner" /* 15912 */; import { isProjectOwner } from "isProjectOwner" /* 15912 */; import { Permissions } from "ME" /* 676 */; import { MAIN_SURFACE } from "FrameLayoutModes" /* 8746 */; import jsxProd from "jsxProd" /* 21 */; import createCacheKey from "createCacheKey" /* 4668 */; const require = arg1; function ProjectList(guildId) { guildId = guildId.guildId; const canManageGuild = guildId.canManageGuild; let navigation; let stateFromStoresArray; let stateFromStoresArray1; let str; closure_6 = undefined; let first; closure_8 = undefined; c9 = undefined; const tmp3 = callback3(canManageGuild(navigation[14])().bottom); let obj = guildId(navigation[15]); navigation = obj.useNavigation(); obj1 = guildId(navigation[16]); const items = [closure_16]; stateFromStoresArray = obj1.useStateFromStoresArray(items, () => store.getOwnedProjects(), []); let obj2 = guildId(navigation[16]); const items1 = [closure_16]; const items2 = [guildId, canManageGuild]; stateFromStoresArray1 = obj2.useStateFromStoresArray(items1, () => { if (canManageGuild) { let sharedProjects = closure_1_16.getSharedProjects(guildId); } else { sharedProjects = []; } return sharedProjects; }, items2); let obj3 = guildId(navigation[16]); const items3 = [closure_16]; const stateFromStores = obj3.useStateFromStores(items3, () => store.getProjectsFetchState(), []); const items4 = [stateFromStoresArray, guildId]; const memo = str.useMemo(() => { const found = stateFromStoresArray.filter((guild_id) => closure_1_0(closure_1_2[17]).isVibegrationsProjectInGuild(guild_id, closure_0)); return found.sort((updated_at, updated_at2) => { let num = 1; if (null != updated_at.updated_at) { let num2 = -1; if (null != updated_at2.updated_at) { updated_at = updated_at2.updated_at; num2 = updated_at.localeCompare(updated_at.updated_at); } num = num2; } return num; }); }, items4); const items5 = [stateFromStoresArray1]; const memo1 = str.useMemo(() => { const substr = stateFromStoresArray1.slice(); return substr.sort((updated_at, updated_at2) => { let num = 1; if (null != updated_at.updated_at) { let num2 = -1; if (null != updated_at2.updated_at) { updated_at = updated_at2.updated_at; num2 = updated_at.localeCompare(updated_at.updated_at); } num = num2; } return num; }); }, items5); const tmp9 = stateFromStoresArray1(str.useState(""), 2); str = tmp9[0]; closure_6 = tmp10; const tmp11 = stateFromStoresArray1(str.useState(false), 2); first = tmp11[0]; closure_8 = tmp11[1]; [tmp14, c9] = stateFromStoresArray1(str.useState(null), 2); const items6 = [guildId, navigation, str, first]; let tmp16 = memo.length > 0; const callback = str.useCallback(stateFromStoresArray(function*() { if (c5 === 2) { c5 = 3; HermesBuiltin.throwTypeError(); } else if (tmp8 === 3) { if (arg0 === 1) { throw arg1; } else if (arg0 === 2) { let obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { return { value: "HermesInternal", done: null }; } } else { try { c5 = 2; if (0 === c4) { if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c5 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { closure_1 = tmp4; let trimmed = tmp6; trimmed = undefined; closure_1 = undefined; trimmed = c5.trim(); if ("" !== trimmed) { if (!closure_1_7) { closure_1_8(true); closure_1_9(null); c3 = 2; let obj2 = closure_1_0(arr[18]); obj1 = { guild_id: null }; obj1[0] = closure_1_0; c4 = 3; c5 = 1; obj2 = { value: null, done: false }; obj2[0] = obj2.createProject(obj1); return obj2; } } c5 = 3; } } else if (1 !== tmp9) { if (2 === tmp9) { c3 = 1; const _Error = Error; if (arr instanceof Error) { let message = arr.message; } else { const intl = closure_1_0(arr[19]).intl; message = intl.string(closure_1_1(arr[20]).KKkp5Y); } closure_9(message); const tmp32 = closure_9; } else if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c3 = 0; closure_1_8(false); c5 = 3; const obj3 = { value: null, done: true }; obj3[0] = arg1; return obj3; } else { closure_1 = arg1; closure_1_12(closure_1); closure_1_14(closure_1, trimmed); callback(""); obj = { projectId: null }; obj[0] = closure_1; arr = arr.push(closure_1_23.CHAT, obj); c3 = 1; c3 = 0; closure_1_8(false); } } c3 = 0; callback2(false); throw arr; } catch (tmp58) { arr = tmp58; if (tmp5 === c3) { c5 = tmp3; throw tmp58; } else if (tmp2 === tmp60) { c4 = tmp2; } else { c4 = tmp; } } } }), items6); if (!tmp16) { tmp16 = memo1.length > 0; } if (tmp16) { obj = { style: null, children: null }; obj[0] = tmp3.content; obj = { contentContainerStyle: null, children: null }; obj[0] = tmp3.listContent; obj1 = { style: null, children: null }; obj1[0] = tmp3.createSection; obj2 = { variant: "heading-md/bold", color: "text-default", children: null }; const intl2 = tmp4(tmp2[19]).intl; obj2[2] = intl2.string(tmp(tmp2[20])["2tYpRK"]); const items7 = [callback2(tmp4(tmp2[21]).Text, obj2), , , ]; obj3 = { placeholder: null, autoComplete: "off", value: null, onChange: null, isDisabled: null }; const intl3 = tmp4(tmp2[19]).intl; obj3[0] = intl3.string(tmp(tmp2[20]).TU9IGR); obj3[2] = str; obj3[3] = tmp10; obj3[4] = first; items7[1] = callback2(tmp4(tmp2[22]).TextArea, obj3); let tmp23Result = null; if (null != tmp14) { const obj4 = { variant: "text-xs/normal", color: "text-feedback-critical", children: null }; obj4[2] = tmp14; tmp23Result = tmp23(tmp4(tmp2[21]).Text, obj4); } items7[2] = tmp23Result; const obj5 = { variant: "primary", text: null, disabled: null, loading: null, onPress: null }; const intl4 = tmp4(tmp2[19]).intl; obj5[1] = intl4.string(tmp4(tmp2[19]).t.CumH4u); obj5[2] = "" === str.trim(); obj5[3] = first; obj5[4] = callback; items7[3] = callback2(tmp4(tmp2[23]).Button, obj5); obj1[1] = items7; const items8 = [closure_21(closure_8, obj1), , , ]; tmp23Result = null; if (memo.length > 0) { const obj6 = { hasIcons: false, children: null }; obj6[1] = memo.map((label) => { closure_0 = label; const obj = { label: label.name, subLabel: null, arrow: true, onPress: null }; let relativeTimestamp; if (null != label.updated_at) { const _Date = Date; const date = new Date(label.updated_at); relativeTimestamp = guildId(navigation[26]).getRelativeTimestamp(date.getTime()); const tmp2Result = guildId(navigation[26]); } obj[1] = relativeTimestamp; obj[3] = function onPress() { return closure_1_2.push(closure_2_23.CHAT, { projectId: label.id }); }; return closure_1_20(guildId(navigation[25]).TableRow, obj, label.id); }); tmp23Result = tmp23(tmp4(tmp2[24]).TableRowGroup, obj6); } items8[1] = tmp23Result; let tmp25Result = null; if (memo1.length > 0) { const obj7 = { style: null, children: null }; obj7[0] = tmp3.sharedSection; const obj8 = { style: null, children: null }; obj8[0] = tmp3.sharedHeading; const obj9 = { variant: "heading-md/bold", color: "text-default", children: null }; const intl5 = tmp4(tmp2[19]).intl; obj9[2] = intl5.string(tmp(tmp2[20]).jrCnUc); const items9 = [tmp23(tmp4(tmp2[21]).Text, obj9), ]; const obj10 = { variant: "text-sm/normal", color: "text-muted", children: null }; const intl6 = tmp4(tmp2[19]).intl; obj10[2] = intl6.string(tmp(tmp2[20])["1KEhDu"]); items9[1] = tmp23(tmp4(tmp2[21]).Text, obj10); obj8[1] = items9; const items10 = [tmp25(tmp24, obj8), ]; const obj11 = { hasIcons: false, children: null }; obj11[1] = memo1.map((label) => { closure_0 = label; const obj = { label: label.name, subLabel: null, arrow: true, onPress: null }; let relativeTimestamp; if (null != label.updated_at) { const _Date = Date; const date = new Date(label.updated_at); relativeTimestamp = guildId(navigation[26]).getRelativeTimestamp(date.getTime()); const tmp2Result = guildId(navigation[26]); } obj[1] = relativeTimestamp; obj[3] = function onPress() { return closure_1_2.push(closure_2_23.CHAT, { projectId: label.id }); }; return closure_1_20(guildId(navigation[25]).TableRow, obj, label.id); }); items10[1] = tmp23(tmp4(tmp2[24]).TableRowGroup, obj11); obj7[1] = items10; tmp25Result = tmp25(tmp24, obj7); } items8[2] = tmp25Result; items8[3] = null; obj[1] = items8; obj[1] = closure_21(first, obj); return callback2(closure_8, obj); } else { const obj12 = { style: null, children: null }; obj12[0] = tmp3.centered; let type; if (stateFromStores != null) { type = stateFromStores.type; } if ("loading" === type) { let tmp17Result = tmp17(closure_6, {}); } else { const obj13 = { variant: "text-md/normal", color: "text-muted", children: null }; let intl = tmp4(tmp2[19]).intl; obj13[2] = intl.string(tmp(tmp2[20])["vqy+in"]); tmp17Result = tmp17(tmp4(tmp2[21]).Text, obj13); } obj12[1] = tmp17Result; tmp17Result = tmp17(closure_8, obj12); const tmp18 = closure_8; } } function ChatScene(guildId) { guildId = guildId.guildId; const projectId = guildId.projectId; let navigation; let callback; let projectName; let previewAppId; let isOwner; let isPublic; let supportsVisibility; let stateFromStores2; callback = undefined; closure_11 = undefined; let callback1; closure_13 = undefined; let callback2; let callback3; let callback4; let memo; c18 = undefined; let obj = guildId(navigation[15]); navigation = obj.useNavigation(); const tmp5 = callback3(projectId(navigation[27])({ includeKeyboardHeight: true }).insets.bottom); callback = tmp5; let items = [callback4]; const items1 = [projectId]; const stateFromStoresObject = guildId(navigation[16]).useStateFromStoresObject(items, () => { const project = callback4.getProject(projectId); let name; if (project != null) { name = project.name; } if (name == null) { name = null; } const obj = { projectName: name, previewAppId: null, isOwner: null, isPublic: null, supportsVisibility: null }; let prop; if (project != null) { prop = project.preview_application_id; } if (prop == null) { prop = null; } obj[1] = prop; let tmp4 = null != project; if (tmp4) { tmp4 = memo(project); } obj[2] = tmp4; let isProjectPublicResult = null != project; if (isProjectPublicResult) { isProjectPublicResult = guildId(navigation[28]).isProjectPublic(project); const obj2 = guildId(navigation[28]); } obj[3] = isProjectPublicResult; let result = null != project; if (result) { result = guildId(navigation[28]).projectSupportsVisibility(project); const obj3 = guildId(navigation[28]); } obj[4] = result; return obj; }, items1); projectName = stateFromStoresObject.projectName; previewAppId = stateFromStoresObject.previewAppId; isOwner = stateFromStoresObject.isOwner; isPublic = stateFromStoresObject.isPublic; supportsVisibility = stateFromStoresObject.supportsVisibility; let obj2 = guildId(navigation[16]); const items2 = [callback4]; const items3 = [projectId]; const stateFromStores = guildId(navigation[16]).useStateFromStores(items2, () => { const integrationStatus = callback4.getIntegrationStatus(projectId); let preview_ready; if (integrationStatus != null) { preview_ready = integrationStatus.preview_ready; } return true === preview_ready; }, items3); let obj3 = guildId(navigation[16]); const items4 = [closure_11]; const items5 = [projectId]; const stateFromStores1 = guildId(navigation[16]).useStateFromStores(items4, () => projectUsage.getProjectUsage(projectId), items5); let obj4 = guildId(navigation[16]); const items6 = [callback3]; const items7 = [projectId]; stateFromStores2 = guildId(navigation[16]).useStateFromStores(items6, () => null != callback3.getModelSettings(projectId), items7); const items8 = [projectId]; const effect = previewAppId.useEffect(() => { const project = guildId(navigation[18]).getProject(projectId); project.catch(() => { }); }, items8); const items9 = [previewAppId]; callback = previewAppId.useCallback(() => { if (null != previewAppId) { let obj = projectId(navigation[29]); obj = { applicationId: null, surface: null }; obj[0] = tmp; obj[1] = closure_1_19; obj.launchFrame(obj).catch(() => { }); const launchFrameResult = obj.launchFrame(obj); } }, items9); closure_11 = tmp12; const items10 = [previewAppId]; callback1 = obj6.useCallback(() => { projectId(navigation[30])(previewAppId); }, items10); closure_13 = obj6.useRef(false); const items11 = [projectId]; callback2 = obj6.useCallback(callback(function*() { if (c5 === 2) { c5 = 3; HermesBuiltin.throwTypeError(); } else if (tmp8 === 3) { if (arg0 === 1) { throw arg1; } else if (arg0 === 2) { let obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { return { value: "HermesInternal", done: null }; } } else { try { c5 = 2; if (0 === showResult1) { if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c5 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else { let lib = tmp4; let project = tmp6; project = undefined; if (!closure_1_13.current) { let obj3 = closure_1_16; project = closure_1_16.getProject(lib); if (null != project) { const integrationStatus = obj3.getIntegrationStatus(lib); let preview_ready; if (integrationStatus != null) { preview_ready = integrationStatus.preview_ready; } if (true === preview_ready) { if (integrationStatus.integration_installed) { if (!integrationStatus.bot_permissions_changed) { closure_1_13.current = true; c3 = 2; showResult1 = 3; c5 = 1; obj1 = { value: null, done: false }; obj1[0] = closure_1_13(lib); return obj1; } } let obj5 = lib(closure_1_2[31]); const obj2 = { title: null, body: null }; const intl4 = closure_1_0(closure_1_2[19]).intl; obj2[0] = intl4.string(lib(closure_1_2[20]).DYwf2n); const intl5 = closure_1_0(closure_1_2[19]).intl; obj2[1] = intl5.string(lib(closure_1_2[20])["nDQB/b"]); obj5.show(obj2); } else { obj3 = { title: null, body: null }; const intl8 = closure_1_0(closure_1_2[19]).intl; obj3[0] = intl8.string(lib(closure_1_2[20])["+UouPe"]); showResult1 = closure_1_2; const intl9 = closure_1_0(closure_1_2[19]).intl; showResult1 = lib; showResult1 = closure_1_2; obj3[1] = intl9.string(lib(closure_1_2[20])["E0QD++"]); showResult1 = lib(closure_1_2[31]).show(obj3); const obj14 = lib(closure_1_2[31]); } } } c5 = 3; } } else if (1 !== tmp9) { if (2 === tmp9) { c3 = 1; lib = closure_2; obj1 = lib(closure_1_2[31]); let obj4 = { title: null, body: null }; const intl2 = closure_1_0(closure_1_2[19]).intl; obj4[0] = intl2.string(lib(closure_1_2[20]).fNP6Cd); const _Error2 = Error; if (lib instanceof Error) { let message = lib.message; } else { const intl3 = closure_1_0(closure_1_2[19]).intl; message = intl3.string(lib(closure_1_2[20]).fNP6Cd); } obj4[1] = message; obj4 = obj1.show(obj4); } else if (arg0 === 1) { c5 = 3; throw arg1; } else if (arg0 === 2) { c3 = 0; closure_1_13.current = false; c5 = 3; obj = { value: null, done: true }; obj[0] = arg1; return obj; } else if (true !== arg1.ok) { const _Error = Error; const intl = closure_1_0(closure_1_2[19]).intl; error = new Error(intl.string(lib(closure_1_2[20]).fNP6Cd)); throw error; } else { const result = closure_1_0(closure_1_2[18]).refreshPublishedProject(lib, { isPreview: false }); result.catch(() => { }); const obj10 = closure_1_0(closure_1_2[18]); obj5 = { title: null, body: null }; const intl6 = closure_1_0(closure_1_2[19]).intl; obj5[0] = intl6.string(lib(closure_1_2[20]).yzxKsU); const intl7 = closure_1_0(closure_1_2[19]).intl; const obj6 = { projectName: null }; obj6[0] = project.name; obj5[1] = intl7.formatToPlainString(lib(closure_1_2[20]).CC69wK, obj6); lib(closure_1_2[31]).show(obj5); c3 = 1; c3 = 0; closure_1_13.current = false; const obj11 = lib(closure_1_2[31]); } } c3 = 0; closure_13.current = false; throw closure_2; } catch (tmp62) { closure_2 = tmp62; if (tmp5 === c3) { c5 = tmp3; throw tmp62; } else if (tmp2 === tmp64) { showResult1 = tmp2; } } } }), items11); const items12 = [projectId]; callback3 = obj6.useCallback(() => { let obj = guildId(navigation[32]); obj = { content: closure_1_20(projectId(navigation[33]), obj), key: guildId(navigation[33]).VIBEGRATIONS_MODEL_SETTINGS_SHEET_KEY }; obj = { projectId }; obj.showActionSheet(obj); }, items12); const items13 = [projectId, isPublic]; callback4 = obj6.useCallback(() => { guildId(navigation[18]).setProjectVisibility(projectId, !isPublic); }, items13); const items14 = [callback3, callback2, callback1, callback4, stateFromStores2, isOwner, isPublic, supportsVisibility]; memo = obj6.useMemo(() => { const items = []; let tmp = isOwner; if (isOwner) { let obj = { label: null, IconComponent: null, action: null }; const intl = guildId(navigation[19]).intl; obj[0] = intl.string(projectId(navigation[20])["5gU57O"]); obj[1] = guildId(navigation[34]).UploadIcon; obj[2] = callback2; items.push(obj); } if (tmp) { tmp = supportsVisibility; } if (!tmp) { if (stateFromStores2) { obj = { label: null, IconComponent: null, action: null }; const intl3 = guildId(navigation[19]).intl; obj[0] = intl3.string(projectId(navigation[20])["2NWMqY"]); obj[1] = guildId(navigation[37]).FiltersHorizontalIcon; obj[2] = callback3; items.push(obj); } obj = { label: null, IconComponent: null, action: null }; const intl4 = guildId(navigation[19]).intl; obj[0] = intl4.string(projectId(navigation[20]).xKexN1); obj[1] = guildId(navigation[38]).RetryIcon; obj[2] = callback1; items.push(obj); return items; } else { const intl2 = guildId(navigation[19]).intl; const tmp15 = projectId(navigation[20]); obj1 = { label: null, IconComponent: null, action: null }; obj1[0] = intl2.string(isPublic ? tmp15.XC0HHn : tmp15["Hn/5vP"]); let tmp16Result = navigation; if (tmp12) { tmp16Result = tmp16(tmp16Result[35]); let GlobeEarthIcon = tmp16Result.LockIcon; } else { GlobeEarthIcon = tmp16(tmp16Result[36]).GlobeEarthIcon; } obj1[1] = GlobeEarthIcon; obj1[2] = callback4; obj1 = items.push(obj1); tmp12 = isPublic; } }, items14); let formatToPlainStringResult; if (null != stateFromStores1) { let intl = tmp(tmp2[19]).intl; obj = { runes: null }; const tmpResult = tmp(tmp2[28]); obj[0] = tmp(tmp2[28]).runesFromUsd(stateFromStores1.cost_usd).toLocaleString(); formatToPlainStringResult = intl.formatToPlainString(tmp4(tmp2[20])["4PFO2p"], obj); const runesFromUsdResult = tmp(tmp2[28]).runesFromUsd(stateFromStores1.cost_usd); } c18 = formatToPlainStringResult; const items15 = [callback, navigation, memo, projectName, formatToPlainStringResult, null != previewAppId && stateFromStores, tmp5]; const effect1 = obj6.useEffect(() => { let stringResult = projectName; if (projectName == null) { let intl = guildId(navigation[19]).intl; stringResult = intl.string(projectId(navigation[20]).Xmvb23); } guildId = stringResult; navigation.setOptions({ headerTitle() { return closure_2_20(guildId(navigation[39]).NavigatorHeader, { title: closure_0, subtitle: closure_1_18 }); }, headerRight() { let obj = { style: headerActions.headerActions, children: null }; let tmp3 = null; if (closure_11) { obj = { IconComponent: null, onPress: null, accessibilityLabel: null }; obj[0] = stringResult(closure_1_2[41]).PlayIcon; obj[1] = closure_10; let intl = stringResult(closure_1_2[19]).intl; obj[2] = intl.string(closure_1_1(closure_1_2[20]).ecod4C); tmp3 = closure_1_20(stringResult(closure_1_2[40]).HeaderActionButton, obj); } const items = [tmp3, ]; obj = { items: closure_17, align: "below", children(arg0) { ({ ref, onPress, accessibilityActions, onAccessibilityAction } = arg0); const obj = { ref, IconComponent: callback(9452).MoreHorizontalIcon, onPress, accessibilityLabel: null, accessibilityActions: null, onAccessibilityAction: null }; const intl = callback(1236).intl; obj[3] = intl.string(callback(1236).t["UKOtz+"]); obj[4] = accessibilityActions; obj[5] = onAccessibilityAction; return callback2(callback(5437).HeaderActionButton, obj); } }; items[1] = closure_1_20(stringResult(closure_1_2[42]).ContextMenu, obj); obj[1] = items; return closure_1_21(closure_1_8, obj); } }); }, items15); const items16 = [guildId, projectId]; const effect2 = obj6.useEffect(() => { const result = guildId(navigation[18]).setSelectedProjectForGuild(guildId, projectId); return () => closure_1_0(closure_1_2[18]).setSelectedProjectForGuild(closure_0, null); }, items16); obj = { style: tmp5.content, children: callback2(tmp4(tmp2[44]), { projectId }) }; return callback2(supportsVisibility, obj); } ({ ActivityIndicator: closure_6, ScrollView: error, View: closure_8 } = get_ActivityIndicator); ({ ensureConnection: closure_12, publishProject: map1, sendUserMessage: closure_14 } = rejectPendingPublish); ({ jsx: closure_20, jsxs: closure_21 } = jsxProd); let closure_22 = createCacheKey.createStyles((paddingBottom) => { let obj = { content: null, centered: null, listContent: null, createSection: null, sharedSection: null, sharedHeading: null, headerActions: null }; obj = { flex: 1, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, paddingBottom }; obj[0] = obj; obj = { flex: 1, alignItems: "center", justifyContent: "center", padding: ThemesDefault.space.PX_24 }; obj[1] = obj; obj[2] = { paddingVertical: ThemesDefault.space.PX_8, paddingHorizontal: ThemesDefault.space.PX_16, gap: ThemesDefault.space.PX_16 }; obj1 = { paddingVertical: ThemesDefault.space.PX_8, paddingHorizontal: ThemesDefault.space.PX_16, gap: ThemesDefault.space.PX_16 }; obj[3] = { gap: ThemesDefault.space.PX_8 }; const obj2 = { gap: ThemesDefault.space.PX_8 }; obj[4] = { gap: ThemesDefault.space.PX_8 }; const obj3 = { gap: ThemesDefault.space.PX_8 }; obj[5] = { gap: ThemesDefault.space.PX_4 }; const obj4 = { gap: ThemesDefault.space.PX_4 }; obj[6] = { flexDirection: "row", alignItems: "center", gap: ThemesDefault.space.PX_16 }; return obj; }); let closure_23 = { PROJECTS: "PROJECTS", CHAT: "CHAT" }; let result = require("set").fileFinishedImporting("modules/vibegrations/native/VibegrationsStandaloneScreen.tsx"); export default function VibegrationsStandaloneScreen(guildId) { guildId = guildId.guildId; let navigation; let stateFromStores; let isVibegrationsGuildEnabled; let stateFromStores1; let obj = guildId(stateFromStores[15]); navigation = obj.useNavigation(); obj1 = guildId(stateFromStores[16]); const items = [closure_9]; const items1 = [guildId]; stateFromStores = obj1.useStateFromStores(items, () => closure_1_9.getGuild(guildId), items1); isVibegrationsGuildEnabled = guildId(stateFromStores[45]).useIsVibegrationsGuildEnabled({ guildId, location: "VibegrationsStandaloneScreen" }); const obj3 = guildId(stateFromStores[45]); const items2 = [closure_9, closure_10]; const items3 = [guildId]; stateFromStores1 = guildId(stateFromStores[16]).useStateFromStores(items2, () => { const guild = closure_1_9.getGuild(guildId); let canResult = null != guild; if (canResult) { canResult = closure_1_10.can(closure_1_18.MANAGE_GUILD, guild); } return canResult; }, items3); const items4 = [isVibegrationsGuildEnabled, guildId, stateFromStores1]; const effect = React.useEffect(() => { if (isVibegrationsGuildEnabled) { guildId(stateFromStores[18]).listProjects(guildId); const obj = guildId(stateFromStores[18]); } }, items4); const items5 = [stateFromStores, isVibegrationsGuildEnabled, navigation]; const effect1 = React.useEffect(() => { if (!tmp) { navigation.goBack(); } }, items5); obj = {}; obj = { headerLeft: null, headerTitle: null, render: null }; const obj4 = guildId(stateFromStores[16]); obj[0] = guildId(stateFromStores[39]).getHeaderCloseButton(() => navigation.goBack()); obj[1] = function headerTitle() { const obj = { title: null }; const intl = guildId(stateFromStores[19]).intl; obj[0] = intl.string(navigation(stateFromStores[20]).Xmvb23); return callback(guildId(stateFromStores[39]).NavigatorHeader, obj); }; obj[2] = function render() { return closure_1_20(closure_1_24, { guildId, canManageGuild: stateFromStores1 }); }; obj[constants.PROJECTS] = obj; obj[constants.CHAT] = { ignoreKeyboard: true, render(projectId) { return closure_1_20(closure_1_25, { guildId, projectId: projectId.projectId }); } }; obj1 = { screens: obj, initialRouteName: constants.PROJECTS, headerBackTitle: null }; let intl = guildId(stateFromStores[19]).intl; obj1[2] = intl.string(navigation(stateFromStores[20]).Xmvb23); return callback2(guildId(stateFromStores[46]).Navigator, obj1); };