201currentError.style.opacity = 1;202currentError.style.right = '20px';203204if (errorTopPos) currentError.style.top = errorTopPos + 'px';205}, 0);206207setTimeout(function () {208t_menuWidgets_closeError(currentError);209}, 3400);210211const errorCloseButton = currentError.querySelector('.t-menuwidgeticons__error-close');212if (!errorCloseButton) return;
errorCloseButton.addEventListener('click', function () { t_menuWidgets_closeError(currentError); });}function t_menuWidgets__getErrorHtml(type, text) { let html = ''; html += '<div class="t-menuwidgeticons__error t-menuwidgeticons__' + type + '-error">'; html += '<div class="t-menuwidgeticons__error-close">×</div>'; html += '<div class="t-menuwidgeticons__error-text">' + text + '</div>'; html += '</div>'; return html;}function t_menuWidgets_closeError(errorElement) { if (!errorElement) return; errorElement.style.opacity = 0; errorElement.style.right = '-350px'; setTimeout(function () { if (errorElement.parentNode !== null) { errorElement.parentNode.removeChild(errorElement); document.body.classList.remove('t-menuwidgeticons__body-error_showed'); } }, 300);}function t_menuWidgets__showWidgetsText(menuEl) { const translation = { cart: { EN: 'Cart', RU: 'Корзина', FR: 'Panier', DE: 'Warenkorb', ES: 'Carrito', PT: 'Carrinho', UK: 'Кошик', JA: 'カート', ZH: '购物车', PL: 'Koszyk', KK: 'Себет', IT: 'Carrello', LV: 'Grozs', }, wishlist: { EN: 'Favorites', RU: 'Избранное', FR: 'Favoris', DE: 'Favoriten', ES: 'Favoritos', PT: 'Favoritos', UK: 'Вибране', JA: 'お気に入り', ZH: '收藏夹', PL: 'Ulubione', KK: 'Таңдаулылар', IT: 'Preferiti', LV: 'Iecienītie', }, search: { EN: 'Search', RU: 'Поиск', FR: 'Rechercher', DE: 'Suche', ES: 'Buscar', PT: 'Buscar', UK: 'Пошук', JA: '検索', ZH: '搜索', PL: 'Szukaj', KK: 'Іздеу', IT: 'Cerca', LV: 'Meklēt', }, members: { EN: 'Sign In', RU: 'Войти', FR: 'Se connecter', DE: 'Anmelden', ES: 'Iniciar sesión', PT: 'Entrar', UK: 'Увійти', JA: 'サインイン', ZH: '登录',