/*
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/Error","../core/JSONSupport","../core/accessorSupport/decorators/property","../core/arrayUtils","../core/has","../core/accessorSupport/ensureType","../core/accessorSupport/decorators/subclass"],(function(e,r,t,o,p,l,s,n,c){"use strict";let a=function(r){function o(e){var t;return(t=r.call(this,e)||this).created=null,t.id=null,t.portal=null,t.title=null,t.username=null,t}return e._inheritsLoose(o,r),o.prototype.toJSON=function(){throw new t("internal:not-yet-implemented","PortalFolder.toJSON is not yet implemented")},e._createClass(o,[{key:"url",get:function(){const e=this.get("portal.restUrl");return e?`${e}/content/users/${this.username}/${this.id}`:null}}]),o}(o.JSONSupport);r.__decorate([p.property({type:Date})],a.prototype,"created",void 0),r.__decorate([p.property()],a.prototype,"id",void 0),r.__decorate([p.property()],a.prototype,"portal",void 0),r.__decorate([p.property()],a.prototype,"title",void 0),r.__decorate([p.property({readOnly:!0})],a.prototype,"url",null),r.__decorate([p.property()],a.prototype,"username",void 0),a=r.__decorate([c.subclass("esri.portal.PortalFolder")],a);return a}));
