import{r as e,h as s,H as t}from"./p-9f21f85f.js";import{A as r}from"./p-3ccedaa0.js";import"./p-105f7627.js";const a=class{constructor(s){e(this,s)}render(){const{field:e}=this;if(e.sourceType===r.RawUrl)return s(t,null,s("dvn-image",{leaned:!0,bordered:!0,src:this.value}));let a=[];return e.sourceType===r.AttachmentObject?a=[this.value]:e.sourceType===r.AttachmentObjects&&(a=this.value),s(t,null,a.map((e=>s("dvn-image",{leaned:!0,bordered:!0,src:e.url,scale:"small"}))))}};a.style=".sc-dvn-field-display-attachment-h{display:block;padding:4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";export{a as dvn_field_display_attachment}