`;const r=e.children[0];r.dataset.canReply=o?"1":"0",this.bindComposer(t),this.messageStore[t]||(this.messageStore[t]=new Set),uproot.api("chat_get",t).then(uproot.chat.messagesFromServer).then(()=>{r.classList.remove("hidden"),r.children[0].scroll(0,1e6)})},addMessage(e,t,n,o,s,r="text-primary"){this.messageStore[e]||(this.messageStore[e]=new Set);const a=uproot.escape(n),i=uproot.escape(o);if(this.messageStore[e].has(t))return;this.messageStore[e].add(t);const l=document.querySelector(`#messages-chat-${e}`);if(!l)return void console.error(`Chat messages list not found for chatId: ${e}`);const c=new Date(1e3*s),d=c.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),u=c.toISOString(),m=document.createElement("li");m.className="px-3 py-2 message-hover",m.innerHTML=`\n
\n ${a}\n \n
\n
${i}
\n `,l.appendChild(m),l.parentElement&&(l.parentElement.scrollTop=l.parentElement.scrollHeight)},sendMessage(e){const t=document.querySelector(`#message-input-chat-${e}`);if(!t)return void console.error(`Chat input not found for chatId: ${e}`);const n=t.value.trim();n&&(t.value="",window.uproot.api("chat_add",[e,n]))},messagesFromServer(e){e&&e.forEach(e=>{if(e.cname&&I(`chat-${e.cname}`)){let t=e.sender[1],n="text-success";"self"===e.sender[0]?(t=`${e.sender[1]} (${_("You")})`,n="text-primary"):"admin"===e.sender[0]&&(t=_("Research Coordinator"),n="text-danger"),window.uproot.chat.addMessage(e.cname,e.id,t,e.text,e.time,n)}})}}},"loading"===document.readyState?window.addEventListener("DOMContentLoaded",()=>{uproot._domContentLoaded=!0}):uproot._domContentLoaded=!0,window._=e=>{if(e in window.uproot.terms)return window.uproot.terms[e];const t=e.replace(/\s+/g," ").trim();return t in window.uproot.terms?window.uproot.terms[t]:(window.uproot.missing.add(e),window.uproot.verbose&&console.log(`Missing translation for: "${e}"`),e)},window.alert=e=>{window.uproot.alert(uproot.escape(e))},window.prompt=e=>window.uproot.prompt(uproot.escape(e)),window.I=e=>document.getElementById(e),uproot.onInternalEvent("Received",e=>{const t=e.detail;if(null===uproot.receive)throw new Error(`Please define uproot.receive(). Ignored data received from server: ${JSON.stringify(t.data)}`);uproot.receive(t.data)}),uproot.onInternalEvent("Chatted",e=>{if(!window.uproot.chat.ignoreChatted){const t=e.detail.data;if(t.sender&&"admin"===t.sender[0]){if(!I(`chat-${t.cname}`))return uproot.chat.create(I("adminmessage-modal-body"),t.cname,{canReply:!!t.can_reply}),uproot.ensureBuddy(),void uproot.adminMessage();uproot.chat.setReplyState(t.cname,!!t.can_reply),uproot.ensureBuddy(),uproot.adminMessage()}window.uproot.chat.messagesFromServer([t])}}),uproot.onInternalEvent("AdminMessaged",e=>{const t=e.detail;uproot.adminMessage(t.data)}),uproot.onInternalEvent("AdminTimeoutChanged",e=>{uproot.setPageTimeout(e.detail.data)}),uproot.onInternalEvent("AdminchatStateChanged",e=>{const t=e.detail.data;if(!t?.cname)return;let n=I(`chat-${t.cname}`);if(!n&&(t.canReply||t.hasMessages))return uproot.chat.create(I("adminmessage-modal-body"),t.cname,{canReply:!!t.canReply}),void uproot.ensureBuddy();if(n&&(uproot.chat.setReplyState(t.cname,!!t.canReply),!t.hasMessages&&!t.canReply&&(n.remove(),!document.querySelector(".uproot-chat")))){const e=I("uproot-buddy");e&&(e.hidden=!0)}});
diff --git a/src/uproot/default/Bare.html b/src/uproot/default/Bare.html
index ef0e51b..f5c9856 100644
--- a/src/uproot/default/Bare.html
+++ b/src/uproot/default/Bare.html
@@ -15,31 +15,32 @@
-{% if not (disable_bootstrap | default(false)) %}
+{% if not disable_bootstrap %}
{% endif %}
-{% if not (disable_uproot_fonts | default(false)) %}
+{% if not disable_uproot_fonts %}
-{% if not (disable_tabular_numbers | default(false)) %}
+{% if not disable_tabular_numbers %}
{% endif %}
{% endif %}
-{% if not (disable_terms | default(false)) %}
+{% if not disable_terms %}
{% endif %}
{% endif %}
-{% if not (disable_alpinejs | default(false)) %}
+{% if not disable_alpinejs %}
{% endif %}
@@ -140,7 +141,7 @@
-{% if not (disable_connection_lost_modal | default(false)) %}
+{% if not disable_connection_lost_modal %}
@@ -182,6 +183,7 @@
title="{% translate %}Open Chat with Research Coordinator{% endtranslate %}">
diff --git a/src/uproot/default/Base.html b/src/uproot/default/Base.html
index 07c99b0..cdc559f 100644
--- a/src/uproot/default/Base.html
+++ b/src/uproot/default/Base.html
@@ -14,7 +14,7 @@
{% block uproot_main_buttons %}
-{% if (buttons | default(true)) and not buttons_placed.placed %}
+{% if buttons and not buttons_placed.placed %}