var link = 'https://www.faraonproducts.ru/';
var storeParts = new Array();
var partsSwitchWrapper = document.querySelector('.t-store_parts-switch-wrapper');
var partElements = partsSwitchWrapper.querySelectorAll('.js-store-parts-switcher');
var catalogIdNum = partsSwitchWrapper.closest('.t-rec').id;
partElements.forEach(part => {
    var obj = new Object();
    obj.id = part.dataset.storepartUid;
    obj.name = part.textContent;
    obj.link = obj.name !=='Все' ? encodeURI(`${link}?tfc_storepartuid[${catalogIdNum.replace('rec', '')}]=${obj.name}&tfc_div=:::`): link;
    storeParts.push(obj);
});
copy(storeParts);

<!-- Хлебные крошки для товаров | https://necodim.ru/tilda/product-breadcrumbs -->

<div id="necodim-breadcrumbs" class="ncdm-breadcrumbs t-text"><a href="/" class="ncdm-breadcrumb">Главная</a></div>

<style>
.ncdm-breadcrumbs {
    display: inline-block;
}
.ncdm-breadcrumb {
    display: inline-block;
}
.ncdm-breadcrumb:not(:last-child)::after {
    content: '/';
    margin: 0 20px;
}
.ncdm-breadcrumb:last-child {
    font-weight: 700;
    text-decoration: underline;
}
.ncdm-breadcrumb a {
    color: #404040 !important;
}
</style>

<script>
const storeParts = [
    {
        "id": "256445462421",
        "name": "Все",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%92%D1%81%D0%B5&tfc_div=:::"
    },
    {
        "id": "399460264071",
        "name": "Товары со скидкой",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A2%D0%BE%D0%B2%D0%B0%D1%80%D1%8B%20%D1%81%D0%BE%20%D1%81%D0%BA%D0%B8%D0%B4%D0%BA%D0%BE%D0%B9&tfc_div=:::"
    },
    {
        "id": "407142352361",
        "name": "Популярные",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%9F%D0%BE%D0%BF%D1%83%D0%BB%D1%8F%D1%80%D0%BD%D1%8B%D0%B5&tfc_div=:::"
    },
    {
        "id": "230142204701",
        "name": "Стекла фар",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80&tfc_div=:::"
    },
    {
        "id": "227767470981",
        "name": "Стекла фар AUDI",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20AUDI&tfc_div=:::"
    },
    {
        "id": "438630802551",
        "name": "Стекла фар Ауди А4",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20%D0%90%D1%83%D0%B4%D0%B8%20%D0%904&tfc_div=:::"
    },
    {
        "id": "264874642241",
        "name": "Стекла фар Ауди А5",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20%D0%90%D1%83%D0%B4%D0%B8%20%D0%905&tfc_div=:::"
    },
    {
        "id": "198886923711",
        "name": "Стекла фар Ауди А7",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20%D0%90%D1%83%D0%B4%D0%B8%20%D0%907&tfc_div=:::"
    },
    {
        "id": "167937353591",
        "name": "Стекла фар Ауди А6",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20%D0%90%D1%83%D0%B4%D0%B8%20%D0%906&tfc_div=:::"
    },
    {
        "id": "307556851101",
        "name": "Стекла фар Ауди А8",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20%D0%90%D1%83%D0%B4%D0%B8%20%D0%908&tfc_div=:::"
    },
    {
        "id": "444713849291",
        "name": "Стекла фар Ауди Q",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D1%84%D0%B0%D1%80%20%D0%90%D1%83%D0%B4%D0%B8%20Q&tfc_div=:::"
    },
    {
        "id": "633396467221",
        "name": "Стекла BMW",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW&tfc_div=:::"
    },
    {
        "id": "718479802871",
        "name": "Стекла BMW 1 Series",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%201%20Series&tfc_div=:::"
    },
    {
        "id": "406357119821",
        "name": "Стекла BMW 3 Series",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%203%20Series&tfc_div=:::"
    },
    {
        "id": "442129745871",
        "name": "Стекла BMW 4 Series",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%204%20Series&tfc_div=:::"
    },
    {
        "id": "577350584561",
        "name": "Стекла BMW 5 Series",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%205%20Series&tfc_div=:::"
    },
    {
        "id": "985483369111",
        "name": "Стекла BMW 6 Series",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%206%20Series&tfc_div=:::"
    },
    {
        "id": "419567270671",
        "name": "Стекла BMW 7 Series",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%207%20Series&tfc_div=:::"
    },
    {
        "id": "179638280921",
        "name": "Стекла BMW X и GT",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20BMW%20X%20%D0%B8%20GT&tfc_div=:::"
    },
    {
        "id": "902642173031",
        "name": "Стекла Honda",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Honda&tfc_div=:::"
    },
    {
        "id": "466107186651",
        "name": "Стекла KIA",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20KIA&tfc_div=:::"
    },
    {
        "id": "407094320491",
        "name": "Стекла Lexus",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Lexus&tfc_div=:::"
    },
    {
        "id": "319340356101",
        "name": "Стекло Toyota",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%BE%20Toyota&tfc_div=:::"
    },
    {
        "id": "443783391321",
        "name": "Стекла Mazda",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Mazda&tfc_div=:::"
    },
    {
        "id": "132915910161",
        "name": "Стекла Mercedes",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Mercedes&tfc_div=:::"
    },
    {
        "id": "328422545531",
        "name": "Стекла Порше",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20%D0%9F%D0%BE%D1%80%D1%88%D0%B5&tfc_div=:::"
    },
    {
        "id": "359398912041",
        "name": "Стекла Skoda",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Skoda&tfc_div=:::"
    },
    {
        "id": "802291858051",
        "name": "Стекла Volkswagen",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Volkswagen&tfc_div=:::"
    },
    {
        "id": "255027359721",
        "name": "Стекла Volvo",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Volvo&tfc_div=:::"
    },
    {
        "id": "266427605971",
        "name": "Стекла Infiniti",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Infiniti&tfc_div=:::"
    },
    {
        "id": "828806927641",
        "name": "Стекла Subaru",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Subaru&tfc_div=:::"
    },
    {
        "id": "986912649231",
        "name": "Стекла Hyundai",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Hyundai&tfc_div=:::"
    },
    {
        "id": "930821956881",
        "name": "Стекла Citroen",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Citroen&tfc_div=:::"
    },
    {
        "id": "776253057251",
        "name": "Стекла Land Rover",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Land%20Rover&tfc_div=:::"
    },
    {
        "id": "896425474811",
        "name": "Стекла Ford",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Ford&tfc_div=:::"
    },
    {
        "id": "630996503621",
        "name": "Стекла Nissan",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Nissan&tfc_div=:::"
    },
    {
        "id": "202814239801",
        "name": "Стекла Opel",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A1%D1%82%D0%B5%D0%BA%D0%BB%D0%B0%20Opel&tfc_div=:::"
    },
    {
        "id": "499586415161",
        "name": "Лампы",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%9B%D0%B0%D0%BC%D0%BF%D1%8B&tfc_div=:::"
    },
    {
        "id": "892984509791",
        "name": "Biled",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=Biled&tfc_div=:::"
    },
    {
        "id": "354805988271",
        "name": "Переходные рамки",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D0%BD%D1%8B%D0%B5%20%D1%80%D0%B0%D0%BC%D0%BA%D0%B8&tfc_div=:::"
    },
    {
        "id": "177471748901",
        "name": "Рамки Ауди",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%90%D1%83%D0%B4%D0%B8&tfc_div=:::"
    },
    {
        "id": "325573138281",
        "name": "Рамки БМВ",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%91%D0%9C%D0%92&tfc_div=:::"
    },
    {
        "id": "762248422451",
        "name": "Рамки Хонда",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%A5%D0%BE%D0%BD%D0%B4%D0%B0&tfc_div=:::"
    },
    {
        "id": "344099344151",
        "name": "Рамки КИА",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9A%D0%98%D0%90&tfc_div=:::"
    },
    {
        "id": "173597915311",
        "name": "Рамки Лексус",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9B%D0%B5%D0%BA%D1%81%D1%83%D1%81&tfc_div=:::"
    },
    {
        "id": "801317140751",
        "name": "Рамки Тойота",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%A2%D0%BE%D0%B9%D0%BE%D1%82%D0%B0&tfc_div=:::"
    },
    {
        "id": "934015736071",
        "name": "Рамки Мазды",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9C%D0%B0%D0%B7%D0%B4%D1%8B&tfc_div=:::"
    },
    {
        "id": "393220110311",
        "name": "Рамки Мерс",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9C%D0%B5%D1%80%D1%81&tfc_div=:::"
    },
    {
        "id": "530408222731",
        "name": "Рамки Порш",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9F%D0%BE%D1%80%D1%88&tfc_div=:::"
    },
    {
        "id": "988446247411",
        "name": "Рамки Шкода",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%A8%D0%BA%D0%BE%D0%B4%D0%B0&tfc_div=:::"
    },
    {
        "id": "560670009951",
        "name": "Рамки Volkswagen",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Volkswagen&tfc_div=:::"
    },
    {
        "id": "222607927411",
        "name": "Рамки Вольво",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%92%D0%BE%D0%BB%D1%8C%D0%B2%D0%BE&tfc_div=:::"
    },
    {
        "id": "234527964381",
        "name": "Рамки Шевроле",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%A8%D0%B5%D0%B2%D1%80%D0%BE%D0%BB%D0%B5&tfc_div=:::"
    },
    {
        "id": "836958824201",
        "name": "Рамки Acura",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Acura&tfc_div=:::"
    },
    {
        "id": "302313006491",
        "name": "Рамки Кадиллак",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9A%D0%B0%D0%B4%D0%B8%D0%BB%D0%BB%D0%B0%D0%BA&tfc_div=:::"
    },
    {
        "id": "499340428021",
        "name": "Рамки Крайслер",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9A%D1%80%D0%B0%D0%B9%D1%81%D0%BB%D0%B5%D1%80&tfc_div=:::"
    },
    {
        "id": "764209043321",
        "name": "Рамки DAF",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20DAF&tfc_div=:::"
    },
    {
        "id": "219278115821",
        "name": "Рамки Форд",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%A4%D0%BE%D1%80%D0%B4&tfc_div=:::"
    },
    {
        "id": "171057668381",
        "name": "Рамки Geely",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Geely&tfc_div=:::"
    },
    {
        "id": "410356062821",
        "name": "Рамки Jaguar",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Jaguar&tfc_div=:::"
    },
    {
        "id": "951992788171",
        "name": "Рамки Alfa Romeo",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Alfa%20Romeo&tfc_div=:::"
    },
    {
        "id": "808565390161",
        "name": "Рамки Lancia",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Lancia&tfc_div=:::"
    },
    {
        "id": "509290327541",
        "name": "Рамки Range Rover",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Range%20Rover&tfc_div=:::"
    },
    {
        "id": "115210971891",
        "name": "Рамки Saab",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Saab&tfc_div=:::"
    },
    {
        "id": "808328192261",
        "name": "Рамки Mitsubishi",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Mitsubishi&tfc_div=:::"
    },
    {
        "id": "994685869291",
        "name": "Рамки Opel",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Opel&tfc_div=:::"
    },
    {
        "id": "140840182661",
        "name": "Рамки Nissan",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Nissan&tfc_div=:::"
    },
    {
        "id": "542840900851",
        "name": "Рамки Chery",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Chery&tfc_div=:::"
    },
    {
        "id": "156400606791",
        "name": "Рамки Hyundai",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Hyundai&tfc_div=:::"
    },
    {
        "id": "655557663551",
        "name": "Рамки Datsun",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Datsun&tfc_div=:::"
    },
    {
        "id": "925992139711",
        "name": "Рамки Citroen",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Citroen&tfc_div=:::"
    },
    {
        "id": "889737531611",
        "name": "Рамки JAC",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20JAC&tfc_div=:::"
    },
    {
        "id": "377350624771",
        "name": "Рамки Renault",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Renault&tfc_div=:::"
    },
    {
        "id": "551136665381",
        "name": "Рамки Subaru",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Subaru&tfc_div=:::"
    },
    {
        "id": "624846124791",
        "name": "Рамки Land Rover",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Land%20Rover&tfc_div=:::"
    },
    {
        "id": "598891262851",
        "name": "Рамки Лада",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%9B%D0%B0%D0%B4%D0%B0&tfc_div=:::"
    },
    {
        "id": "925775088701",
        "name": "Рамки ГАЗ",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20%D0%93%D0%90%D0%97&tfc_div=:::"
    },
    {
        "id": "802663951161",
        "name": "Рамки Mini Cooper",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Mini%20Cooper&tfc_div=:::"
    },
    {
        "id": "773261528601",
        "name": "Рамки Dodge",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Dodge&tfc_div=:::"
    },
    {
        "id": "178879715921",
        "name": "Рамки Jeep",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Jeep&tfc_div=:::"
    },
    {
        "id": "530646924001",
        "name": "Рамки Infiniti",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Infiniti&tfc_div=:::"
    },
    {
        "id": "703964616151",
        "name": "Рамки Valeo",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Valeo&tfc_div=:::"
    },
    {
        "id": "674709614231",
        "name": "Рамки SsangYong",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20SsangYong&tfc_div=:::"
    },
    {
        "id": "619478421071",
        "name": "Рамки Daewoo",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Daewoo&tfc_div=:::"
    },
    {
        "id": "407102796571",
        "name": "Рамки Suzuki",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D0%BC%D0%BA%D0%B8%20Suzuki&tfc_div=:::"
    },
    {
        "id": "925436076411",
        "name": "Расходники, герметики, химия",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%A0%D0%B0%D1%81%D1%85%D0%BE%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8,%20%D0%B3%D0%B5%D1%80%D0%BC%D0%B5%D1%82%D0%B8%D0%BA%D0%B8,%20%D1%85%D0%B8%D0%BC%D0%B8%D1%8F&tfc_div=:::"
    },
    {
        "id": "847969834261",
        "name": "Каталог",
        "link": "https://www.faraonproducts.ru/page43393566.html?tfc_storepartuid%5B701833071%5D=%D0%9A%D0%B0%D1%82%D0%B0%D0%BB%D0%BE%D0%B3&tfc_div=:::"
    }
];

const getPart = (key, value) => {
    const obj = storeParts.find(item => item[key] === value);
    return obj;
}

const addBreadcrumb = (data) => {
    const breadcrumb = document.createElement('a');
    breadcrumb.classList.add('ncdm-breadcrumb');
    if (data.id) breadcrumb.dataset.partUid = data.id;
    if (data.name) breadcrumb.innerHTML = data.name;
    if (data.link) breadcrumb.href = data.link;
    breadcrumbs.appendChild(breadcrumb);
}

const breadcrumbs = document.getElementById('necodim-breadcrumbs');
addBreadcrumb(getPart('name', 'Все'));

t_onReady(() => {
    setTimeout(() => {
        const product = document.querySelector('.js-store-product');
        const parts = product.dataset.productPartUid.split(',');
        const sortedParts = parts.sort((a, b) => {
            return storeParts.findIndex(category => category.id === a) - storeParts.findIndex(category => category.id === b);
        });
        sortedParts.forEach(part => addBreadcrumb(getPart('id', part)));
        const prodData = {
            'name': product.querySelector('.js-store-prod-name').textContent,
            'link': window.location.href
        }
        addBreadcrumb(prodData);
    }, 500);
});
</script>