2901var popupStyle = options.popup_opts.overlayBgColorRgba2902? // @ts-expect-error ST-2949_32903'style="background-color:' + options.popup_opts.overlayBgColorRgba + '"'2904: '';2905var containerClass = 't-popup__container t-popup__container-static ';2906var verticalAlignClass = options.verticalAlignButtons ? 't-catalog__valign-buttons' : '';2907var showRelevants = options.showRelevants;2908// TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538)2909// @ts-expect-error ST-2949_32910var titleRelevants = options.titleRelevants ? options.titleRelevants : window.tCatalogDict['seeAlso'];2911
var mobileOneRowClass = options.relevants_slider ? '' : 't-catalog__grid-cont_mobile-one-row'; // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 if (options.popup_opts.isVertical) { containerClass += 't-catalog__popup-container_8-cols '; } var containerStyle = ''; // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 var sliderClass = options.popup_opts.isVertical ? '' : // @ts-expect-error ST-2949_3 't-catalog__prod-popup__col-left t-col t-col_' + options.popup_opts.columns; // @ts-expect-error ST-2949_3 var infoAlignClass = 't-align_' + (options.popup_opts.align === 'center' ? 'center' : 'left') + ' '; var infoClass = infoAlignClass + // @ts-expect-error ST-2949_3 (options.popup_opts.isVertical ? '' : // @ts-expect-error ST-2949_3 't-catalog__prod-popup__col-right t-col t-col_' + options.popup_opts.columns2); var productElClass = 'js-catalog-product js-product t-catalog__product-popup '; // @ts-expect-error ST-2949_3 if (options.popup_opts.containerBgColor) { // @ts-expect-error ST-2949_3 containerStyle += 'background-color:' + options.popup_opts.containerBgColor + ';'; } // @ts-expect-error ST-2949_3 if (options.popup_opts.popupContainer === '100') { containerStyle += 'max-width:100%;'; productElClass += 't-container_fluid '; } str += '<div class="t-popup" ' + statAttr + ' ' + popupStyle + '>'; str += t_catalog_get_productPopup_closeIcon_html(options); str += t_catalog_get_productPopup_closeText_html(options); str += '<div class="' + containerClass + '" style="' + containerStyle + '" >'; str += '<div>'; str += '<div class="t-catalog__prod-popup__container">'; str += '<div class="' + productElClass + '">'; var popupContainerClasses = []; // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 if (options.popup_opts.popupContainer === '100') { popupContainerClasses.push('t-container_fluid'); } str += popupContainerClasses.length ? '<div class="' + popupContainerClasses.join(' ') + '">' : '<div>'; // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) // @ts-expect-error ST-2949_1 if (options?.breadcrumbs?.hasBreadcrumbs && !options?.breadcrumbs?.hideBreadcrumbsProduct) { // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 str += `<div class="t-catalog__prod-popup__breadcrumbs js-catalog-prod-breadcrumbs ${infoAlignClass} ${options.popup_opts.isVertical ? '' : 't-col'}"></div>`; } str += '<div class="t-catalog__prod-popup__slider js-catalog-prod-slider ' + sliderClass + '"></div>'; str += '<div class="t-catalog__prod-popup__info ' + infoClass + '">'; str += t_catalog_get_productPopup_titleText_html(); str += '<div class="js-catalog-price-wrapper t-catalog__prod-popup__price-wrapper">'; str += t_catalog_get_productPopup_onePrice_html(options, 'current'); str += t_catalog_get_productPopup_onePrice_html(options, 'old'); str += '</div>'; str += '<div class="js-product-controls-wrapper"></div>'; str += t_catalog_get_productPopup_linksSizeChart_html(); str += t_catalog_get_productPopup_buyBtn_html(options); str += t_catalog_get_productPopup_text_html(); str += '</div>'; str += '</div>'; str += '</div>'; if (showRelevants) { str += ' <div class="t-catalog__relevants__container">'; str += ' <div class="t-catalog__relevants__title-wrapper">'; str += ' <div class="t-catalog__relevants__title t-uptitle t-uptitle_xxl"' + (Object.prototype.hasOwnProperty.call(options.typo, 'title') ? // TODO ST-2949_3: null / undefined (TS18047, TS18048, TS2531, TS2722, TS2454, TS2538) // @ts-expect-error ST-2949_3 'style = "' + options.typo.title + '"' : '') + '>' +