/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{__decorate as t}from"tslib";import{property as e,cast as p,subclass as r}from"../../../../core/accessorSupport/decorators.js";import{reader as s}from"../../../../core/accessorSupport/decorators/reader.js";import o from"./Input.js";import{ensureType as n,fromJSON as i,toJSON as u,buildTypeMaps as a}from"./support/inputs.js";import{writer as c}from"../../../../core/accessorSupport/decorators/writer.js";let y=class extends o{constructor(t){super(t),this.type="attachment",this.attachmentAssociationType="exact"}get inputTypes(){return this._get("inputTypes")??null}set inputTypes(t){this._set("inputTypes",t)}castInputs(t){return n(t,m,!0)}readInputs(t,e){return i(e.inputTypes,m,!0)}writeInputs(t,e){e.inputTypes=u(t,m,!0)}};t([e({type:["attachment"],readOnly:!0,json:{write:!0}})],y.prototype,"type",void 0),t([e({type:["any","exact","exactOrNone"],json:{write:!0}})],y.prototype,"attachmentAssociationType",void 0),t([e({json:{write:{isRequired:!0}}})],y.prototype,"inputTypes",null),t([p("inputTypes")],y.prototype,"castInputs",null),t([s("inputTypes")],y.prototype,"readInputs",null),t([c("inputTypes")],y.prototype,"writeInputs",null),y=t([r("esri.form.elements.inputs.attachments.AttachmentInput")],y);const m=a(y),l=y;export{l as default};
