define(['jquery', 'mage/translate'], function ($, $t) { 'use strict'; return function (config, element) { var $root = $(element), items = config.items || [], archives = config.archives || [], brands = config.brands || [], modelsByBrand = config.modelsByBrand || {}, pageSize = 20, currentPage = 1, $brand = $root.find('[data-role="spec-brand"]'), $model = $root.find('[data-role="spec-model"]'), $count = $root.find('[data-role="spec-count"]'), $empty = $root.find('[data-role="spec-empty"]'), $list = $root.find('[data-role="spec-list"]'), $pagination = $root.find('[data-role="spec-pagination"]'); function renderBrands() { $.each(brands, function (_, brandItem) { $('