1
(()=>{"use strict";var t="CalltouchWidgetFrame",e="Calltouch-widget-container",r=10;function n(){var t=document.getElementsByTagName("jdiv");if(t.length>0){t[0].style.zIndex="1000000";var e=document.getElementsByClassName("wrap_mW");e.length>0&&(e[0].style.zIndex="1000001")}
2
else r>0&&(r-=1,setTimeout(n,2e3))}
3
function o(r){try{n()}
4
catch(t){console.error("Calltouch error: ",t)}
5
var o=window.frames[t].document,a=document.createElement("meta");a.setAttribute("charset","utf-8"),o.head.appendChild(a);var i=document.createElement("meta");i.setAttribute("name","viewport"),i.setAttribute("content","width=device-width, minimum-scale=1.0, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, user-scalable=0"),o.head.appendChild(i);var s=o.createElement("div");s.setAttribute("id",e),o.body.appendChild(s),o.body.style.margin="0px";var d="".concat("https://mod.calltouch.ru/front/","widget.js?version=").concat("97308743"),l=o.createElement("script");l.setAttribute("type","text/javascript"),l.setAttribute("charset","utf-8"),l.setAttribute("src",d),o.body.appendChild(l)}
6
function a(e,r){var n=document.createElement("iframe");n.setAttribute("title","Calltouch Widget"),n.setAttribute("frameborder","no"),n.setAttribute("scrolling","no"),n.setAttribute("name",t),n.setAttribute("id",e),n.style.setProperty("display","block","important"),n.style.setProperty("min-width","0","important"),n.style.setProperty("background","none","important"),n.style.setProperty("box-shadow","none","important"),n.style.setProperty("border","none","important"),n.style.setProperty("border-radius","0","important"),n.style.setProperty("padding","0","important"),n.style.setProperty("margin","0","important"),n.style.setProperty("outline","none","important"),n.style.setProperty("filter","none","important"),n.style.setProperty("transform","none","important"),n.style.setProperty("z-index","2147483646","important"),n.style.setProperty("position","fixed","important"),n.style.setProperty("bottom","0"),n.style.width="0px",n.style.height="0px",document.body.appendChild(n),"complete"===n.contentWindow.document.readyState?o():n.onload=function(){o()}
7
}
8
function i(){var r=document.getElementById(t);if(r){var n=r.contentWindow.document;if(n){if(n.getElementById(e))return;r.parentNode.removeChild(r),a(t)}
9
else r.parentNode.removeChild(r),a(t)}
10
else a(t)}
11
!document.body||"complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",i,!1):i()}
12
)();