/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../../core/maybe","../../../../../geometry/Circle","../../../../../support/elevationInfoUtils","../isSupportedGraphicUtils"],(function(e,t,r,o,u){"use strict";function p(e){return l(e).result}function i(e){return l(e).geometry}function l(e){var p;if("graphics"!==(null==(p=e.layer)?void 0:p.type))return{result:u.SupportedGraphicResult.GRAPHICS_LAYER_MISSING,geometry:null};if(t.isNone(e.geometry))return{result:u.SupportedGraphicResult.GEOMETRY_MISSING,geometry:null};return"on-the-ground"!==o.getGraphicEffectiveElevationMode(e)&&o.hasGraphicFeatureExpressionInfo(e)?{result:u.SupportedGraphicResult.ELEVATION_MODE_UNSUPPORTED,geometry:null}:"point"!==e.geometry.type&&"polyline"!==e.geometry.type&&("polygon"!==e.geometry.type||e.geometry instanceof r)?{result:u.SupportedGraphicResult.GEOMETRY_TYPE_UNSUPPORTED,geometry:null}:{result:u.SupportedGraphicResult.SUPPORTED,geometry:e.geometry}}e.geometryOfSupportedGraphic=i,e.isSupportedGraphic=p,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
