1701newPrice =1702'<div class="t1002__product-amount-currency">' +1703window.twishlist['currency_txt_l'] +1704'</div> ' +1705newPrice;1706}1707if (window.twishlist['currency_txt_r']) {1708newPrice +=1709' <div class="t1002__product-amount-currency">' + window.twishlist['currency_txt_r'] + '</div>';1710}1711}1712return newPrice;
}function twishlist__onFuncLoad(funcName, okFunc, time) { if (typeof window[funcName] === 'function') { okFunc(); } else { var startTime = Date.now(); setTimeout(function checkFuncExist() { var currentTime = Date.now(); if (typeof window[funcName] === 'function') { okFunc(); return; } if ( document.readyState === 'complete' && currentTime - startTime > 5000 && typeof window[funcName] !== 'function' ) { throw new Error(funcName + ' is undefined'); } setTimeout(checkFuncExist, time || 100); }); }}/** * Method isEmptyObject for ie8+ * * @param {object} obj - object for checked * @returns {boolean} - return true/false */function twishlist__isEmptyObject(obj) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { return false; } } return true;}function twishlist__getRootZone() { const allrecords = document.getElementById('allrecords'); const rootZone = allrecords && allrecords.getAttribute('data-tilda-root-zone'); return rootZone || 'com';}if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.matchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector;}// Polyfill: Element.closestif (!Element.prototype.closest) { Element.prototype.closest = function (s) { var el = this; while (el && el.nodeType === 1) { if (Element.prototype.matches.call(el, s)) { return el; } el = el.parentElement || el.parentNode; } return null; };}