<script>
document.addEventListener('DOMContentLoaded', () => {
let form = document.querySelector('#rec123456789 form');
form.dataset.successCallback = 'necodim_onSuccess';
});
function necodim_onSuccess(t) {
t instanceof Element || (t = t[0]);
var e = t.closest(".r"),
r = e.getAttribute("data-record-type"),
o = t.querySelector(".t-form__inputsbox"),
a = getComputedStyle(o, null),
n = parseInt(a.paddingTop) || 0,
i = parseInt(a.paddingBottom) || 0,
s = o.clientHeight - (n + i) + (o.getBoundingClientRect().top + window.pageYOffset),
l = t.querySelector(".t-form__successbox").getBoundingClientRect().top + window.pageYOffset,
d = 0,
a = window.innerHeight,
n = document.body,
i = document.documentElement,
n = Math.max(n.scrollHeight, n.offsetHeight, i.clientHeight, i.scrollHeight, i.offsetHeight),
x = t.querySelector(".js-successbox");
121 != r || (i = t.getAttribute("data-success-callback")) && (r = i.split("_onSuccess")[0].replace("t", ""));
var c = "t" + r + "__inputsbox_hidden",
u = [702, 708, 862, 945, 1014],
m = !0,
d = 960 < window.innerWidth ? l - 200 : l - 100,
p = document.querySelector(".t-tildalаbеl");
if (l > window.scrollY || n - s < a - 100)
o.classList.add(c),
n < a && p && setTimeout(function() {
t_fadeOut(p)
}, 300);
else {
for (var f = 0; f < u.length; f++)
if (u[f] == r) {
m = !1;
break
}
m && t_forms__scrollBeginForm(d),
setTimeout(function() {
o.classList.add(c)
}, 400)
}
var _ = t.getAttribute("data-success-url");
setTimeout(() => {
_ && setTimeout(function() {
window.location.href = _
}, 500),
835 != r && 862 != r || (e = e.querySelector(".t835__btn_prev")) && (e.style.display = "none")
}, 5000);
}
</script>