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