var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();System.register(["./p-58f2f536.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.B}],execute:function(){var r=function(t){__extends(e,t);function e(e,r,n,o,i,c,s){if(s===void 0){s=false}var u=t.call(this,e,"reference")||this;u.title=r;u.titleField=n;u.imageField=o;u.otherCollection=i;u.fields=c;u.isSingle=s;return u}e.decode=function(t){return Object.assign(Object.create(e.prototype),t)};e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.getDisplayValue=function(t){return t};return e}(e);t("R",r);r.type="reference"}}}));