/* eslint-disable object-curly-newline */
import type { FormTabRows } from '../../lib/render-rows';

export const id = 'supplier-agent';
export const title = 'Поставщик/агент';

const defaultRowStyle = { gridTemplateColumns: ['1fr', '1fr', '1fr 1fr'] };

export const rows: FormTabRows = [
  { title: 'Поставщик предмета лизинга' },
  [['selectDealer'], { gridTemplateColumns: '1fr' }],
  [['selectDealerPerson', 'selectDealerBroker'], defaultRowStyle],
  [['selectDealerRewardCondition', 'selectDealerBrokerRewardCondition'], defaultRowStyle],
  [['tbxDealerRewardSumm', 'tbxDealerBrokerRewardSumm'], defaultRowStyle],

  { title: 'Агент, передавший контакт' },
  [['selectIndAgent', 'selectCalcDoubleAgent'], defaultRowStyle],
  [['selectIndAgentRewardCondition', 'selectCalcDoubleAgentRewardCondition'], defaultRowStyle],
  [['tbxIndAgentRewardSumm', 'tbxCalcDoubleAgentRewardSumm'], defaultRowStyle],
  [['selectCalcBroker', 'selectCalcFinDepartment'], defaultRowStyle],
  [['selectCalcBrokerRewardCondition', 'selectFinDepartmentRewardCondtion'], defaultRowStyle],
  [['tbxCalcBrokerRewardSum', 'tbxFinDepartmentRewardSumm'], defaultRowStyle],
];
