!function($){"use strict";var reseting=!1,pending=!1;window.progressCircle=function(){var $progressCircle=$(".progress-circle"),$msg=($progressCircle.find(".success-icon"),$progressCircle.find(".error-icon"),$progressCircle.find(".progress-msg")),progressLine=$progressCircle.find(".outer")[0],progressLine2=$progressCircle.find(".outer")[1],dashNewOffset=null,i=0,animTo=.75,animate=function(){if(0===i&&(pending=!0,$progressCircle.addClass("is-active")),(i+=1)>=42*animTo)return reset(),void(reseting=!0);dashNewOffset=200-200/42*i,progressLine.style.strokeDashoffset=dashNewOffset,progressLine2&&(progressLine2.style.strokeDashoffset=dashNewOffset),window.requestAnimationFrame(animate)},finish=function(){animTo=1,animate()},status=function(accomplished,message){var statusClass=accomplished?"is-success":"is-error",msg=message;$msg.html(msg),$progressCircle.addClass(statusClass)},reset=function(){reseting||setTimeout(function(){reseting=!1,pending=!1,animTo=.75,i=0,progressLine.style.strokeDashoffset=200,progressLine2&&(progressLine2.style.strokeDashoffset=200),$progressCircle.removeClass("is-active is-error is-success"),$msg.html("")},2e3)};return{play:function(){pending||animate()},finish:finish,status:status}}}(jQuery);