/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as t}from"tslib";import o from"../../core/Accessor.js";import{watch as e,initial as i}from"../../core/reactiveUtils.js";import{property as r,subclass as s}from"../../core/accessorSupport/decorators.js";import p from"../../portal/PortalItem.js";let a=class extends o{constructor(t){super(t),this.state="pending",this.url=""}initialize(){this.addHandles(e(()=>[this.extension,this.name],()=>this._setFormattedFileName(),i))}_setFormattedFileName(){this.name&&this.extension&&(this.formattedName=this.count?`${this.name}(${this.count}).${this.extension}`:`${this.name}.${this.extension}`)}};t([r()],a.prototype,"count",void 0),t([r()],a.prototype,"error",void 0),t([r()],a.prototype,"extension",void 0),t([r()],a.prototype,"formattedName",void 0),t([r()],a.prototype,"name",void 0),t([r({type:p})],a.prototype,"portalItem",void 0),t([r()],a.prototype,"state",void 0),t([r()],a.prototype,"url",void 0),a=t([s("esri.widgets.Print.FileLink")],a);const n=a;export{n as default};
