/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
const e={danger:"exclamation-mark-circle",info:"information",neutral:void 0,success:"check",warning:"exclamation-mark-triangle",brand:void 0};function r(e){if(null==e||"object"!=typeof e)return"layer";if("isTable"in e&&e.isTable)return"table";if("type"in e){if("feature"===e.type)return"feature-layer";if("group"===e.type)return"layers";if("subtype-group"===e.type)return"subtype";if("knowledge-graph"===e.type)return"knowledge-layer";if("link-chart"===e.type)return"knowledge-graph";if("graphics"===e.type)return"layer-graphics"}return"layer"}const t=e=>{const r=e.layer,t=r&&"geometryType"in r?r.geometryType:void 0,n=e.geometry?.type;return"polyline"===n||"polyline"===t?"line":"mesh"===n||"mesh"===t||"multipatch"===t?"cube":"multipoint"===n||"multipoint"===t?"point":n||t||"table"};export{t as getIconForFeature,r as getIconForLayer,e as iconByKind};
