import{__decorate}from"tslib";import{MapProvider}from"./MapProvider.js";import{activate}from"../../Hooks.js";import{inline}from"./tools.js";let GetViewExtent=class{execute(e,t,i){const r=i.create();return inline(r.load(),function(){r.getExtent();return{extent:r.getExtent(),center:r.getCenter(),scale:r.getScale()}})}};GetViewExtent.action="gcx:wf:arcgis::GetViewExtent",GetViewExtent.suite="gcx:wf:builtin",GetViewExtent=__decorate([activate(MapProvider)],GetViewExtent);export{GetViewExtent};