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 GetLayerProperty=class{execute(r,e,t){const o=validation.string("name",r.name),a=validation.id("layerId",r.layerId,validation.never),i=t.create();return inline(i.load(),function(){const r=i.findLayer(a);return void 0!==r&&null!==r?inline(r.load(),function(){return{value:r.getProperty(o)}}):{}})}};GetLayerProperty.action="gcx:wf:arcgis::GetLayerProperty",GetLayerProperty.suite="gcx:wf:builtin",GetLayerProperty=__decorate([activate(MapProvider)],GetLayerProperty);export{GetLayerProperty};