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