/*
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","../Viewpoint","../core/JSONSupport","../core/accessorSupport/decorators/property","../core/arrayUtils","../core/has","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/subclass","../geometry/SpatialReference","./Environment"],(function(e,t,o,r,i,n,s,p,c,l,a){"use strict";var u;let v=u=function(t){function o(e){var o;return(o=t.call(this,e)||this).environment=new a,o.spatialReference=null,o.viewpoint=null,o}return e._inheritsLoose(o,t),o.prototype.clone=function(){return new u({environment:this.environment.clone(),spatialReference:this.spatialReference?this.spatialReference.clone():null,viewingMode:this.viewingMode,viewpoint:this.viewpoint?this.viewpoint.clone():null})},e._createClass(o,[{key:"viewingMode",set:function(e){this._set("viewingMode",e)}}]),o}(r.JSONSupport);t.__decorate([i.property({type:a,json:{write:{isRequired:!0}}})],v.prototype,"environment",void 0),t.__decorate([i.property({type:l})],v.prototype,"spatialReference",void 0),t.__decorate([i.property({type:["local","global"]})],v.prototype,"viewingMode",null),t.__decorate([i.property({type:o,json:{write:{isRequired:!0}}})],v.prototype,"viewpoint",void 0),v=u=t.__decorate([c.subclass("esri.webscene.InitialViewProperties")],v);return v}));
