/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../chunks/_rollupPluginBabelHelpers","../../chunks/tslib.es6","../../core/Accessor","../../core/maybe","../../core/accessorSupport/decorators/property","../../core/arrayUtils","../../core/has","../../core/accessorSupport/ensureType","../../core/accessorSupport/decorators/subclass","../../geometry/Polygon","../../geometry/projection","../../geometry/support/aaBoundingRect","../../geometry/support/normalizeUtilsSync"],(function(e,o,r,t,n,i,s,l,a,c,d,p,u,m){"use strict";e.MediaElementView=function(e){function r(o){return e.call(this,o)||this}return o._inheritsLoose(r,e),o._createClass(r,[{key:"bounds",get:function(){const e=this.coords;return n.isNone(e)?null:u.fromExtent(e.extent)}},{key:"coords",get:function(){var e;const o=null==(e=n.unwrap(this.element.georeference))?void 0:e.coords;return p.projectOrLoad(o,this.spatialReference).geometry}},{key:"normalizedCoords",get:function(){return d.fromJSON(m.normalizeCentralMeridianSync(this.coords))}},{key:"normalizedBounds",get:function(){return n.isSome(this.normalizedCoords)?u.fromExtent(this.normalizedCoords.extent):null}}]),r}(t),r.__decorate([i.property()],e.MediaElementView.prototype,"spatialReference",void 0),r.__decorate([i.property()],e.MediaElementView.prototype,"element",void 0),r.__decorate([i.property()],e.MediaElementView.prototype,"bounds",null),r.__decorate([i.property()],e.MediaElementView.prototype,"coords",null),r.__decorate([i.property()],e.MediaElementView.prototype,"normalizedCoords",null),r.__decorate([i.property()],e.MediaElementView.prototype,"normalizedBounds",null),e.MediaElementView=r.__decorate([c.subclass("esri.layers.support.media.MediaElementView")],e.MediaElementView),Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
