/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{or as e}from"../../../layers/orientedImagery/transformations/utils.js";import{defaultOIObjectIDField as t,defaultImageGeometryField as o}from"../constants.js";function n(e){return"point"===e||"polygon"===e||"polyline"===e}function r(e,r,i){return n(e.geometryType)&&2===e.fields.filter(({name:e,type:n,alias:y})=>l(i?.length?i:t,e,y)||l(r?.length?r:o,e,y)&&"blob"===n).length}function i(e){return"feature"===e.type&&y(e)}function y(e){return"point"===e.geometryType||"polygon"===e.geometryType||"polyline"===e.geometryType}function l(t,o,n){const r=t.toLowerCase(),i=o.toLowerCase()===r,y=n?.toLowerCase()===r;return e(i,y)}export{l as checkNameOrAlias,r as isValidDataCaptureLayer,i as isValidOverlayLayer};
