(()=>{function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){"use strict";function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.field=e,this.field.addEventListener("input",this.autogrow.bind(this)),this.autogrow()}var i,n,o;return i=t,(n=[{key:"autogrow",value:function(){this.field.style.overflow="hidden",this.field.style.resize="none",this.field.style.boxSizing="border-box",this.field.style.height="auto",this.field.scrollHeight>0&&(this.field.style.height=this.field.scrollHeight+"px")}}])&&e(i.prototype,n),o&&e(i,o),Object.defineProperty(i,"prototype",{writable:!1}),t}();document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll("[data-ea-textarea-field]").forEach((function(e){new t(e)}))}))})();