HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/delstar/wp-content/plugins/js_composer/assets/lib/vc/vc_chart/jquery.vc_chart.min.js
/*!
* WPBakery Page Builder v7.6.0 (https://wpbakery.com)
* Copyright 2011-2024 Michael M, WPBakery
* License: Commercial. More details: http://go.wpbakery.com/licensing
*/
	// jscs:disable
	// jshint ignore: start 
(h=>{function r(t,i){this.el=t,this.$el=h(this.el),this.options=h.extend({color:"#f7f7f7",units:"",label_selector:".vc_pie_chart_value",back_selector:".vc_pie_chart_back",responsive:!0},i),this.init()}r.prototype={constructor:r,_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=h(".vc_pie_wrapper",this.$el),this.$label=h(this.options.label_selector,this.$el),this.$back=h(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;h(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:h.proxy(this.setProgress,this)}).start())},setProgress:function(){var t;return this._progress_v>=this.value?(this.circle.stop(),this.$label.text(this.label_value+this.options.units)):(this._progress_v+=.005,t=this._progress_v/this.value*this.label_value,t=Math.round(t)+this.options.units,this.$label.text(t)),this._progress_v},animate:function(){!0!==this.animated&&(this.animated=!0,this.circle.addEntry({fillColor:this.color,progressListener:h.proxy(this.setProgress,this)}).start(5))},setWayPoint:function(){void 0!==h.fn.vcwaypoint?this.$el.vcwaypoint(h.proxy(this.animate,this),{offset:"85%"}):this.animate()}},h.fn.vcChat=function(e,a){return this.each(function(){var t=h(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 r(this,s)),"string"==typeof e&&i[e](a)})},"function"!=typeof window.vc_pieChart&&(window.vc_pieChart=function(){h(".vc_pie_chart:visible").vcChat()}),h(document).ready(function(){window.vc_iframe||vc_pieChart()})})(window.jQuery);