/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as t,subclass as i}from"../../core/accessorSupport/decorators.js";import{reader as r}from"../../core/accessorSupport/decorators/reader.js";import{writer as s}from"../../core/accessorSupport/decorators/writer.js";var n;function a(e){return e=Number(e),isNaN(e)?void 0:e}let u=class extends o{static{n=this}constructor(e){super(e),this.acquisitionDate=void 0,this.cloudCover=void 0,this.productName=void 0,this.sensorName=null,this.sensorAzimuth=void 0,this.sensorElevation=void 0,this.sunAzimuth=void 0,this.sunElevation=void 0}readAcquisitionDate(e){return new Date(e)}writeAcquisitionDate(e,o){o.AcquisitionDate=e.getTime()}clone(){return new n({acquisitionDate:this.acquisitionDate,cloudCover:this.cloudCover,productName:this.productName,sensorName:this.sensorName,sensorAzimuth:this.sensorAzimuth,sensorElevation:this.sensorElevation,sunAzimuth:this.sunAzimuth,sunElevation:this.sunElevation})}};e([t({type:Date,json:{name:"AcquisitionDate",write:!0}})],u.prototype,"acquisitionDate",void 0),e([r("acquisitionDate")],u.prototype,"readAcquisitionDate",null),e([s("acquisitionDate")],u.prototype,"writeAcquisitionDate",null),e([t({json:{name:"CloudCover",read:{reader:a},write:!0}})],u.prototype,"cloudCover",void 0),e([t({json:{name:"ProductName",write:!0}})],u.prototype,"productName",void 0),e([t({json:{name:"SensorName",write:!0}})],u.prototype,"sensorName",void 0),e([t({json:{name:"SensorAzimuth",read:{reader:a},write:!0}})],u.prototype,"sensorAzimuth",void 0),e([t({json:{name:"SensorElevation",read:{reader:a},write:!0}})],u.prototype,"sensorElevation",void 0),e([t({json:{name:"SunAzimuth",read:{reader:a},write:!0}})],u.prototype,"sunAzimuth",void 0),e([t({json:{name:"SunElevation",read:{reader:a},write:!0}})],u.prototype,"sunElevation",void 0),u=n=e([i("esri.layers.support.RasterSensorInfo")],u);export{u as default};
