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