/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as t}from"tslib";import r from"../core/Error.js";import{JSONSupport as o}from"../core/JSONSupport.js";import{property as e,subclass as l}from"../core/accessorSupport/decorators.js";let s=class extends o{constructor(t){super(t),this.created=null,this.id=null,this.portal=null,this.title=null,this.username=null}get url(){const t=this.portal?.restUrl;return t?`${t}/content/users/${this.username}/${this.id}`:null}toJSON(){throw new r("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")}};t([e({type:Date})],s.prototype,"created",void 0),t([e()],s.prototype,"id",void 0),t([e()],s.prototype,"portal",void 0),t([e()],s.prototype,"title",void 0),t([e({readOnly:!0})],s.prototype,"url",null),t([e()],s.prototype,"username",void 0),s=t([l("esri.portal.PortalFolder")],s);export{s as default};
