import{r as registerInstance,h,H as Host}from"./index-b7735e0d.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;var n=l[e.nameOfOtherCollectionInRelationCollection];var t=e.imageField?n[e.imageField]:undefined;var r=e.titleField?(i=n[e.titleField])===null||i===void 0?void 0:i.split(" ").map((function(e){return e[0]})).join(""):undefined;return h("abbr",{title:n[e.titleField]},h("dvn-image",{bordered:true,leanedVertically:true,src:t,text:r}))})))};return e}();DvnFieldDisplayCellRelationReference.style=dvnFieldDisplayCellRelationReferenceCss;export{DvnFieldDisplayCellRelationReference as dvn_field_display_cell_relation_reference};