!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,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var t=e("tslib"),a=e("../../Validation"),i=e("./MapProvider"),r=e("../../Hooks"),n=e("./tools"),i=(c.prototype.execute=function(e,o,t){var i=a.validation.id("layerId",e.layerId,a.validation.never),r=t.create();return n.inline(r.load(),function(){var e=r.findLayer(i);return null!=e?{success:e.removeLayer()}:{success:!1}})},c.action="gcx:wf:arcgis::RemoveLayer",c.suite="gcx:wf:builtin",t.__decorate([r.activate(i.MapProvider)],c));function c(){}o.RemoveLayer=i});