92 lines
2.8 KiB
TypeScript
92 lines
2.8 KiB
TypeScript
// Module ID: 16276
|
|
// Function ID: 16277
|
|
// Name: VibegrationsInstallTarget
|
|
// Dependencies: [5, 8493, 2]
|
|
// Exports: repairVibegrationsGuildHints, vibegrationsInstallGuildId
|
|
|
|
// Module 16276 (VibegrationsInstallTarget)
|
|
import VibegrationsActionCreators from "VibegrationsActionCreators" /* 8493 */;
|
|
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let obj = function _repairVibegrationsGuildHints() {
|
|
obj = _asyncToGenerator(async (arg0, arg1) => {
|
|
const guild_id = arg0;
|
|
let closure_1 = arg1;
|
|
let c3 = 0;
|
|
let c2 = 0;
|
|
return (async (arg0, value) => {
|
|
let obj2;
|
|
if (c2 === 2) {
|
|
c2 = 3;
|
|
throw new TypeError("Generator functions may not be called on executing generators");
|
|
} else if (tmp2 === 3) {
|
|
if (arg0 === 1) {
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
return { value, done: true };
|
|
} else {
|
|
return { value: "IconComponent", done: null };
|
|
}
|
|
} else {
|
|
try {
|
|
c2 = 2;
|
|
if (0 === c3) {
|
|
if (arg0 === 1) {
|
|
c2 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c2 = 3;
|
|
return { value, done: true };
|
|
} else {
|
|
const tmp4 = guild_id.guild_id === preview_guild_id && tmp11.preview_guild_id === tmp12;
|
|
if (!tmp4) {
|
|
c3 = 1;
|
|
c2 = 1;
|
|
const obj5 = { guild_id: preview_guild_id, preview_guild_id };
|
|
const obj6 = { value: obj2.setGuildHints(guild_id.id, obj5), done: false };
|
|
obj2 = VibegrationsActionCreators;
|
|
return obj6;
|
|
}
|
|
}
|
|
} else if (arg0 === 1) {
|
|
c2 = 3;
|
|
throw value;
|
|
} else if (arg0 === 2) {
|
|
c2 = 3;
|
|
return { value, done: true };
|
|
}
|
|
c2 = 3;
|
|
return { value: "IconComponent", done: null };
|
|
} catch (tmp7) {
|
|
c2 = 3;
|
|
throw tmp7;
|
|
}
|
|
}
|
|
})();
|
|
});
|
|
return obj(...arguments);
|
|
};
|
|
const result = size.fileFinishedImporting("modules/vibegrations/lib/VibegrationsInstallTarget.tsx");
|
|
|
|
export const vibegrationsInstallGuildId = function vibegrationsInstallGuildId(stateFromStores, stateFromStores2, guildId) {
|
|
let prop;
|
|
if (stateFromStores2 != null) {
|
|
prop = stateFromStores2.integration_installed;
|
|
}
|
|
let guild_id = guildId;
|
|
if (true === prop) {
|
|
let guild_id1;
|
|
if (stateFromStores != null) {
|
|
guild_id1 = stateFromStores.guild_id;
|
|
}
|
|
guild_id = guildId;
|
|
if (null != guild_id1) {
|
|
guild_id = stateFromStores.guild_id;
|
|
}
|
|
}
|
|
return guild_id;
|
|
};
|
|
export const repairVibegrationsGuildHints = function repairVibegrationsGuildHints() {
|
|
return obj(...arguments);
|
|
};
|