/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{__decorate as t}from"tslib";import{property as e,subclass as i}from"../../core/accessorSupport/decorators.js";import n from"./Element.js";import o from"./inputs/attachments/AttachmentInput.js";import{buildTypeMaps as s}from"./inputs/attachments/support/inputs.js";var r;const a=s(o);let p=r=class extends n{constructor(t){super(t),this.allowUserRename=!0,this.attachmentKeyword=null,this.displayFilename=!1,this.editableExpression=null,this.filenameExpression="{attachmentKeyword}_{now}",this.input=null,this.maxAttachmentCount=null,this.minAttachmentCount=null,this.type="attachment",this.useOriginalFilename=!0}clone(){return new r({allowUserRename:this.allowUserRename,attachmentKeyword:this.attachmentKeyword,description:this.description,displayFilename:this.displayFilename,editableExpression:this.editableExpression,filenameExpression:this.filenameExpression,input:this.input?.clone(),label:this.label,maxAttachmentCount:this.maxAttachmentCount,minAttachmentCount:this.minAttachmentCount,useOriginalFilename:this.useOriginalFilename,visibilityExpression:this.visibilityExpression})}};t([e({type:Boolean,json:{write:!0}})],p.prototype,"allowUserRename",void 0),t([e({type:String,json:{write:{isRequired:!0}}})],p.prototype,"attachmentKeyword",void 0),t([e({type:Boolean,json:{write:!0}})],p.prototype,"displayFilename",void 0),t([e({type:String,json:{write:!0}})],p.prototype,"editableExpression",void 0),t([e({type:String,json:{write:!0}})],p.prototype,"filenameExpression",void 0),t([e({types:a.allTypes,json:{read:{source:"inputType"},write:{target:"inputType",isRequired:!0}}})],p.prototype,"input",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"maxAttachmentCount",void 0),t([e({type:Number,json:{write:!0}})],p.prototype,"minAttachmentCount",void 0),t([e({type:["attachment"],readOnly:!0,json:{read:!1,write:!0}})],p.prototype,"type",void 0),t([e({type:Boolean,json:{write:!0}})],p.prototype,"useOriginalFilename",void 0),p=r=t([i("esri.form.elements.AttachmentElement")],p);const l=p;export{l as default};
