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 i=e.target.closest("[data-productlift-sidebar]");return e.preventDefault(),t.openSidebar(i),!1}if(void 0!==e.target&&e.target.hasAttribute("data-productlift-feedback")){e.preventDefault();let i=e.target;return t.openSmallWidget(i),!1}if(void 0!==e.target&&e.target.hasAttribute("data-productlift-widget")){e.preventDefault();let i=e.target;return t.openSmallWidget(i),!1}},!1)},ProductLiftWidget.prototype.attachEmbeds=function(){document.querySelectorAll("[data-productlift-embed]").forEach(t=>this.runEmbed(t))},ProductLiftWidget.prototype.createIframe=function(t,e=!0){let i=navigator.userAgent.indexOf("Safari")>-1;navigator.userAgent.indexOf("Chrome")>-1&&i&&(i=!1);let o=document.createElement("iframe");return o.name="iframe_productlift",o.width="100%",o.height="100%",o.id="productlift-iframe",o.allowtransparency=!0,o.style.border="0",this.settings.originHref=window.location.href,o.referrerPolicy="origin",o.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&&(o.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.src=t,e&&window.addEventListener("message",function(t){let e=t.data;o.style.height=e.height+100+"px"},!1),o},ProductLiftWidget.prototype.openSidebar=function(t){let e=t.getAttribute("data-productlift-sidebar");this.addBackgroundFade();let 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;",i.style.display="flex","right"===this.position&&(i.style.borderLeft="2px solid #ffffff",i.style.right=0,i.style.animation="1s ease-out 0s 1 ProductLiftslideInFromRight");let o=this.createSpinner();i.appendChild(o),document.body.appendChild(i);let d=this.createIframe(this.settings.routes[e],!1);d.style.display="none",i.appendChild(d),d.onload=function(){o.parentNode.removeChild(o),d.style.display="block"}},ProductLiftWidget.prototype.runEmbed=function(t){let e=t.getAttribute("data-productlift-embed"),i=this.createIframe(this.settings.routes[e]);t.appendChild(i)},ProductLiftWidget.prototype.openSmallWidget=function(t){let e=t.getAttribute("data-productlift-widget");if(!e){t.getAttribute("data-productlift-feedback")}let i=this.settings.routes[e],o=this.settings.types[e],d=350,n=250;"small_feedback"===o&&(d=350,n=250),"add_post"===o&&(d=500,n=500),"whats_new_mini"===o&&(d=500,n=300);let l=t.getBoundingClientRect(),a=l.bottom+window.scrollY+10,r=l.left+window.scrollX,s=document.createElement("div");s.className="productlift-opened",s.style.position="absolute",s.style.top=`${a}px`,s.style.left=`${r}px`,s.style.width=`${d}px`,s.style.height=`${n}px`,s.style.zIndex=this.z_index_base.toString(),s.style.display="flex",s.style.alignItems="center",s.style.justifyContent="center",s.style.borderRadius="6px",s.style.boxShadow="rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px",s.style.backgroundColor="#ffffff",s.style.overflow="hidden";let p=this.createSpinner();s.appendChild(p),document.body.appendChild(s);let c=this.createIframe(i,!1);c.style.width="100%",c.style.height="100%",c.style.border="0",c.style.display="none",s.appendChild(c),this.adjustIframePosition(t,s,d),this.addCloseListenerForSmallWidget(s),c.onload=function(){p.parentNode.removeChild(p),c.style.display="block"}},ProductLiftWidget.prototype.adjustIframePosition=function(t,e,i){let o=t.getBoundingClientRect(),d=window.innerWidth;if(o.right+i>d){let t=d-i-(d-o.right);e.style.left=`${t}px`}else e.style.left=`${o.left+window.scrollX}px`},ProductLiftWidget.prototype.addCloseListenerForSmallWidget=function(t){let e=this;document.addEventListener("click",function(i){t.contains(i.target)||(document.removeEventListener("click",arguments.callee),e.closeWidget())})},ProductLiftWidget.prototype.createSpinner=function(t,e,i=this.z_index_base){let o=document.createElement("div");return o.className="loading-spinner",o.style.width="25px",o.style.height="25px",o.style.border="2.5px solid #f3f3f3",o.style.borderTop="2.5px solid #3498db",o.style.borderRadius="50%",o.style.animation="spin 1s linear infinite",o.style.zIndex=i.toString(),o.style.margin="auto auto",document.body.appendChild(o),o};const style=document.createElement("style");style.type="text/css",style.innerHTML="@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }",document.getElementsByTagName("head")[0].appendChild(style); var ProductLift = new ProductLiftWidget({"routes":{"05ba71ef-0620-49f2-ae7d-71654085596b":"https:\/\/app.productlift.dev\/p\/integrate-with-jira-RU1cVj?widget_id=05ba71ef-0620-49f2-ae7d-71654085596b","0ee9be3e-111e-4e91-93c0-ca22e1433da2":"https:\/\/app.productlift.dev\/p\/productlift-api-idaSTz?widget_id=0ee9be3e-111e-4e91-93c0-ca22e1433da2","12b5a94b-50d7-4076-9b44-27d54913727f":"https:\/\/app.productlift.dev\/p\/inviting-customers-1a9s0h?widget_id=12b5a94b-50d7-4076-9b44-27d54913727f","18d21282-1fe4-4cc8-8409-2b77a3450af7":"https:\/\/app.productlift.dev\/t\/updates?widget_id=18d21282-1fe4-4cc8-8409-2b77a3450af7","2da3a297-a9f2-4c73-8e8e-c69733118bc7":"https:\/\/app.productlift.dev\/p\/adding-posts-to-the-changelog-ht5u6I?widget_id=2da3a297-a9f2-4c73-8e8e-c69733118bc7","4e5b68ca-0bdd-4e6e-a946-0a9103bf9446":"https:\/\/app.productlift.dev\/add_feedback_widget?widget_id=4e5b68ca-0bdd-4e6e-a946-0a9103bf9446","4ea88176-f015-427f-aacf-ca231a026245":"https:\/\/app.productlift.dev\/t\/knowledgebase?widget_id=4ea88176-f015-427f-aacf-ca231a026245","6ddb7594-4c18-4c9d-b470-ff1ef4680979":"https:\/\/app.productlift.dev\/p\/editing-dates-oMNtt9?widget_id=6ddb7594-4c18-4c9d-b470-ff1ef4680979","7f79fa60-110e-4eae-a1d7-5f3980aa328f":"https:\/\/app.productlift.dev\/add_feedback_widget?widget_id=7f79fa60-110e-4eae-a1d7-5f3980aa328f","84900c6c-f32a-4982-8a81-8c191b2531ab":"https:\/\/app.productlift.dev\/p\/webhooks-FN32K8?widget_id=84900c6c-f32a-4982-8a81-8c191b2531ab","a356a862-f565-43f4-91e8-518b8a4f2a88":"https:\/\/app.productlift.dev\/p\/promoting-posts-to-the-roadmap-U4VUTZ?widget_id=a356a862-f565-43f4-91e8-518b8a4f2a88","ba60ee58-ce18-45d6-95d6-8e503b5df179":"https:\/\/app.productlift.dev\/p\/managing-tabs-XOEZim?widget_id=ba60ee58-ce18-45d6-95d6-8e503b5df179","bdb456de-f330-426c-adcd-95e605889c81":"https:\/\/app.productlift.dev\/t\/roadmap?widget_id=bdb456de-f330-426c-adcd-95e605889c81","c0d19044-c1ab-4d87-a6fe-c263515048dd":"https:\/\/app.productlift.dev\/p\/custom-domain-Zzgu28?widget_id=c0d19044-c1ab-4d87-a6fe-c263515048dd","d15befc6-6ed3-4498-9b33-25082eddf08e":"https:\/\/app.productlift.dev\/p\/single-sign-on-sso-bWA0yz?widget_id=d15befc6-6ed3-4498-9b33-25082eddf08e","ed0a807d-4eb5-4f9e-837d-e8b300e8c97a":"https:\/\/app.productlift.dev\/p\/status-change-emails-O7XdxY?widget_id=ed0a807d-4eb5-4f9e-837d-e8b300e8c97a","f06a41dd-d288-4ac6-9bf6-8888205d33db":"https:\/\/app.productlift.dev\/p\/prioritization-matrix-KtT2BW?widget_id=f06a41dd-d288-4ac6-9bf6-8888205d33db","fba2b260-3fc1-4769-8550-f6dfcb7efa6d":"https:\/\/app.productlift.dev\/t\/updates?widget_id=fba2b260-3fc1-4769-8550-f6dfcb7efa6d","fbb57f76-5c7f-4fe4-ac68-c938356654a6":"https:\/\/app.productlift.dev\/p\/install-widgets-1DYAFy?widget_id=fbb57f76-5c7f-4fe4-ac68-c938356654a6","fd7a7210-ec8e-4666-8563-9fb832f19b3e":"https:\/\/app.productlift.dev\/t\/roadmap?widget_id=fd7a7210-ec8e-4666-8563-9fb832f19b3e"},"types":{"05ba71ef-0620-49f2-ae7d-71654085596b":"sidebar","0ee9be3e-111e-4e91-93c0-ca22e1433da2":"sidebar","12b5a94b-50d7-4076-9b44-27d54913727f":"sidebar","18d21282-1fe4-4cc8-8409-2b77a3450af7":"embed","2da3a297-a9f2-4c73-8e8e-c69733118bc7":"sidebar","4e5b68ca-0bdd-4e6e-a946-0a9103bf9446":"small_feedback","4ea88176-f015-427f-aacf-ca231a026245":"sidebar","6ddb7594-4c18-4c9d-b470-ff1ef4680979":"sidebar","7f79fa60-110e-4eae-a1d7-5f3980aa328f":"small_feedback","84900c6c-f32a-4982-8a81-8c191b2531ab":"sidebar","a356a862-f565-43f4-91e8-518b8a4f2a88":"sidebar","ba60ee58-ce18-45d6-95d6-8e503b5df179":"sidebar","bdb456de-f330-426c-adcd-95e605889c81":"sidebar","c0d19044-c1ab-4d87-a6fe-c263515048dd":"sidebar","d15befc6-6ed3-4498-9b33-25082eddf08e":"sidebar","ed0a807d-4eb5-4f9e-837d-e8b300e8c97a":"sidebar","f06a41dd-d288-4ac6-9bf6-8888205d33db":"sidebar","fba2b260-3fc1-4769-8550-f6dfcb7efa6d":"sidebar","fbb57f76-5c7f-4fe4-ac68-c938356654a6":"sidebar","fd7a7210-ec8e-4666-8563-9fb832f19b3e":"embed"}});