/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../CSVLayerAdapter","../FeatureLayerAdapter","../LayerAdapter","../OGCFeatureLayerAdapter","../PointCloudLayerAdapter","../SceneLayerAdapter"],(function(e,a,r,y,L,t,p){"use strict";var o;e.LayerType=void 0,(o=e.LayerType||(e.LayerType={}))[o.CSVLayer=0]="CSVLayer",o[o.GeoJSONLayer=1]="GeoJSONLayer",o[o.FeatureLayer=2]="FeatureLayer",o[o.OGCFeatureLayer=3]="OGCFeatureLayer",o[o.SceneLayer=4]="SceneLayer",o[o.PointCloudLayer=5]="PointCloudLayer",o[o.WFSLayer=6]="WFSLayer";const u={[e.LayerType.CSVLayer]:{adapter:a,type:"csv",label:"CSVLayer"},[e.LayerType.FeatureLayer]:{adapter:r,type:"feature",label:"FeatureLayer"},[e.LayerType.OGCFeatureLayer]:{adapter:L,type:"ogc-feature",label:"OGCFeatureLayer"},[e.LayerType.GeoJSONLayer]:{adapter:r,type:"geojson",label:"GeoJSONLayer"},[e.LayerType.SceneLayer]:{adapter:p,type:"scene",label:"SceneLayer"},[e.LayerType.PointCloudLayer]:{adapter:t,type:"point-cloud",label:"PointCloudLayer"},[e.LayerType.WFSLayer]:{adapter:r,type:"wfs",label:"WFSLayer"}},n=[e.LayerType.CSVLayer,e.LayerType.FeatureLayer,e.LayerType.OGCFeatureLayer,e.LayerType.GeoJSONLayer,e.LayerType.SceneLayer,e.LayerType.PointCloudLayer,e.LayerType.WFSLayer],l=[e.LayerType.CSVLayer,e.LayerType.FeatureLayer,e.LayerType.OGCFeatureLayer,e.LayerType.SceneLayer,e.LayerType.GeoJSONLayer,e.LayerType.WFSLayer];function d(e){return e.map((e=>u[e].label))}function S(e,a=n){if(e instanceof y)return e;let r=null;return a.some((a=>{const y=e.type===u[a].type;if(y){const y=u[a].adapter;r=new y({layer:e})}return y})),r}e.createLayerAdapter=S,e.defaultSupportedLayerTypes=n,e.featureCapableLayerTypes=l,e.getLayerTypeLabels=d,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
