// static/js/eveai-sdk.js class EveAI { constructor(tenantId, apiKey, domain, language, languages) { this.tenantId = tenantId; this.apiKey = apiKey; this.domain = domain; this.language = language; this.languages = languages; console.log('EveAI constructor:', { tenantId, apiKey, domain, language, languages }); } initializeChat(containerId) { const container = document.getElementById(containerId); if (container) { container.innerHTML = ''; customElements.whenDefined('eveai-chat-widget').then(() => { const chatWidget = container.querySelector('eveai-chat-widget'); chatWidget.setAttribute('tenant-id', this.tenantId); chatWidget.setAttribute('api-key', this.apiKey); chatWidget.setAttribute('domain', this.domain); chatWidget.setAttribute('language', this.language); chatWidget.setAttribute('languages', this.languages); }); } else { console.error('Container not found'); } } }