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