import { showToast } from '../utils/uiHelpers.js'; import { state } from '../state/index.js'; export function showLoraModal(lora) { const escapedWords = lora.civitai?.trainedWords?.length ? lora.civitai.trainedWords.map(word => word.replace(/'/g, '\\\'')) : []; const content = `
`; modalManager.showModal('loraModal', content); setupEditableFields(); setupShowcaseScroll(); setupTabSwitching(); // If we have a model ID but no description, fetch it if (lora.civitai?.modelId && !lora.modelDescription) { loadModelDescription(lora.civitai.modelId, lora.file_path); } } // Function to render showcase content function renderShowcaseContent(images) { if (!images?.length) return '