6101// TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)6102// @ts-expect-error ST-2949_56103options.title_typo,6104'js-catalog-title-typo-styles-' + recid6105);6106return;6107}61086109const productNameStyle = productName.getAttribute('style');6110// TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)6111// @ts-expect-error ST-2949_5
productName.setAttribute('style', t_catalog_removeSizesFromStylesLine(productNameStyle)); if (bgColor) { // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 const prodNameColor = options.typo.titleColor; // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) // @ts-expect-error ST-2949_5 t_catalog_applyContrastColorIfNecessary(productName, prodNameColor, bgColor); }}/** * Устанавливает стили для слайдера "смотрите также" * @param {string} recid - ID записи * @param {CatalogOptions} options - Объект настроек */function t_catalog_setRelevantsSliderStyles(recid, options) { if (!options.showRelevants) { return; } if (options.title_typo) { t_catalog_parseTypoStylesConfig( recid, '.t-catalog__relevants__title', // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) // @ts-expect-error ST-2949_5 options.title_typo, 'js-catalog-relevants-title-typo-styles-' + recid, { color: true, 'font-size': true, 'font-family': true, 'line-height': true, 'font-weight': true, 'letter-spacing': true, opacity: true, 'text-transform': true, 'text-shadow': true, } ); t_catalog_parseTypoStylesConfig( recid, '.t-catalog__card__title', // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) // @ts-expect-error ST-2949_5 options.title_typo, 'js-catalog-relevants-descr-typo-styles-' + recid ); } if (options.descr_typo) { t_catalog_parseTypoStylesConfig( recid, '.t-catalog__card__descr', // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) // @ts-expect-error ST-2949_5 options.descr_typo, 'js-catalog-relevants-item-descr-typo-styles-' + recid ); } if (options.price_typo) { t_catalog_parseTypoStylesConfig( recid, '.t-catalog__card__price', // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) // @ts-expect-error ST-2949_5 options.price_typo, 'js-catalog-relevants-price-typo-styles-' + recid ); } if (options.price_old_typo) { t_catalog_parseTypoStylesConfig( recid, '.t-catalog__card__price_old', // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) // @ts-expect-error ST-2949_5 options.price_old_typo, 'js-catalog-relevants-old-price-typo-styles-' + recid ); }}/** * Устанавливает стили для описания товара в сниппете