12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as t}from"../../chunks/tslib.es6.js";import e from"../../core/Accessor.js";import o from"../../core/Handles.js";import{watch as s,initial as r}from"../../core/reactiveUtils.js";import{property as i}from"../../core/accessorSupport/decorators/property.js";import"../../core/arrayUtils.js";import"../../core/accessorSupport/ensureType.js";import{subclass as p}from"../../core/accessorSupport/decorators/subclass.js";let a=class extends e{constructor(t){super(t),this._handles=new o,this.state="pending",this.url=""}initialize(){this._handles.add([s((()=>[this.extension,this.name]),(()=>this._setFormattedFileName()),r)])}destroy(){this._handles.destroy()}_setFormattedFileName(){if(!this.name||!this.extension)return;let t=this.name+"."+this.extension;this.count&&(t=this.name+"("+this.count+")."+this.extension),this.formattedName=t}};t([i()],a.prototype,"count",void 0),t([i()],a.prototype,"error",void 0),t([i()],a.prototype,"extension",void 0),t([i()],a.prototype,"formattedName",void 0),t([i()],a.prototype,"name",void 0),t([i()],a.prototype,"state",void 0),t([i()],a.prototype,"url",void 0),a=t([p("esri.widgets.print.FileLink")],a);const n=a;export{n as default};
|