YUI.add("datatable-message",function(s,e){var t;s.namespace("DataTable").Message=t=function(){},t.ATTRS={showMessages:{value:!0,validator:s.Lang.isBoolean}},s.mix(t.prototype,{MESSAGE_TEMPLATE:'<tbody class="{className}"><tr><td class="{contentClass}" colspan="{colspan}"></td></tr></tbody>',hideMessage:function(){return this.get("boundingBox").removeClass(this.getClassName("message","visible")),this},showMessage:function(s){s=this.getString(s)||s;return this._messageNode||this._initMessageNode(),this.get("showMessages")&&(s?(this._messageNode.one("."+this.getClassName("message","content")).setHTML(s),this.get("boundingBox").addClass(this.getClassName("message","visible"))):this.hideMessage()),this},_afterMessageColumnsChange:function(){var s;this._messageNode&&(s=this._messageNode.one("."+this.getClassName("message","content")))&&s.set("colSpan",this._displayColumns.length)},_afterMessageDataChange:function(){this._uiSetMessage()},_afterShowMessagesChange:function(s){s.newVal?this._uiSetMessage(s):this._messageNode&&(this.get("boundingBox").removeClass(this.getClassName("message","visible")),this._messageNode.remove().destroy(!0),this._messageNode=null)},_bindMessageUI:function(){this.after(["dataChange","*:add","*:remove","*:reset"],s.bind("_afterMessageDataChange",this)),this.after("columnsChange",s.bind("_afterMessageColumnsChange",this)),this.after("showMessagesChange",s.bind("_afterShowMessagesChange",this))},initializer:function(){this._initMessageStrings(),this.get("showMessages")&&this.after("table:renderBody",s.bind("_initMessageNode",this)),this.after(s.bind("_bindMessageUI",this),this,"bindUI"),this.after(s.bind("_syncMessageUI",this),this,"syncUI")},_initMessageNode:function(){this._messageNode||(this._messageNode=s.Node.create(s.Lang.sub(this.MESSAGE_TEMPLATE,{className:this.getClassName("message"),contentClass:this.getClassName("message","content"),colspan:this._displayColumns.length||1})),this._tableNode.insertBefore(this._messageNode,this._tbodyNode))},_initMessageStrings:function(){this.set("strings",s.mix(this.get("strings")||{},s.Intl.get("datatable-message")))},_syncMessageUI:function(){this._uiSetMessage()},_uiSetMessage:function(s){this.data.size()?this.hideMessage():this.showMessage(s&&s.message||"emptyMessage")}}),s.Lang.isFunction(s.DataTable)&&s.Base.mix(s.DataTable,[t])},"patched-v3.18.7",{requires:["datatable-base"],lang:["en","fr","es","hu","it"],skinnable:!0});