(function() { const KEY = "elevista_mode" localStorage.setItem("elevista_business_id", "39bc8f59-08d7-4c39-b5af-7ea69b2dfd07") const fingerprintScript = document.createElement('script'); fingerprintScript.src = 'https://quench-api-staging.elevista.ai/script-api/thumbmark.umd.js'; fingerprintScript.type = 'module'; document.head.appendChild(fingerprintScript); if(localStorage.getItem("elevista_mode")!=="local") { var elevistaRootContainer = document.createElement('div'); elevistaRootContainer.id = 'elevista-fab-root'; const runtimeScript = document.createElement('script'); runtimeScript.src = 'https://quench-api-staging.elevista.ai/script-api/runtime.f303471f9e0f7cda.js'; runtimeScript.type = 'module'; const stylesScript = document.createElement('script'); stylesScript.src = 'https://quench-api-staging.elevista.ai/script-api/styles.23e97347112daed8.js'; stylesScript.type = 'module'; const mainScript = document.createElement('script'); mainScript.src = 'https://quench-api-staging.elevista.ai/script-api/main.858e1983b425e49d.js'; mainScript.type = 'module'; const stylesLink = document.createElement('link'); stylesLink.href = 'https://quench-api-staging.elevista.ai/script-api/styles.3e179a6e84821a17.css'; stylesLink.rel = 'stylesheet'; const shadowStylesLink = document.createElement('link'); shadowStylesLink.href = 'https://quench-api-staging.elevista.ai/script-api/styles.3e179a6e84821a17.css'; shadowStylesLink.rel = 'stylesheet'; if(document.body) { const shadowRoot = elevistaRootContainer.attachShadow({ mode: "open" }); document.body.appendChild(elevistaRootContainer); document.body.appendChild(runtimeScript); document.body.appendChild(stylesScript); document.body.appendChild(mainScript); document.body.appendChild(stylesLink); shadowRoot.appendChild(shadowStylesLink); } else { document.addEventListener('DOMContentLoaded', function() { const shadowRoot = elevistaRootContainer.attachShadow({ mode: "open" }); document.body.appendChild(elevistaRootContainer); document.body.appendChild(runtimeScript); document.body.appendChild(stylesScript); document.body.appendChild(mainScript); document.body.appendChild(stylesLink); shadowRoot.appendChild(shadowStylesLink); }); } } else { var elevistaRootContainer = document.createElement('div'); elevistaRootContainer.id = 'elevista-fab-root'; // Create the script elements var runtimeScript = document.createElement('script'); runtimeScript.src = 'http://localhost:5000/runtime.js'; runtimeScript.type = 'module'; var vendorScript = document.createElement('script'); vendorScript.src = 'http://localhost:5000/vendor.js'; vendorScript.type = 'module'; var mainScript = document.createElement('script'); mainScript.src = 'http://localhost:5000/main.js'; mainScript.type = 'module'; var stylesScript = document.createElement('script'); stylesScript.src = 'http://localhost:5000/styles.js'; stylesScript.type = 'module'; const stylesLink = document.createElement('link'); stylesLink.href = 'http://localhost:5000/styles.css'; stylesLink.rel = 'stylesheet'; const shadowStylesLink = document.createElement('link'); shadowStylesLink.href = 'http://localhost:5000/styles.css'; shadowStylesLink.rel = 'stylesheet'; if(document.body) { const shadowRoot = elevistaRootContainer.attachShadow({ mode: "open" }); document.body.appendChild(elevistaRootContainer); document.body.appendChild(runtimeScript); document.body.appendChild(vendorScript); document.body.appendChild(mainScript); document.body.appendChild(stylesScript); document.body.appendChild(stylesLink); shadowRoot.appendChild(shadowStylesLink); } else { document.addEventListener('DOMContentLoaded', function() { const shadowRoot = elevistaRootContainer.attachShadow({ mode: "open" }); document.body.appendChild(elevistaRootContainer); document.body.appendChild(runtimeScript); document.body.appendChild(vendorScript); document.body.appendChild(mainScript); document.body.appendChild(stylesScript); document.body.appendChild(stylesLink); shadowRoot.appendChild(shadowStylesLink); }); } } })();