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