

top.itdReCaptcha = top.itdReCaptcha || []; top.itdReCaptchaLoaded = top.itdReCaptchaLoaded || false; top.onloadRecaptchaCallbackDefParams = { rSiteKey: "ysc1_9Wr6TMWBWscAQMk2teakGVLb8HjIvFdrH1Ae2fum672b2953", providerType: "yandex" }; top.loadReCaptchaIfNotLoaded = function () { if (top.itdReCaptchaLoaded === true) { return false; } top.itdReCaptchaLoaded = true; var script = document.createElement("script"); script.src = "https://smartcaptcha.yandexcloud.net/captcha.js"; script.async = true; document.body.appendChild(script); return true; } top.onloadRecaptchaCallback = function (findedID) { if (typeof findedID != "undefined") { var findedInArray = false; for (var i in top.itdReCaptcha) { if (top.itdReCaptcha[i] === findedID) { findedInArray = true; break; } } if (!findedInArray) { top.itdReCaptcha.push(findedID); } } if (top.loadReCaptchaIfNotLoaded()) { return; } if (typeof window.smartCaptcha !== "undefined") { var containers = document.querySelectorAll(".smart-captcha[data-sitekey]"); for (var i = 0; i < containers.length; i++) { if (!containers[i].hasAttribute("data-initialized")) { containers[i].setAttribute("data-initialized", "1"); window.smartCaptcha.render(containers[i], { sitekey: containers[i].getAttribute("data-sitekey"), hl: "ru" }); } } } } var ajaxOrderPageTryInitRecaptcha = function () { if (top.loadReCaptchaIfNotLoaded()) { return; } var container = document.getElementById("smart-captcha-ajaxorder"); if (container && typeof window.smartCaptcha !== "undefined" && !container.hasAttribute("data-initialized")) { container.setAttribute("data-initialized", "1"); window.smartCaptcha.render(container, { sitekey: top.onloadRecaptchaCallbackDefParams.rSiteKey, hl: "ru" }); } } var ajaxOrderPageInitRecaptcha = function () { try { setTimeout(function () { ajaxOrderPageTryInitRecaptcha(); }, 1000); setTimeout(function () { ajaxOrderPageTryInitRecaptcha(); }, 3000); setTimeout(function () { ajaxOrderPageTryInitRecaptcha(); }, 5000); } catch (e) { } };