import{B as e}from"./p-eebad85b.js";import{h as r}from"./p-cb5076d4.js";import{r as t}from"./p-0db2169b.js";import"./p-3b35e507.js";class s extends e{constructor(e,r,t,s,i,o,a=!1){super(e,"reference"),this.title=r,this.titleField=t,this.imageField=s,this.otherCollection=i,this.fields=o,this.isSingle=a}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,o,a)=>r("dvn-field-input-date",{disabled:i,field:e,errors:s,onChange:r=>o(e,r),onBlur:()=>a(e),value:t})));export{s as R}