YUI.add("aui-color-palette",function(e,t){var n=e.Array,r=e.Color,i=e.Lang,s=e.getClassName,o="color-palette",u="",a=s("color-palette-item"),f=s("palette-item"),l=s("palette-item-inner"),c=s("palette-item-selected"),h=e.Base.create(o,e.Widget,[e.Palette,e.WidgetCssClass,e.WidgetToggle],{ITEM_TEMPLATE:'<li class="'+f+' {selectedClassName}" data-column={column} data-index={index} data-row={row} data-value="{value}">'+'<a href="" class="'+l+'" style="background-color:{value}" onclick="return false;" title="{title}"></a>'+"</li>",_valueFormatterFn:function(){return function(e,t,n,r,s){var o=this,a=e[t];return i.sub(o.ITEM_TEMPLATE,{column:r,index:t,row:n,selectedClassName:s?c:u,title:a.name,value:a.value})}},_setItems:function(e){var t=this,s;return s=n.map(e,function(e,t){var n=e,s;return i.isString(e)&&(s=r.toHex(e),n={name:s,value:s}),n}),t._items=null,s}},{CSS_PREFIX:s(o),NAME:o,ATTRS:{items:{setter:"_setItems",value:["#9FC6E7","#5484ED","#A4BDFC","#51B749","#FBD75B","#FFB878","#FF887C","#DC2127","#DBADFF","#E1E1E1"]}}});e.ColorPalette=h},"2.0.0",{requires:["array-extras","aui-palette","color-base","node-core","aui-widget-cssclass","aui-widget-toggle"],skinnable:!0});
