let ProductLiftWidget=function(t){this.settings=t,this.position="right",this.z_index_base=9999999,this.loadCSS(),this.attachEmbeds(),this.listenToTriggers()};window.onmessage=function(t){"productlift.close"===t.data&&ProductLift.closeWidget()},ProductLiftWidget.prototype.addBackgroundFade=function(){let t=document.createElement("div");t.className="productlift-opened",t.style="background-color: #000000; opacity: 0.5; z-index: "+(this.z_index_base-1)+"; position: fixed; top: 0; left: 0; height: 100%; width: 100%;",t.addEventListener("click",this.closeWidget.bind(this,t),!1),document.body.appendChild(t)},ProductLiftWidget.prototype.closeWidget=function(){document.querySelectorAll(".productlift-opened").forEach(function(t){t.parentNode.removeChild(t)})},ProductLiftWidget.prototype.loadCSS=function(){let t=document.head,e=document.createElement("style");t.appendChild(e),e.appendChild(document.createTextNode("@keyframes ProductLiftslideInFromRight {\n 0% {\n transform: translateX(200%);\n }\n 100% {\n transform: translateX(0);\n }\n }"))},ProductLiftWidget.prototype.listenToTriggers=function(){let t=this;document.addEventListener("click",function(e){if(void 0!==e.target&&e.target.closest("[data-productlift-sidebar]")){let o=e.target.closest("[data-productlift-sidebar]");return e.preventDefault(),t.openSidebar(o),!1}},!1)},ProductLiftWidget.prototype.attachEmbeds=function(){document.querySelectorAll("[data-productlift-embed]").forEach(t=>this.runEmbed(t))},ProductLiftWidget.prototype.createIframe=function(t,e=!0){let o=navigator.userAgent.indexOf("Safari")>-1;navigator.userAgent.indexOf("Chrome")>-1&&o&&(o=!1);let i=document.createElement("iframe");return i.name="iframe_productlift",i.width="100%",i.height="100%",i.id="productlift-iframe",i.allowtransparency=!0,i.style.border="0",this.settings.originHref=window.location.href,i.referrerPolicy="origin",i.sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation allow-top-navigation-by-user-activation allow-modals",o&&(i.sandbox="allow-scripts allow-forms allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-top-navigation allow-top-navigation-by-user-activation allow-modals"),i.src=t,e&&window.addEventListener("message",function(t){let e=t.data;i.style.height=e.height+100+"px"},!1),i},ProductLiftWidget.prototype.openSidebar=function(t){let e=t.getAttribute("data-productlift-sidebar");this.addBackgroundFade();let o=this.createIframe(this.settings.routes[e],!1),i=document.createElement("div");i.id="productlift_changelog",i.className="productlift-opened",i.style="box-sizing: border-box; max-width: 450px; height: 100%; width: 100%; background-color: #ffffff; color: rgb(104, 104, 104); z-index: "+this.z_index_base+"; position: fixed; top:0; bottom: 0; height: 100%; padding: 0; border-radius: 0;","right"===this.position&&(i.style.borderLeft="2px solid #ffffff",i.style.right=0,i.style.animation="1s ease-out 0s 1 ProductLiftslideInFromRight"),i.appendChild(o),this.addBackgroundFade(),document.body.appendChild(i)},ProductLiftWidget.prototype.runEmbed=function(t){let e=t.getAttribute("data-productlift-embed"),o=this.createIframe(this.settings.routes[e]);t.appendChild(o)}; var ProductLift = new ProductLiftWidget({"routes":{"8d6b0820-5a4f-4127-bd0a-2af23475d88c":"https:\/\/shazamme.productlift.dev\/t\/updates?widget_id=8d6b0820-5a4f-4127-bd0a-2af23475d88c"}});