// 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,{iconClass:"icon-direction-open-route",isFeatureSupported:function(a){return(a=a.features[0])&&a.attributes&&a.attributes.RouteLayerItemID&&a.attributes.RouteLayerItemURL?!0:!1},onExecute:function(a){e.getInstance().triggerWidgetOpen(this.widgetId).then(function(f){var b=a.features[0];b&&f.openRoute(b)})}})});