import{r as registerInstance,h,H as Host}from"./index-b7735e0d.js";import{A as AttachmentSourceType}from"./attachment-32decf79.js";import"./BaseField-461b6d0c.js";var dvnFieldDisplayCellAttachmentCss=".sc-dvn-field-display-cell-attachment-h{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";var DvnFieldDisplayCellAttachment=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e=this.field;if(e.sourceType===AttachmentSourceType.RawUrl){var t=this.value;return h(Host,null,h("dvn-image",{leaned:true,bordered:true,src:t,shape:e.shape}))}var a=[];if(e.sourceType===AttachmentSourceType.AttachmentObject){a=[this.value]}else if(e.sourceType===AttachmentSourceType.AttachmentObjects){a=this.value}return h(Host,null,a.map((function(e){return h("dvn-image",{leaned:true,bordered:true,src:e.url})})))};return e}();DvnFieldDisplayCellAttachment.style=dvnFieldDisplayCellAttachmentCss;export{DvnFieldDisplayCellAttachment as dvn_field_display_cell_attachment};