HD.Widget=function(A){this.config=A;
this.loadTemplates(arguments.callee)
};
HD.Widget.prototype={getParent:function(){return HD.get(this.config.parent)
},render:function(B){var A=this.getParent();
A.innerHTML=this.getHtml(B);
this.setListeners(B)
},setListeners:function(A){},destroy:function(){var A=this.getParent();
A.innerHTML=""
},loading:function(A){var B=this.getParent();
if(A){HD.addClass(B,HD.CSS_CLASSES.LOADING)
}else{HD.removeClass(B,HD.CSS_CLASSES.LOADING)
}},update:function(A,B){},getHtml:function(A){return""
},analyticsString:function(){return""
}};
HD.extend(HD.Widget,[HD.util.Observable,HD.util.Template]);
HD.register("hd_widget",HD.Widget,{version:"1.0",build:"1"});