(function () { if (window.__TGMCollectInlineIframeLoadedCONTACTFORM) return; window.__TGMCollectInlineIframeLoadedCONTACTFORM = true; function getCurrentScript() { return document.currentScript || (function () { const scripts = document.getElementsByTagName('script'); return scripts[scripts.length - 1]; })(); } function init() { const script = getCurrentScript(); if (!script || !script.parentNode) return; const hostDomain = window.location.hostname; const iframe = document.createElement('iframe'); iframe.src = 'https://apps.tgmbizo.com/form/render/embed/inline/contact-form' + '?origin=' + encodeURIComponent(hostDomain); iframe.style.width = '100%'; iframe.style.border = '0'; iframe.style.height = '0'; iframe.style.overflow = 'hidden'; iframe.loading = 'lazy'; script.parentNode.insertBefore(iframe, script.nextSibling); window.addEventListener('message', function (event) { if (event.origin !== 'https://apps.tgmbizo.com') return; if ( event.data && event.data.type === 'TGM_IFRAME_HEIGHT' && event.data.height ) { iframe.style.height = event.data.height + 'px'; } }); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', init); } else { init(); } })();