Каталог файловtilda-catalog-1.2.js
3401 var blockColorRGB;3402 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538)3403 // @ts-expect-error ST-2949_33404 var blockColor = rec.getAttribute('data-bg-color');3405 if (blockColor) {3406 blockColorRGB =3407 blockColor.indexOf('-gradient(') !== -13408 ? t_catalog_getFirstColorFromGradient(blockColor)3409 : t_catalog_hexToRgb(blockColor);3410 }3411 var isSnippet =3412
История файла и сравнение версий
document.getElementById('allrecords') !== document.querySelector('.t-catalog__product-snippet') &&
3413 // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) 3414 // @ts-expect-error ST-2949_3 3415 document.getElementById('allrecords').contains(document.querySelector('.t-catalog__product-snippet')); 3417 // @ts-expect-error ST-2949_3 3418 blockColorRGB = rec.style.backgroundColor; 3420 if (blockColorRGB) { 3421 var luma = t_catalog_luma_rgb(blockColorRGB); 3422 if (luma === 'white') { 3423 blendMode = 'mix-blend-mode: lighten;'; 3424 cardFill = 'rgba(255,255,255,0.2)'; 3425 handFill = 'rgba(255,255,255,1)'; 3426 circleFill = 'rgba(255,255,255,0.2)'; 3431 '<div class="t-catalog__scroll-icon-wrapper" style="' + 3434 '<svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 300" height="42" width="42">' + 3435 '<rect class="tooltip-horizontal-scroll-icon_card" x="480" width="200" height="200" rx="5" fill="' + 3438 '<rect class="tooltip-horizontal-scroll-icon_card" y="0" width="200" height="200" rx="5" fill="' + 3441 '<rect class="tooltip-horizontal-scroll-icon_card" x="240" width="200" height="200" rx="5" fill="' + 3444 '<path class="tooltip-horizontal-scroll-icon_hand" d="M78.9579 285.7C78.9579 285.7 37.8579 212.5 20.5579 180.8C-2.44209 138.6 -6.2422 120.8 9.6579 112C19.5579 106.5 33.2579 108.8 41.6579 123.4L61.2579 154.6V32.3C61.2579 32.3 60.0579 0 83.0579 0C107.558 0 105.458 32.3 105.458 32.3V91.7C105.458 91.7 118.358 82.4 133.458 86.6C141.158 88.7 150.158 92.4 154.958 104.6C154.958 104.6 185.658 89.7 200.958 121.4C200.958 121.4 236.358 114.4 236.358 151.1C236.358 187.8 192.158 285.7 192.158 285.7H78.9579Z" fill="' + 3448 '.tooltip-horizontal-scroll-icon_hand {' + 3449 'animation: tooltip-horizontal-scroll-icon_anim-scroll-hand 2s infinite' + 3451 '.tooltip-horizontal-scroll-icon_card {' + 3452 'animation: tooltip-horizontal-scroll-icon_anim-scroll-card 2s infinite' + 3454 '@keyframes tooltip-horizontal-scroll-icon_anim-scroll-hand {' + 3455 '0% { transform: translateX(80px) scale(1); opacity: 0 }' + 3456 '10% { transform: translateX(80px) scale(1); opacity: 1 }' + 3457 '20%,60% { transform: translateX(175px) scale(.6); opacity: 1 }' + 3458 '80% { transform: translateX(5px) scale(.6); opacity: 1 } to { transform: translateX(5px) scale(.6); opacity: 0 }' + 3460 '@keyframes tooltip-horizontal-scroll-icon_anim-scroll-card {' + 3461 '0%,60% { transform: translateX(0) }' + 3462 '80%,to { transform: translateX(-240px) }' + 3469 '<div class="t-catalog__scroll-icon-wrapper" style="' + 3472 '<svg role="presentation" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38 16" height="16" width="38">' + 3473 '<rect class="tooltip-horizontal-scroll-icon_circle" x="22" y="0" width="16" height="16" rx="8" fill="' + 3477 '.tooltip-horizontal-scroll-icon_circle {' + 3478 'animation: tooltip-horizontal-scroll-icon_anim-scroll-circle 2.9s infinite linear;' + 3480 '@keyframes tooltip-horizontal-scroll-icon_anim-scroll-circle {' + 3481 '0% { opacity: 1;transform: translateX(0);width: 16px;animation-timing-function: ease-in-out; }' + 3482 '27% { opacity: 1;transform: translateX(-20px);width: 21px;animation-timing-function: ease-out; }' + 3483 '37% { opacity: 1;transform: translateX(-22px);width: 16px;animation-timing-function: ease-in-out; }' + 3484 '54% { opacity: 0;transform: translateX(-22px);width: 16px;animation-timing-function: ease-in-out; }' + 3485 '100% { opacity: 0;transform: translateX(-22px);width: 16px; }' + 3491 if (horizontalScrollHint === 'hand' || !horizontalScrollHint) { 3493 } else if (horizontalScrollHint === 'circle') { 3499 * Make a HTML code for the empty message