// TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046)
6314 // @ts-expect-error ST-2949_5 6315 typoWithoutShadow = JSON.parse(options.options_typo); 6317 console.error('Error when parse options_typo parse error', e); 6321 delete typoWithoutShadow.shadowsize; 6322 delete typoWithoutShadow.shadowopacity; 6323 const typoWithoutShadowJSON = JSON.stringify(typoWithoutShadow); 6326 '.t-product__option-title:not(.t-product__option-title_select):not(.t-product__option-title_radio):not(.t-product__option-title_buttons)'; 6327 t_catalog_parseTypoStylesConfig( 6330 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6331 // @ts-expect-error ST-2949_5 6332 options.options_typo, 6333 'js-catalog-options-title-typo-styles-' + recid 6336 if (options.descr_typo) { 6338 // TODO ST-2949_5: assignability, arguments, calls, return types (TS2345, TS2322, TS2554, TS2769, TS2740, TS2739, TS2353, TS2349, TS2355, TS2366, TS2774, TS18046) 6339 // @ts-expect-error ST-2949_5 6340 const descrColor = JSON.parse(options.descr_typo).color; 6341 // @ts-expect-error ST-2949_5 6342 const optionsColor = JSON.parse(options.options_typo).color; 6343 const style = t_catalog_option_getStyleInSnippet(descrColor, optionsColor); 6345 const cssRule = `#rec${recid} ${selector} { ${style}; }`; 6346 t_catalog_createСssStyleTag('js-catalog-options-title-color-rewrite-typo-styles-' + recid, cssRule); 6349 console.error('Error when parse descr_typo config', error); 6353 t_catalog_parseTypoStylesConfig( 6355 '.t-product__option-selected-title', 6356 typoWithoutShadowJSON, 6357 'js-catalog-options-selected-title-typo-styles-' + recid 6360 t_catalog_parseTypoStylesConfig( 6362 '.t-product__option-title_select', 6363 typoWithoutShadowJSON, 6364 'js-catalog-options-title-select-typo-styles-' + recid 6367 t_catalog_parseTypoStylesConfig( 6369 '.t-product__option-select', 6370 typoWithoutShadowJSON, 6371 'js-catalog-options-select-typo-styles-' + recid 6374 t_catalog_parseTypoStylesConfig( 6376 '.t-product__option-title_radio', 6377 typoWithoutShadowJSON, 6378 'js-catalog-options-title-radio-typo-styles-' + recid 6381 t_catalog_parseTypoStylesConfig( 6383 '.t-product__option-title_buttons', 6384 typoWithoutShadowJSON, 6385 'js-catalog-options-title-buttons-typo-styles-' + recid 6389// TODO ST-2949_2: implicit any on params, vars, this, and index access (TS7006, TS7005, TS7008, TS7034, TS2683, TS7053, TS7015) 6390// @ts-expect-error ST-2949_2 6391function t_catalog_option_getStyleInSnippet(descrColor, optionsColor) { 6394 if (descrColor && !optionsColor) { 6396 } else if (optionsColor) { 6397 color = optionsColor; 6399 var isGradient = color.startsWith('linear-gradient') || color.startsWith('radial-gradient');