// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.23/esri/copyright.txt for details.
//>>built
define("esri/dijit/geoenrichment/ReportPlayer/core/charts/chartUtils/plots/animation/_RingAnimation",["dojo/_base/declare","dojo/dom-construct","esri/dijit/geoenrichment/utils/animation/Animator","esri/dijit/geoenrichment/ReportPlayer/ReportPlayerState","./_defaults"],function(f,u,l,m,d){return f(null,{_animationMemo:null,_isAnimating:!1,renderAnimation:function(){!this._isAnimating&&this._animationMemo&&this._renderAnimation(this._animationMemo.run,this._animationMemo.t,this._animationMemo.r,this._animationMemo.s,
this._animationMemo.circle,this._animationMemo.slices)},_renderAnimation:function(f,n,p,b,q,k){function r(){t();b.children.forEach(function(a){a.rawNode&&(a.rawNode.style.display="")});e._isAnimating=!1}function t(){g.forEach(function(a){b.remove(a)});h.forEach(function(a){b.remove(a)})}var e=this;if(this._animationInfos.length&&this.opt.animate&&(this._animationMemo={run:f,t:n,r:p,s:b,circle:q,slices:k},!m.isChartAnimationSuspended)){var g=[],h=[];(function(){b.children.forEach(function(a){a.rawNode&&
(a.rawNode.style.display="none")})})();this._isAnimating=!0;(function(){e._animationInfos.forEach(function(a,c){l.animateProperty({duration:e.opt.animate.duration||d.duration,properties:{slice:{start:0,end:k[c],easing:d.easingFunc}},progressFunction:function(f,e){g[c]&&b.remove(g[c]);h[c]&&b.remove(h[c]);var d=a.func(e);g[c]=d.shape;h[c]=d.bgShape},endFunction:r})})})()}}})});