define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],function(e,t,o,c,r,n,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});a.prototype.execute=function(e,t,r){var n=c.validation.number("scale",e.scale,void 0),a=c.validation.array("geometry",e.geometry,[]),e=u.featuresToArray(e.features),a=o.__spreadArrays(a,e.map(function(e){return e.geometry})),i=r.create();return u.inline(i.load(),function(){var e=i.getExtent(),t=i.getScale();return i.setExtent(a,n).then(function(){return{oldExtent:e,oldScale:t,newExtent:i.getExtent(),newScale:i.getScale()}})})},a.action="gcx:wf:arcgis::SetViewExtent",a.suite="gcx:wf:builtin",r=o.__decorate([n.activate(r.MapProvider)],a);function a(){}t.SetViewExtent=r});