1(self.webpackChunkpython_webpack_boilerplate=self.webpackChunkpython_webpack_boilerplate||[]).push([[566],{877:function(){const t=t=>new Promise((e=>setTimeout(e,t)));function e(){const t=document.getElementsByTagName("form");for(let e=0;e<t.length;e++)t[e].onkeydown=function(t){if(this.classList.contains("allow-enter-submit"))return!0;13===(t.charCode||t.keyCode||0)&&t.preventDefault()}}window.formSubmit=async function(e,a,s){const n=new FormData(a),o=new XMLHttpRequest;o.open("POST",e);try{o.send(n);try{await async function(){const e=document.getElementById("subscribe-block"),a=document.getElementById("subscribe-title"),s=document.getElementById("subscribe-subtitle"),n=document.getElementById("subscribe-form"),o=document.getElementById("subscribe-donate");e&&(e.style.height=e.offsetHeight+"px");const i=100;e&&a&&s&&n&&o?(a.classList.add("opacity-0","-translate-y-2"),o.style.display="block",await t(i),s.classList.add("opacity-0","-translate-y-2"),await t(i),n.remove(),await t(500),e.classList.remove("bg-gradient-to-t","from-lime-300","to-sky","bg-lime-300"),e.classList.add("bg-[#A7F3D0]"),a.textContent="Thanks for subscribing!",s.textContent="Donate to support our fight for abundant, affordable homes for all!",a.classList.remove("-translate-y-2"),s.classList.remove("-translate-y-2"),a.classList.add("opacity-0","translate-y-2"),s.classList.add("opacity-0","translate-y-2"),await t(50),e.style.height=null,a.classList.remove("opacity-0","translate-y-2"),await t(i),s.classList.remove("opacity-0","translate-y-2"),await t(i),o.classList.remove("opacity-0","translate-y-2")):e&&(e.style.height=null)}()}catch(t){console.error("Animation error:",t)}}catch(t){a.innerHTML="<div><span class='text-4xl font-bold tracking-tight block italic'>Something went wrong.</span></div>"}return!1},"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}},function(t){t(t.s=877)}]); 2//# sourceMappingURL=subscriptionForm.4f45702a.js.ebf5464e2f99.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.