Каталог файловtilda-cart-1.1.js
6401 // @ts-expect-error ST-2949_36402 cartWindow.querySelector('.t706__cartpage-totals').scrollIntoView({ behavior: 'smooth' });6403 6404 window.tcart_issecondstep = true;6405 6406 tcart__updateDelivery();6407 6408 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)6409 // @ts-expect-error ST-2949_16410 btn.style.display = 'none';6411 // @ts-expect-error ST-2949_16412
История файла и сравнение версий
wrap.style.display = 'none';
6416 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 6417 // @ts-expect-error ST-2949_1 6418 cartWindow.style.opacity = 0; 6419 // @ts-expect-error ST-2949_1 6420 cartWindow.style.transition = 'opacity .3s'; 6421 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) 6422 // @ts-expect-error ST-2949_3 6423 cartWindow.classList.add('t706__cartpage_showed'); 6425 setTimeout(function () { 6426 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 6427 // @ts-expect-error ST-2949_1 6428 cartWindow.style.opacity = 1; 6429 tcart__updateLazyload(); 6432 tcart__syncProductsObject__LStoObj(); 6433 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6434 // @ts-expect-error ST-2949_5 6435 tcart__updateProductsPrice(); 6436 tcart__reDrawProducts(); 6437 tcart__reDrawTotal(); 6439 tcart__initAuthAndDelivery(); 6440 void tcart__syncBuyerLoyaltyDiscount(); 6442 document.addEventListener('keyup', tcart__keyUpFunc); 6444 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 6445 // @ts-expect-error ST-2949_1 6446 if (window.tcart.products.length === 0) { 6447 tcart__blockSidebarContinueButton(); 6449 tcart__unblockSidebarContinueButton(); 6452 t_triggerEvent(document, 'fullscreenCartOpened'); 6454 tcart__onFuncLoad('t_forms__calculateInputsWidth', function () { 6455 // TODO ST-2949_4: cannot find name / missing jQuery types (TS2304, TS2592) 6456 // @ts-expect-error ST-2949_4 6457 t_forms__calculateInputsWidth(); 6462 * It closes the cart fullscreen 6464function tcart__closeCartFullscreen() { 6465 if (location.href.indexOf('#tcart') !== -1) { 6466 var finalUrl = location.href.replace('#tcart', ''); 6468 window.history.pushState({}, '', finalUrl); 6471 var cart = window.tcart; 6472 var cartIcon = document.querySelector('.t706__carticon'); 6473 var cartIconText = document.querySelector('.t706__carticon-text'); 6474 var cartFullscreen = document.querySelector('.t706__cartpage'); 6476 t_triggerEvent(document.body, 'popupHidden'); 6477 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) 6478 // @ts-expect-error ST-2949_3 6479 document.querySelector('body').classList.remove('t706__body_cartpageshowed'); 6480 if (window.tcart_dontstore === 'y') { 6482 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 6483 // @ts-expect-error ST-2949_1 6484 if (cart.products) { 6485 // @ts-expect-error ST-2949_1 6490 tcart__updateTotalProductsinCartObj(); 6491 tcart__reDrawCartIcon(); 6492 tcart__reDrawTotal(); 6496 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 6497 // @ts-expect-error ST-2949_1 6498 if (cart.products && cart.products.length > 0 && cart['total'] > 0) { 6499 cartIcon.classList.add('t706__carticon_showed');