!function(r){"use strict";var w=r.patternfly;w.pfSetDonutChartTitle=function(t,e,n){var o=r.d3.select(t).select("text.c3-chart-arcs-title");o.text(""),o.insert("tspan").text(e).classed("donut-title-big-pf",!0).attr("y",0).attr("x",0),o.insert("tspan").text(n).classed("donut-title-small-pf",!0).attr("y",20).attr("x",0)},w.pfDonutTooltipContents=function(t,e,n,o){return'
"},w.pfGetUtilizationDonutTooltipContentsFn=function(e){return function(t){return''+Math.round(1e3*t[0].ratio)/10+"% "+e+" "+t[0].name+""}},w.pfGetBarChartTooltipContentsFn=function(e){return function(t){return'"}},w.pfSingleLineChartTooltipContentsFn=function(e){return function(t){return'"}},w.pfPieTooltipContents=function(t,e,n,o){return w.pfDonutTooltipContents(t,e,n,o)},w.c3ChartDefaults=function(){function t(){return{pattern:[w.pfPaletteColors.blue,w.pfPaletteColors.blue300,w.pfPaletteColors.green,w.pfPaletteColors.orange,w.pfPaletteColors.red]}}function e(){return{zerobased:!0}}function n(){return{height:60}}function o(){return{x:{show:!1},y:{show:!1}}}function r(){return{show:!1}}function i(){return{r:1,focus:{expand:{r:4}}}}function u(){return{contents:function(t){return''+t[0].value+" "+t[0].name+""}}}function l(){return{x:{show:!0},y:{show:!0}}}function a(){return{x:{show:!1},y:{show:!0}}}function f(){return{show:!0}}function s(){return{r:3,focus:{expand:{r:5}}}}function g(){return{contents:w.pfGetBarChartTooltipContentsFn()}}function p(){return{show:!1}}function c(){return{contents:w.pfGetBarChartTooltipContentsFn()}}var D=l,d=a,h=f,C=s,P=p;return{getDefaultColors:t,getDefaultBarGrid:function(){return{y:{show:!0}}},getDefaultBarTooltip:function(t){return{contents:w.pfGetBarChartTooltipContentsFn(t)}},getDefaultBarLegend:function(){return{show:!1}},getDefaultBarConfig:function(t){return{color:this.getDefaultColors(),grid:this.getDefaultBarGrid(),tooltip:this.getDefaultBarTooltip(t),legend:this.getDefaultBarLegend()}},getDefaultGroupedBarGrid:function(){return{y:{show:!0}}},getDefaultGroupedBarLegend:function(){return{show:!0,position:"bottom"}},getDefaultGroupedBarConfig:function(){return{color:this.getDefaultColors(),grid:this.getDefaultGroupedBarGrid(),legend:this.getDefaultGroupedBarLegend()}},getDefaultStackedBarGrid:function(){return{y:{show:!0}}},getDefaultStackedBarLegend:function(){return{show:!0,position:"bottom"}},getDefaultStackedBarConfig:function(){return{color:this.getDefaultColors(),grid:this.getDefaultStackedBarGrid(),legend:this.getDefaultStackedBarLegend()}},getDefaultDonut:function(t){return{title:t,label:{show:!1},width:11}},getDefaultDonutSize:function(){return{height:171}},getDefaultDonutColors:function(){return{pattern:[w.pfPaletteColors.blue,w.pfPaletteColors.black300]}},getDefaultDonutTooltip:function(){return{show:!1}},getDefaultDonutLegend:function(){return{show:!1}},getDefaultDonutConfig:function(t){return{donut:this.getDefaultDonut(t),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultRelationshipDonutConfig:function(t){return{donut:this.getDefaultDonut(t),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultRelationshipDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultPie:function(){return{expand:!0,label:{show:!1}}},getDefaultPieSize:function(){return{height:171}},getDefaultPieColors:function(){return{pattern:[w.pfPaletteColors.blue,w.pfPaletteColors.black300]}},getDefaultRelationshipDonutColors:function(){return{pattern:[w.pfPaletteColors.blue,w.pfPaletteColors.red100,w.pfPaletteColors.orange400,w.pfPaletteColors.green400,w.pfPaletteColors.cyan500,w.pfPaletteColors.gold200]}},getDefaultPieTooltip:function(){return{contents:w.pfPieTooltipContents}},getDefaultPieLegend:function(){return{show:!1}},getDefaultPieConfig:function(){return{pie:this.getDefaultPie(),size:this.getDefaultPieSize(),legend:this.getDefaultPieLegend(),color:this.getDefaultPieColors(),tooltip:this.getDefaultPieTooltip()}},getDefaultSparklineArea:e,getDefaultSparklineSize:n,getDefaultSparklineAxis:o,getDefaultSparklineLegend:r,getDefaultSparklinePoint:i,getDefaultSparklineTooltip:u,getDefaultSparklineConfig:function(){return{area:e(),size:n(),axis:o(),color:t(),legend:r(),point:i(),tooltip:u()}},getDefaultLineAxis:l,getDefaultLineGrid:a,getDefaultLineLegend:f,getDefaultLinePoint:s,getDefaultLineConfig:function(){return{axis:l(),grid:a(),color:t(),legend:f(),point:s()}},getDefaultSingleLineTooltip:g,getDefaultSingleLineConfig:function(){return{axis:l(),grid:a(),color:t(),legend:p(),point:s(),tooltip:g()}},getDefaultAreaAxis:D,getDefaultAreaGrid:d,getDefaultAreaLegend:h,getDefaultAreaPoint:C,getDefaultAreaConfig:function(){return{axis:D(),grid:d(),color:t(),legend:h(),point:C()}},getDefaultSingleAreaTooltip:c,getDefaultSingleAreaConfig:function(){return{axis:D(),grid:d(),color:t(),legend:P(),point:C(),tooltip:c()}}}}}("undefined"!=typeof window?window:global);