import{r as e,h as i,H as l}from"./p-cb5076d4.js";import{N as a}from"./p-f97ba04a.js";import"./p-eebad85b.js";const d={number:"dvn-field-display-number","multiple-choice":"dvn-field-display-multiple-choice","single-choice":"dvn-field-display-single-choice",text:"dvn-field-display-text",date:"dvn-field-display-date",attachment:"dvn-field-display-attachment",rawData:"dvn-field-display-raw-data",range:"dvn-field-display-range",reference:"dvn-field-display-reference"},t=class{constructor(i){e(this,i),this.showTitle=!0}render(){const{field:e,infoTitle:t,meta:s,showTitle:n,value:c}=this;let r=e,p=d[e.type];return e.type===a.type&&(p=d[e.nestedField.type],r=e.nestedField),i(l,null,n&&i("div",{class:"title"},(t||"").toUpperCase()),p?i(p,{field:r,value:c,meta:s,fixHeight:!1}):i("span",null,c))}};t.style=".sc-dvn-field-display-h{font-size:0.9em;margin:0px 0px calc(4 * var(--spacing-unit)) 0px;display:block}.sc-dvn-field-display-h:last-child{margin-bottom:0}.title.sc-dvn-field-display{font-size:0.8em;margin-bottom:calc(2 * var(--spacing-unit));color:var(--color-text-secondary)}";export{t as dvn_field_display}