export const questionnaire_template = {
	step: 1, 
	status: "empty", 
	main: {
		title: null, 
		inn: null, 
		kpp: null, 
		email: null, 
		telephone: null, 
		websiteurl: null, 
		financial_loan: null, 
		is_individual_executive: false, 
		individual_executive_inn: null, 
		individual_executive_kpp: null, 
		individual_executive_oop: null, 
		individual_executive_docnum: null, 
		individual_executive_docdate: null, 
		high_level: null, 
		board_of_directors: null, 
		collective_executive: null, 
		individual_executive: null, 
		other_control: null, 
		nko: false, 
		accept: false, 
		mail_delivery_address_type: 100000000, 
	}, 
	delegation_files: [], 
	contacts: {
		legal_address: {
			name: null, 
			fias_id: null, 
		}, 
		fact_address: {
			name: null, 
			fias_id: null, 
		}, 
		postal_address: {
			name: null, 
			fias_id: null, 
		}, 
	}, 
	head_person: {
		lastname: null, 
		firstname: null, 
		middlename: null, 
		no_middle_name: false, 
		jobtitle: "Генеральный директор", 
		telephone: null, 
		email: null, 
		identity_document: {
			doctype: 100000000, 
			seria: null, 
			docnumber: null, 
			issuedate: null, 
			code: null, 
			issueby: null, 
			issueby_search_dadata: null, 
			placebirth: null, 
			citizenship: {
				title: null, 
				code: 643, 
			}, 
			registration_address: {
				name: null, 
				fias_id: null, 
			}
		}, 
		assignment_date: null, 
		credentials_dateend: null, 
		indefinite: false, 
	}, 
	head_person_files: [], 
	signatory_person: {
		not_head_person: false, 
		lastname: null, 
		firstname: null, 
		middlename: null, 
		no_middle_name: false, 
		jobtitle: null, 
		signer_rule_basic: 100000000, 
		signer_rule_basic_add: null, 
		docdate: null, 
		docnumber: null, 
		delegation_agreement: false, 
		telephone: null, 
		email: null, 
		identity_document: {
			doctype: 100000000, 
			seria: null, 
			docnumber: null, 
			issuedate: null, 
			code: null, 
			issueby: null, 
			issueby_search_dadata: null, 
			placebirth: null, 
			citizenship: {
				title: null, 
				code: 643, 
			}, 
			registration_address: {
				name: null, 
				fias_id: null, 
			}
		}
	}, 
	signatory_person_files: [], 
	signatory_corporate_files: [], 
	founder_persons: [], 
	client_contacts: [], 
	non_profit: {
		fin_source_business: false, 
		fin_source_donate: false, 
		fin_source_fees: false, 
		fin_source_another: false, 
		fin_source_another_description: null, 
		foreign_payers: false, 
		fin_goals_cars: null, 
		fin_goals_trucks: null, 
		fin_goals_special: null, 
	}, 
	personal_data_consent: true, 
	sign: {
		digital: true, 
		uploading: false, 
		uploaded: false, 
		sent: false, 
		filename: null, 
		filedate: null, 
	}, 
	licenses: [], 
};

export const defaultState = { 
	auth: 
	{ 
		logged: false, 
		observer: false, 
	}, 
	user: 
	{ 
		name: "", 
		lastname: "", 
		secondname: "", 
		phone: "", 
	}, 
	admin: 
	{ 
		list: null, 
	}, 
	company: 
	{ 
		title: "", 
		inn: "", 
		kpp: "", 
		ogrn: "", 
	}, 
	companies: 
	{ 
		list: null, 
	}, 
	contracts_info: {}, 
	contracts: 
	{ 
		list: null, 
		page: 1, 
		pages: 1, 
	}, 
	invoices: {
		list: {}, 
	}, 
	contract: 
	{ 
		payments: null, 
		avans: null, 
		debt: null, 
		penalty: null, 
		date: null, 
		car: null, 
		insurance: null, 
		helpcard: null, 
		registration: null, 
		telematic: null, 
		agreement: 
		{ 
			unsigned: null, 
			signed: null, 
		}, 
		documents: null, 
		fines: null, 
		rules: null, 
		materials: null, 
		change: 
		{ 
			signatories: null, 
			calculations: null, 
			variants: null, 
			options: null, 
			current: null, 
			calculated: null, 
		}, 
	}, 
	contract_events: {}, 
	contract_fines: {}, 
	calendar: { 
		payments: null, 
		periods: null, 
	}, 
	schedule: 
	{
		peyments: null, 
	}, 
	finals: 
	{
		list: null, 
		page: null, 
		pages: false, 
	}, 
	reconciliations: 
	{
		list: null, 
		page: null, 
		pages: false, 
	}, 
	events: 
	{
		loaded: false, 
		list: undefined, 
		filtered: undefined, 
	}, 
	support: 
	{
		themes: null, 
		filtered: null, 
		appeals: { list: null, new: 0 }, 
		appeal: null, 
		request: null, 
	}, 
	deals: 
	{
		loaded: false, 
		list: null, 
		last: 0, 
		details: {}, 
		/*{
			loaded: false, 
			offers: {
				list: null, 
				filtered: null, 
			}, 
			documents: {
				list: null, 
			}, 
			contracts: {
				list: null, 
			}, 
		}, 
		*/
	}, 
	edo: 
	{
		loaded: false, 
		operators: null, 
		invites: null, 
		message: null, 
	}
};

export default JSON.parse(JSON.stringify({ ...defaultState, ...{ questionnaire: questionnaire_template } }));