/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/maybe","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","../../geometry/Point","../../geometry/Polygon","../../geometry/projection","./GeoreferenceBase"],(function(e,o,t,r,p,s,n,c,i,y,l,a){"use strict";let u=function(o){function r(e){var t;return(t=o.call(this,e)||this).bottomLeft=null,t.bottomRight=null,t.topLeft=null,t.topRight=null,t.type="corners",t}return e._inheritsLoose(r,o),e._createClass(r,[{key:"coords",get:function(){let{topLeft:e,topRight:o,bottomLeft:r,bottomRight:p}=this;if(t.isNone(e)||t.isNone(o)||t.isNone(r)||t.isNone(p))return null;const s=e.spatialReference;return o=l.projectOrLoad(o,s).geometry,r=l.projectOrLoad(r,s).geometry,p=l.projectOrLoad(p,s).geometry,t.isNone(o)||t.isNone(r)||t.isNone(p)?null:new y({rings:[[[r.x,r.y],[e.x,e.y],[o.x,o.y],[p.x,p.y],[r.x,r.y]]],spatialReference:s})}}]),r}(a);o.__decorate([r.property({readOnly:!0})],u.prototype,"coords",null),o.__decorate([r.property({type:i})],u.prototype,"bottomLeft",void 0),o.__decorate([r.property({type:i})],u.prototype,"bottomRight",void 0),o.__decorate([r.property({type:i})],u.prototype,"topLeft",void 0),o.__decorate([r.property({type:i})],u.prototype,"topRight",void 0),u=o.__decorate([c.subclass("esri.layers.support.CornersGeoreference")],u);return u}));
