(function() { const KEY = "elevista_mode" const fingerprintScript = document.createElement('script'); fingerprintScript.src = 'https://quench-api.elevista.ai/thumbmark.umd.js'; fingerprintScript.type = 'module'; document.head.appendChild(fingerprintScript); if(localStorage.getItem("elevista_mode")!=="local") { const divElement = document.createElement('div'); divElement.id = 'quench-elevista-integration'; const runtimeScript = document.createElement('script'); runtimeScript.src = 'https://quench-api.elevista.ai/runtime.ba3f2a46016d452c.js'; runtimeScript.type = 'module'; const stylesScript = document.createElement('script'); stylesScript.src = 'https://quench-api.elevista.ai/styles.bf3de03d7edec523.js'; stylesScript.type = 'module'; const mainScript = document.createElement('script'); mainScript.src = 'https://quench-api.elevista.ai/main.e27362bcfc7e2356.js'; mainScript.type = 'module'; document.body.appendChild(divElement); document.head.appendChild(runtimeScript); document.head.appendChild(stylesScript); document.head.appendChild(mainScript); } else { var quenchDiv = document.createElement('div'); quenchDiv.id = 'quench-elevista-integration'; // Create the script elements var runtimeScript = document.createElement('script'); runtimeScript.src = 'http://localhost:4200/runtime.js'; runtimeScript.type = 'module'; var vendorScript = document.createElement('script'); vendorScript.src = 'http://localhost:4200/vendor.js'; vendorScript.type = 'module'; var mainScript = document.createElement('script'); mainScript.src = 'http://localhost:4200/main.js'; mainScript.type = 'module'; var stylesScript = document.createElement('script'); stylesScript.src = 'http://localhost:4200/styles.js'; stylesScript.type = 'module'; document.body.appendChild(quenchDiv); document.body.appendChild(runtimeScript); document.body.appendChild(vendorScript); document.body.appendChild(mainScript); document.body.appendChild(stylesScript); } })();