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