(function(){u8.Base.Charts.PageRenderer=function(e){$.extend(this,e)};$.extend(u8.Base.Charts.PageRenderer.prototype,{render:function(e,t,a){var r=this;var n=$p(e);var i=n.$;var s=t.url||n.resolveUrl(this.url||"~/base/chart.aspx");t.options.clickHandler="yes, please!";i.ajax({url:s,type:"POST",data:{chart:JSON.stringify(t)},dataType:"html",error:function(e,t,a){o({request:e,error:{message:t,exception:a}})},success:function(e){o({html:e})}});function o(t){var n=t.html;if(n){r._show(i(e),i(n).find("#chart"))}a(r,t)}},_show:function(e,t){var a=e.children();t.css({position:"absolute",left:0,top:0,opacity:0}).attr("id","").appendTo(e);var r=Math.max(t.width(),a.width());var n=Math.max(t.height(),a.height());e.css({width:r,height:n,position:"relative"});t.animate({opacity:1});a.animate({opacity:0},function(){a.remove()})}});$.extend(u8.Base.Charts.renderers,{componentArt:{ctor:u8.Base.Charts.PageRenderer,options:{url:"~/base/chart.componentart.aspx"}}})})();