import{r as registerInstance,h,H as Host}from"./index-102043e0.js";var dvnFieldDisplayCellReferenceCss=".sc-dvn-field-display-cell-reference-h{display:-ms-flexbox;display:flex;overflow:auto;padding:0 4px}.sc-dvn-field-display-cell-reference-h abbr.sc-dvn-field-display-cell-reference{border-bottom:none}";var renderReference=function(e,r,l){var n=e.imageField?r[e.imageField]:undefined;var i=e.titleField?r[e.titleField].split(" ").map((function(e){return e[0]})).join(""):undefined;return h("abbr",{title:r[e.titleField]},h("dvn-image",{bordered:true,leanedVertically:true,src:n,text:i,shape:l===null||l===void 0?void 0:l.imageShape}))};var DvnFieldDisplayCellReference=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this,r=e.field,l=e.meta;var n=this.value||[];return h(Host,null,Array.isArray(n)?n.map((function(e){return renderReference(r,e,l)})):renderReference(r,n,l))};return e}();DvnFieldDisplayCellReference.style=dvnFieldDisplayCellReferenceCss;export{DvnFieldDisplayCellReference as dvn_field_display_cell_reference};