if(void 0===TrustindexCertificate)var TrustindexCertificate=function(){return{loaded_css:[],certificate_id:74,script:document.currentScript,available_languages:"af ar az bg bn bs cs cy da de el en es et fa fi fr gd gl he hi hr hu hy id is it ja ka kk ko lt mk ms nl no pl pt ro ru sk sl sq sr sv th tr uk vi zh".split(" "),allowOnDomains:["unbounce.com","unbouncepreview.com","trustindex.io","trustindex.test","trustindex.hu"],getWidgetUrl:function(a){return"undefined"===typeof a?!1:TrustindexCertificate.getCDNUrl()+ "widgets/"+a.substring(0,2)+"/"+a+"/"},init:function(){if(document.body){var a=document.querySelectorAll(TrustindexCertificate.getScriptSelector("loader-cert"));for(let d=0;df.length)continue;f=f[f.length-1];f=f.split("&")[0];if(!f||-1!==f.search("="))continue;if(c.getAttribute("data-ti-loaded"))continue;let e=document.createElement("div");c.closest("head")?document.body.appendChild(e): c.after(e);c.setAttribute("data-ti-loaded",!0);let k=new XMLHttpRequest;k.open("GET",TrustindexCertificate.getWidgetUrl(f)+"content.html");k.send();k.onload=function(){if(4===k.readyState&&200===k.status)if(k.responseText){var h=TrustindexCertificate.createElementFromHTML(k.responseText),g=h[0],m={};for(let l=0;lTrustindexCertificate.show_widget(g)),TrustindexCertificate.loaded_css.push(l)):TrustindexCertificate.show_widget(g)):g.innerHTML="Layout id not found!"})}else m=document.createComment("Trustindex widget ("+ f+") is empty here."),e.replaceWith(m);else c.nextSibling.innerHTML="Widget not found!"}}}else window.onload=TrustindexCertificate.init},init_widget:function(a,d){a.layout_id=parseInt(a.getAttribute("data-layout-id"));a.set_id=a.getAttribute("data-set-id");a.pid=a.getAttribute("data-pid");a.language=a.getAttribute("data-language")||"en";a.domains=d;"page"===a.language?a.language=TrustindexCertificate.getPageLanguage():"user"===a.language&&(a.language=TrustindexCertificate.getUserLanguage());a.layout_id&& (a.layout_id=parseInt(a.layout_id))},show_widget:function(a){if(a.getAttribute("data-is-valid")&&a.getAttribute("data-domain")&&parseInt(a.getAttribute("data-is-valid"))){var d=a.getAttribute("data-validation")?a.getAttribute("data-validation").split(","):[],b=[];let k=window;window!==window.parent&&(k=window.parent);var c=!1,f=k.location.href.toLowerCase();-1!==f.indexOf(a.getAttribute("data-domain").toLowerCase().replace("www.",""))&&(c=!0);for(let h in a.domains)if(-1!==f.indexOf(h.toLowerCase().replace("www.", ""))){a.querySelectorAll(".ti-field-domain").forEach(g=>g.innerHTML=h);a.querySelector(".ti-field-phone").innerHTML=a.domains[h].phone;""!==a.domains[h].phone?a.querySelector(".ti-field-phone").closest(".ti-table-row").style.display="":a.querySelector(".ti-field-phone").closest(".ti-table-row").style.display="none";a.querySelector(".ti-field-email").innerHTML=a.domains[h].email;a.querySelector(".ti-field-company-name").innerHTML=a.domains[h].name;var e=a.querySelector(".ti-header-link a");if(e){let g= e.getAttribute("href").replace(/(?:(domain=)\w{2}|(\/domain\/)\w{2})/,"$1$2"+h);g===e.getAttribute("href")&&(g=-1===g.indexOf("?")?g+"?":g+"&",g+="domain="+h);e.setAttribute("href",g)}break}if(!c)for(e=0;e{-1!==g.indexOf(m.replace("http://","https://"))&&(h=!0)});h?TrustindexCertificate.remove_widget(a):setTimeout(()=>{a.style.display="";TrustindexCertificate.position_tooltip(a); a.layout_id===TrustindexCertificate.certificate_id&&(TrustindexCertificate.add_events_for_certificate(a),setTimeout(()=>{a.classList.add("ti-widget-appeared");a.classList.add("ti-widget-appeared-animation");setTimeout(()=>a.classList.remove("ti-widget-appeared-animation"),3E3)},1E3*parseInt(a.getAttribute("data-badge-delay"))+10))},50)}}else TrustindexCertificate.remove_widget(a)},show_validation_error:function(a,d){a.innerHTML=(a.layout_id===TrustindexCertificate.layout_id?"Certificate":"Trustmark")+ " widget validation failed: "+d.join(", ")+"."},remove_widget:function(a){TrustindexCertificate.getAllNextElements(a,'[data-after-ti-widget="1"]').forEach(d=>d.remove());a.remove()},position_tooltip:function(a){let d=a.querySelector(".ti-tooltip");if(d){d.style.display="block";var b=a.querySelector(".ti-trust-badge").getBoundingClientRect();let c=d.getBoundingClientRect();d.style.display="";a=b.left+window.scrollX;let f=(c.width-b.width)/2+25,e=a+b.width+fc.height+25?"top":"bottom")+"-";d.setAttribute("class","ti-tooltip "+(a>f&&e?b+"center":e?b+"left":b+"right"))}},add_events_for_certificate:function(a){a.addEventListener("click",function(b){if(b.target.matches(".ti-accordion-item .ti-accordion-header")){b.preventDefault();let c=b.target.closest(".ti-accordion-item"),f=c.classList.contains("ti-active");c.closest(".ti-accordion").querySelectorAll(".ti-accordion-item").forEach(e=>{e.querySelector(".ti-accordion-body").setAttribute("style", "");e.classList.remove("ti-active")});if(!f){let e=c.querySelector(".ti-accordion-body");e.style.transition="unset";e.style.maxHeight="100000px";let k=e.offsetHeight;e.style.maxHeight="0";setTimeout(()=>{e.style.transition="";e.style.maxHeight=k+"px"},1);c.classList.add("ti-active")}}if(b.target.matches(".ti-clickable-expand")){b.preventDefault();let c=b.target.closest(".ti-widget");c.classList.contains("ti-modal-opened")?c.classList.remove("ti-modal-opened"):(c.classList.add("ti-modal-opened"),setTimeout(()=> c.querySelector(".ti-modal-inner").style.height=c.querySelector(".ti-modal-inner").offsetHeight+"px",100))}if(b.target.matches(".ti-modal-close")||b.target.matches(".ti-modal-container"))b.preventDefault(),b.target.closest(".ti-widget").classList.remove("ti-modal-opened")},!1);let d=a.querySelector(".ti-sticky-button");if(d&&(d.classList.contains("ti-position-left-vertical")||d.classList.contains("ti-position-right-vertical"))){let b=window.innerWidth-document.documentElement.clientWidth;a.style.setProperty("--ti-scrollbar-width", b+"px");setInterval(()=>{let c=window.innerWidth-document.documentElement.clientWidth;b!==c&&(b=c,a.style.setProperty("--ti-scrollbar-width",b+"px"))},300)}},translateWidget:function(a,d){let b=function(){"undefined"!==typeof TrustindexCertificateTranslations&&void 0===TrustindexCertificateTranslations[a.language]&&(a.language="en");a.querySelectorAll(".ti-to-translate").forEach(c=>{var f=c.innerHTML.trim();let e=TrustindexCertificate.getTranslation(f,a.language);c.getAttribute("data-strip-tags")&& (f=document.createElement("div"),f.innerHTML=e,e=f.innerText,c.removeAttribute("data-strip-tags"));if(f=c.getAttribute("data-params")||"")f.split(";").forEach(k=>{k=k.split(":");let h=k[1];"undefined"!==typeof k[2]&&k[2]&&(h=TrustindexCertificate.getTranslation(h,a.language));e=e.replace(new RegExp(k[0],"g"),h)}),c.removeAttribute("data-params");c.getAttribute("data-ucfirst")&&(e=e[0].toUpperCase()+e.slice(1),c.removeAttribute("data-ucfirst"));c.innerHTML=e;c.classList.remove("ti-to-translate");c.classList.contains("ti-translate-remove-child")&& c.replaceWith(e);0===c.classList.length&&c.removeAttribute("class")});d&&d()};return"en"!==a.language&&"undefined"===typeof TrustindexCertificateTranslations?TrustindexCertificate.addScript(TrustindexCertificate.getCDNUrl()+"assets/js/cert-translations.js",b):b()},getTranslation:function(a,d){if("undefined"===typeof TrustindexCertificateTranslations)return a;let b=TrustindexCertificateTranslations.en.indexOf(a);-1===b&&(b=TrustindexCertificateTranslations.en.indexOf(a.replace(/( [^=]+)=""/g,"$1"))); return TrustindexCertificateTranslations[d][b]||a},createElementFromHTML:function(a){let d=document.createElement("div");d.innerHTML=a.trim();return d.childNodes},addCSS:function(a,d){let b=document.createElement("link");b.type="text/css";b.rel="stylesheet";b.href=a;window!==window.parent&&TrustindexCertificate.isCrossDomainIframe()?window.parent.document.head.appendChild(b):document.head.appendChild(b);d&&b.addEventListener("load",d)},addScript:function(a,d){let b=document.createElement("script"); b.type="text/javascript";b.src=a;window!==window.parent&&TrustindexCertificate.isCrossDomainIframe()?window.parent.document.head.appendChild(b):document.head.appendChild(b);d&&b.addEventListener("load",d)},isCrossDomainIframe:function(){if(window.parent===window)return!1;let a=new URL(window.parent.location);return a.protocol!==location.protocol||a.hostname!==location.hostname||a.port!==location.port},getAllNextElements:function(a,d){let b=[];for(a=a.nextElementSibling;a&&a.matches(d);)b.push(a), a=a.nextElementSibling;return b},getScriptSelector:function(a){return'div[src*=".trustindex."][src*="'+a+'.js"],div[data-src*=".trustindex."][data-src*="'+a+'.js"],script[src*=".trustindex."][src*="'+a+'.js"]'},getPageLanguage:function(){return(document.documentElement.lang||"en").substr(0,2).toLowerCase()},getUserLanguage:function(){return(navigator.language||navigator.userLanguage||TrustindexCertificate.getPageLanguage()).substr(0,2).toLowerCase()},getCDNUrl:function(){var a="https://cdn.trustindex.io/"; TrustindexCertificate.script&&(a=TrustindexCertificate.script.src.split("/"),a.pop(),a=a.join("/")+"/");-1===a.indexOf("trustindex.")&&(a="https://cdn.trustindex.io/");return a}}}();TrustindexCertificate.init();