/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as s}from"tslib";import{ClonableMixin as e}from"../core/Clonable.js";import o from"../core/Collection.js";import{referenceSetter as t,castForReferenceSetter as r}from"../core/collectionUtils.js";import{JSONSupport as i}from"../core/JSONSupport.js";import{property as l,cast as c,subclass as p}from"../core/accessorSupport/decorators.js";import n from"./Slide.js";const m=o.ofType(n);let d=class extends(e(i)){constructor(s){super(s),this.slides=new m}destroy(){this.slides.forEach(s=>s.destroy()),this.slides.removeAll()}set slides(s){s&&(s=s.filter(s=>!!s.viewpoint)),this._set("slides",t(s,this._get("slides"),m))}};s([l({type:m,nonNullable:!0,json:{write:!0}}),c(r)],d.prototype,"slides",null),d=s([p("esri.webscene.Presentation")],d);const f=d;export{f as default};
