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)}}();import{B as BaseField}from"./BaseField-461b6d0c.js";var NestedField=function(t){__extends(e,t);function e(e,r){var n=t.call(this,e,"nested")||this;n.title=r.title;n.nestedField=r;return n}e.prototype.getWrapperId=function(){return this.id.split(".")[0]};e.prototype.getWrappedId=function(){return this.id.split(".")[1]};e.prototype.getWrappedValue=function(t){var e=t;this.id.split(".").forEach((function(t){if(!e){return}e=e[t]}));return e};e.prototype.showPreview=function(){this.preview=true;return this};e.prototype.getDisplayValue=function(t){return t};return e}(BaseField);NestedField.type="nested";export{NestedField as N};