import{r as i,h as l,H as e}from"./p-9f21f85f.js";const s=class{constructor(l){i(this,l),this.value=[]}render(){const{meta:i,value:s}=this,t=((null==i?void 0:i.lines)||0)-this.value.length;if("tag-cloud"===this.field.inputType){let t=[...s];return i.maxItems&&s.length-i.maxItems>=1&&(t=t.slice(0,i.maxItems-1)),l(e,{style:{height:this.fixHeight?20*(this.field.options||[]).length+"px":void 0}},t.map((i=>l("dvn-button",{leaned:!0,scale:"small",shape:"rounded",view:"ghost",tagMode:!0},this.field.getOptionOfValue(i).label))),s.length>t.length&&l("dvn-button",{leaned:!0,scale:"small",shape:"rounded",view:"ghost",tagMode:!0},"+",s.length-t.length),0===this.value.length&&"-")}return l(e,{style:{height:this.fixHeight?20*(this.field.options||[]).length+"px":void 0}},l("ul",null,this.value.map((i=>l("li",null,this.field.getOptionOfValue(i).label))),0===this.value.length&&"-",t>0&&new Array(t).fill(0).map((()=>l("li",null)))))}};s.style=".sc-dvn-field-display-multiple-choice-h{display:block}.sc-dvn-field-display-multiple-choice-h ul.sc-dvn-field-display-multiple-choice{margin:0;padding-left:0}.sc-dvn-field-display-multiple-choice-h ul.sc-dvn-field-display-multiple-choice li.sc-dvn-field-display-multiple-choice{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sc-dvn-field-display-multiple-choice-h dvn-button.sc-dvn-field-display-multiple-choice{margin-right:4px}";export{s as dvn_field_display_multiple_choice}