Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
1478 lines
61 KiB
TypeScript
1478 lines
61 KiB
TypeScript
// Module ID: 16938
|
|
// Function ID: 16939
|
|
// Name: VibegrationsStandaloneScreen
|
|
// Dependencies: [32, 5, 19, 17, 5015, 2105, 2063, 4427, 16939, 16941, 13390, 9341, 1074, 2048, 9346, 21, 4788, 576, 1101, 7440, 1115, 3710, 7909, 5854, 1397, 16942, 8213, 1612, 1484, 504, 5306, 4755, 16943, 16950, 16952, 16957, 7472, 11245, 16959, 16960, 4784, 5218, 9342, 16961, 4470, 4380, 5936, 7258, 16963, 16965, 9348, 16967, 9344, 13212, 16966, 1478, 9922, 16968, 16989, 16990, 4486, 16991, 16993, 16994, 15379, 4485, 16995, 2019, 16996, 16969, 13216, 16998, 9517, 15842, 7654, 16055, 5873, 17001, 8206, 17002, 9923, 17023, 5308, 17066, 7277, 2]
|
|
// Exports: default
|
|
|
|
// Module 16938 (VibegrationsStandaloneScreen)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1115 */;
|
|
import AvatarUtilsDefault from "AvatarUtils" /* 1397 */;
|
|
import _modDef3710 from "module_3710" /* 3710 */;
|
|
import _modDef4380 from "module_4380" /* 4380 */;
|
|
import DateUtils from "DateUtils" /* 4470 */;
|
|
import ToastActionCreatorsDefault from "ToastActionCreators" /* 4486 */;
|
|
import ActionSheetActionCreators from "ActionSheetActionCreators" /* 4755 */;
|
|
import Text_Text from "Text/Text" /* 4784 */;
|
|
import TableRow from "TableRow" /* 5854 */;
|
|
import NavigatorHeader from "NavigatorHeader" /* 5873 */;
|
|
import ApplicationActionCreators from "ApplicationActionCreators" /* 7440 */;
|
|
import SettingsIcon from "SettingsIcon" /* 7654 */;
|
|
import MoreHorizontalIcon from "MoreHorizontalIcon" /* 8213 */;
|
|
import VibegrationsActionCreators from "VibegrationsActionCreators" /* 9342 */;
|
|
import UploadIcon from "UploadIcon" /* 9517 */;
|
|
import restartVibegrationsAppFramesDefault from "restartVibegrationsAppFrames" /* 13216 */;
|
|
import UndoIcon from "UndoIcon" /* 15379 */;
|
|
import WrenchIcon from "WrenchIcon" /* 15842 */;
|
|
import BugIcon from "BugIcon" /* 16055 */;
|
|
import VibegrationsCreateSheet from "VibegrationsCreateSheet" /* 16943 */;
|
|
import VibegrationsRemixSheet from "VibegrationsRemixSheet" /* 16950 */;
|
|
import vibegrationsProjectActions from "vibegrationsProjectActions" /* 16952 */;
|
|
import VibegrationsProjectSettingsSheet from "VibegrationsProjectSettingsSheet" /* 16957 */;
|
|
import VibegrationsPublishBlockedSheetDefault from "VibegrationsPublishBlockedSheet" /* 16989 */;
|
|
import vibegrationsPublishBlockedReason from "vibegrationsPublishBlockedReason" /* 16990 */;
|
|
import VibegrationsPublishNotesSheetDefault from "VibegrationsPublishNotesSheet" /* 16991 */;
|
|
import VibegrationsSettingsSheet from "VibegrationsSettingsSheet" /* 16993 */;
|
|
import VibegrationsConnectToolSheet from "VibegrationsConnectToolSheet" /* 16994 */;
|
|
import VibegrationsVersionHistorySheet from "VibegrationsVersionHistorySheet" /* 16995 */;
|
|
import VibegrationsRestorePointsSheet from "VibegrationsRestorePointsSheet" /* 16996 */;
|
|
import VibegrationsDebugSceneDefault from "VibegrationsDebugScene" /* 17066 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ApplicationStore from "ApplicationStore" /* 5015 */;
|
|
import GuildMemberStore from "GuildMemberStore" /* 2105 */;
|
|
import GuildStore from "GuildStore" /* 2063 */;
|
|
import PermissionStore from "PermissionStore" /* 4427 */;
|
|
import VibegrationsBuilderRouteStore from "VibegrationsBuilderRouteStore" /* 16941 */;
|
|
import VibegrationsConnectionStore_mod from "VibegrationsConnectionStore" /* 13390 */;
|
|
import VibegrationsProjectStore_mod from "VibegrationsProjectStore" /* 9341 */;
|
|
|
|
const VibegrationsCreateSheetDefault = VibegrationsCreateSheet;
|
|
const VibegrationsRemixSheetDefault = VibegrationsRemixSheet;
|
|
const VibegrationsProjectSettingsSheetDefault = VibegrationsProjectSettingsSheet;
|
|
const VibegrationsSettingsSheetDefault = VibegrationsSettingsSheet;
|
|
const VibegrationsConnectToolSheetDefault = VibegrationsConnectToolSheet;
|
|
const VibegrationsVersionHistorySheetDefault = VibegrationsVersionHistorySheet;
|
|
const VibegrationsRestorePointsSheetDefault = VibegrationsRestorePointsSheet;
|
|
|
|
const VibegrationsHeaderIconButtonDefault = tmp12(16942);
|
|
require = fn;
|
|
function ProjectRow(project) {
|
|
project = project.project;
|
|
({ onPress, onMore } = project);
|
|
let application_id = project.preview_application_id;
|
|
if (application_id == null) {
|
|
application_id = project.application_id;
|
|
}
|
|
const tmp = closure_35(0);
|
|
const data = ApplicationActionCreators.useApplication(application_id).data;
|
|
let formatToPlainStringResult;
|
|
if (null != project.updated_at) {
|
|
const intl = tmp2(1115).intl;
|
|
const obj2 = { time: null };
|
|
const _Date = Date;
|
|
const date = new Date(project.updated_at);
|
|
obj2.time = tmp2(7909).getRelativeTimestamp(date.getTime());
|
|
formatToPlainStringResult = intl.formatToPlainString(_modDef3710.oMDaqr, obj2);
|
|
const tmp2Result = tmp2(7909);
|
|
}
|
|
const obj3 = { label: project.name, subLabel: formatToPlainStringResult, icon: null, trailing: null, onPress: null };
|
|
const tmp11 = React5;
|
|
const obj4 = { id: application_id, icon: null, size: 64 };
|
|
let icon;
|
|
if (data != null) {
|
|
icon = data.icon;
|
|
}
|
|
obj4.icon = icon;
|
|
obj3.icon = __initData10(tmp11, { accessibilityIgnoresInvertColors: true, source: AvatarUtilsDefault.getApplicationIconSource(obj4), style: tmp.appIcon });
|
|
const obj7 = { IconComponent: null, onPress: null, accessibilityLabel: null };
|
|
const obj5 = { accessibilityIgnoresInvertColors: true, source: AvatarUtilsDefault.getApplicationIconSource(obj4), style: tmp.appIcon };
|
|
obj7.IconComponent = MoreHorizontalIcon.MoreHorizontalIcon;
|
|
obj7.onPress = onMore;
|
|
const intl2 = tmp2(1115).intl;
|
|
obj7.accessibilityLabel = intl2.string(util.t["UKOtz+"]);
|
|
obj3.trailing = __initData10(VibegrationsHeaderIconButtonDefault, obj7);
|
|
obj3.onPress = onPress;
|
|
return __initData10(TableRow.TableRow, obj3);
|
|
}
|
|
function ProjectList(guildId) {
|
|
guildId = guildId.guildId;
|
|
importDefault = undefined;
|
|
let navigation;
|
|
let onCreated;
|
|
const bottom = require("useSafeAreaInsets")().bottom;
|
|
const tmp3 = closure_35(0);
|
|
importDefault = tmp3;
|
|
navigation = guildId(navigation[28]).useNavigation();
|
|
let obj = guildId(navigation[28]);
|
|
let items = [VibegrationsProjectStore];
|
|
const stateFromStoresArray = guildId(navigation[29]).useStateFromStoresArray(items, () => VibegrationsProjectStore.getOwnedProjects(), []);
|
|
let obj2 = guildId(navigation[29]);
|
|
let items1 = [VibegrationsProjectStore];
|
|
const items2 = [guildId];
|
|
const stateFromStoresArray1 = guildId(navigation[29]).useStateFromStoresArray(items1, () => VibegrationsProjectStore.getSharedProjects(guildId), items2);
|
|
let obj3 = guildId(navigation[29]);
|
|
const items3 = [VibegrationsProjectStore];
|
|
const stateFromStores = guildId(navigation[29]).useStateFromStores(items3, () => VibegrationsProjectStore.getProjectsFetchState(), []);
|
|
const items4 = [stateFromStoresArray, guildId];
|
|
const memo = onCreated.useMemo(() => {
|
|
const found = stateFromStoresArray.filter((item) => guildId(navigation[30]).isVibegrationsProjectInGuild(item, closure_1_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 = onCreated.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 items6 = [navigation];
|
|
onCreated = onCreated.useCallback((projectId) => navigation.push(constants.CHAT, { projectId }), items6);
|
|
const items7 = [guildId, onCreated];
|
|
const callback1 = onCreated.useCallback(() => {
|
|
const obj2 = { key: VibegrationsCreateSheet.VIBEGRATIONS_CREATE_SHEET_KEY, content: __initData10(VibegrationsCreateSheetDefault, { guildId, onCreated }) };
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}, items7);
|
|
const items8 = [guildId, onCreated];
|
|
const memo2 = onCreated.useMemo(() => {
|
|
closure_0 = guildId;
|
|
closure_1 = callback;
|
|
return (arg0, arg1) => {
|
|
if (arg1 === closure_0) {
|
|
f120030(arg0);
|
|
} else {
|
|
guildId(navigation[18]).transitionTo(callback3.CHANNEL(arg1, projectGuildId.VIBEGRATIONS, arg0));
|
|
const obj = guildId(navigation[18]);
|
|
}
|
|
};
|
|
}, items8);
|
|
const items9 = [guildId, memo2];
|
|
const callback2 = onCreated.useCallback((project) => {
|
|
const obj2 = { key: VibegrationsRemixSheet.VIBEGRATIONS_REMIX_SHEET_KEY, content: __initData10(VibegrationsRemixSheetDefault, { project, currentGuildId: guildId, onRemixed: memo2 }) };
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}, items9);
|
|
const items10 = [guildId, onCreated, callback2];
|
|
closure_9 = onCreated.useCallback((project) => {
|
|
guildId = project;
|
|
const result = guildId(navigation[34]).vibegrationsProjectActions({
|
|
project,
|
|
guildId,
|
|
openChat() {
|
|
return callback(project.id);
|
|
},
|
|
onRemix() {
|
|
return callback2(closure_0);
|
|
},
|
|
onOpenSettings() {
|
|
const obj2 = { key: VibegrationsProjectSettingsSheet.VIBEGRATIONS_PROJECT_SETTINGS_SHEET_KEY, content: null };
|
|
const obj3 = { projectId: project.id, guildId: null };
|
|
let guild_id = project.guild_id;
|
|
const obj = ActionSheetActionCreators;
|
|
const tmp = __initData10;
|
|
if (guild_id == null) {
|
|
guild_id = guildId;
|
|
}
|
|
obj3.guildId = guild_id;
|
|
obj2.content = tmp(VibegrationsProjectSettingsSheetDefault, obj3);
|
|
return obj.showActionSheet(obj2);
|
|
}
|
|
});
|
|
let obj = guildId(navigation[34]);
|
|
let obj2 = {
|
|
project,
|
|
guildId,
|
|
openChat() {
|
|
return callback(project.id);
|
|
},
|
|
onRemix() {
|
|
return callback2(closure_0);
|
|
},
|
|
onOpenSettings() {
|
|
const obj2 = { key: VibegrationsProjectSettingsSheet.VIBEGRATIONS_PROJECT_SETTINGS_SHEET_KEY, content: null };
|
|
const obj3 = { projectId: project.id, guildId: null };
|
|
let guild_id = project.guild_id;
|
|
const obj = ActionSheetActionCreators;
|
|
const tmp = __initData10;
|
|
if (guild_id == null) {
|
|
guild_id = guildId;
|
|
}
|
|
obj3.guildId = guild_id;
|
|
obj2.content = tmp(VibegrationsProjectSettingsSheetDefault, obj3);
|
|
return obj.showActionSheet(obj2);
|
|
}
|
|
};
|
|
let obj3 = guildId(navigation[36]);
|
|
const result1 = obj3.showSimpleActionSheet({ key: "VibegrationsProjectActions", header: { title: project.name }, hasIcons: true, options: result.map((label) => ({ label: label.label, IconComponent: label.IconComponent, isDestructive: label.destructive, onPress: label.action })) });
|
|
}, items10);
|
|
const items11 = [navigation, callback1];
|
|
const effect = onCreated.useEffect(() => {
|
|
navigation.setOptions({
|
|
headerRight() {
|
|
const obj = { IconComponent: guildId(navigation[37]).PlusLargeIcon, onPress, accessibilityLabel: null };
|
|
const intl = guildId(navigation[20]).intl;
|
|
obj.accessibilityLabel = intl.string(guildId(navigation[20]).t.CumH4u);
|
|
return closure_2_32(closure_1(navigation[25]), obj);
|
|
}
|
|
});
|
|
}, items11);
|
|
const obj4 = guildId(navigation[29]);
|
|
let result = guildId(navigation[38]).recentVibegrationsChangelog("mobile");
|
|
let tmp15 = memo.length > 0;
|
|
const callback3 = onCreated.useCallback(() => {
|
|
const obj = guildId(navigation[31]);
|
|
obj.showActionSheet({ content: closure_1_32(closure_1(navigation[39]), {}), key: guildId(navigation[39]).VIBEGRATIONS_CHANGELOG_SHEET_KEY });
|
|
}, []);
|
|
if (!tmp15) {
|
|
tmp15 = memo1.length > 0;
|
|
}
|
|
if (tmp15) {
|
|
const obj6 = { style: tmp3.content, children: null };
|
|
const obj7 = { contentContainerStyle: null, scrollIndicatorInsets: null, keyboardShouldPersistTaps: "handled", children: null };
|
|
const items12 = [tmp3.listContent, ];
|
|
const obj8 = { paddingBottom: tmp(tmp2[17]).space.PX_8 + bottom };
|
|
items12[1] = obj8;
|
|
obj7.contentContainerStyle = items12;
|
|
const obj9 = { bottom };
|
|
obj7.scrollIndicatorInsets = obj9;
|
|
const items13 = [closure_32(tmp(tmp2[43]), {}), , , , ];
|
|
let tmp24Result = null;
|
|
if (result.length > 0) {
|
|
const obj10 = { style: tmp3.changelog, children: null };
|
|
const obj11 = { style: tmp3.sectionHeading, children: null };
|
|
const obj12 = { variant: "heading-md/bold", color: "text-default", children: null };
|
|
const intl3 = tmp4(tmp2[20]).intl;
|
|
obj12.children = intl3.string(tmp(tmp2[21]).x07mpp);
|
|
const items14 = [tmp22(tmp4(tmp2[40]).Text, obj12), ];
|
|
const obj13 = { variant: "text-sm/normal", color: "text-muted", children: null };
|
|
const intl4 = tmp4(tmp2[20]).intl;
|
|
obj13.children = intl4.string(tmp(tmp2[21]).h5CwHI);
|
|
items14[1] = tmp22(tmp4(tmp2[40]).Text, obj13);
|
|
obj11.children = items14;
|
|
const items15 = [tmp24(tmp23, obj11), , ];
|
|
const obj14 = {
|
|
style: tmp3.changelogEntries,
|
|
children: result.map((children) => {
|
|
const obj = { style: closure_1.changelogItem, children: null };
|
|
const items = [DateUtils.dateFormat(_modDef4380(children.date, "YYYY-MM-DD"), "LL"), ];
|
|
const tmp2 = closure_2_10;
|
|
let combined = null;
|
|
if (obj3.isVibegrationsChangelogEntryExclusive(children)) {
|
|
const intl = tmp3(1115).intl;
|
|
const _HermesInternal = HermesInternal;
|
|
combined = " \u00B7 " + intl.string(_modDef3710["CLX+p/"]);
|
|
}
|
|
items[1] = combined;
|
|
const items1 = [__initData11(Text_Text.Text, { variant: "text-xs/bold", color: "text-muted", children: items }), __initData10(Text_Text.Text, { variant: "text-sm/normal", color: "text-subtle", children: children.summary })];
|
|
obj.children = items1;
|
|
return __initData11(tmp2, obj, "" + children.date + "-" + children.summary);
|
|
})
|
|
};
|
|
items15[1] = tmp22(tmp23, obj14);
|
|
let tmp22Result = null;
|
|
if (tmp4Result.hasMoreVibegrationsChangelog("mobile")) {
|
|
const obj15 = { variant: "secondary", size: "sm", text: null, onPress: null };
|
|
const intl5 = tmp4(tmp2[20]).intl;
|
|
obj15.text = intl5.string(tmp(tmp2[21]).YWxThz);
|
|
obj15.onPress = callback3;
|
|
tmp22Result = tmp22(tmp4(tmp2[41]).Button, obj15);
|
|
}
|
|
items15[2] = tmp22Result;
|
|
obj10.children = items15;
|
|
tmp24Result = tmp24(tmp23, obj10);
|
|
tmp4Result = tmp4(tmp2[38]);
|
|
}
|
|
items13[1] = tmp24Result;
|
|
let tmp24Result3 = null;
|
|
if (memo.length > 0) {
|
|
const obj16 = { style: tmp3.section, children: null };
|
|
const obj17 = { style: tmp3.sectionHeading, children: null };
|
|
const obj18 = { variant: "heading-md/bold", color: "text-default", children: null };
|
|
const intl6 = tmp4(tmp2[20]).intl;
|
|
obj18.children = intl6.string(tmp(tmp2[21]).Bo5fE3);
|
|
const items16 = [tmp22(tmp4(tmp2[40]).Text, obj18), ];
|
|
const obj19 = { variant: "text-sm/normal", color: "text-muted", children: null };
|
|
const intl7 = tmp4(tmp2[20]).intl;
|
|
obj19.children = intl7.string(tmp(tmp2[21]).YnAFtT);
|
|
items16[1] = tmp22(tmp4(tmp2[40]).Text, obj19);
|
|
obj17.children = items16;
|
|
const items17 = [tmp24(tmp23, obj17), ];
|
|
const obj20 = {
|
|
hasIcons: true,
|
|
children: memo.map((project) => closure_1_32(ProjectRow, {
|
|
project,
|
|
onPress() {
|
|
return callback(project.id);
|
|
},
|
|
onMore() {
|
|
return closure_9(closure_0);
|
|
}
|
|
}, project.id))
|
|
};
|
|
items17[1] = tmp22(tmp4(tmp2[46]).TableRowGroup, obj20);
|
|
obj16.children = items17;
|
|
tmp24Result3 = tmp24(tmp23, obj16);
|
|
}
|
|
items13[2] = tmp24Result3;
|
|
let tmp24Result4 = null;
|
|
if (memo1.length > 0) {
|
|
const obj21 = { style: tmp3.section, children: null };
|
|
const obj22 = { style: tmp3.sectionHeading, children: null };
|
|
const obj23 = { variant: "heading-md/bold", color: "text-default", children: null };
|
|
const intl8 = tmp4(tmp2[20]).intl;
|
|
obj23.children = intl8.string(tmp(tmp2[21]).jrCnUc);
|
|
const items18 = [tmp22(tmp4(tmp2[40]).Text, obj23), ];
|
|
const obj24 = { variant: "text-sm/normal", color: "text-muted", children: null };
|
|
const intl9 = tmp4(tmp2[20]).intl;
|
|
obj24.children = intl9.string(tmp(tmp2[21])["1KEhDu"]);
|
|
items18[1] = tmp22(tmp4(tmp2[40]).Text, obj24);
|
|
obj22.children = items18;
|
|
const items19 = [tmp24(tmp23, obj22), ];
|
|
const obj25 = {
|
|
hasIcons: true,
|
|
children: memo1.map((project) => closure_1_32(ProjectRow, {
|
|
project,
|
|
onPress() {
|
|
return callback(project.id);
|
|
},
|
|
onMore() {
|
|
return closure_9(closure_0);
|
|
}
|
|
}, project.id))
|
|
};
|
|
items19[1] = tmp22(tmp4(tmp2[46]).TableRowGroup, obj25);
|
|
obj21.children = items19;
|
|
tmp24Result4 = tmp24(tmp23, obj21);
|
|
}
|
|
items13[3] = tmp24Result4;
|
|
items13[4] = null;
|
|
obj7.children = items13;
|
|
obj6.children = closure_33(closure_9, obj7);
|
|
return closure_32(closure_10, obj6);
|
|
} else {
|
|
const obj26 = { style: tmp3.centered, children: null };
|
|
if (null != stateFromStores) {
|
|
if ("loading" !== stateFromStores.type) {
|
|
if ("error" === stateFromStores.type) {
|
|
const obj27 = { style: tmp3.listError, children: null };
|
|
const obj28 = { variant: "text-md/normal", color: "text-muted", children: null };
|
|
let intl = tmp4(tmp2[20]).intl;
|
|
obj28.children = intl.string(tmp(tmp2[21])["IN/HRP"]);
|
|
const items20 = [tmp16(tmp4(tmp2[40]).Text, obj28), ];
|
|
const obj29 = { variant: "secondary", size: "sm", text: null, onPress: null };
|
|
const intl2 = tmp4(tmp2[20]).intl;
|
|
obj29.text = intl2.string(tmp(tmp2[21])["42EdIV"]);
|
|
obj29.onPress = function onPress() {
|
|
return VibegrationsActionCreators.listProjects(guildId);
|
|
};
|
|
items20[1] = tmp16(tmp4(tmp2[41]).Button, obj29);
|
|
obj27.children = items20;
|
|
let tmp16Result2 = closure_33(tmp17, obj27);
|
|
} else {
|
|
const obj30 = { style: tmp3.listError, children: null };
|
|
const obj31 = { variant: "text-md/normal", color: "text-muted", children: null };
|
|
const intl10 = tmp4(tmp2[20]).intl;
|
|
obj31.children = intl10.string(tmp(tmp2[21])["vqy+in"]);
|
|
const items21 = [tmp16(tmp4(tmp2[40]).Text, obj31), ];
|
|
const obj32 = { variant: "primary", size: "sm", text: null, onPress: null };
|
|
const intl11 = tmp4(tmp2[20]).intl;
|
|
obj32.text = intl11.string(tmp4(tmp2[20]).t.CumH4u);
|
|
obj32.onPress = callback1;
|
|
items21[1] = tmp16(tmp4(tmp2[41]).Button, obj32);
|
|
obj30.children = items21;
|
|
tmp16Result2 = closure_33(tmp17, obj30);
|
|
}
|
|
}
|
|
obj26.children = tmp16Result2;
|
|
tmp16(tmp17, obj26);
|
|
}
|
|
tmp16Result2 = tmp16(callback1, {});
|
|
}
|
|
}
|
|
function ChatScene(guildId) {
|
|
guildId = guildId.guildId;
|
|
const projectId = guildId.projectId;
|
|
let navigation;
|
|
previewAppId = undefined;
|
|
let data;
|
|
let availability;
|
|
setMode = undefined;
|
|
c14 = undefined;
|
|
let result1;
|
|
let onReviewPermissions;
|
|
c17 = undefined;
|
|
closure_18 = undefined;
|
|
let active;
|
|
let vibegrationsControlActive;
|
|
c21 = undefined;
|
|
let callback1;
|
|
let num2;
|
|
let activeIndex;
|
|
let setActiveIndex;
|
|
first1 = undefined;
|
|
closure_27 = undefined;
|
|
let callback3;
|
|
projectGuildId = undefined;
|
|
let callback4;
|
|
let stateFromStores3;
|
|
let callback5;
|
|
let memo1;
|
|
let callback6;
|
|
let callback7;
|
|
let ref;
|
|
let callback8;
|
|
let callback9;
|
|
let setting;
|
|
let callback10;
|
|
let callback11;
|
|
closure_42 = undefined;
|
|
let callback12;
|
|
let callback13;
|
|
let preview;
|
|
let memo2;
|
|
navigation = guildId(navigation[28]).useNavigation();
|
|
let tmp5 = callback7(projectId(navigation[47])({ includeKeyboardHeight: true }).insets.bottom);
|
|
_slicedToArray = tmp5;
|
|
let obj = guildId(navigation[28]);
|
|
let items = [first1];
|
|
const items1 = [projectId];
|
|
const stateFromStores = guildId(navigation[29]).useStateFromStores(items, () => {
|
|
let project = VibegrationsProjectStore.getProject(projectId);
|
|
if (project == null) {
|
|
project = null;
|
|
}
|
|
return project;
|
|
}, items1);
|
|
let obj2 = guildId(navigation[29]);
|
|
const items2 = [first1];
|
|
const items3 = [projectId];
|
|
const stateFromStoresObject = guildId(navigation[29]).useStateFromStoresObject(items2, () => {
|
|
const project = VibegrationsProjectStore.getProject(projectId);
|
|
const obj = { projectExists: null != project, projectName: null, projectGuildId: null, previewAppId: null, isOwner: null, canPublish: null };
|
|
let name;
|
|
if (project != null) {
|
|
name = project.name;
|
|
}
|
|
if (name == null) {
|
|
name = null;
|
|
}
|
|
obj.projectName = name;
|
|
let guild_id;
|
|
if (project != null) {
|
|
guild_id = project.guild_id;
|
|
}
|
|
if (guild_id == null) {
|
|
guild_id = null;
|
|
}
|
|
obj.projectGuildId = guild_id;
|
|
let prop;
|
|
if (project != null) {
|
|
prop = project.preview_application_id;
|
|
}
|
|
if (prop == null) {
|
|
prop = null;
|
|
}
|
|
obj.previewAppId = prop;
|
|
let tmp5 = null != project;
|
|
if (tmp5) {
|
|
tmp5 = closure_2_25(project);
|
|
}
|
|
obj.isOwner = tmp5;
|
|
let tmp7 = null != project;
|
|
if (tmp7) {
|
|
tmp7 = __initData4(project);
|
|
}
|
|
obj.canPublish = tmp7;
|
|
return obj;
|
|
}, items3);
|
|
const projectExists = stateFromStoresObject.projectExists;
|
|
const projectName = stateFromStoresObject.projectName;
|
|
({ projectGuildId, previewAppId } = stateFromStoresObject);
|
|
const isOwner = stateFromStoresObject.isOwner;
|
|
const canPublish = stateFromStoresObject.canPublish;
|
|
let obj3 = guildId(navigation[29]);
|
|
const items4 = [first1];
|
|
const items5 = [guildId];
|
|
const stateFromStores1 = guildId(navigation[29]).useStateFromStores(items4, () => {
|
|
const guildProjectsFetchState = VibegrationsProjectStore.getGuildProjectsFetchState(guildId);
|
|
let tmp2 = "unattempted" === guildProjectsFetchState;
|
|
if (!tmp2) {
|
|
tmp2 = "loading" === guildProjectsFetchState;
|
|
}
|
|
return tmp2;
|
|
}, items5);
|
|
let obj4 = guildId(navigation[29]);
|
|
const items6 = [first1];
|
|
const items7 = [projectId];
|
|
const stateFromStores2 = guildId(navigation[29]).useStateFromStores(items6, () => {
|
|
let integrationStatus = VibegrationsProjectStore.getIntegrationStatus(projectId);
|
|
if (integrationStatus == null) {
|
|
integrationStatus = null;
|
|
}
|
|
return integrationStatus;
|
|
}, items7);
|
|
let preview_ready;
|
|
if (stateFromStores2 != null) {
|
|
preview_ready = stateFromStores2.preview_ready;
|
|
}
|
|
let install_scope;
|
|
if (stateFromStores != null) {
|
|
install_scope = stateFromStores.install_scope;
|
|
}
|
|
if (install_scope == null) {
|
|
install_scope = null;
|
|
}
|
|
let obj5 = guildId(navigation[29]);
|
|
let application = guildId(navigation[19]).useApplication(previewAppId);
|
|
data = application.data;
|
|
const tmpResult = guildId(navigation[19]);
|
|
let obj6 = { applicationId: previewAppId, previewApplicationId: previewAppId, declaredActivity: null, installScope: null, ownerAuthorizationRevoked: null, mainCardOnly: true };
|
|
let has_activity;
|
|
if (stateFromStores2 != null) {
|
|
has_activity = stateFromStores2.has_activity;
|
|
}
|
|
obj6.declaredActivity = true === has_activity;
|
|
obj6.installScope = install_scope;
|
|
let prop;
|
|
if (stateFromStores2 != null) {
|
|
prop = stateFromStores2.owner_authorization_revoked;
|
|
}
|
|
obj6.ownerAuthorizationRevoked = true === prop;
|
|
const vibegrationsPreviewMode = guildId(navigation[48]).useVibegrationsPreviewMode(obj6);
|
|
availability = vibegrationsPreviewMode.availability;
|
|
({ activeMode, setMode } = vibegrationsPreviewMode);
|
|
({ widgetApplicationId, isResolving } = vibegrationsPreviewMode);
|
|
const tmpResult7 = guildId(navigation[48]);
|
|
let obj7 = { installScope: install_scope, previewReady: true === preview_ready, integrationInstalled: null, botPermissionsChanged: null };
|
|
let prop1;
|
|
if (stateFromStores2 != null) {
|
|
prop1 = stateFromStores2.integration_installed;
|
|
}
|
|
if (prop1 == null) {
|
|
prop1 = null;
|
|
}
|
|
obj7.integrationInstalled = prop1;
|
|
let prop2;
|
|
if (stateFromStores2 != null) {
|
|
prop2 = stateFromStores2.bot_permissions_changed;
|
|
}
|
|
obj7.botPermissionsChanged = true === prop2;
|
|
let result = guildId(navigation[49]).requiresPermissionReview(obj7);
|
|
c14 = result;
|
|
const items8 = [projectId];
|
|
const effect = projectExists.useEffect(() => {
|
|
const project = VibegrationsActionCreators.getProject(projectId);
|
|
project.catch(() => {
|
|
|
|
});
|
|
}, items8);
|
|
let tmp22 = null != previewAppId && null != projectId(navigation[50])(previewAppId);
|
|
const tmpResult8 = guildId(navigation[49]);
|
|
result1 = guildId(navigation[51]).vibegrationsInstallGuildId(stateFromStores, stateFromStores2, guildId);
|
|
const items9 = [result1, previewAppId, data, stateFromStores, projectId];
|
|
onReviewPermissions = obj11.useCallback(stateFromStores(function*(arg0, value) {
|
|
if (c5 === 2) {
|
|
c5 = 3;
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
} else if (tmp4 === 3) {
|
|
if (arg0 === 1) {
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
const obj3 = { value, done: true };
|
|
return obj3;
|
|
} else {
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} else {
|
|
try {
|
|
c5 = 2;
|
|
if (0 === c4) {
|
|
if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 3;
|
|
const obj5 = { value, done: true };
|
|
return obj5;
|
|
} else {
|
|
closure_3 = tmp2;
|
|
let tmp7 = null != stateFromStores;
|
|
if (tmp7) {
|
|
tmp7 = null != previewAppId;
|
|
}
|
|
if (tmp7) {
|
|
if (null == data) {
|
|
application = application(tmp2[19]).fetchApplication(previewAppId);
|
|
c4 = 1;
|
|
c5 = 1;
|
|
const obj6 = {
|
|
value: application.catch(() => {
|
|
|
|
}),
|
|
done: false
|
|
};
|
|
return obj6;
|
|
}
|
|
}
|
|
c5 = 3;
|
|
return { value: "HermesInternal", done: null };
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c5 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c5 = 3;
|
|
let obj = { value, done: true };
|
|
return obj;
|
|
}
|
|
const obj7 = { applicationId: closure_131_7, application: null, guildId: null, onClose: null };
|
|
let application3 = closure_131_11;
|
|
if (closure_131_11 == null) {
|
|
application3 = application2.getApplication(closure_131_7);
|
|
}
|
|
application = application3;
|
|
if (application3 == null) {
|
|
application = null;
|
|
}
|
|
obj7.application = application;
|
|
obj7.guildId = closure_131_15;
|
|
obj7.onClose = function onClose() {
|
|
const result = c0(16967).repairVibegrationsGuildHints(closure_1_4, closure_1_15);
|
|
const obj = c0(16967);
|
|
result.finally(() => application(9342).getProject(closure_1_1)).catch(() => {
|
|
|
|
});
|
|
};
|
|
let result = application3(tmp2[52]).openVibegrationsAppInstallModal(obj7);
|
|
const obj2 = application3(tmp2[52]);
|
|
} catch (tmp27) {
|
|
c5 = tmp;
|
|
throw tmp27;
|
|
}
|
|
}
|
|
}), items9);
|
|
const tmpResult9 = guildId(navigation[51]);
|
|
[tmp27, tmp28] = projectExists.useState(true);
|
|
c17 = tmp28;
|
|
let tmp29 = null;
|
|
if (null != stateFromStores2) {
|
|
tmp29 = tmp16;
|
|
}
|
|
const tmp26 = _slicedToArray(projectExists.useState(true), 2);
|
|
[tmp31, tmp32] = projectExists.useState(tmp29);
|
|
const tmp25Result3 = _slicedToArray(projectExists.useState(projectId), 2);
|
|
if (tmp25Result3[0] !== projectId) {
|
|
tmp25Result3[1](projectId);
|
|
tmp28(true);
|
|
tmp32(null);
|
|
}
|
|
let tmp37 = tmp16;
|
|
if (true === preview_ready) {
|
|
tmp37 = null != previewAppId;
|
|
}
|
|
if (tmp37) {
|
|
tmp37 = !isResolving;
|
|
}
|
|
if (tmp37) {
|
|
tmp37 = availability.modes.length > 0 || result;
|
|
const tmp38 = availability.modes.length > 0 || result;
|
|
}
|
|
let paneHidden = tmp37;
|
|
if (tmp37) {
|
|
paneHidden = !tmp27;
|
|
}
|
|
let hasItem = tmp37;
|
|
if (tmp37) {
|
|
hasItem = tmp22;
|
|
}
|
|
if (hasItem) {
|
|
hasItem = !result;
|
|
}
|
|
if (hasItem) {
|
|
let modes = availability.modes;
|
|
hasItem = modes.includes("frame");
|
|
}
|
|
let tmp40 = hasItem;
|
|
if (hasItem) {
|
|
tmp40 = paneHidden;
|
|
}
|
|
if (tmp40) {
|
|
tmp40 = "frame" === activeMode;
|
|
}
|
|
closure_18 = tmp40;
|
|
active = c17(projectId).active;
|
|
const tmp25Result = _slicedToArray(projectExists.useState(tmp29), 2);
|
|
vibegrationsControlActive = guildId(navigation[53]).useVibegrationsControlActive(projectId);
|
|
let intl = tmp(tmp2[20]).intl;
|
|
const tmp4Result = projectId(navigation[21]);
|
|
if (vibegrationsControlActive) {
|
|
let bfQ4Ki = tmp4Result.bfQ4Ki;
|
|
} else {
|
|
bfQ4Ki = active ? tmp4Result.rfNEHn : tmp4Result.lXcEa2;
|
|
}
|
|
const stringResult = intl.string(bfQ4Ki);
|
|
c21 = stringResult;
|
|
const items10 = [active, projectId];
|
|
callback1 = obj11.useCallback(() => {
|
|
if (active) {
|
|
value2(projectId);
|
|
} else {
|
|
__initData(projectId);
|
|
}
|
|
}, items10);
|
|
const items11 = [availability.modes];
|
|
const items12 = [availability.modes, setMode];
|
|
const memo = obj11.useMemo(() => {
|
|
let obj = { id: "chat", label: null, page: null };
|
|
const intl = util.intl;
|
|
obj.label = intl.string(_modDef3710.kWtsyP);
|
|
const items = [
|
|
obj,
|
|
...modes.map((id) => {
|
|
const obj = { id, label: guildId(navigation[54]).getPreviewModeLabel(id), page: null };
|
|
return obj;
|
|
})
|
|
];
|
|
modes = availability.modes;
|
|
return items;
|
|
}, items11);
|
|
const first = availability.modes[0];
|
|
let tmp48 = null != stateFromStores2;
|
|
const callback2 = obj11.useCallback((arg0) => {
|
|
React6.dismiss();
|
|
_undefined(null == availability.modes[arg0 - 1]);
|
|
if (null != availability.modes[arg0 - 1]) {
|
|
setMode(tmp2);
|
|
}
|
|
}, items12);
|
|
if (tmp48) {
|
|
tmp48 = tmp16 !== tmp31;
|
|
}
|
|
if (tmp48) {
|
|
if (tmp49) {
|
|
setMode(first);
|
|
tmp28(false);
|
|
}
|
|
tmp32(tmp16);
|
|
tmp49 = false === tmp31 && tmp16 && null != first && !result;
|
|
}
|
|
const tmpResult10 = guildId(navigation[53]);
|
|
const tmpResult11 = guildId(navigation[56]);
|
|
const segmentedControlState = tmpResult11.useSegmentedControlState({ items: memo, pageWidth: projectId(navigation[55])().width - 2 * ref, onSetActiveIndex: callback2 });
|
|
num2 = 0;
|
|
if (!tmp27) {
|
|
num2 = 0;
|
|
if (null != activeMode) {
|
|
const modes1 = availability.modes;
|
|
num2 = 1 + modes1.indexOf(activeMode);
|
|
}
|
|
}
|
|
activeIndex = segmentedControlState.activeIndex;
|
|
setActiveIndex = segmentedControlState.setActiveIndex;
|
|
const items13 = [num2, activeIndex, setActiveIndex];
|
|
const effect1 = obj11.useEffect(() => {
|
|
if (activeIndex.get() !== num2) {
|
|
setActiveIndex(tmp, false);
|
|
}
|
|
}, items13);
|
|
const items14 = [previewAppId];
|
|
const effect2 = obj11.useEffect(() => null != previewAppId ? (() => guildId(navigation[57]).leaveVibegrationsPreviewFrame(previewAppId)) : undefined, items14);
|
|
[first1, closure_27] = projectExists.useState(false);
|
|
const items15 = [guildId, onReviewPermissions, result, projectId, first1];
|
|
callback3 = obj11.useCallback(() => {
|
|
if (!first1) {
|
|
const project = VibegrationsProjectStore.getProject(projectId);
|
|
if (null != project) {
|
|
const integrationStatus = obj.getIntegrationStatus(tmp);
|
|
let preview_ready;
|
|
if (integrationStatus != null) {
|
|
preview_ready = integrationStatus.preview_ready;
|
|
}
|
|
if (true === preview_ready) {
|
|
if (c14) {
|
|
callback().catch(() => {
|
|
|
|
});
|
|
const promise9 = callback();
|
|
} else {
|
|
closure_27(true);
|
|
if ("user" !== project.install_scope) {
|
|
const promise5 = closure_2_20(tmp);
|
|
promise5.catch(() => {
|
|
|
|
});
|
|
const nextPromise = __initData(tmp).then((ok) => {
|
|
if (true !== ok.ok) {
|
|
const _Error = Error;
|
|
const intl = guildId(navigation[20]).intl;
|
|
const error = new Error(intl.string(projectId(navigation[21]).fNP6Cd));
|
|
throw error;
|
|
} else {
|
|
const result = guildId(navigation[42]).refreshPublishedProject(closure_1_1, { isPreview: false });
|
|
result.catch(() => {
|
|
|
|
});
|
|
}
|
|
});
|
|
const promise6 = __initData(tmp);
|
|
nextPromise.catch(() => {
|
|
|
|
}).finally(() => closure_1_27(false));
|
|
const catchPromise2 = nextPromise.catch(() => {
|
|
|
|
});
|
|
const tmp20 = require;
|
|
let guild_id = project.guild_id;
|
|
let obj2 = ActionSheetActionCreators;
|
|
const tmp22 = __initData10;
|
|
if (guild_id == null) {
|
|
guild_id = guildId;
|
|
}
|
|
const obj3 = { content: null, key: null };
|
|
const obj6 = { guildId: guild_id, applicationId: null, projectName: null, publish: null, initialDraft: null };
|
|
({ application_id: obj4.applicationId, name: obj4.projectName } = project);
|
|
obj6.publish = nextPromise;
|
|
obj6.initialDraft = promise5;
|
|
obj3.content = tmp22(VibegrationsPublishNotesSheetDefault, obj6);
|
|
obj3.key = tmp20(16991).VIBEGRATIONS_PUBLISH_NOTES_SHEET_KEY;
|
|
obj2.showActionSheet(obj3);
|
|
} else {
|
|
const nextPromise1 = __initData(tmp).then((ok) => {
|
|
if (true !== ok.ok) {
|
|
const _Error = Error;
|
|
const intl = guildId(navigation[20]).intl;
|
|
const error = new Error(intl.string(projectId(navigation[21]).fNP6Cd));
|
|
throw error;
|
|
} else {
|
|
const result = guildId(navigation[42]).refreshPublishedProject(closure_1_1, { isPreview: false });
|
|
result.catch(() => {
|
|
|
|
});
|
|
}
|
|
});
|
|
const promise = __initData(tmp);
|
|
nextPromise1.catch(() => {
|
|
|
|
}).finally(() => closure_1_27(false));
|
|
const catchPromise3 = nextPromise1.catch(() => {
|
|
|
|
});
|
|
nextPromise1.then(() => {
|
|
const obj2 = { key: "VIBEGRATIONS_PUBLISH_SUCCESS", content: null };
|
|
const intl = guildId(1115).intl;
|
|
obj2.content = intl.string(projectId(3710).wA0o0L);
|
|
projectId(4486).open(obj2);
|
|
}).catch((error) => {
|
|
if (error instanceof Error) {
|
|
let message = error.message;
|
|
} else {
|
|
const intl = guildId(1115).intl;
|
|
message = intl.string(projectId(3710).fNP6Cd);
|
|
}
|
|
projectId(4486).open({ key: "VIBEGRATIONS_PUBLISH_FAILED", content: message });
|
|
});
|
|
const nextPromise2 = nextPromise1.then(() => {
|
|
const obj2 = { key: "VIBEGRATIONS_PUBLISH_SUCCESS", content: null };
|
|
const intl = guildId(1115).intl;
|
|
obj2.content = intl.string(projectId(3710).wA0o0L);
|
|
projectId(4486).open(obj2);
|
|
});
|
|
}
|
|
}
|
|
} else {
|
|
VibegrationsPublishBlockedSheetDefault(vibegrationsPublishBlockedReason.VibegrationsPublishBlockedReason.NO_PREVIEW);
|
|
}
|
|
}
|
|
obj = VibegrationsProjectStore;
|
|
}
|
|
}, items15);
|
|
if (projectGuildId == null) {
|
|
projectGuildId = guildId;
|
|
}
|
|
const items16 = [projectId, projectGuildId];
|
|
callback4 = obj11.useCallback(() => {
|
|
const obj2 = { content: __initData10(VibegrationsProjectSettingsSheetDefault, { projectId, guildId: projectGuildId }), key: VibegrationsProjectSettingsSheet.VIBEGRATIONS_PROJECT_SETTINGS_SHEET_KEY };
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}, items16);
|
|
const obj8 = { items: memo, pageWidth: projectId(navigation[55])().width - 2 * ref, onSetActiveIndex: callback2 };
|
|
const items17 = [num2];
|
|
const items18 = [projectId];
|
|
stateFromStores3 = guildId(navigation[29]).useStateFromStores(items17, () => null != VibegrationsConnectionStore.getSettings(projectId), items18);
|
|
const items19 = [projectId];
|
|
callback5 = obj11.useCallback(() => {
|
|
const obj2 = { content: __initData10(VibegrationsSettingsSheetDefault, { projectId, isPreview: true }), key: VibegrationsSettingsSheet.VIBEGRATIONS_SETTINGS_SHEET_KEY };
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}, items19);
|
|
const items20 = [guildId, navigation];
|
|
memo1 = obj11.useMemo(() => {
|
|
closure_0 = guildId;
|
|
const f120030 = (projectId) => navigation.push(callback8.CHAT, { projectId });
|
|
return (arg0, arg1) => {
|
|
if (arg1 === closure_0) {
|
|
f120030(arg0);
|
|
} else {
|
|
guildId(navigation[18]).transitionTo(callback3.CHANNEL(arg1, projectGuildId.VIBEGRATIONS, arg0));
|
|
const obj = guildId(navigation[18]);
|
|
}
|
|
};
|
|
}, items20);
|
|
const items21 = [guildId, memo1, stateFromStores];
|
|
callback6 = obj11.useCallback(() => {
|
|
if (null != stateFromStores) {
|
|
const obj2 = { key: VibegrationsRemixSheet.VIBEGRATIONS_REMIX_SHEET_KEY, content: null };
|
|
const obj3 = { project: tmp, currentGuildId: guildId, onRemixed: memo1 };
|
|
obj2.content = __initData10(VibegrationsRemixSheetDefault, obj3);
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}
|
|
}, items21);
|
|
const items22 = [projectId];
|
|
callback7 = obj11.useCallback(() => {
|
|
const obj2 = { key: VibegrationsConnectToolSheet.VIBEGRATIONS_CONNECT_TOOL_SHEET_KEY, content: __initData10(VibegrationsConnectToolSheetDefault, { projectId }) };
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}, items22);
|
|
ref = obj11.useRef(false);
|
|
const items23 = [projectId];
|
|
callback8 = obj11.useCallback((sha) => {
|
|
if (!ref.current) {
|
|
tmp.current = true;
|
|
let obj2 = { key: "VIBEGRATIONS_VERSION_RESTORING", content: null, IconComponent: null };
|
|
let intl = util.intl;
|
|
obj2.content = intl.string(_modDef3710.pGFXZ0);
|
|
obj2.IconComponent = UndoIcon.UndoIcon;
|
|
ToastActionCreatorsDefault.open(obj2);
|
|
const promise = __initData2(projectId, sha.sha);
|
|
__initData2(projectId, sha.sha).then(() => {
|
|
const obj2 = { key: "VIBEGRATIONS_VERSION_RESTORED", content: null, IconComponent: null };
|
|
const intl = guildId(1115).intl;
|
|
obj2.content = intl.string(projectId(3710).u8g2Od);
|
|
obj2.IconComponent = guildId(15379).UndoIcon;
|
|
projectId(4486).open(obj2);
|
|
}, () => {
|
|
const intl = guildId(1115).intl;
|
|
guildId(4485).presentError(intl.string(projectId(3710).q6iZ84));
|
|
}).finally(() => {
|
|
ref.current = false;
|
|
});
|
|
const nextPromise = __initData2(projectId, sha.sha).then(() => {
|
|
const obj2 = { key: "VIBEGRATIONS_VERSION_RESTORED", content: null, IconComponent: null };
|
|
const intl = guildId(1115).intl;
|
|
obj2.content = intl.string(projectId(3710).u8g2Od);
|
|
obj2.IconComponent = guildId(15379).UndoIcon;
|
|
projectId(4486).open(obj2);
|
|
}, () => {
|
|
const intl = guildId(1115).intl;
|
|
guildId(4485).presentError(intl.string(projectId(3710).q6iZ84));
|
|
});
|
|
}
|
|
}, items23);
|
|
const items24 = [callback8, projectId];
|
|
callback9 = obj11.useCallback(() => {
|
|
const obj2 = { key: VibegrationsVersionHistorySheet.VIBEGRATIONS_VERSION_HISTORY_SHEET_KEY, content: __initData10(VibegrationsVersionHistorySheetDefault, { projectId, onRestore: callback8 }) };
|
|
ActionSheetActionCreators.showActionSheet(obj2);
|
|
}, items24);
|
|
const DeveloperMode = tmp(tmp2[67]).DeveloperMode;
|
|
setting = DeveloperMode.useSetting();
|
|
const items25 = [navigation, projectId];
|
|
callback10 = obj11.useCallback(() => navigation.push(constants.DEBUG, { projectId }), items25);
|
|
let install_scope1;
|
|
if (stateFromStores != null) {
|
|
install_scope1 = stateFromStores.install_scope;
|
|
}
|
|
const items26 = [install_scope1, projectId];
|
|
callback11 = obj11.useCallback(() => {
|
|
const obj2 = { key: VibegrationsRestorePointsSheet.VIBEGRATIONS_RESTORE_POINTS_SHEET_KEY, content: null };
|
|
const obj3 = { projectId, installScope: null };
|
|
let install_scope;
|
|
const obj = ActionSheetActionCreators;
|
|
const tmp = __initData10;
|
|
if (stateFromStores != null) {
|
|
install_scope = stateFromStores.install_scope;
|
|
}
|
|
if (install_scope == null) {
|
|
install_scope = null;
|
|
}
|
|
obj3.installScope = install_scope;
|
|
obj2.content = tmp(VibegrationsRestorePointsSheetDefault, obj3);
|
|
obj.showActionSheet(obj2);
|
|
}, items26);
|
|
const tmp71 = callback4(projectId(navigation[69])(previewAppId, stateFromStores3));
|
|
closure_42 = tmp71;
|
|
const items27 = [previewAppId];
|
|
callback12 = obj11.useCallback(() => {
|
|
if (null != previewAppId) {
|
|
restartVibegrationsAppFramesDefault(tmp);
|
|
}
|
|
}, items27);
|
|
const items28 = [navigation, projectId];
|
|
callback13 = obj11.useCallback(() => {
|
|
closure_2_19(projectId);
|
|
navigation.goBack();
|
|
}, items28);
|
|
const obj9 = { projectId, refreshApplicationId: null };
|
|
const modes2 = availability.modes;
|
|
const tmpResult12 = guildId(navigation[29]);
|
|
let tmp75 = null;
|
|
if (modes2.includes("widget")) {
|
|
tmp75 = null;
|
|
if ("unavailable-authorization-revoked" !== availability.profileState) {
|
|
tmp75 = widgetApplicationId;
|
|
}
|
|
}
|
|
obj9.refreshApplicationId = tmp75;
|
|
const tmp4Result1Result = projectId(navigation[71])(obj9);
|
|
preview = tmp4Result1Result;
|
|
const items29 = [canPublish, setting, guildId, callback13, callback5, callback7, callback10, callback4, callback6, callback11, callback9, callback3, callback12, stateFromStores3, isOwner, tmp71, tmp4Result1Result, stateFromStores];
|
|
memo2 = obj11.useMemo(() => {
|
|
const items = [];
|
|
if (canPublish) {
|
|
const obj = { label: null, IconComponent: null, action: null };
|
|
const intl = util.intl;
|
|
obj.label = intl.string(_modDef3710["5gU57O"]);
|
|
obj.IconComponent = UploadIcon.UploadIcon;
|
|
obj.action = callback3;
|
|
items.push(obj);
|
|
}
|
|
if (stateFromStores3) {
|
|
const obj2 = { label: null, IconComponent: null, action: null };
|
|
const intl2 = util.intl;
|
|
obj2.label = intl2.string(_modDef3710.gTMvzD);
|
|
obj2.IconComponent = WrenchIcon.WrenchIcon;
|
|
obj2.action = callback5;
|
|
items.push(obj2);
|
|
}
|
|
if (isOwner) {
|
|
const obj3 = { label: null, IconComponent: null, action: null };
|
|
const intl3 = util.intl;
|
|
obj3.label = intl3.string(_modDef3710["xhcY+n"]);
|
|
obj3.IconComponent = SettingsIcon.SettingsIcon;
|
|
obj3.action = callback4;
|
|
items.push(obj3);
|
|
}
|
|
if (setting) {
|
|
const obj4 = { label: null, IconComponent: null, action: null };
|
|
const intl4 = util.intl;
|
|
obj4.label = intl4.string(_modDef3710.KampIf);
|
|
obj4.IconComponent = BugIcon.BugIcon;
|
|
obj4.action = callback10;
|
|
items.push(obj4);
|
|
}
|
|
if (null != stateFromStores) {
|
|
const obj7 = { project: tmp33, guildId, onRemix: callback6, onConnectTool: callback7, onVersionHistory: callback9, onRestorePoints: callback11, onRefresh: null, onClose: null, preview: null };
|
|
let tmp34;
|
|
if (closure_42) {
|
|
tmp34 = callback12;
|
|
}
|
|
obj7.onRefresh = tmp34;
|
|
obj7.onClose = callback13;
|
|
obj7.preview = preview;
|
|
const result = vibegrationsProjectActions.vibegrationsProjectActions(obj7);
|
|
const iter = result[Symbol.iterator]();
|
|
const nextResult = iter.next();
|
|
while (iter !== undefined) {
|
|
let obj12 = { label: null, IconComponent: null, variant: null, action: null };
|
|
({ label: obj5.label, IconComponent: obj5.IconComponent } = nextResult);
|
|
let str2;
|
|
let tmp42 = nextResult;
|
|
if (true === nextResult.destructive) {
|
|
str2 = "destructive";
|
|
}
|
|
obj12.variant = str2;
|
|
obj12.action = tmp42.action;
|
|
let arr9 = items.push(obj12);
|
|
continue;
|
|
}
|
|
}
|
|
return items;
|
|
}, items29);
|
|
const items30 = [vibegrationsControlActive, active, stringResult, tmp40, callback1, navigation, memo2, projectExists, projectName, stateFromStores1, tmp5];
|
|
const effect3 = obj11.useEffect(() => {
|
|
if (projectName != null) {
|
|
const title = projectName;
|
|
let obj = {
|
|
headerTitle() {
|
|
return __initData10(NavigatorHeader.NavigatorHeader, { title });
|
|
},
|
|
headerRight() {
|
|
let tmp = null;
|
|
if (projectExists) {
|
|
let obj = { style: headerActions.headerActions, children: null };
|
|
if (!closure_1_18) {
|
|
items = [null, ];
|
|
const obj2 = {
|
|
items,
|
|
align: "below",
|
|
children(arg0) {
|
|
({ ref, onPress, accessibilityActions, onAccessibilityAction } = arg0);
|
|
const obj = { ref, IconComponent: title(8213).MoreHorizontalIcon, onPress, accessibilityLabel: null, accessibilityActions: null, onAccessibilityAction: null };
|
|
const intl = title(1115).intl;
|
|
obj.accessibilityLabel = intl.string(title(1115).t["UKOtz+"]);
|
|
obj.accessibilityActions = accessibilityActions;
|
|
obj.onAccessibilityAction = onAccessibilityAction;
|
|
return closure_1_32(closure_1_1(16942), obj);
|
|
}
|
|
};
|
|
items[1] = callback5(guildId(navigation[78]).ContextMenu, obj2);
|
|
obj.children = items;
|
|
tmp = tmp2(tmp3, obj);
|
|
} else {
|
|
let obj3 = navigation;
|
|
if (active) {
|
|
let VibegrationsSelectModeActiveIcon = guildId(obj3[77]).VibegrationsSelectModeActiveIcon;
|
|
} else {
|
|
VibegrationsSelectModeActiveIcon = tmp8(obj3[77]);
|
|
}
|
|
obj3 = { IconComponent: VibegrationsSelectModeActiveIcon, onPress, accessibilityLabel, accessibilityState: null, disabled: null };
|
|
const obj4 = { selected: active };
|
|
obj3.accessibilityState = obj4;
|
|
obj3.disabled = disabled;
|
|
callback5(projectId(navigation[25]), obj3);
|
|
tmp8 = projectId;
|
|
const tmp9 = projectId(navigation[25]);
|
|
}
|
|
}
|
|
return tmp;
|
|
}
|
|
};
|
|
navigation.setOptions(obj);
|
|
} else {
|
|
let tmp2 = navigation;
|
|
if (!projectExists) {
|
|
if (!stateFromStores1) {
|
|
let Xmvb23 = projectId(tmp2[21]).F2dRba;
|
|
}
|
|
tmp3(Xmvb23);
|
|
}
|
|
tmp2 = projectId(tmp2[21]);
|
|
Xmvb23 = tmp2.Xmvb23;
|
|
}
|
|
}, items30);
|
|
const items31 = [guildId, projectId];
|
|
const effect4 = obj11.useEffect(() => {
|
|
const result = VibegrationsActionCreators.setSelectedProjectForGuild(guildId, projectId);
|
|
return () => guildId(navigation[42]).setSelectedProjectForGuild(closure_1_0, null);
|
|
}, items31);
|
|
const items32 = [projectId];
|
|
const effect5 = obj11.useEffect(() => () => projectId(navigation[79])(closure_1_1), items32);
|
|
if (projectExists) {
|
|
if (paneHidden) {
|
|
if ("bot" === activeMode) {
|
|
let content = tmp5.contentBare;
|
|
}
|
|
const obj10 = { style: content, children: null };
|
|
let tmp89 = null;
|
|
if (tmp37) {
|
|
let obj12 = { style: tmp5.segments, children: null };
|
|
const obj13 = { state: segmentedControlState, variant: "experimental_Small" };
|
|
obj12.children = callback5(tmp(tmp2[80]).SegmentedControl, obj13);
|
|
tmp89 = callback5(tmp88, obj12);
|
|
}
|
|
const items33 = [tmp89, ];
|
|
const obj14 = { style: tmp5.panes, children: null };
|
|
let tmp92Result = null;
|
|
if (hasItem) {
|
|
tmp92Result = null;
|
|
if (null != previewAppId) {
|
|
const obj15 = { style: tmp40 ? tmp5.pane : tmp5.paneBackstage, pointerEvents: null, accessibilityElementsHidden: null, importantForAccessibility: null, children: null };
|
|
let str5 = "none";
|
|
if (tmp40) {
|
|
str5 = "auto";
|
|
}
|
|
obj15.pointerEvents = str5;
|
|
obj15.accessibilityElementsHidden = !tmp40;
|
|
let str6 = "no-hide-descendants";
|
|
if (tmp40) {
|
|
str6 = "auto";
|
|
}
|
|
obj15.importantForAccessibility = str6;
|
|
const obj16 = { applicationId: previewAppId, projectId, visible: tmp40 };
|
|
obj15.children = callback5(tmp(tmp2[57]).PreviewFrame, obj16);
|
|
tmp92Result = tmp92(tmp88, obj15);
|
|
}
|
|
}
|
|
const items34 = [tmp92Result, , ];
|
|
let tmp94Result = null;
|
|
if (paneHidden) {
|
|
tmp94Result = null;
|
|
if (null != previewAppId) {
|
|
tmp94Result = null;
|
|
if (!tmp40) {
|
|
const obj17 = { style: tmp5.pane, children: null };
|
|
const obj18 = { projectId, previewApplicationId: previewAppId, mode: activeMode, availability, widgetApplicationId, frameHostAvailable: tmp22, permissionsGate: null };
|
|
let tmp96 = null;
|
|
if (result) {
|
|
const obj19 = { onReviewPermissions, loading: application.isLoading };
|
|
tmp96 = obj19;
|
|
}
|
|
obj18.permissionsGate = tmp96;
|
|
obj17.children = callback5(tmp4(tmp2[57]), obj18);
|
|
tmp94Result = tmp94(tmp88, obj17);
|
|
const tmp4Result4 = tmp4(tmp2[57]);
|
|
}
|
|
}
|
|
}
|
|
items34[1] = tmp94Result;
|
|
const items35 = [tmp5.pane, ];
|
|
if (paneHidden) {
|
|
paneHidden = tmp5.paneHidden;
|
|
}
|
|
const obj20 = { style: null, children: null };
|
|
items35[1] = paneHidden;
|
|
obj20.style = items35;
|
|
const obj21 = { projectId };
|
|
obj20.children = callback5(tmp4(tmp2[81]), obj21);
|
|
items34[2] = callback5(tmp88, obj20);
|
|
obj14.children = items34;
|
|
items33[1] = tmp87(tmp88, obj14);
|
|
obj10.children = items33;
|
|
let tmp81Result1 = tmp87(tmp88, obj10);
|
|
}
|
|
content = tmp5.content;
|
|
} else {
|
|
const obj22 = { style: null, children: null };
|
|
const items36 = [, ];
|
|
({ content: arr35[0], centered: arr35[1] } = tmp5);
|
|
obj22.style = items36;
|
|
if (stateFromStores1) {
|
|
let tmp81Result = tmp81(projectName, {});
|
|
} else {
|
|
const obj23 = { style: tmp5.listError, children: null };
|
|
const obj24 = { variant: "heading-lg/semibold", color: "text-default", children: null };
|
|
let intl2 = tmp(tmp2[20]).intl;
|
|
obj24.children = intl2.string(tmp4(tmp2[21]).F2dRba);
|
|
const items37 = [tmp81(tmp(tmp2[40]).Text, obj24), , ];
|
|
const obj25 = { variant: "text-md/normal", color: "text-muted", children: null };
|
|
let intl3 = tmp(tmp2[20]).intl;
|
|
obj25.children = intl3.string(tmp4(tmp2[21]).GnEJ3o);
|
|
items37[1] = tmp81(tmp(tmp2[40]).Text, obj25);
|
|
const obj26 = { variant: "secondary", size: "sm", text: null, onPress: null };
|
|
let intl4 = tmp(tmp2[20]).intl;
|
|
obj26.text = intl4.string(tmp4(tmp2[21])["42EdIV"]);
|
|
obj26.onPress = function onPress() {
|
|
return VibegrationsActionCreators.listProjects(guildId);
|
|
};
|
|
items37[2] = tmp81(tmp(tmp2[41]).Button, obj26);
|
|
obj23.children = items37;
|
|
tmp81Result = memo1(tmp82, obj23);
|
|
}
|
|
obj22.children = tmp81Result;
|
|
tmp81Result1 = tmp81(tmp82, obj22);
|
|
}
|
|
return tmp81Result1;
|
|
}
|
|
function RoutedProjectOpener(projectId) {
|
|
projectId = projectId.projectId;
|
|
const sceneProjectId = projectId.sceneProjectId;
|
|
const openedProjectIdRef = projectId.openedProjectIdRef;
|
|
const navigation = projectId(openedProjectIdRef[28]).useNavigation();
|
|
const items = [projectId, sceneProjectId, openedProjectIdRef, navigation];
|
|
const effect = noop.useEffect(() => {
|
|
let tmp2 = null != projectId;
|
|
if (tmp2) {
|
|
tmp2 = tmp !== openedProjectIdRef.current;
|
|
}
|
|
if (tmp2) {
|
|
openedProjectIdRef.current = tmp;
|
|
if (tmp !== sceneProjectId) {
|
|
const obj = { projectId: tmp };
|
|
navigation.push(constants.CHAT, obj);
|
|
}
|
|
}
|
|
}, items);
|
|
return null;
|
|
}
|
|
get_ActivityIndicator = fn(17);
|
|
({ ActivityIndicator: metroRequire, Image: closure_7, Keyboard: closure_8, ScrollView: closure_9, View: c10 } = get_ActivityIndicator);
|
|
const vibegrationsDesignFeedbackStore = fn(16939);
|
|
({ enterVibegrationsDesignFeedback: closure_15, exitVibegrationsDesignFeedback: closure_16, useVibegrationsDesignFeedback: closure_17 } = vibegrationsDesignFeedbackStore);
|
|
let VibegrationsConnectionStore = fn(13390);
|
|
({ closeConnection: closure_19, draftPatchNotes: closure_20, publishProject: closure_21, restoreSourceHistoryEntry: closure_22 } = VibegrationsConnectionStore);
|
|
let VibegrationsConnectionStore = VibegrationsConnectionStore_mod;
|
|
let VibegrationsProjectStore = fn(9341);
|
|
({ canPublishProject: closure_24, isProjectOwner: closure_25 } = VibegrationsProjectStore);
|
|
let VibegrationsProjectStore = VibegrationsProjectStore_mod;
|
|
const Constants = fn(1074);
|
|
({ Permissions: closure_27, Routes: closure_28 } = Constants);
|
|
const StaticChannelRoute = fn(2048).StaticChannelRoute;
|
|
const FramesConstants = fn(9346);
|
|
({ isLaunched: closure_30, MAIN_SURFACE: items } = FramesConstants);
|
|
const jsxProd = fn(21);
|
|
({ jsx: closure_32, jsxs: closure_33, Fragment: closure_34 } = jsxProd);
|
|
const createStyles = fn(4788);
|
|
let closure_35 = createStyles.createStyles((paddingBottom) => {
|
|
const obj = { content: { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, paddingBottom }, contentBare: null, centered: null, listContent: null, section: null, sectionHeading: null, changelog: null, changelogEntries: null, changelogItem: null, appIcon: null, listError: null, headerActions: null, segments: null, panes: null, pane: null, paneHidden: null, paneBackstage: null };
|
|
const obj2 = { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW, paddingBottom };
|
|
obj.contentBare = { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
|
|
const obj3 = { flex: 1, backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOW };
|
|
obj.centered = { flex: 1, alignItems: "center", justifyContent: "center", padding: nativeDefault.space.PX_24 };
|
|
const obj4 = { flex: 1, alignItems: "center", justifyContent: "center", padding: nativeDefault.space.PX_24 };
|
|
obj.listContent = { paddingVertical: nativeDefault.space.PX_8, paddingHorizontal: nativeDefault.space.PX_16, gap: nativeDefault.space.PX_24 };
|
|
const obj5 = { paddingVertical: nativeDefault.space.PX_8, paddingHorizontal: nativeDefault.space.PX_16, gap: nativeDefault.space.PX_24 };
|
|
obj.section = { gap: nativeDefault.space.PX_8 };
|
|
const obj6 = { gap: nativeDefault.space.PX_8 };
|
|
obj.sectionHeading = { gap: nativeDefault.space.PX_4 };
|
|
const obj7 = { gap: nativeDefault.space.PX_4 };
|
|
obj.changelog = { gap: nativeDefault.space.PX_16 };
|
|
const obj8 = { gap: nativeDefault.space.PX_16 };
|
|
obj.changelogEntries = { gap: nativeDefault.space.PX_12 };
|
|
const obj9 = { gap: nativeDefault.space.PX_12 };
|
|
obj.changelogItem = { gap: nativeDefault.space.PX_4 };
|
|
const size = { width: nativeDefault.space.PX_24, height: nativeDefault.space.PX_24, borderRadius: nativeDefault.radii.sm };
|
|
obj.appIcon = size;
|
|
const obj10 = { gap: nativeDefault.space.PX_4 };
|
|
obj.listError = { alignItems: "center", gap: nativeDefault.space.PX_12 };
|
|
const obj11 = { alignItems: "center", gap: nativeDefault.space.PX_12 };
|
|
obj.headerActions = { flexDirection: "row", alignItems: "center", gap: nativeDefault.space.PX_8 };
|
|
const obj12 = { flexDirection: "row", alignItems: "center", gap: nativeDefault.space.PX_8 };
|
|
obj.segments = { paddingHorizontal: nativeDefault.space.PX_16, paddingVertical: nativeDefault.space.PX_4 };
|
|
obj.panes = { flex: 1 };
|
|
obj.pane = { flex: 1 };
|
|
obj.paneHidden = { display: "none" };
|
|
obj.paneBackstage = { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, opacity: 0 };
|
|
return obj;
|
|
});
|
|
const PX_16 = nativeDefault.space.PX_16;
|
|
const constants2 = { PROJECTS: "PROJECTS", CHAT: "CHAT", DEBUG: "DEBUG" };
|
|
let size = fn(2);
|
|
let result = size.fileFinishedImporting("modules/vibegrations/native/VibegrationsStandaloneScreen.tsx");
|
|
|
|
export default function VibegrationsStandaloneScreen(guildId) {
|
|
guildId = guildId.guildId;
|
|
let stateFromStores;
|
|
noop = undefined;
|
|
const navigation = guildId(stateFromStores[28]).useNavigation();
|
|
let obj = guildId(stateFromStores[28]);
|
|
let items = [VibegrationsBuilderRouteStore];
|
|
const items1 = [guildId];
|
|
stateFromStores = guildId(stateFromStores[29]).useStateFromStores(items, () => {
|
|
const routedProjectId = VibegrationsBuilderRouteStore.getRoutedProjectId(guildId);
|
|
return routedProjectId;
|
|
}, items1);
|
|
let obj2 = guildId(stateFromStores[29]);
|
|
const items2 = [GuildStore];
|
|
const items3 = [guildId];
|
|
const stateFromStores1 = guildId(stateFromStores[29]).useStateFromStores(items2, () => GuildStore.getGuild(guildId), items3);
|
|
let obj3 = guildId(stateFromStores[29]);
|
|
const isVibegrationsGuildEnabled = guildId(stateFromStores[82]).useIsVibegrationsGuildEnabled({ guildId, location: "VibegrationsStandaloneScreen" });
|
|
const obj4 = guildId(stateFromStores[82]);
|
|
const items4 = [GuildMemberStore];
|
|
const items5 = [guildId];
|
|
const stateFromStoresArray = guildId(stateFromStores[29]).useStateFromStoresArray(items4, () => {
|
|
const selfMember = GuildMemberStore.getSelfMember(guildId);
|
|
let roles;
|
|
if (selfMember != null) {
|
|
roles = selfMember.roles;
|
|
}
|
|
if (roles == null) {
|
|
roles = [];
|
|
}
|
|
return roles;
|
|
}, items5);
|
|
const obj5 = guildId(stateFromStores[29]);
|
|
const items6 = [GuildStore, PermissionStore];
|
|
const items7 = [guildId];
|
|
const items8 = [
|
|
isVibegrationsGuildEnabled,
|
|
guildId,
|
|
stateFromStoresArray,
|
|
guildId(stateFromStores[29]).useStateFromStores(items6, () => {
|
|
const guild = GuildStore.getGuild(guildId);
|
|
let canResult = null != guild;
|
|
if (canResult) {
|
|
canResult = PermissionStore.can(constants.MANAGE_GUILD, guild);
|
|
}
|
|
return canResult;
|
|
}, items7)
|
|
];
|
|
const effect = noop.useEffect(() => {
|
|
if (isVibegrationsGuildEnabled) {
|
|
VibegrationsActionCreators.listProjects(guildId);
|
|
}
|
|
}, items8);
|
|
const items9 = [stateFromStores1, isVibegrationsGuildEnabled, navigation];
|
|
const effect1 = noop.useEffect(() => {
|
|
if (!tmp) {
|
|
navigation.goBack();
|
|
}
|
|
}, items9);
|
|
noop = noop.useRef(stateFromStores);
|
|
const obj7 = {};
|
|
const obj8 = { headerLeft: null, headerTitle: null, render: null };
|
|
const obj6 = guildId(stateFromStores[29]);
|
|
obj8.headerLeft = guildId(stateFromStores[76]).getHeaderCloseButton(() => navigation.goBack());
|
|
obj8.headerTitle = function headerTitle() {
|
|
const obj = { title: null };
|
|
const intl = guildId(stateFromStores[20]).intl;
|
|
obj.title = intl.string(navigation(stateFromStores[21]).Xmvb23);
|
|
return closure_1_32(guildId(stateFromStores[76]).NavigatorHeader, obj);
|
|
};
|
|
obj8.render = function render() {
|
|
const obj = { children: null };
|
|
const obj2 = { projectId: stateFromStores, sceneProjectId: "Array", openedProjectIdRef };
|
|
const items = [__initData10(RoutedProjectOpener, obj2), __initData10(ProjectList, { guildId })];
|
|
obj.children = items;
|
|
return __initData11(__initData12, obj);
|
|
};
|
|
obj7[constants2.PROJECTS] = obj8;
|
|
obj7[constants2.CHAT] = {
|
|
ignoreKeyboard: true,
|
|
render(projectId) {
|
|
projectId = projectId.projectId;
|
|
const obj = { children: null };
|
|
const items = [__initData10(RoutedProjectOpener, { projectId: stateFromStores, sceneProjectId: projectId, openedProjectIdRef }), __initData10(ChatScene, { guildId, projectId })];
|
|
obj.children = items;
|
|
return __initData11(__initData12, obj);
|
|
}
|
|
};
|
|
obj7[constants2.DEBUG] = {
|
|
headerTitle() {
|
|
const obj = { title: null };
|
|
const intl = guildId(stateFromStores[20]).intl;
|
|
obj.title = intl.string(navigation(stateFromStores[21]).KampIf);
|
|
return closure_1_32(guildId(stateFromStores[76]).NavigatorHeader, obj);
|
|
},
|
|
render(projectId) {
|
|
projectId = projectId.projectId;
|
|
const obj = { children: null };
|
|
const items = [__initData10(RoutedProjectOpener, { projectId: stateFromStores, sceneProjectId: projectId, openedProjectIdRef }), __initData10(VibegrationsDebugSceneDefault, { projectId })];
|
|
obj.children = items;
|
|
return __initData11(__initData12, obj);
|
|
}
|
|
};
|
|
const obj10 = {
|
|
screens: obj7,
|
|
initialRouteStack: stateFromStores1(noop.useState(() => {
|
|
const items = [{ name: constants.PROJECTS }];
|
|
if (null != stateFromStores) {
|
|
const obj2 = { name: tmp.CHAT, params: null };
|
|
const obj3 = { projectId: tmp2 };
|
|
obj2.params = obj3;
|
|
items.push(obj2);
|
|
}
|
|
return items;
|
|
}), 1)[0],
|
|
headerBackTitle: null
|
|
};
|
|
let intl = guildId(stateFromStores[20]).intl;
|
|
obj10.headerBackTitle = intl.string(navigation(stateFromStores[21]).Xmvb23);
|
|
return closure_32(guildId(stateFromStores[84]).Navigator, obj10);
|
|
};
|