// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://@sbaseurl@/jsapi/jsapi/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details.

//>>built
define(["dojo/_base/declare","jimu/BaseFeatureAction","jimu/WidgetManager"],function(c,d,e){return c(d,{iconFormat:"png",isFeatureSupported:function(a){return 0<a.features.length&&"point"!==a.features[0].geometry.type},onExecute:function(a){e.getInstance().triggerWidgetOpen(this.widgetId).then(function(f){var b=0;a.features.forEach(function(g){g.geometry.rings.forEach(function(h){b+=h.length})});f.showVertexCount(b)})}})});