import { ISection } from '../../types/common';

const sections: ISection[] = [
  {
    title: 'Лизинг',
    groups: [
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['selectProduct'],
          },
          // {
          //   elements: ['selectClientRisk'],
          // },
          // {
          //   elements: ['selectClientType' ],
          // },
        ],
      },
      {
        style: { columnsNumber: 3 },
        blocks: [
          { elements: ['tbxLeaseObjectPrice', 'selectSupplierCurrency'] },
          {
            elements: ['tbxVATInLeaseObjectPrice', 'tbxSupplierDiscountRub'],
          },
          {
            elements: ['tbxLeaseObjectPriceWthtVAT', 'tbxSupplierDiscountPerc'],
          },
        ],
      },
      {
        style: { columnsNumber: 3 },
        blocks: [
          { elements: ['tbxFirstPaymentPerc'] },
          { elements: ['tbxFirstPaymentRub'] },
        ],
      },

      {
        style: { columnsNumber: 3 },
        blocks: [
          {
            elements: ['tbxLeasingPeriod'],
          },
          {
            elements: ['tbxSaleBonus'],
          },
          {
            elements: ['tbxRedemptionPaymentSum'],
          },
        ],
      },

      {
        style: { gridTemplateColumns: '2fr 1fr' },
        blocks: [
          { elements: ['selectSubsidy'] },
          { elements: ['labelSubsidySum'] },
        ],
      },
      {
        style: { gridTemplateColumns: '1fr 1fr 1fr' },
        blocks: [
          { elements: ['selectImportProgram'] },
          { elements: ['labelImportProgramSum'] },
          { elements: ['tbxAddEquipmentPrice'] },
        ],
      },
      {
        style: { columnsNumber: 3 },
        blocks: [
          {
            elements: ['tbxLastPaymentPerc'],
          },
          {
            elements: ['tbxLastPaymentRub'],
          },
          {
            elements: ['radioLastPaymentRule'],
          },
        ],
      },
    ],
  },
  {
    title: 'Платежи',
    groups: [
      {
        blocks: [
          {
            // title: 'Параметры графика платежей',
            elements: ['radioGraphType'],
          },
          {
            elements: [
              'selectSeasonType',
              'tbxParmentsDecreasePercent',
              'selectHighSeasonStart',
            ],
          },
        ],
      },
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['tablePayments'],
          },
        ],
      },
    ],
  },

  {
    title: 'ПЛ',
    groups: [
      {
        style: {
          gridTemplateColumns: '2fr 1fr',
        },
        blocks: [
          {
            elements: ['selectLeaseObjectType'],
          },
          {
            elements: ['labelDepreciationGroup'],
          },
        ],
      },
      {
        style: {
          gridTemplateColumns: '2fr 1fr',
        },
        blocks: [
          {
            elements: ['selectBrand'],
          },
          {
            elements: ['cbxLeaseObjectUsed'],
          },
        ],
      },
      {
        style: {
          gridTemplateColumns: '2fr 1fr',
        },
        blocks: [
          {
            elements: ['selectModel'],
          },
          {
            elements: ['cbxWithTrailer'],
          },
        ],
      },
      {
        style: {
          gridTemplateColumns: '2fr 1fr',
        },
        blocks: [
          {
            elements: ['selectConfiguration'],
          },
          {
            elements: ['radioDeliveryTime'],
          },
        ],
      },
      {
        style: {
          columnsNumber: 1,
        },
        blocks: [
          {
            elements: ['selectLeaseObjectUseFor'],
          },
        ],
      },
      {
        style: {
          columnsNumber: 3,
        },
        blocks: [
          {
            elements: [
              'tbxLeaseObjectCount',
              'tbxLeaseObjectYear',
              'selectLeaseObjectCategory',
              'tbxMaxMass',
            ],
          },
          {
            elements: [
              'selectEngineType',
              'tbxLeaseObjectMotorPower',
              'tbxEngineVolume',
              'tbxEngineHours',
            ],
          },
          {
            elements: ['tbxMaxSpeed', 'tbxCountSeats', 'tbxMileage', 'tbxVIN'],
          },
        ],
      },
    ],
  },
  {
    title: 'Поставщик/агент',
    groups: [
      {
        title: 'Поставщик предмета лизинга',
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['selectDealer'],
          },
        ],
      },
      {
        blocks: [
          {
            elements: [
              'selectDealerPerson',
              'selectDealerRewardCondition',
              'tbxDealerRewardSumm',
            ],
          },
          {
            elements: [
              'selectDealerBroker',
              'selectDealerBrokerRewardCondition',
              'tbxDealerBrokerRewardSumm',
            ],
          },
        ],
      },
      {
        title: 'Агент, передавший контакт',
        blocks: [
          {
            elements: [
              'selectIndAgent',
              'selectIndAgentRewardCondition',
              'tbxIndAgentRewardSumm',
            ],
          },
          {
            elements: [
              'selectCalcDoubleAgent',
              'selectCalcDoubleAgentRewardCondition',
              'tbxCalcDoubleAgentRewardSumm',
            ],
          },
          {
            elements: [
              'selectCalcBroker',
              'selectCalcBrokerRewardCondition',
              'tbxCalcBrokerRewardSum',
            ],
          },
          {
            elements: [
              'selectCalcFinDepartment',
              'selectFinDepartmentRewardCondtion',
              'tbxFinDepartmentRewardSumm',
            ],
          },
        ],
      },
    ],
  },
  {
    title: 'Страхование',
    groups: [
      {
        style: { columnsNumber: 3 },
        blocks: [
          {
            elements: [
              'tbxLeaseObjectYear',
              'selectEngineType',
              'selectLeaseObjectCategory',
              'tbxLeaseObjectMotorPower',
              'tbxEngineVolume',
              'selectLeasingWithoutKasko',
            ],
          },
          {
            elements: [
              'selectLeaseObjectUseFor',
              'tbxInsFranchise',
              'tbxMileage',
              'cbxWithTrailer',
              'cbxInsDecentral',
              'selectInsNSIB',
            ],
          },
          {
            elements: [
              'selectLegalClientRegion',
              'selectLegalClientTown',
              'tbxINNForCalc',
              'selectGPSBrand',
              'selectGPSModel',
            ],
          },
        ],
      },
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['tableInsurance'],
          },
        ],
      },
      {
        title: 'Риски Safe Finance',
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['componentfinGAP'],
          },
        ],
      },
    ],
  },
  {
    title: 'ЭЛТ',
    groups: [
      {
        title: 'Расчет страховки ЭЛТ',
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['componentElt'],
          },
        ],
      },
    ],
  },

  {
    title: 'Доп. продукты',
    groups: [
      {
        style: {
          gridTemplateColumns: '2fr 1.5fr 1.5fr',
        },
        title: 'Регистрация',
        blocks: [
          {
            elements: ['radioObjectRegistration'],
          },
          {
            elements: ['radioTypePTS'],
          },
        ],
      },
      {
        style: {
          gridTemplateColumns: '2fr 1.5fr 1.5fr',
        },
        blocks: [
          {
            elements: [
              'selectRegionRegistration',
              'selectTownRegistration',
              'selectObjectRegionRegistration',
            ],
          },
          {
            elements: [
              'tbxLeaseObjectYear',
              'tbxLeaseObjectMotorPower',
              'tbxVehicleTaxInYear',
            ],
          },
          {
            elements: [
              'selectObjectCategoryTax',
              'selectObjectTypeTax',
              'tbxVehicleTaxInLeasingPeriod',
            ],
          },
        ],
      },
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            elements: ['selectRegistration', 'labelRegistrationDescription'],
          },
        ],
      },
      {
        title: 'Доп. продукты',
        style: { gridTemplateColumns: '2fr 3fr' },
        blocks: [
          {
            elements: ['selectTechnicalCard'],
          },
          {
            elements: ['selectInsNSIB'],
          },
        ],
      },
      {
        style: {
          gridTemplateColumns: '2fr 3fr',
        },
        blocks: [
          { elements: ['radioRequirementTelematic'] },
          {
            elements: ['selectTracker', 'selectTelematic'],
          },
        ],
      },
    ],
  },
  {
    title: 'Создание КП',
    groups: [
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            style: { columnsNumber: 3 },
            elements: [
              // 'cbxLastPaymentRedemption',
              'cbxPriceWithDiscount',
              'cbxFullPriceWithDiscount',
              'cbxCostIncrease',
              'cbxInsurance',
              'cbxRegistrationQuote',
              'cbxTechnicalCardQuote',
              'cbxNSIB',
              'cbxQuoteRedemptionGraph',
              'cbxShowFinGAP',
            ],
          },
        ],
      },
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            style: { columnsNumber: 2 },
            elements: ['tbxQuoteName', 'radioQuoteContactGender'],
          },
        ],
      },
      {
        style: { columnsNumber: 1 },
        blocks: [
          {
            style: { columnsNumber: 2 },

            elements: ['btnCreateKP', 'linkDownloadKp'],
          },
        ],
      },
    ],
  },
  // {
  //   title: 'Без ограничений',
  //   groups: [
  //     {
  //       blocks: [
  //         {
  //           elements: [
  //             // 'cbxDisableChecks',
  //             'selectTarif',
  //             'tbxCreditRate',
  //             'selectRate',
  //           ],
  //         },
  //         {
  //           elements: [
  //             // 'cbxInsDecentral',
  //             'tbxMinPriceChange',
  //             'tbxMaxPriceChange',
  //             'tbxImporterRewardPerc',
  //             'tbxImporterRewardRub',
  //             'tbxBonusCoefficient',
  //           ],
  //         },
  //       ],
  //     },
  //   ],
  // },
];

export default sections;
