window.WeaHrm4Formal = false;
window.inputType = {
    inputType: 'MULTILANG',
    isBase64: true
};

window.HrmGroupCol = 2; //人力布局(1、一行2列，2、一行4列)
window.HrmLabelCol = 6;
window.HrmWrapperCol = 15;
window.HrmEngineLabelCol = 6;
window.HrmEngineWrapperCol = 18;
window.defaultScheduleBGColor = [
    '#47A9FC',
    '#70C06F',
    '#F6D65C',
    '#EA744D',
    '#4EBCCC',
    '#EA5C85',
    '#8F72F2',
    '#7297F2',
    '#CA4DE4',
    '#A7CC62'
];
import {
    Route
} from 'react-router';
import {
    WeaLocaleProvider
} from 'ecCom';
import {
    isEnableMultiLang
} from './apis/common';
import Home from './components/Home';
import ShiftManager from './components/shiftManager/index';
import OvertimeRule from './components/overtimeRule/index';
import HolidaySettingNew from './components/holidaySettingNew/index';
import GroupSetting from './components/groupSetting/index';
import HolidayRule from './components/holidayRule/index';
import GroupInfoSingle from './components/groupSetting/InfoSingle';
import ScheduleSetting from './components/scheduleSetting/index';
import TravelRule from './components/travelRule/index';
import VacationBalanceCopy from './components/vacationBalance/index';
import AttendanceRpSharingSetting from './components/attendanceReportSharingSetting/index';
import WorkflowSetting from './components/workflowSetting/index'; //考勤/状态变更流程设置
import Init from './components/init/index';
import Upgrade from './components/upgrade/index';
import HolidayType from './components/holidayType/index';
import NewHolidayRule from './components/newHolidayRule/index';
import ImportExtenalAttendanceData from './components/importExternalAttendanceData/index';
import AttendanceSyncSetting from './components/attendanceSyncSetting/index';
import VacationRule from './components/vacationRule/index.js';
import VacationType from './components/vacationType/index.js'; 
import VacationRemain from './components/vacationRemain/index.js'; 
import ApplicationSettings from './components/applicationSettings/index.js';
import ScheduleCode from './components/schedulecode/index';
import KQMonthReportSetting from './components/kqMonthReportSetting/index.js';
import Test from './components/test/index';

import './style/index';
import './util/index';
import stores from './stores/index';
// isEnableMultiLang().then(data => {
//     window.inputType = {
//         inputType: 'NORMAL'
//     }
//     if (data.status === '1') {
//         if (data.isEnableMultiLang) {
//             window.inputType = {
//                 inputType: 'MULTILANG',
//                 isBase64: true
//             }
//         }
//     }
// }, error => {
//     window.inputType = {
//         inputType: 'NORMAL'
//     }
// })
const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'hrm');
const HrmAttendanceRoute = (
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@leyscy`} path="attendance" onEnter={getLocaleLabel} component={Home}>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@fpmex8`} name="shift" path="shift" component={ShiftManager} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@qy5vdd`} name="holidaySetting" path="holidaySetting" component={HolidaySettingNew} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@k78li0`} name="holidaySetting" path="holidaySetting/:id" component={HolidaySettingNew} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@b2pk3r`} name="overtimeRule" path="overtimeRule" component={OvertimeRule} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@y0vrol`} name="groupSetting" path="groupSetting" component={GroupSetting}/>
        {/*<Route name="holidayRule" path="holidayRule" component={HolidayRule}/>*/}
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@wgqluk`} name="groupInfo" path="groupInfo/:id" component={GroupInfoSingle} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@df8nf7`} name="scheduleSetting" path="scheduleSetting/:id" component={ScheduleSetting} />
        {/*<Route name="vacationBalance" path="vacationBalance" component={VacationBalanceCopy} />*/}
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@suxn4p`} name="travelRule" path="travelRule" component={TravelRule} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@jkd7m2`} name="attendanceRpSharingSetting" path="attendanceRpSharingSetting" component={AttendanceRpSharingSetting} />
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@d95tp7`} name="wfSetting" breadcrumbName="流程设置" path="wfn/:type" component={WorkflowSetting}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@e2jlro`} name="init" path="init" component={Init}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@s64wkw`} name="upgrade" path="upgrade" component={Upgrade}/>
        {/*<Route name="holidayType" path="holidayType" component={HolidayType}/>
        <Route name="holidayRule" path="holidayRule" component={NewHolidayRule}/>*/}
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@9vgldc`} name="imptExtAttendanceData" path="imptExtAttendanceData" component={ImportExtenalAttendanceData}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@kwu0nq`} name="attendanceSyncSetting" breadcrumbName="考勤同步设置" path="attSyncSetting" component={AttendanceSyncSetting}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@ptl9hk`} name="vacationRule" path="holidayRule" component={VacationRule}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@y3x996`} name="vacationType" path="holidayType" component={VacationType}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@2qo43g`} name="vacationRemain" path="vacationBalance" component={VacationRemain}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@u5gqwc`} name="applicationSettings" path="applicationSettings" component={ApplicationSettings}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@4jon1h`} name="schedulecode" path="schedulecode" component={ScheduleCode}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@42s2c2`} name='KQMonthReportSetting' path='kqMonthReportSetting' component={KQMonthReportSetting}/>
        <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@m8a8q4`} name="test" breadcrumbName="测试专用" path="test" component={Test}/>
  </Route>
)
module.exports = {
    Route: HrmAttendanceRoute,
    store: stores
}