import{r as registerInstance,h,H as Host}from"./index-102043e0.js";var dvnFieldDisplayCellRelationReferenceCss=".sc-dvn-field-display-cell-relation-reference-h{display:-ms-flexbox;display:flex;overflow:auto}";var DvnFieldDisplayCellRelationReference=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this.field;var l=this.value||[];return h(Host,null,l.map((function(l){var i=l[e.nameOfOtherCollectionInRelationCollection];var n=e.imageField?i[e.imageField]:undefined;var t=e.titleField?i[e.titleField].split(" ").map((function(e){return e[0]})).join(""):undefined;return h("abbr",{title:i[e.titleField]},h("dvn-image",{bordered:true,leanedVertically:true,src:n,text:t}))})))};return e}();DvnFieldDisplayCellRelationReference.style=dvnFieldDisplayCellRelationReferenceCss;export{DvnFieldDisplayCellRelationReference as dvn_field_display_cell_relation_reference};