define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],function(e,t,a,u,i,r,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});o.prototype.execute=function(t,e,i){var r=u.validation.array("geometry",t.geometry,[]),o=c.featuresToArray(t.features),r=a.__spreadArrays(r,o.map(function(e){return e.geometry})),n=i.create();return c.inline(n.load(),function(){var e=n.getViewpoint();n.getScale();return n.setViewpoint(r,t.viewpoint).then(function(){return{oldViewpoint:e,newViewpoint:n.getViewpoint()}})})},o.action="gcx:wf:arcgis::SetViewpoint",o.suite="gcx:wf:builtin",i=a.__decorate([r.activate(i.MapProvider)],o);function o(){}t.SetViewpoint=i});