define(["require","exports","tslib","../../Validation","./MapProvider","../../Hooks","./tools","./ArcGisApiVersion"],function(e,i,r,o,a,t,c,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0});s.prototype.execute=function(e,i,r){var a=o.validation.id("layerId",e.layerId,void 0),t=r.create();return c.inline(t.load(),function(){if(a){var e=t.findLayer(a);return e&&e.clearFeatures(),{}}n.isArcGisApiVersion3x?t.map.graphics.clear():t.view.graphics.removeAll()})},s.action="gcx:wf:arcgis::ClearGraphicsLayer",s.suite="gcx:wf:builtin",a=r.__decorate([t.activate(a.MapProvider)],s);function s(){}i.ClearGraphics=a});