var __spreadArray=this&&this.__spreadArray||function(e,i){for(var l=0,t=i.length,n=e.length;l<t;l++,n++)e[n]=i[l];return e};System.register(["./p-5b6828db.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 s=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,s=i.value;var d=((n===null||n===void 0?void 0:n.lines)||0)-this.value.length;if(this.field.inputType==="tag-cloud"){var a=__spreadArray([],s);if(n.maxItems&&s.length-n.maxItems>=1){a=a.slice(0,n.maxItems-1)}return l(t,{style:{height:this.fixHeight?(this.field.options||[]).length*20+"px":undefined}},a.map((function(i){return l("dvn-button",{leaned:true,scale:"small",shape:"rounded",view:"outline",tagMode:true},e.field.getOptionOfValue(i).label)})),s.length>a.length&&l("dvn-button",{leaned:true,scale:"small",shape:"rounded",view:"outline",tagMode:true},"+",s.length-a.length),this.value.length===0&&"-")}return l(t,{style:{height:this.fixHeight?(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&&"-",d>0&&new Array(d).fill(0).map((function(){return l("li",null)}))))};return e}());s.style=n}}}));