// 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/_GaugeAnimation",["dojo/_base/declare","dojo/dom-construct","esri/dijit/geoenrichment/utils/animation/Animator","esri/dijit/geoenrichment/ReportPlayer/ReportPlayerState","./_defaults"],function(g,t,u,v,q){return g(null,{_renderAnimation:function(h,c,g,e,w,f){function x(){r();b._gaugeLabelElement&&(b._gaugeLabelElement.style.display="");e.children.forEach(function(a){a.rawNode&&(a.rawNode.style.display="")});b._isAnimating=
!1}function r(){d.forEach(function(a){e.remove(a)});d.length=0;k.forEach(function(a){t.destroy(a)});k.length=0}var b=this;if(this._animationInfos.length&&this.opt.animate&&(this._animationMemo={run:h,t:c,r:g,s:e,circle:w,slices:f},!v.isChartAnimationSuspended)){var l,m,n,p;this._animationInfos.forEach(function(a){a.isSlice&&0===a.sliceIndex?l=a:a.isSlice&&1===a.sliceIndex?m=a:a.isLabel?n=a:a.isArrow&&(p=a)});if(l&&m){var y=this._getSliceValueAt(f,0,c)+this._getSliceValueAt(f,1,c),d=[],k=[];(function(){b._gaugeLabelElement&&
(b._gaugeLabelElement.style.display="none");e.children.forEach(function(a){a.rawNode&&(a.rawNode.style.display="none")})})();this._isAnimating=!0;(function(){u.animateProperty({duration:b.opt.animate.duration||q.duration,properties:{slice:{start:0,end:b._getSliceValueAt(f,0,c),easing:q.easingFunc}},progressFunction:function(a,b,c){r();a=l.func(b);d.push(a.shape);a=m.func(y-b,a.end+a.donutGap);d.push(a.shape);n&&k.push(n.func(b,h[0].tooltip.formatFunc(h[0].tooltip.value*c)).element);p&&d.push(p.func(b).shape)},
endFunction:x})})()}}}})});