import{r as e,h as r,H as t}from"./p-cb5076d4.js";const d=(e,t,d)=>{var o;const s=e.imageField?t[e.imageField]:void 0,n=e.titleField?null===(o=t[e.titleField])||void 0===o?void 0:o.split(" ").map((e=>e[0])).join(""):void 0,i=t[e.titleField];return d.showTitle?r("dvn-info-summary",{title:i,leaned:!0},r("dvn-image",{slot:"media",bordered:!0,leaned:!0,src:s,text:n})):r("abbr",{title:i,style:{border:"none",textDecoration:"none"}},r("dvn-image",{bordered:!0,src:s,text:n}))},o=class{constructor(r){e(this,r),this.meta={}}render(){const{field:e,meta:o}=this,s=this.value||[];return r(t,null,Array.isArray(s)?s.map((r=>d(e,r,o))):d(e,s,o))}};o.style=".sc-dvn-field-display-reference-h{display:-ms-flexbox;display:flex;overflow:auto}";export{o as dvn_field_display_reference}