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