!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","./ArcGisApiVersion"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=e("tslib"),o=e("../../Validation"),t=e("./MapProvider"),a=e("../../Hooks"),s=e("./tools"),c=e("./ArcGisApiVersion"),t=(n.prototype.execute=function(e,i,r){var t=o.validation.id("layerId",e.layerId,void 0),a=r.create(),n=s.featuresToArray(o.validation.exists("features",e.features));return s.inline(a.load(),function(){if(t){var e=a.findLayer(t);return s.inline(e&&e.load(),function(){return e.removeFeatures(n),{}})}if(c.isArcGisApiVersion3x)for(var i=0,r=n;i<r.length;i++){var o=r[i];a.map.graphics.remove(o)}else a.view.graphics.removeMany(n)})},n.action="gcx:wf:arcgis::RemoveGraphics",n.suite="gcx:wf:builtin",r.__decorate([a.activate(t.MapProvider)],n));function n(){}i.RemoveGraphics=t});