/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{getNormalizedChildLayerProperty as e}from"../../LayerList/support/layerListUtils.js";const s=e=>t(e)||r(e),t=e=>{if(!("type"in e))return!1;switch(e.type){case"feature":case"geojson":case"csv":case"graphics":case"wfs":case"map-notes":case"oriented-imagery":case"scene":case"building-scene":case"subtype-sublayer":return!0;default:return!1}},r=t=>{const r=e(t);if(null!=r&&t.hasOwnProperty(r)&&null!=t[r])for(const e of t[r])if(s(e))return!0;return!1},n=(e,s)=>null!=s&&null!=e&&(s.test(e.title)?"self":!!e.children.some(e=>!1!==n(e,s))&&"children");export{s as isValidSnappingLayer,r as isValidSnappingLayerGroup,t as isValidSnappingLayerSource,n as itemTitleMatchesFilter};
