"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderDynamicVoiceModule = renderDynamicVoiceModule; const api_js_1 = require("../../services/api.js"); const toast_js_1 = require("../../ui/toast.js"); async function renderDynamicVoiceModule(guildId) { const container = document.getElementById('module-dynamicvoice'); if (!container) return; container.innerHTML = '

Lade Dynamic Voice...

'; try { const data = await api_js_1.api.dynamicVoice(guildId); const cfg = data?.config || data?.dynamicVoiceConfig || {}; container.innerHTML = `

Dynamic Voice

Lobby: ${cfg.lobbyChannelId || '-'}

Template: ${cfg.template || '-'}

User-Limit: ${cfg.userLimit ?? '-'}

`; } catch (err) { console.error(err); container.innerHTML = '
Dynamic Voice konnte nicht geladen werden.
'; (0, toast_js_1.showToast)('Fehler beim Laden von Dynamic Voice', true); } }