3401link = t_store_get_productCard_link(options.prodCard.btnLink2, product, isRelevantsShow, rec);3402linkTarget = t_store_get_productCard_targetAttr(options.prodCard.btnLink2, product);34033404if (isT1025) str += '<div class="t-store__card__btn-row t-store__card__btn-second_wrapper">';3405str +=3406'<a' +3407' href="' +3408link +3409'" ' +3410linkTarget +3411' class="js-store-prod-btn2 t-store__card__btn t-store__card__btn_second t-btn ' +3412
btnSizeClass + '"' + (!options.button2_styles ? ' style="' + options.btn2_style + '"' : '') + '">' + '<span class="t-store__card__btn-text t-btnflex__text">' + options.prodCard.btnTitle2 + '</span></a>'; if (isT1025) str += '</div>'; } str += '</div>'; return str;}function t_store_get_productCard_link(link, product, isRelevantsShow, rec) { if (rec[0]) { var isSnippet = document.getElementById('allrecords') !== document.querySelector('.t-store__product-snippet') && document.getElementById('allrecords').contains(document.querySelector('.t-store__product-snippet')); if (isSnippet && link === 'popup') { return t_store_generateUrl(product); } } if (link === 'order') { return '#order'; } if (isRelevantsShow) { return product.buttonlink ? product.buttonlink : '#prodpopup'; } if (link === 'popup') { if (product.buttonlink) { var url = product.buttonlink; if (url.indexOf('//') === -1 && url.slice(0, 1) !== '/' && url.slice(0, 1) !== '#') { url = 'http://' + url; } return url; } else { return '#prodpopup'; } } return '#prodpopup';}function t_store_get_productCard_targetAttr(link, product) { if (link === 'popup' && product.buttonlink && product.buttontarget === '_blank') { return 'target="_blank"'; } return '';}/** * Returns the HTML for a horizontal separator element to be used in a grid layout. * * @param {Object} opts - An object containing options for the separator element. * @param {number} [opts.vindent=0] - The vertical indentation (in pixels) for the separator element. * @return {string} - The HTML for the separator element. */function t_store_get_horizSeparator_html(opts) { var str = '<div class="t-clear t-store__grid-separator" [[style]]></div>'; str = str.replace('[[style]]', opts.vindent ? 'style="margin-bottom:' + opts.vindent + ';"' : ''); return str;}/** * Returns the number of blocks that should be placed in a row based on the current screen width and the provided options. * * @param {Object} options - An object containing options for determining the number of blocks in a row. * @param {boolean} [options.isHorizOnMob=false] - Whether to place the blocks horizontally on mobile devices. * @param {number} [options.blocksInRow=0] - The number of blocks to place in a row on desktop devices. * @param {Array} cards - An array of card elements. * @return {number} - The number of blocks to place in a row. */function t_store_unifyCardsHeights_getBlocksInRow(options, cards) { if (window.innerWidth <= 960 && options.isHorizOnMob) { return cards.length; } else if (window.innerWidth <= 960) { return 2; } else { return parseInt(options.blocksInRow, 10); }}function t_store_unifyCardsWidth(recid) { var rec = document.getElementById('rec' + recid); if (!rec) return; if (window.getComputedStyle(rec).display === 'none') return;