/** * Deprecated: use lt.toast.* directly (from web_template/base.js). * This shim maintains backwards compatibility while callers are migrated. */ // showToast() shim — used by inline view scripts function showToast(message, type = 'info', duration = 3500) { switch (type) { case 'success': lt.toast.success(message, duration); break; case 'error': lt.toast.error(message, duration); break; case 'warning': lt.toast.warning(message, duration); break; default: lt.toast.info(message, duration); break; } } // window.toast.* shim — used by JS files window.toast = { success: (msg, dur) => lt.toast.success(msg, dur), error: (msg, dur) => lt.toast.error(msg, dur), warning: (msg, dur) => lt.toast.warning(msg, dur), info: (msg, dur) => lt.toast.info(msg, dur), };