!function(e){"use strict";ElementsKit_Helper.registerWidget("elementskit-piechart.default",(function(r){var t=r.find(".colorful-chart"),o=t.data(),n={barColor:o.color||undefined,lineWidth:o.linewidth||undefined,trackColor:o.barbg||undefined,gradientChart:!1};"gradient"===o?.pie_color_style&&(n={gradientChart:!0,barColor:o.color||undefined,gradientColor1:o.gradientcolor2||undefined,gradientColor2:o.gradientcolor1||undefined,lineWidth:o.linewidth||undefined,trackColor:o.barbg||undefined});var i=e.extend({barColor:"#666666",gradientColor1:"#fad470",gradientColor2:"#f96933",scaleColor:"transparent",lineWidth:20,size:150,trackColor:"#f7f7f7",lineCap:"round",gradientChart:!1},n);ElementsKit_Helper?.observeElement(t[0],(()=>{t.easyPieChart({barColor:!0===i.gradientChart?function(){var e=this.renderer.getCtx(),r=this.renderer.getCanvas(),t=e.createLinearGradient(0,0,r.width,0);return t.addColorStop(0,i.gradientColor1),t.addColorStop(1,i.gradientColor2),t}:i.barColor,scaleColor:i.scaleColor,trackColor:i.trackColor,lineCap:i.lineCap,size:i.size,lineWidth:i.lineWidth})}))}))}(jQuery);