File: /var/www/html/wpskycap/wp-content/plugins/js_composer/assets/lib/vc/vc_chart/jquery.vc_chart.min.js
(r=>{function h(t,i){this.el=t,this.$el=r(this.el),this.options=r.extend({color:"#f7f7f7",units:"",label_selector:".vc_pie_chart_value",back_selector:".vc_pie_chart_back",responsive:!0},i),this.init()}h.prototype={constructor:h,_progress_v:0,animated:!1,init:function(){this.color=this.options.color,this.value=this.$el.data("pie-value")/100,this.label_value=this.$el.data("pie-label-value")||this.$el.data("pie-value"),this.$wrapper=r(".vc_pie_wrapper",this.$el),this.$label=r(this.options.label_selector,this.$el),this.$back=r(this.options.back_selector,this.$el),this.$canvas=this.$el.find("canvas"),this.draw(),this.setWayPoint(),!0===this.options.responsive&&this.setResponsive()},setResponsive:function(){var t=this;r(window).on("resize",function(){t.$el&&t.$el.is(":visible")&&(!0===t.animated&&t.circle.stop(),t.draw(!0))})},draw:function(t){var i=this.$el.addClass("vc_ready").width(),s=(i=(i=i||this.$el.parents(":visible").first().width()-2)/100*80)/2-5-1;this.$wrapper.css({width:i+"px"}),this.$label.css({width:i,height:i,"line-height":i+"px"}),this.$back.css({width:i,height:i}),this.$canvas.attr({width:i+"px",height:i+"px"}),this.$el.addClass("vc_ready"),this.circle=new ProgressCircle({canvas:this.$canvas.get(0),minRadius:s,arcWidth:5}),!0===t&&!0===this.animated&&(this._progress_v=this.value,this.circle.addEntry({fillColor:this.color,progressListener:r.proxy(this.setProgress,this)}).start())},setProgress:function(){var t=this.label_value?this.stripHtmlTags(this.label_value.toString()):"",i=this.options.units?this.stripHtmlTags(this.options.units):"";return this._progress_v>=this.value?(this.circle.stop(),this.$label.text(t+i)):(this._progress_v+=.005,t=this._progress_v/this.value*this.label_value,t=Math.round(t)+i,this.$label.text(t)),this._progress_v},animate:function(){!0!==this.animated&&(this.animated=!0,this.circle.addEntry({fillColor:this.color,progressListener:r.proxy(this.setProgress,this)}).start(5))},setWayPoint:function(){void 0!==r.fn.vcwaypoint?this.$el.vcwaypoint(r.proxy(this.animate,this),{offset:"85%"}):this.animate()},stripHtmlTags:function(t){return t.replace(/(<([^>]+)>)/gi,"")}},r.fn.vcChat=function(e,a){return this.each(function(){var t=r(this),i=t.data("vc_chart"),s="object"==typeof e?e:{color:t.data("pie-color"),units:t.data("pie-units")};void 0===e&&t.data("vc_chart",i=new h(this,s)),"string"==typeof e&&i[e](a)})},"function"!=typeof window.vc_pieChart&&(window.vc_pieChart=function(){r(".vc_pie_chart:visible").vcChat()}),r(document).ready(function(){window.vc_iframe||vc_pieChart()})})(window.jQuery);