/*
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/Collection","../core/collectionUtils","../core/JSONSupport","../core/accessorSupport/decorators/property","../core/arrayUtils","../core/has","../core/accessorSupport/decorators/cast","../core/accessorSupport/decorators/subclass","./Slide"],(function(e,s,t,r,o,c,i,n,l,a,u){"use strict";const p=t.ofType(u);let d=function(s){function t(e){var t;return(t=s.call(this,e)||this).slides=new p,t}e._inheritsLoose(t,s);var o=t.prototype;return o.destroy=function(){this.slides.forEach((e=>e.destroy())),this.slides.removeAll()},o.clone=function(){return new(0,this.constructor)({slides:this.slides.clone()})},e._createClass(t,[{key:"slides",set:function(e){e&&(e=e.filter((e=>!!e.viewpoint))),this._set("slides",r.referenceSetter(e,this._get("slides"),p))}}]),t}(o.JSONSupport);s.__decorate([c.property({type:p,nonNullable:!0,json:{write:!0}}),l.cast(r.castForReferenceSetter)],d.prototype,"slides",null),d=s.__decorate([a.subclass("esri.webscene.Presentation")],d);return d}));
