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