(function(){"use strict";u8.Base.Widgets.Panel=function(e,t){this.Widget(e,t);this._form=u8.Base.Widgets.Form.getForm(this)};$.extend(u8.Base.Widgets.Panel.prototype,{dispose:function(){if(this._isDisposed){return}this._form=null;this.Widget_dispose()},_createItemElement:function(e,t){if(!e||typeof e!="object"){$error("Not a panel item: "+e)}if(u8.Base.Dom.isDomElement(e)||e.jquery){e={element:e}}if(e.widget){if(typeof e.widget=="string"&&this._form){if(t&&t.tagName){delete t.tagName}var i=this._form._createElementForWidget(e,t);i.data("u8Panel",{formWidgetId:e.widget});return i}else if(u8.tools.isInstanceOfClassOrSubclass(e.widget,"Widget")){return $$(e.widget.element)}}else if(e.element){return $$(e.element)}else if(e.tagName){return this.$("<"+e.tagName+"/>")}else{$error("Not a panel item: "+e)}return undefined},_createItemContent:function(e,t){e=$$(e);if(this.createItemContent&&typeof this.createItemContent=="function"){return this.createItemContent(e,t)}if(this._form){var i=e.data("u8Panel");if(i&&i.formWidgetId){return this._form.createWidget(e[0],i.formWidgetId,this)}}return null},_shouldIgnoreItem:function(e,t){var i=u8.Base.Widgets.Form.getForm(this);var s=i&&e.widget&&i.getWidget(e.widget);return s&&(t.css("display")=="none"||s.processState&&s.processState==u8.Base.ProcessState.disabled||u8.tools.isInstanceOfClass(s,"PlaceHolder"))}});u8.Base.Widgets.Panel.makeClass({name:"Panel",deriveFrom:u8.Base.Widgets.Widget,virtual:["dispose"]})})();