5801shadowOptions.shadowOpacity = rawVal;5802break;5803case 'opacity':5804if (shouldInclude('opacity')) {5805t_store_addRule(rulesArr, mapSimpleProps[key], t_store_percentToFloat(rawVal));5806}5807break;5808case 'color':5809if (shouldInclude('color')) {5810t_store_addTextColorRule(rulesArr, rawVal);5811}5812break;
default: if (mapSimpleProps[key] && shouldInclude(mapSimpleProps[key])) { t_store_addRule(rulesArr, mapSimpleProps[key], rawVal); } break; } }); const baseShadow = t_store_buildTextShadow(shadowOptions); if (baseShadow && shouldInclude('text-shadow')) { t_store_addRule(rulesArr, 'text-shadow', baseShadow); }}/** * Removes font-size and padding-top/padding-bottom styles from a styles line string. * * @param {string} styleString - A string representing a styles line. * @return {string} - The filtered styles line, with font-size and padding-top/padding-bottom styles removed. If the input is falsy, returns an empty string. */function t_store_removeSizesFromStylesLine(styleString) { // Return an empty string if input is falsy if (!styleString) { return ''; } else { // Split the style string into an array var styleArray = styleString.split(';'); // Filter the array to exclude font-size and padding-top/padding-bottom var filteredStyles = styleArray.filter(function (style) { return !style.match(/(font-size|padding-(top|bottom)|line-height)/); }); // Join the filtered styles back into a string and return it return filteredStyles.join(';'); }}// Функция вызывается каждый раз, при открытии нового попапа,// Или один раз для страницы со сниппетомfunction t_store_drawProdPopup_drawGallery(recid, popupElement, product, options) { var GALLERY_BREAKPOINT = 980; var CATALOGSLDS_SCRIPT_URL = 'https://static.tildacdn.' + t_store__getRootZone() + '/js/tilda-catalog-slds-1.0.min.js'; var el_popup = popupElement; if (window.jQuery && el_popup instanceof jQuery) { if (el_popup.length === 0) { return; } el_popup = el_popup[0]; } if (!el_popup) return; var prodSliderElement = el_popup.querySelector('.js-store-prod-slider'); var galleryArr; if (!product.gallery) { if (prodSliderElement) prodSliderElement.innerHTML = ''; return; } if (typeof product.gallery === 'string') { galleryArr = JSON.parse(product.gallery); } else { galleryArr = product.gallery; } if (galleryArr.length === 0) { if (prodSliderElement) prodSliderElement.innerHTML = ''; return; } var initGallery = function () { var params = { recid: recid, el_popup: el_popup, product: product, options: options, galleryArr: galleryArr, }; var isMobileDevice = window.isMobile || ('ontouchend' in document && navigator.userAgent.indexOf('AppleWebKit') !== -1); var windowWidth = isMobileDevice ? document.documentElement.clientWidth : window.innerWidth; if ( (options.galleryStyle && windowWidth > GALLERY_BREAKPOINT) || (options.popup_opts.mobileGalleryStyle && windowWidth <= GALLERY_BREAKPOINT)