document.addEventListener('DOMContentLoaded', function() {
  let menu = document.querySelector('.gc-account-user-menu');
  if (menu) {
    let li = document.createElement('div');
    li.className = 'menu-logo';
    li.innerHTML = `<a href="https://get-nechto.ru/teach/control/stream/index" target="_blank" title="Главная">
        <img class="menu-logo-img" src=${gcLogoLink}>
      </a>`;
    menu.insertBefore(li, menu.firstChild);
  }
    
  const svgMarkup = [
    {
      name: 'menu-item-profile',
      svg: `<svg width="50" height="50" viewBox="0 0 50 50" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M12.7773 26.3057H33.2227C36.4125 26.3058 39.472 27.5726 41.7275 29.8281C43.9831 32.0837 45.2499 35.1432 45.25 38.333C45.25 40.1674 44.5217 41.9275 43.2246 43.2246C41.9275 44.5217 40.1674 45.25 38.333 45.25H7.66699C5.83258 45.25 4.07252 44.5217 2.77539 43.2246C1.47826 41.9275 0.75 40.1674 0.75 38.333C0.750086 35.1432 2.01693 32.0837 4.27246 29.8281C6.528 27.5726 9.58754 26.3058 12.7773 26.3057ZM23 0.75C25.5122 0.75 27.9219 1.74803 29.6982 3.52441C31.4745 5.30078 32.4727 7.71057 32.4727 10.2227C32.4725 12.7346 31.4744 15.1437 29.6982 16.9199C27.9219 18.6963 25.5122 19.6943 23 19.6943C20.4878 19.6943 18.0781 18.6963 16.3018 16.9199C14.5256 15.1437 13.5275 12.7346 13.5273 10.2227C13.5273 7.71057 14.5255 5.30078 16.3018 3.52441C18.0781 1.74803 20.4878 0.75 23 0.75Z" stroke="#F4DCBB" stroke-width="2.5"/>
</svg>
`
    }/*,
    {
      name: 'menu-item-notifications_button_small',
      src: `https://fs.getcourse.ru/fileservice/file/download/a/584132/sc/379/h/67befe5ba4e33aeb2db1ce00e9191c97.svg`
    },
    {
      name: 'menu-item-teach',
      src: `https://fs.getcourse.ru/fileservice/file/download/a/584132/sc/155/h/e4664a548ad1b8d3d174468ea3e5196d.svg`
    },
    {
      name: 'menu-item-notifications',
      src: `https://fs.getcourse.ru/fileservice/file/download/a/584132/sc/253/h/624c6aff5ea7260807ffa94deb3229e8.svg`
    },
    {
      name: 'menu-item-chatium',
      src: `https://fs.getcourse.ru/fileservice/file/download/a/584132/sc/192/h/26fe9704e146c8d732bae0105be397db.svg`
    }*/
];

  svgMarkup.forEach(icon => {
    document.querySelectorAll(`.${icon.name}`).forEach(element => {
      const img = element.querySelector('img.menu-item-icon');
      if (img) {
        img.remove();
      }
      const svg = document.createElement('span');
      svg.innerHTML = icon.svg;
      const container = element.querySelector('a');
      container.appendChild(svg);      
    });
  });
});

/*$(function() {
    setTimeout(() => {
        let menu_items_title = ['Информер','Сайт','База знаний','Ученики','Задачи','Мессенджер','Покупки','Приложение'];
        let leftbar_menu_item_title_version = 1;

        $('.gc-account-leftbar .gc-account-user-menu li').addClass('item-title_v' + leftbar_menu_item_title_version);

        $('.gc-account-leftbar .gc-account-user-menu li:not(:first-child)').each(function(i) {
            if ($(this).hasClass('menu-item-notifications_button_small')) {
                $(this).find('a').append('<span class="menu-item-label">' + menu_items_title[0] + '</span>');
            } else if ($(this).hasClass('menu-item-cms')) {
                $(this).find('a').innerText =  menu_items_title[1];
            } else if ($(this).hasClass('menu-item-teach')) {
                $(this).find('a').innerText =  menu_items_title[2];
            } else if ($(this).hasClass('menu-item-user')) {
                $(this).find('a').innerText =  menu_items_title[3];
            } else if ($(this).hasClass('menu-item-tasks')) {
                $(this).find('a').innerText =  menu_items_title[4];
            } else if ($(this).hasClass('menu-item-notifications')) {
                $(this).find('a').innerText =  menu_items_title[5];
            } else if ($(this).hasClass('menu-item-sales')) {
                $(this).find('a').innerText =  menu_items_title[6];
            } else if ($(this).hasClass('menu-item-chatium')) {
                $(this).find('a').innerText =  menu_items_title[7];
            }
        });

        let icons_svg = [
        `<svg width="49" height="40" viewBox="0 0 49 40" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path d="M0.75 11.625V27.9375H9.8125L24.3125 38.8125V0.75L9.8125 11.625H0.75Z" stroke="#F4DCBB" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
            <path d="M33.375 13.4375C33.375 13.4375 37 15.25 37 19.7812C37 24.3125 33.375 26.125 33.375 26.125M37 2.5625C44.25 6.1875 47.875 11.625 47.875 19.7812C47.875 27.9375 44.25 33.375 37 37" stroke="#F4DCBB" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M2.88001 9.57869V9.64574C2.88 10.6893 2.87999 11.5193 2.93687 12.1879C2.99513 12.8729 3.11705 13.4558 3.40052 13.9861C3.8115 14.755 4.44127 15.3847 5.21017 15.7957C5.7405 16.0792 6.32339 16.2011 7.00833 16.2594C7.67699 16.3162 8.50695 16.3162 9.55056 16.3162H11.2158C11.1997 16.3747 11.191 16.4363 11.191 16.4999V19.7141H7.0584C6.678 19.7141 6.36962 20.0225 6.36962 20.4029C6.36962 20.7833 6.678 21.0917 7.0584 21.0917H16.7013C17.0817 21.0917 17.39 20.7833 17.39 20.4029C17.39 20.0225 17.0817 19.7141 16.7013 19.7141H12.5686V16.4999C12.5686 16.4363 12.56 16.3747 12.5438 16.3162H14.2095C15.2531 16.3162 16.083 16.3162 16.7517 16.2594C17.4366 16.2011 18.0195 16.0792 18.5498 15.7957C19.3187 15.3847 19.9485 14.755 20.3595 13.9861C20.643 13.4558 20.7649 12.8729 20.8231 12.1879C20.88 11.5193 20.88 10.6894 20.88 9.64577V9.57866C20.88 8.53507 20.88 7.70513 20.8231 7.03648C20.7649 6.35155 20.643 5.76867 20.3595 5.23835C19.9485 4.46945 19.3187 3.83969 18.5498 3.42871C18.0195 3.14525 17.4366 3.02333 16.7517 2.96507C16.083 2.90819 15.2531 2.9082 14.2096 2.9082H9.55057C8.50703 2.9082 7.67696 2.90819 7.00833 2.96507C6.32339 3.02333 5.7405 3.14525 5.21017 3.42871C4.44127 3.83969 3.8115 4.46945 3.40052 5.23835C3.11705 5.76867 2.99513 6.35155 2.93687 7.03648C2.87999 7.70514 2.88 8.53509 2.88001 9.57869ZM4.6964 13.2934C4.54611 13.0122 4.45115 12.6534 4.40097 12.0634C4.35001 11.4643 4.34939 10.6969 4.34939 9.61221C4.34939 8.52756 4.35001 7.7601 4.40097 7.16101C4.45115 6.57106 4.54611 6.21218 4.6964 5.93101C4.97039 5.41841 5.39024 4.99857 5.90284 4.72458C6.18402 4.57429 6.5429 4.47933 7.13286 4.42915C7.73195 4.3782 8.49942 4.37758 9.58409 4.37758H14.1759C15.2606 4.37758 16.0281 4.3782 16.6272 4.42915C17.2171 4.47933 17.576 4.57429 17.8572 4.72458C18.3698 4.99857 18.7896 5.41841 19.0636 5.93101C19.2139 6.21218 19.3089 6.57106 19.359 7.16101C19.41 7.7601 19.4106 8.52756 19.4106 9.61221C19.4106 10.6969 19.41 11.4643 19.359 12.0634C19.3089 12.6534 19.2139 13.0122 19.0636 13.2934C18.7896 13.806 18.3698 14.2259 17.8572 14.4999C17.576 14.6501 17.2171 14.7451 16.6272 14.7953C16.0281 14.8462 15.2606 14.8469 14.1759 14.8469H9.58409C8.49942 14.8469 7.73195 14.8462 7.13286 14.7953C6.5429 14.7451 6.18402 14.6501 5.90284 14.4999C5.39024 14.2259 4.97039 13.806 4.6964 13.2934Z" fill="black"></path>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path d="M5 17H9C10.6569 17 12 18.3431 12 20V10C12 7.17157 12 5.75736 11.1213 4.87868C10.2426 4 8.82843 4 6 4H5C4.05719 4 3.58579 4 3.29289 4.29289C3 4.58579 3 5.05719 3 6V15C3 15.9428 3 16.4142 3.29289 16.7071C3.58579 17 4.05719 17 5 17Z" stroke="black" stroke-width="1.4"></path>
        <path d="M19 17H15C13.3431 17 12 18.3431 12 20V10C12 7.17157 12 5.75736 12.8787 4.87868C13.7574 4 15.1716 4 18 4H19C19.9428 4 20.4142 4 20.7071 4.29289C21 4.58579 21 5.05719 21 6V15C21 15.9428 21 16.4142 20.7071 16.7071C20.4142 17 19.9428 17 19 17Z" stroke="black" stroke-width="1.4"></path>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M3.22039 15.0539C4.0018 14.2725 5.06161 13.8335 6.16668 13.8335H12.8334C13.9384 13.8335 14.9982 14.2725 15.7797 15.0539C16.5611 15.8353 17 16.8951 17 18.0002V19.6668C17 20.1271 16.6269 20.5002 16.1667 20.5002C15.7065 20.5002 15.3334 20.1271 15.3334 19.6668V18.0002C15.3334 17.3371 15.07 16.7012 14.6011 16.2324C14.1323 15.7636 13.4964 15.5002 12.8334 15.5002H6.16668C5.50364 15.5002 4.86775 15.7636 4.39891 16.2324C3.93006 16.7012 3.66667 17.3371 3.66667 18.0002V19.6668C3.66667 20.1271 3.29357 20.5002 2.83334 20.5002C2.3731 20.5002 2 20.1271 2 19.6668V18.0002C2 16.8951 2.43899 15.8353 3.22039 15.0539Z" fill="black"></path>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M9.49999 5.50017C8.11928 5.50017 6.99998 6.61946 6.99998 8.00017C6.99998 9.38089 8.11928 10.5002 9.49999 10.5002C10.8807 10.5002 12 9.38089 12 8.00017C12 6.61946 10.8807 5.50017 9.49999 5.50017ZM5.33331 8.00017C5.33331 5.69898 7.1988 3.8335 9.49999 3.8335C11.8012 3.8335 13.6667 5.69898 13.6667 8.00017C13.6667 10.3014 11.8012 12.1669 9.49999 12.1669C7.1988 12.1669 5.33331 10.3014 5.33331 8.00017Z" fill="black"></path>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M17.8598 14.5671C17.9749 14.1215 18.4294 13.8535 18.875 13.9686C19.7689 14.1994 20.5608 14.7205 21.1264 15.4501C21.692 16.1798 21.9993 17.0766 22 17.9998L22 19.6671C22 20.1274 21.6269 20.5004 21.1667 20.5004C20.7064 20.5004 20.3333 20.1274 20.3333 19.6671L20.3333 18.0011C20.3333 18.001 20.3333 18.0011 20.3333 18.0011C20.3329 17.4472 20.1485 16.909 19.8092 16.4713C19.4698 16.0335 18.9947 15.7208 18.4583 15.5823C18.0127 15.4672 17.7447 15.0127 17.8598 14.5671Z" fill="black"></path>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5261 4.56824C14.6402 4.12239 15.0942 3.85349 15.5401 3.96765C16.4363 4.19713 17.2307 4.71838 17.798 5.44923C18.3653 6.18007 18.6732 7.07894 18.6732 8.00412C18.6732 8.9293 18.3653 9.82817 17.798 10.559C17.2307 11.2899 16.4363 11.8111 15.5401 12.0406C15.0942 12.1547 14.6402 11.8859 14.5261 11.44C14.4119 10.9941 14.6808 10.5402 15.1267 10.426C15.6644 10.2883 16.1411 9.97556 16.4814 9.53705C16.8218 9.09855 17.0066 8.55923 17.0066 8.00412C17.0066 7.44901 16.8218 6.90969 16.4814 6.47118C16.1411 6.03268 15.6644 5.71993 15.1267 5.58224C14.6808 5.46808 14.4119 5.0141 14.5261 4.56824Z" fill="black"></path>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M8.18003 19.5651C9.10274 19.6487 10.2928 19.65 12 19.65C13.7072 19.65 14.8973 19.6487 15.82 19.5651C16.7241 19.4831 17.2382 19.3307 17.625 19.1074C18.2407 18.7519 18.7519 18.2407 19.1074 17.625C19.3307 17.2382 19.4831 16.7241 19.5651 15.82C19.6487 14.8973 19.65 13.7072 19.65 12C19.65 10.2928 19.6487 9.10274 19.5651 8.18003C19.4831 7.27587 19.3307 6.76182 19.1074 6.375C18.7519 5.75932 18.2407 5.24806 17.625 4.8926C17.2382 4.66927 16.7241 4.51687 15.82 4.43492C14.8973 4.35129 13.7072 4.35 12 4.35C10.2928 4.35 9.10274 4.35129 8.18003 4.43492C7.27587 4.51687 6.76182 4.66927 6.375 4.8926C5.75932 5.24806 5.24806 5.75932 4.8926 6.375C4.66927 6.76182 4.51687 7.27587 4.43492 8.18003C4.35129 9.10274 4.35 10.2928 4.35 12C4.35 13.7072 4.35129 14.8973 4.43492 15.82C4.51687 16.7241 4.66927 17.2382 4.8926 17.625C5.24806 18.2407 5.75932 18.7519 6.375 19.1074C6.76182 19.3307 7.27587 19.4831 8.18003 19.5651ZM3.72346 5.7C3 6.95307 3 8.63538 3 12C3 15.3646 3 17.0469 3.72346 18.3C4.19741 19.1209 4.8791 19.8026 5.7 20.2765C6.95307 21 8.63538 21 12 21C15.3646 21 17.0469 21 18.3 20.2765C19.1209 19.8026 19.8026 19.1209 20.2765 18.3C21 17.0469 21 15.3646 21 12C21 8.63538 21 6.95307 20.2765 5.7C19.8026 4.8791 19.1209 4.19741 18.3 3.72346C17.0469 3 15.3646 3 12 3C8.63538 3 6.95307 3 5.7 3.72346C4.8791 4.19741 4.19741 4.8791 3.72346 5.7Z" fill="black"></path>
        <path d="M7.50002 13.5923L10.0595 15.5119C10.3315 15.7159 10.7161 15.6693 10.9314 15.4061L17.4 7.5" stroke="black" stroke-width="1.26923" stroke-linecap="round"></path>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M9.18012 4.84619H14.8199C16.0823 4.84617 17.0998 4.84616 17.9001 4.95375C18.7309 5.06546 19.4305 5.30444 19.9861 5.86006C20.5418 6.41568 20.7807 7.11525 20.8924 7.94613C21 8.74641 21 9.76394 21 11.0263V12.9738C21 14.2362 21 15.2537 20.8924 16.054C20.7807 16.8849 20.5418 17.5845 19.9861 18.1401C19.4305 18.6957 18.7309 18.9347 17.9001 19.0464C17.0998 19.154 16.0823 19.154 14.8199 19.1539H9.18012C7.91773 19.154 6.9002 19.154 6.09992 19.0464C5.26905 18.9347 4.56948 18.6957 4.01386 18.1401C3.45825 17.5845 3.21927 16.8849 3.10756 16.054C2.99997 15.2537 2.99998 14.2362 3 12.9738V11.0263C2.99998 9.76394 2.99997 8.74641 3.10756 7.94613C3.21927 7.11525 3.45825 6.41568 4.01386 5.86006C4.56948 5.30444 5.26905 5.06546 6.09992 4.95375C6.9002 4.84616 7.91773 4.84617 9.18012 4.84619ZM6.28442 6.32603C5.60709 6.41709 5.24841 6.58366 4.99293 6.83913C4.73746 7.09461 4.57089 7.45329 4.47983 8.13062C4.38609 8.82787 4.38462 9.75198 4.38462 11.077V12.9231C4.38462 14.2482 4.38609 15.1723 4.47983 15.8695C4.57089 16.5468 4.73746 16.9055 4.99293 17.161C5.24841 17.4165 5.60709 17.583 6.28442 17.6741C6.98167 17.7679 7.90577 17.7693 9.23077 17.7693H14.7692C16.0942 17.7693 17.0183 17.7679 17.7156 17.6741C18.3929 17.583 18.7516 17.4165 19.0071 17.161C19.2625 16.9055 19.4291 16.5468 19.5202 15.8695C19.6139 15.1723 19.6154 14.2482 19.6154 12.9231V11.077C19.6154 9.75198 19.6139 8.82787 19.5202 8.13062C19.4291 7.45329 19.2625 7.09461 19.0071 6.83913C18.7516 6.58366 18.3929 6.41709 17.7156 6.32603C17.0183 6.23228 16.0942 6.23081 14.7692 6.23081H9.23077C7.90577 6.23081 6.98167 6.23228 6.28442 6.32603Z" fill="black"></path>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M5.88551 8.84693C6.0976 8.5288 6.52743 8.44283 6.84557 8.65492L9.31185 10.2991C10.069 10.8039 10.5914 11.151 11.0274 11.3778C11.4484 11.5969 11.7317 11.672 12 11.672C12.2683 11.672 12.5516 11.5969 12.9726 11.3778C13.4086 11.151 13.9311 10.8039 14.6882 10.2991L17.1544 8.65492C17.4726 8.44283 17.9024 8.5288 18.1145 8.84693C18.3266 9.16507 18.2406 9.5949 17.9225 9.807L15.4242 11.4725C14.7068 11.9508 14.1222 12.3406 13.6116 12.6062C13.0784 12.8836 12.5702 13.0566 12 13.0566C11.4298 13.0566 10.9216 12.8836 10.3884 12.6062C9.87783 12.3406 9.29318 11.9508 8.57576 11.4725L6.07752 9.807C5.75939 9.5949 5.67342 9.16507 5.88551 8.84693Z" fill="black"></path>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M5.35453 5.35959C5.28587 5.35003 5.1974 5.34837 4.87928 5.34837H3.49534C3.10602 5.34837 2.79041 5.03276 2.79041 4.64344C2.79041 4.25411 3.10602 3.9385 3.49534 3.9385H4.87928C4.89478 3.9385 4.91006 3.93849 4.92514 3.93849C5.17592 3.9384 5.37038 3.93833 5.54886 3.96317C6.53882 4.10094 7.36063 4.79712 7.65928 5.75097C7.67389 5.79765 7.68689 5.8458 7.6989 5.89613L17.9255 7.33989C17.9574 7.34439 17.9889 7.34881 18.0199 7.35317C18.5232 7.42388 18.9114 7.47842 19.2329 7.61723C20.1075 7.99495 20.7035 8.82321 20.7837 9.77257C20.8132 10.1214 20.7415 10.5069 20.6486 11.0065C20.6429 11.0374 20.6371 11.0686 20.6312 11.1003C20.6257 11.1301 20.6203 11.1596 20.6149 11.1886C20.497 11.8264 20.4162 12.2636 20.2522 12.6377C19.8066 13.6544 18.9081 14.4018 17.8273 14.6548C17.4296 14.7479 16.985 14.7478 16.3363 14.7476C16.3068 14.7476 16.2769 14.7476 16.2466 14.7476H9.18914C9.22586 14.9411 9.261 15.1034 9.29924 15.2445C9.37854 15.5371 9.45477 15.6714 9.53377 15.7607C9.60861 15.8454 9.69526 15.9188 9.79106 15.9787C9.89218 16.0419 10.0372 16.095 10.3389 16.1252C10.6538 16.1566 11.0641 16.1574 11.6802 16.1574H18.8473C19.2366 16.1574 19.5522 16.473 19.5522 16.8624C19.5522 17.2517 19.2366 17.5673 18.8473 17.5673H11.6457C11.0732 17.5673 10.5921 17.5673 10.1988 17.5281C9.78434 17.4867 9.39974 17.3968 9.04356 17.1741C8.8328 17.0423 8.64216 16.8808 8.47752 16.6946C8.19927 16.3799 8.0474 16.0153 7.93845 15.6132C7.83506 15.2317 7.75599 14.7572 7.66189 14.1925L6.403 6.63916C6.3507 6.32538 6.33452 6.23837 6.31381 6.17222C6.17806 5.73866 5.80451 5.42221 5.35453 5.35959ZM8.94873 13.3377H16.2466C17.0194 13.3377 17.2877 13.3331 17.506 13.282C18.1544 13.1302 18.6935 12.6818 18.9609 12.0718C19.0509 11.8665 19.1042 11.6035 19.2449 10.8436C19.3631 10.2052 19.3901 10.0248 19.3788 9.89127C19.3424 9.45974 19.0715 9.08326 18.6739 8.91157C18.5509 8.85845 18.3712 8.82667 17.7284 8.73592L7.95174 7.35568L8.94873 13.3377Z" fill="black"></path>
        <path d="M19.4739 20.1516C19.4739 20.9302 18.8426 21.5615 18.064 21.5615C17.2853 21.5615 16.6541 20.9302 16.6541 20.1516C16.6541 19.3729 17.2853 18.7417 18.064 18.7417C18.8426 18.7417 19.4739 19.3729 19.4739 20.1516Z" fill="black"></path>
        <path d="M11.0147 20.1516C11.0147 20.9302 10.3835 21.5615 9.60482 21.5615C8.82617 21.5615 8.19495 20.9302 8.19495 20.1516C8.19495 19.3729 8.82617 18.7417 9.60482 18.7417C10.3835 18.7417 11.0147 19.3729 11.0147 20.1516Z" fill="black"></path>
        </svg>
        `,`
        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
        <path d="M13.3501 16.95C13.3501 17.6956 12.7456 18.3 12.0001 18.3C11.2545 18.3 10.6501 17.6956 10.6501 16.95C10.6501 16.2044 11.2545 15.6 12.0001 15.6C12.7456 15.6 13.3501 16.2044 13.3501 16.95Z" fill="black"></path>
        <path d="M10.6501 5.7C10.4015 5.7 10.2001 5.90147 10.2001 6.15C10.2001 6.39853 10.4015 6.6 10.6501 6.6H13.3501C13.5986 6.6 13.8001 6.39853 13.8001 6.15C13.8001 5.90147 13.5986 5.7 13.3501 5.7H10.6501Z" fill="black"></path>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M7.25709 20.5095C8.2197 21 9.47982 21 12.0001 21C14.5203 21 15.7804 21 16.743 20.5095C17.5897 20.0781 18.2782 19.3897 18.7096 18.543C19.2001 17.5804 19.2001 16.3202 19.2001 13.8V10.2C19.2001 7.67976 19.2001 6.41965 18.7096 5.45704C18.2782 4.61031 17.5897 3.9219 16.743 3.49047C15.7804 3 14.5203 3 12.0001 3C9.47982 3 8.2197 3 7.25709 3.49047C6.41036 3.9219 5.72195 4.61031 5.29052 5.45704C4.80005 6.41965 4.80005 7.67976 4.80005 10.2V13.8C4.80005 16.3202 4.80005 17.5804 5.29052 18.543C5.72195 19.3897 6.41036 20.0781 7.25709 20.5095ZM6.15005 10.2V13.8C6.15005 15.0824 6.1511 15.963 6.20688 16.6457C6.26136 17.3126 6.36127 17.6708 6.49338 17.9301C6.79538 18.5228 7.27727 19.0047 7.86998 19.3067C8.12925 19.4388 8.48749 19.5387 9.15439 19.5932C9.83705 19.649 10.7177 19.65 12.0001 19.65C13.2824 19.65 14.1631 19.649 14.8457 19.5932C15.5126 19.5387 15.8709 19.4388 16.1301 19.3067C16.7228 19.0047 17.2047 18.5228 17.5067 17.9301C17.6388 17.6708 17.7387 17.3126 17.7932 16.6457C17.849 15.963 17.8501 15.0824 17.8501 13.8V10.2C17.8501 8.91761 17.849 8.037 17.7932 7.35434C17.7387 6.68744 17.6388 6.3292 17.5067 6.06993C17.2047 5.47722 16.7228 4.99533 16.1301 4.69333C15.8709 4.56122 15.5126 4.46131 14.8457 4.40683C14.1631 4.35105 13.2824 4.35 12.0001 4.35C10.7177 4.35 9.83705 4.35105 9.15439 4.40683C8.48749 4.46131 8.12925 4.56122 7.86998 4.69333C7.27727 4.99533 6.79538 5.47722 6.49338 6.06993C6.36127 6.3292 6.26136 6.68744 6.20688 7.35434C6.1511 8.037 6.15005 8.91761 6.15005 10.2Z" fill="black"></path>
        </svg>
        `];
        let cur_color = 'rgba(255, 255, 255, 1)';
        let hov_color = 'rgba(0, 0, 0, 1)';
        let act_color = 'rgba(0, 0, 0, 1)';
        let change_color = function(el, color) {
            if (el.attr('stroke') != undefined) {
                el.attr('stroke', color);
            }
            if (el.attr('fill') != undefined) {
                el.attr('fill', color);
            } 
        }	
        $('.gc-account-leftbar .gc-account-user-menu li:not(:first-child)').each(function() {
            if ($(this).hasClass('menu-item-notifications_button_small')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[0]);
            } else if ($(this).hasClass('menu-item-cms')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[1]);
            } else if ($(this).hasClass('menu-item-teach')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[2]);
            } else if ($(this).hasClass('menu-item-user')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[3]);
            } else if ($(this).hasClass('menu-item-tasks')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[4]);
            } else if ($(this).hasClass('menu-item-notifications')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[5]);
            } else if ($(this).hasClass('menu-item-sales')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[6]);
            } else if ($(this).hasClass('menu-item-chatium')) {
                $(this).find('a img').css('display', 'none').after(icons_svg[7]);
            }
            $(this).find('a path').each(function() {
                change_color($(this), cur_color);
            });
        });
        $('.gc-account-leftbar .gc-account-user-menu li:not(:first-child):not(.active):not(.selected) a').each(function(i) {
            $(this).mouseenter(function() {
                $(this).find('svg path').each(function() {
                    change_color($(this), hov_color);
                });
            });
            $(this).mouseleave(function() {
                $(this).find('svg path').each(function() {
                    change_color($(this), cur_color);
                });
            });
        });
        $('.gc-account-leftbar .gc-account-user-menu li.active a svg path').each(function() {
            $(this).each(function() {
                change_color($(this), act_color);
            });
        });
        let current_selected_item = '';
        $('.gc-account-leftbar .gc-account-user-menu li:not(:first-child):not(.active) a').click(function() {
            if (current_selected_item != '') {
                $('.gc-account-leftbar .gc-account-user-menu li.menu-item-' + current_selected_item + ' a').each(function() {

                    $(this).find('svg path').each(function() {
                        change_color($(this), cur_color);
                    });

                    $(this).mouseenter(function() {
                        $(this).find('svg path').each(function() {
                            change_color($(this), hov_color);
                        });
                    });
                    $(this).mouseleave(function() {
                        $(this).find('svg path').each(function() {
                            change_color($(this), cur_color);
                        });
                    });
                });
            }
            let item_name = $(this).parent().attr('class').split(' ')[1];
            current_selected_item = item_name.replace('menu-item-', '');
            $(this).find('svg path').each(function() {
                change_color($(this), act_color);
            });
            $(this).mouseenter(function() {
                $(this).find('svg path').each(function() {
                    change_color($(this), act_color);
                });
            });
            $(this).mouseleave(function() {
                $(this).find('svg path').each(function() {
                    change_color($(this), act_color);
                });
            });
        });
        $('.gc-fade').click(function() {
            $('.gc-account-leftbar .gc-account-user-menu li:not(.active)[class*="' + current_selected_item + '"] a').each(function() {
                $(this).find('svg path').each(function() {
                    change_color($(this), cur_color);
                });
                current_selected_item = '';
                $(this).mouseenter(function() {
                    $(this).find('svg path').each(function() {
                        change_color($(this), hov_color);
                    });
                });
                $(this).mouseleave(function() {
                    $(this).find('svg path').each(function() {
                        change_color($(this), cur_color);
                    });
                });
            });
        });
    }, 0);
});*/