var __spreadArray=this&&this.__spreadArray||function(e,i,l){if(l||arguments.length===2)for(var t=0,n=i.length,a;t<n;t++){if(a||!(t in i)){if(!a)a=Array.prototype.slice.call(i,0,t);a[t]=i[t]}}return e.concat(a||Array.prototype.slice.call(i))};System.register(["./p-5e377a26.system.js"],(function(e){"use strict";var i,l,t;return{setters:[function(e){i=e.r;l=e.h;t=e.H}],execute:function(){var n=".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}";var a=e("dvn_field_display_multiple_choice",function(){function e(e){i(this,e);this.value=[]}e.prototype.render=function(){var e=this;var i=this,n=i.meta,a=i.value;var s=((n===null||n===void 0?void 0:n.lines)||0)-this.value.length;if(this.field.inputType==="tag-cloud"){var r=__spreadArray([],a,true);if(n.maxItems&&a.length-n.maxItems>=1){r=r.slice(0,n.maxItems-1)}return l(t,{style:{height:this.fixHeight?"".concat((this.field.options||[]).length*20,"px"):undefined}},r.map((function(i){return l("dvn-button",{leaned:true,scale:"small",shape:"rounded",view:"outline",tagMode:true},e.field.getOptionOfValue(i).label)})),a.length>r.length&&l("dvn-button",{leaned:true,scale:"small",shape:"rounded",view:"outline",tagMode:true},"+",a.length-r.length),this.value.length===0&&"-")}return l(t,{style:{height:this.fixHeight?"".concat((this.field.options||[]).length*20,"px"):undefined}},l("ul",null,this.value.map((function(i){return l("li",null,e.field.getOptionOfValue(i).label)})),this.value.length===0&&"-",s>0&&new Array(s).fill(0).map((function(){return l("li",null)}))))};return e}());a.style=n}}}));