!function(s){"use strict";var e=!1,t=!1;window.progressCircle=function(){var i=s(".progress-circle"),r=(i.find(".success-icon"),i.find(".error-icon"),i.find(".progress-msg")),o=i.find(".outer")[0],n=i.find(".outer")[1],c=.7,u=200,a=u/(60*c),f=null,l=0,d=.75,v=function(){return 0===l&&(t=!0,i.addClass("is-active")),l+=1,l>=60*c*d?(m(),void(e=!0)):(f=u-a*l,o.style.strokeDashoffset=f,n&&(n.style.strokeDashoffset=f),void window.requestAnimationFrame(v))},h=function(){d=1,v()},y=function(s){var e=s?"is-success":"is-error",t=s?"Saved Successfully!":"You have already saved settings.";r.html(t),i.addClass(e)},m=function(){e||setTimeout(function(){e=!1,t=!1,d=.75,l=0,o.style.strokeDashoffset=u,n&&(n.style.strokeDashoffset=u),i.removeClass("is-active is-error is-success"),r.html("")},2e3)};return{play:function(){t||v()},finish:h,status:y}}}(jQuery);