AUI.add("aui-component",function(C){var F=C.Lang,I=function(A,M){return(A||[]).concat(M||[]);},D=C.ClassNameManager.getClassName,L="component",G=D(L),J=D("helper","hidden"),B=Object.prototype.constructor;var K=function(M){var A=this;A._originalConfig=M;A._setRender(M);K.superclass.constructor.apply(this,arguments);E[A.get("id")]=A;};var E=K._INSTANCES={};K.NAME="component";K.ATTRS={cssClass:{lazyAdd:false,value:null},hideClass:{value:J},render:{value:false,writeOnce:true}};C.extend(K,C.Widget,{initializer:function(M){var A=this;if(M&&M.cssClass){A._uiSetCssClass(M.cssClass);}A._setComponentClassNames();A.after("cssClassChange",A._afterCssClassChange);A.after("visibleChange",A._afterComponentVisibleChange);},clone:function(M){var A=this;M=M||{};M.id=M.id||C.guid();C.mix(M,A._originalConfig);return new A.constructor(M);},toggle:function(){var A=this;return A.set("visible",!A.get("visible"));},_afterComponentVisibleChange:function(N){var A=this;var P=A.get("hideClass");if(P!==false){var M=A.get("boundingBox");var O="addClass";if(N.newVal){O="removeClass";}M[O](P||J);}},_afterCssClassChange:function(M){var A=this;A._uiSetCssClass(M.newVal,M.prevVal);},_renderInteraction:function(P,M){var A=this;A.render(M);var N=A._renderHandles;for(var O=N.length-1;O>=0;O--){var Q=N.pop();Q.detach();}},_setComponentClassNames:function(){var A=this;var P=A._getClasses();var N;var M=[];for(var O=P.length-4;O>=0;O--){N=P[O].NAME.toLowerCase();M.push(D(N,"content"));}A.get("contentBox").addClass(M.join(" "));},_setRender:function(O){var U=this;var M=O&&O.render;if(M&&M.constructor==B){var N=M.eventType||"mousemove";var R=M.parentNode;var P=M.selector||R;if(P){U._renderHandles=[];var T=U._renderHandles;if(!F.isArray(N)){N=[N];}var A=C.rbind(U._renderInteraction,U,R);var S=C.one(P);for(var Q=N.length-1;Q>=0;Q--){T[Q]=S.once(N[Q],A);}delete O.render;}}},_uiSetCssClass:function(P,R){var M=this;var Q=R+"-content";var A=P+"-content";var O=M.get("boundingBox");var N=M.get("contentBox");O.replaceClass(R,P);N.replaceClass(Q,A);}});K.getById=function(A){return E[A];};var H=K.prototype;K.create=function(N){N=N||{};var O=N.EXTENDS||C.Component;var M=N.constructor;if(!M||M==B){M=function(){M.superclass.constructor.apply(this,arguments);};}var R=N.prototype;var A=I(N.BIND_UI_ATTRS,N.UI_ATTRS);var P=I(N.SYNC_UI_ATTRS,N.UI_ATTRS);if(A.length){R._BIND_UI_ATTRS=I(H._BIND_UI_ATTRS,A);}if(P.length){R._SYNC_UI_ATTRS=I(H._SYNC_UI_ATTRS,P);}var Q=N.AUGMENTS;if(Q&&!F.isArray(Q)){Q=[Q];}C.mix(M,N);delete M.prototype;C.extend(M,O,R);if(Q){M=C.Base.build(N.NAME,M,Q,{dynamic:false});}return M;};C.Component=K;},"1.0.1",{skinnable:false,requires:["widget"]});