define(["exports","./../emby-input/emby-input.js","./../../layoutmanager.js"],function(_exports,_embyInput,_layoutmanager){function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,require(["css!modules/emby-elements/emby-textarea/emby-textarea.css"]);var EmbyTextArea=function(_HTMLTextAreaElement){function EmbyTextArea(){var t,o,e;babelHelpers.classCallCheck(this,EmbyTextArea),t=this,o=EmbyTextArea,o=babelHelpers.getPrototypeOf(o),o=babelHelpers.possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],babelHelpers.getPrototypeOf(t).constructor):o.apply(t,e));return babelHelpers.possibleConstructorReturn(o,o)}return babelHelpers.inherits(EmbyTextArea,_HTMLTextAreaElement),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)}}])}(babelHelpers.wrapNativeSuper(HTMLTextAreaElement));customElements.define("emby-textarea",EmbyTextArea,{extends:"textarea"}),_exports.default=EmbyTextArea});