import{B as e}from"./p-eebad85b.js";import{h as r}from"./p-1ea36ff3.js";import{r as t}from"./p-681f800a.js";import"./p-3b35e507.js";class s extends e{constructor(e,r,t,s,i,a,o=!1){super(e,"reference"),this.title=r,this.titleField=t,this.imageField=s,this.otherCollection=i,this.fields=a,this.isSingle=o}static decode(e){return Object.assign(Object.create(s.prototype),e)}showPreview(){return this.preview=!0,this}getDisplayValue(e){return e}}s.type="reference",t("date",((e,t,s,i,a,o)=>r("dvn-field-input-date",{disabled:i,field:e,errors:s,onChange:r=>a(e,r),onBlur:()=>o(e),value:t})));export{s as R}