var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();import{B as BaseField}from"./BaseField-461b6d0c.js";var ReferenceField=function(e){__extends(t,e);function t(t,r,n,o,i,c,s){if(s===void 0){s=false}var l=e.call(this,t,"reference")||this;l.title=r;l.titleField=n;l.imageField=o;l.otherCollection=i;l.fields=c;l.isSingle=s;return l}t.decode=function(e){return Object.assign(Object.create(t.prototype),e)};t.prototype.showPreview=function(){this.preview=true;return this};t.prototype.getDisplayValue=function(e){return e};return t}(BaseField);ReferenceField.type="reference";export{ReferenceField as R};