import { UserRoleEnum } from '@/data/user/user.model';
import { pageLinks } from '@/helpers/constants';
import { SvgIcon } from '@mui/material';

export const routes = [
    {
        title: 'dashboard',
        path: pageLinks.dashboard.main.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'>
                    <path
                        d='M20 20.0001C20 20.5524 19.5523 21.0001 19 21.0001H5C4.44772 21.0001 4 20.5524 4 20.0001V11.0001H1L11.3273 1.61162C11.7087 1.26488 12.2913 1.26488 12.6727 1.61162L23 11.0001H20V20.0001ZM8 15.0001V17.0001H16V15.0001H8Z'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN, UserRoleEnum.CHINA_WORKER],
    },
    {
        title: 'parties',
        path: pageLinks.dashboard.parties.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'>
                    <path
                        d='M5.75 3C5.57531 3.00009 5.4037 3.04594 5.25223 3.13298C5.10077 3.22002 4.97475 3.34521 4.88672 3.49609L3.13672 6.49609C3.04733 6.64899 3.00015 6.82289 3 7V19C3 20.0931 3.90694 21 5 21H19C20.0931 21 21 20.0931 21 19V7C20.9999 6.82289 20.9527 6.64899 20.8633 6.49609L19.1133 3.49609C19.0252 3.34521 18.8992 3.22002 18.7478 3.13298C18.5963 3.04594 18.4247 3.00009 18.25 3H5.75ZM6.32422 5H17.6758L18.8418 7H5.1582L6.32422 5ZM10 9H14C14.552 9 15 9.448 15 10C15 10.552 14.552 11 14 11H10C9.448 11 9 10.552 9 10C9 9.448 9.448 9 10 9Z'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN, UserRoleEnum.CHINA_WORKER],
    },
    {
        title: 'boxes',
        path: pageLinks.dashboard.real_boxes.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'>
                    <path
                        d='M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 14H15.44C15.08 14 14.76 14.19 14.58 14.5C14.06 15.4 13.11 16 12 16C10.89 16 9.94 15.4 9.42 14.5C9.24 14.19 8.91 14 8.56 14H5V5H19V14ZM14.79 10H13V7C13 6.45 12.55 6 12 6C11.45 6 11 6.45 11 7V10H9.21C8.76 10 8.54 10.54 8.86 10.85L11.65 13.64C11.85 13.84 12.16 13.84 12.36 13.64L15.15 10.85C15.46 10.54 15.24 10 14.79 10Z'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN, UserRoleEnum.CHINA_WORKER],
    },
    {
        title: 'packet',
        path: pageLinks.dashboard.boxes.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'>
                    <path
                        d='M17.578 4.432L15.578 3.382C13.822 2.461 12.944 2 12 2C11.056 2 10.178 2.46 8.422 3.382L8.101 3.551L17.024 8.65L21.04 6.64C20.394 5.908 19.352 5.361 17.578 4.43M21.748 7.964L17.75 9.964V13C17.75 13.1989 17.671 13.3897 17.5303 13.5303C17.3897 13.671 17.1989 13.75 17 13.75C16.8011 13.75 16.6103 13.671 16.4697 13.5303C16.329 13.3897 16.25 13.1989 16.25 13V10.714L12.75 12.464V21.904C13.468 21.725 14.285 21.297 15.578 20.618L17.578 19.568C19.729 18.439 20.805 17.875 21.403 16.86C22 15.846 22 14.583 22 12.06V11.943C22 10.05 22 8.866 21.748 7.964ZM11.25 21.904V12.464L2.252 7.964C2 8.866 2 10.05 2 11.941V12.058C2 14.583 2 15.846 2.597 16.86C3.195 17.875 4.271 18.44 6.422 19.569L8.422 20.618C9.715 21.297 10.532 21.725 11.25 21.904ZM2.96 6.641L12 11.161L15.411 9.456L6.525 4.378L6.422 4.432C4.649 5.362 3.606 5.909 2.96 6.642'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN, UserRoleEnum.CHINA_WORKER],
    },
    {
        title: 'products',
        path: pageLinks.dashboard.items.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20' fill='none'>
                    <path
                        d='M16.6667 7.77778H17.7778V20H0V7.77778H1.11111V5.55556C1.11111 2.48889 3.6 5.05038e-06 6.66667 5.05038e-06C7.45555 5.05038e-06 8.21111 0.166672 8.88889 0.466672C9.589 0.157923 10.3459 -0.00103288 11.1111 5.05038e-06C14.1778 5.05038e-06 16.6667 2.48889 16.6667 5.55556V7.77778ZM3.33333 5.55556V7.77778H5.55555V5.55556C5.55555 4.3 5.98889 3.15556 6.68889 2.22223H6.66667C4.83333 2.22223 3.33333 3.72223 3.33333 5.55556ZM14.4444 7.77778V5.55556C14.4444 3.72223 12.9444 2.22223 11.1111 2.22223H11.0889C11.8195 3.18031 12.2174 4.35069 12.2222 5.55556V7.77778H14.4444ZM8.88889 3.08889C8.21111 3.7 7.77778 4.57778 7.77778 5.55556V7.77778H10V5.55556C10 4.57778 9.56666 3.7 8.88889 3.08889Z'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN, UserRoleEnum.CHINA_WORKER, UserRoleEnum.UZB_WORKER],
    },
    {
        title: 'clients',
        path: pageLinks.dashboard.customers.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'>
                    <path
                        d='M16 17.0001V19.0001H2V17.0001C2 17.0001 2 13.0001 9 13.0001C16 13.0001 16 17.0001 16 17.0001ZM12.5 7.50005C12.5 6.80782 12.2947 6.13113 11.9101 5.55556C11.5256 4.97998 10.9789 4.53138 10.3394 4.26647C9.69985 4.00157 8.99612 3.93226 8.31718 4.0673C7.63825 4.20235 7.01461 4.5357 6.52513 5.02518C6.03564 5.51466 5.7023 6.1383 5.56725 6.81724C5.4322 7.49617 5.50152 8.1999 5.76642 8.83944C6.03133 9.47899 6.47993 10.0256 7.0555 10.4102C7.63108 10.7948 8.30777 11.0001 9 11.0001C9.92826 11.0001 10.8185 10.6313 11.4749 9.97493C12.1313 9.31855 12.5 8.42831 12.5 7.50005ZM15.94 13.0001C16.5547 13.4758 17.0578 14.0805 17.4137 14.7716C17.7696 15.4626 17.9697 16.2233 18 17.0001V19.0001H22V17.0001C22 17.0001 22 13.3701 15.94 13.0001ZM15 4.00005C14.3117 3.99622 13.6385 4.20201 13.07 4.59005C13.6774 5.43879 14.0041 6.45634 14.0041 7.50005C14.0041 8.54377 13.6774 9.56132 13.07 10.4101C13.6385 10.7981 14.3117 11.0039 15 11.0001C15.9283 11.0001 16.8185 10.6313 17.4749 9.97493C18.1313 9.31855 18.5 8.42831 18.5 7.50005C18.5 6.57179 18.1313 5.68156 17.4749 5.02518C16.8185 4.3688 15.9283 4.00005 15 4.00005Z'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN, UserRoleEnum.UZB_WORKER],
    },
    {
        title: 'staffs',
        path: pageLinks.dashboard.staffs.index,
        icon: (
            <SvgIcon fontSize='small'>
                <svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'>
                    <path
                        d='M11.24 10.7934C13.6185 10.7934 15.5467 8.86523 15.5467 6.48672C15.5467 4.10821 13.6185 2.18005 11.24 2.18005C8.86151 2.18005 6.93335 4.10821 6.93335 6.48672C6.93335 8.86523 8.86151 10.7934 11.24 10.7934Z'
                        fill='currentColor'
                    />
                    <path d='M14 18.6666H18.6667V19.6H14V18.6666Z' fill='currentColor' />
                    <path
                        d='M9.99998 20V22C9.99998 22.1768 10.0702 22.3464 10.1952 22.4714C10.3203 22.5965 10.4898 22.6667 10.6666 22.6667H22C22.1768 22.6667 22.3464 22.5965 22.4714 22.4714C22.5964 22.3464 22.6666 22.1768 22.6666 22V15.3334C22.6666 15.1566 22.5964 14.987 22.4714 14.862C22.3464 14.7369 22.1768 14.6667 22 14.6667H17.3333V13.6867C17.3333 13.5099 17.2631 13.3403 17.1381 13.2153C17.013 13.0903 16.8435 13.02 16.6666 13.02C16.4898 13.02 16.3203 13.0903 16.1952 13.2153C16.0702 13.3403 16 13.5099 16 13.6867V14.6667H14.6666V12.28C13.5338 12.095 12.3879 12.0014 11.24 12C8.70851 11.9893 6.20541 12.5331 3.90665 13.5934C3.5283 13.7719 3.20912 14.0552 2.98696 14.4097C2.76481 14.7642 2.64901 15.175 2.65331 15.5934V20H9.99998ZM21.3333 21.3334H11.3333V16H16V16.28C16 16.4568 16.0702 16.6264 16.1952 16.7514C16.3203 16.8765 16.4898 16.9467 16.6666 16.9467C16.8435 16.9467 17.013 16.8765 17.1381 16.7514C17.2631 16.6264 17.3333 16.4568 17.3333 16.28V16H21.3333V21.3334Z'
                        fill='currentColor'
                    />
                </svg>
            </SvgIcon>
        ),
        roles: [UserRoleEnum.ADMIN],
    },
];
