/* COPYRIGHT Esri - https://js.arcgis.com/5.1.2/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as i,subclass as o}from"../../../core/accessorSupport/decorators.js";import t from"./Input.js";import c from"./multipleChoice/Choice.js";import s from"./multipleChoice/OtherChoice.js";var r;let h=r=class extends t{constructor(e){super(e),this.choiceDelimiter=",",this.choices=[],this.includeSelectAllChoices=null,this.maximumChoices=null,this.minimumChoices=null,this.otherChoice=null,this.type="multiple-choice"}clone(){return new r({choiceDelimiter:this.choiceDelimiter,choices:this.choices.map(e=>e.clone()),includeSelectAllChoices:this.includeSelectAllChoices,maximumChoices:this.maximumChoices,minimumChoices:this.minimumChoices,otherChoice:this.otherChoice?.clone()??null})}};e([i({type:String,json:{write:!0}})],h.prototype,"choiceDelimiter",void 0),e([i({type:[c],json:{write:!0}})],h.prototype,"choices",void 0),e([i({type:Boolean,json:{write:!0}})],h.prototype,"includeSelectAllChoices",void 0),e([i({type:Number,json:{write:!0}})],h.prototype,"maximumChoices",void 0),e([i({type:Number,json:{write:!0}})],h.prototype,"minimumChoices",void 0),e([i({type:s,json:{write:!0}})],h.prototype,"otherChoice",void 0),e([i({type:["multiple-choice"],json:{read:!1,write:!0}})],h.prototype,"type",void 0),h=r=e([o("esri.form.elements.inputs.MultipleChoiceInput")],h);const l=h;export{l as default};
