// Module ID: 16977 // Function ID: 16978 // Name: VibegrationsInstallTarget // Dependencies: [5, 9340, 2] // Exports: repairVibegrationsGuildHints, vibegrationsInstallGuildId // Module 16977 (VibegrationsInstallTarget) import VibegrationsActionCreators from "VibegrationsActionCreators" /* 9340 */; import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */; require = fn; let closure_3 = async function _repairVibegrationsGuildHints(arg0, arg1) { let guild_id = arg0; closure_1 = arg1; c3 = 0; c2 = 0; return (async (arg0, value) => { if (c2 === 2) { c2 = 3; throw new TypeError("Generator functions may not be called on executing generators"); } else if (tmp3 === 3) { if (arg0 === 1) { throw value; } else if (arg0 === 2) { const obj3 = { value, done: true }; return obj3; } 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; const obj4 = { value, done: true }; return obj4; } else { let tmp5 = guild_id.guild_id === closure_1; if (tmp5) { tmp5 = tmp13.preview_guild_id === tmp14; } if (!tmp5) { const obj5 = { guild_id: tmp14, preview_guild_id: tmp14 }; c3 = 1; c2 = 1; const obj6 = { value: VibegrationsActionCreators.setGuildHints(tmp13.id, obj5), done: false }; return obj6; } } } else if (arg0 === 1) { c2 = 3; throw value; } else if (arg0 === 2) { c2 = 3; const obj = { value, done: true }; return obj; } c2 = 3; return { value: "IconComponent", done: null }; } catch (tmp8) { c2 = tmp; throw tmp8; } } })(); }; const size = fn(2); 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() { const self = this; const apply = closure_3.apply; if (typeof apply === "unknown") { let applyArgumentsResult = HermesBuiltin.applyArguments(self); } else { applyArgumentsResult = apply(self, arguments); } return applyArgumentsResult; };