var TcHmi;!function(TcHmi){let Controls;!function(Controls){let System;!function(System){class TcHmiPartial extends TcHmi.Controls.System.TcHmiContainerControl{constructor(element,pcElement,attrs){super(element,pcElement,attrs)}__previnit(){if(this.__elementTemplateRoot=this.__element.find(".TcHmi_Controls_System_TcHmiPartial-template"),0===this.__elementTemplateRoot.length&&(this.__elementTemplateRoot=this.__element.find(".tchmi-partial-template")),0===this.__elementTemplateRoot.length)throw new Error("Invalid Template.html");super.__previnit()}__init(){super.__init();for(let i=0,ii=this.__children.length;i<ii;i++)this.__elementTemplateRoot.append(this.__children[i].getElement())}__attach(){super.__attach()}__detach(){super.__detach()}destroy(){this.__keepAlive||super.destroy()}addChild(control,pos){control&&this.__addChild(control,pos)}__addChild(control,pos){if(super.__addChild(control,pos),null==pos||pos<0)return void this.__elementTemplateRoot[0].appendChild(control.getElement()[0]);if(0===pos)return void this.__elementTemplateRoot.prepend(control.getElement());let prev=this.__elementTemplateRoot.children().eq(pos-1);0===prev.length?this.__elementTemplateRoot[0].appendChild(control.getElement()[0]):prev.after(control.getElement())}removeChild(control){control&&this.__removeChild(control)}__removeChild(control){super.__removeChild(control)}}System.TcHmiPartial=TcHmiPartial}(System=Controls.System||(Controls.System={}))}(Controls=TcHmi.Controls||(TcHmi.Controls={}))}(TcHmi||(TcHmi={})),TcHmi.Controls.registerEx("TcHmiPartial","TcHmi.Controls.System",TcHmi.Controls.System.TcHmiPartial);