import{__decorate}from"tslib";import{validation}from"../../Validation.js";import{MapProvider}from"./MapProvider.js";import{activate}from"../../Hooks.js";import{inline}from"./tools.js";let GetTable=class{execute(e,t,i){const a=validation.id("tableId",e.tableId,validation.never),o=validation.id("mapServiceId",e.mapServiceId),r=o?o.toString():void 0,l=i.create();return inline(l.load(),function(){const e=l.findTable(a.toString(),r);return void 0!==e&&null!==e?inline(e.load(),function(){return{table:e.layer}}):{table:void 0}})}};GetTable.action="gcx:wf:arcgis::GetTable",GetTable.suite="gcx:wf:builtin",GetTable=__decorate([activate(MapProvider)],GetTable);export{GetTable};