define(["exports","./../emby-input/emby-input.js","./../../layoutmanager.js"],function(_exports,_embyInput,_layoutmanager){Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/emby-elements/emby-textarea/emby-textarea.css"]);var EmbyTextArea=function(_HTMLTextAreaElement){babelHelpers.inherits(EmbyTextArea,_HTMLTextAreaElement);var _super=_createSuper(EmbyTextArea);function EmbyTextArea(){var _this;babelHelpers.classCallCheck(this,EmbyTextArea),_this=_super.call(this);return babelHelpers.possibleConstructorReturn(_this,_this)}return babelHelpers.createClass(EmbyTextArea,[{key:"connectedCallback",value:function(){!function(){var label,labelText;!this.classList.contains("emby-textarea")&&(this.hasAttribute("rows")||(this.rows=10),this.classList.add("emby-textarea"),_layoutmanager.default.tv&&this.classList.add("emby-textarea-tv"),label=this.closest("label"))&&(labelText=this.getAttribute("label")||"",label.insertAdjacentHTML("afterbegin",'<div class="emby-textarea-labeltext">'+labelText+"</div>"),label.classList.add("emby-textarea-label"))}.call(this)}}]),EmbyTextArea}(babelHelpers.wrapNativeSuper(HTMLTextAreaElement));customElements.define("emby-textarea",EmbyTextArea,{extends:"textarea"}),_exports.default=EmbyTextArea});