/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as e}from"tslib";import{Clonable as r}from"../../core/Clonable.js";import o from"../../core/Logger.js";import{subclass as t}from"../../core/accessorSupport/decorators.js";import{projectOrLoad as s}from"../../geometry/projectionUtils.js";let n=class extends r{projectOrWarn(e,r){if(null==e)return e;const{geometry:t,pending:n}=s(e,r);return n?null:n||t?t:(o.getLogger(this).warn("geometry could not be projected to the spatial reference",{georeference:this,geometry:e,sourceSpatialReference:e.spatialReference,targetSpatialReference:r}),null)}};n=e([t("esri.layers.support.GeoreferenceBase")],n);export{n as default};
