import{r as registerInstance,h,H as Host}from"./index-b7735e0d.js";var dvnFieldDisplayCellSingleChoiceCss=".sc-dvn-field-display-cell-single-choice-h{display:block;height:32px;padding:6px}.tag-wrapper.sc-dvn-field-display-cell-single-choice-h{padding:4px 6px}.sc-dvn-field-display-cell-single-choice-h:not(.tag-wrapper){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";var DvnFieldDisplayCellSingleChoice=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this.field.getOptionOfValue(this.value);return h(Host,{class:{"tag-wrapper":!!e.tint}},e.tint?h("dvn-button",{leaned:true,scale:"small",shape:"rounded",tint:e.tint,view:"ghost",tagMode:true},e.label):e.label)};return e}();DvnFieldDisplayCellSingleChoice.style=dvnFieldDisplayCellSingleChoiceCss;export{DvnFieldDisplayCellSingleChoice as dvn_field_display_cell_single_choice};