"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _reactIntl = require("react-intl");

const template = configContext => {
  const {
    React
  } = configContext.lib;
  const {
    Panel,
    Row
  } = configContext.layoutComponents;
  const {
    Field,
    InputTable
  } = configContext.recordComponents;
  return React.createElement(Field, {
    name: "document"
  }, React.createElement(Panel, {
    name: "info",
    collapsible: true
  }, React.createElement(Row, null, React.createElement(Field, {
    name: "loanInNumber"
  }), React.createElement(Field, {
    name: "loanPurpose"
  })), React.createElement(Field, {
    name: "loanStatusGroupList"
  }, React.createElement(Field, {
    name: "loanStatusGroup"
  }, React.createElement(Field, {
    name: "loanGroup"
  }), React.createElement(Field, {
    name: "loanIndividual"
  }), React.createElement(Field, {
    name: "loanStatus"
  }), React.createElement(Field, {
    name: "loanStatusDate"
  }), React.createElement(Field, {
    name: "loanStatusNote"
  }))), React.createElement(Field, {
    name: "lenderGroupList"
  }, React.createElement(Field, {
    name: "lenderGroup"
  }, React.createElement(Field, {
    name: "lender"
  }), React.createElement(Field, {
    name: "lendersContact"
  }), React.createElement(Field, {
    name: "lendersAuthorizer"
  }), React.createElement(Field, {
    name: "lendersAuthorizationDate"
  }))), React.createElement(InputTable, {
    name: "borrower"
  }, React.createElement(Field, {
    name: "borrowersContact"
  }), React.createElement(Field, {
    name: "borrowersAuthorizer"
  }), React.createElement(Field, {
    name: "borrowersAuthorizationDate"
  })), React.createElement(Row, null, React.createElement(Field, {
    name: "loanInConditions"
  }), React.createElement(Field, {
    name: "loanInNote"
  })), React.createElement(Row, null, React.createElement(Field, {
    name: "loanInDate"
  }), React.createElement(Field, {
    name: "loanReturnDate"
  }), React.createElement(Field, {
    name: "loanRenewalApplicationDate"
  }))));
};

var _default = configContext => ({
  messages: (0, _reactIntl.defineMessages)({
    name: {
      "id": "form.loanin.default.name",
      "defaultMessage": "Standard Template"
    }
  }),
  template: template(configContext)
});

exports.default = _default;