92 lines
1.9 KiB
TypeScript
92 lines
1.9 KiB
TypeScript
/* eslint-disable canonical/sort-keys */
|
||
import type * as Insurance from '@/Components/Calculation/Form/Insurance/InsuranceTable/types';
|
||
|
||
const defaultRowOptions: Insurance.RowOptions = {
|
||
insured: [
|
||
{
|
||
label: 'ЛП',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'ЛД',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
insTerm: [
|
||
{
|
||
label: '12 месяцев',
|
||
value: 100_000_000,
|
||
},
|
||
{
|
||
label: 'Срок ДЛ',
|
||
value: 100_000_001,
|
||
},
|
||
],
|
||
insCost: [],
|
||
insuranceCompany: [],
|
||
policyType: [],
|
||
};
|
||
|
||
export const defaultOptions: Record<Insurance.Keys, Insurance.RowOptions> = {
|
||
osago: defaultRowOptions,
|
||
kasko: defaultRowOptions,
|
||
fingap: defaultRowOptions,
|
||
};
|
||
|
||
export const DEFAULT_OSAGO_ROW: Insurance.RowValues = {
|
||
key: 'osago',
|
||
policyType: 'ОСАГО',
|
||
insuranceCompany: null,
|
||
insured: 100_000_000,
|
||
insCost: 0,
|
||
insTerm: 100_000_000,
|
||
};
|
||
|
||
export const DEFAULT_KASKO_ROW: Insurance.RowValues = {
|
||
key: 'kasko',
|
||
policyType: 'КАСКО',
|
||
insuranceCompany: null,
|
||
insured: 100_000_000,
|
||
insCost: 0,
|
||
insTerm: null,
|
||
};
|
||
|
||
export const DEFAULT_FINGAP_ROW: Insurance.RowValues = {
|
||
key: 'fingap',
|
||
policyType: 'Safe Finance',
|
||
insuranceCompany: null,
|
||
insured: 100_000_000,
|
||
insCost: 0,
|
||
insTerm: null,
|
||
};
|
||
|
||
export const defaultValues: Insurance.RowValues[] = [
|
||
DEFAULT_OSAGO_ROW,
|
||
DEFAULT_KASKO_ROW,
|
||
DEFAULT_FINGAP_ROW,
|
||
];
|
||
|
||
export const defaultStatuses: Record<Insurance.Keys, Insurance.RowStatuses> = {
|
||
osago: {
|
||
policyType: 'Default',
|
||
insuranceCompany: 'Default',
|
||
insured: 'Default',
|
||
insCost: 'Default',
|
||
insTerm: 'Disabled',
|
||
},
|
||
kasko: {
|
||
policyType: 'Default',
|
||
insuranceCompany: 'Default',
|
||
insured: 'Default',
|
||
insCost: 'Default',
|
||
insTerm: 'Disabled',
|
||
},
|
||
fingap: {
|
||
policyType: 'Default',
|
||
insuranceCompany: 'Default',
|
||
insured: 'Default',
|
||
insCost: 'Disabled',
|
||
insTerm: 'Default',
|
||
},
|
||
};
|