/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{createLayerAdapter as r}from"../../smartMapping/support/adapters/support/layerUtils.js";function t(t){const e=r(t)?.layer??t;return n(e)?e:null}function n(r){return"type"in r&&"feature"===r.type}function e(r,n){if(!n)return;const e=t(r);if(!e)return;return(e.dataSeriesInfos??[]).find(r=>r.name===n)}export{e as getDataSeriesInfo,t as getSourceLayer,n as isDataSeriesLayer};
