// Block Type Registry
window.BlockTypeRegistry = ;
// Admin translations for JS
const RJ_LANG = ;
window.RJ_LANG = RJ_LANG;
window.RJ_AI_CATALOG = ;
window.RJ_AI_IMAGE_SERVICES = ;
window.RJ_AI_CAPS = ;
window.RJ_AI_FEATURES_ENABLED = ;
window.RJ_AI_COPILOT_AVAILABLE = ;
window.RJ_AI_COPILOT_MODE = 'dashboard';
window.RJ_AI_ASSISTANT_LANGUAGE = ;
window.RJ_ADMIN_API_URL = 'api.php';
window.RJ_AI_COPILOT_GET_CONTENT_PAGE = function() {
if (typeof currentPage === 'string' && currentPage) return currentPage;
var select = document.getElementById('pageSelect');
return select && select.value ? select.value : '';
};
// Menu registry for Page Settings nav checkboxes
window.RJ_MENUS = ;
const DASHBOARD_MODULES = ;
const AI_FEATURES_ENABLED = DASHBOARD_MODULES.ai !== false;
const AI_NOTICE_DISMISSED_KEY = 'raiju.aiUnavailableNotice.dismissed';
const AI_FEATURE_DEFAULTS = {
backendAssistant: true,
seoTextGeneration: true,
imageGeneration: true
};
function t(key, params) {
let s = RJ_LANG[key] || key;
if (params) { for (const [k, v] of Object.entries(params)) { s = s.replace('{' + k + '}', v); } }
return s;
}
function isDashboardModuleEnabled(tab) {
const keyByTab = { news: 'news', events: 'events', mails: 'messages', icons: 'iconManager', ai: 'ai' };
const key = keyByTab[tab];
if (!key) return true;
return DASHBOARD_MODULES[key] !== false;
}
// SVG icon paths (viewBox 0 0 24 24)
const ICONS = {
edit: '',
eye: '',
duplicate: '',
trash: '',
'eye-off': '',
back: '',
ai: '',
};
function icon(name, size = 16, strokeWidth = '1.5') {
return ``;
}
// Configuration
const CSRF_TOKEN = '';
const USER_ROLE = '';