define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools"],function(e,t,i,l,r,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n.prototype.execute=function(e,t,i){var r=l.validation.string("name",e.name),a=l.validation.exists("value",e.value),n=l.validation.id("layerId",e.layerId,l.validation.never),o=i.create();return u.inline(o.load(),function(){var e=o.findLayer(n);return null!=e?u.inline(e.load(),function(){return{oldValue:e.getProperty(r),newValue:e.setProperty(r,a)?a:void 0}}):{}})},n.action="gcx:wf:arcgis::SetLayerProperty",n.suite="gcx:wf:builtin",r=i.__decorate([a.activate(r.MapProvider)],n);function n(){}t.SetLayerProperty=r});