!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"),a=e("../../Validation"),o=e("./MapProvider"),t=e("../../Hooks"),n=e("./tools"),c=e("./ArcGisApiVersion"),o=(s.prototype.execute=function(e,i,r){var o=a.validation.id("layerId",e.layerId,void 0),t=r.create();return n.inline(t.load(),function(){if(o){var e=t.findLayer(o);return e&&e.clearFeatures(),{}}c.isArcGisApiVersion3x?t.map.graphics.clear():t.view.graphics.removeAll()})},s.action="gcx:wf:arcgis::ClearGraphicsLayer",s.suite="gcx:wf:builtin",r.__decorate([t.activate(o.MapProvider)],s));function s(){}i.ClearGraphics=o});