import{r as i,h as l,H as e}from"./p-cb5076d4.js";const t=class{constructor(l){i(this,l),this.value=[]}render(){const{meta:i,value:t}=this,s=((null==i?void 0:i.lines)||0)-this.value.length;if("tag-cloud"===this.field.inputType){let s=[...t];return i.maxItems&&t.length-i.maxItems>=1&&(s=s.slice(0,i.maxItems-1)),l(e,{style:{height:this.fixHeight?20*(this.field.options||[]).length+"px":void 0}},s.map((i=>l("dvn-button",{leaned:!0,scale:"small",shape:"rounded",view:"outline",tagMode:!0},this.field.getOptionOfValue(i).label))),t.length>s.length&&l("dvn-button",{leaned:!0,scale:"small",shape:"rounded",view:"outline",tagMode:!0},"+",t.length-s.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&&"-",s>0&&new Array(s).fill(0).map((()=>l("li",null)))))}};t.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{t as dvn_field_display_multiple_choice}