import { makeAutoObservable } from 'mobx';
import SettingField from './SettingField';
var SettingTopEntry = function SettingTopEntry(owner) {
  var _this = this;
  this.owner = void 0;
  this.fields = [];
  this.setupFields = function () {
    _this.owner.componentSpec.configure.forEach(function (conf) {
      _this.fields.push(new SettingField(_this, conf));
    });
  };
  this.getProp = function (propName) {
    return _this.owner.getProp(propName);
  };
  this.getExtraProp = function (propName) {
    return _this.owner.getExtraProp(propName);
  };
  makeAutoObservable(this, {
    owner: false
  });
  this.owner = owner;
  this.setupFields();
};
export { SettingTopEntry as default };