!function(e,t){"use strict";t.once("document:loaded",(function(){setTimeout((function(){t.reloadPreview()}),0)}))}(jQuery,window.elementor),parent.document.addEventListener("mousedown",(function(e){let t=parent.document.querySelectorAll(".elementor-element--promotion");if(t.length>0)for(let o=0;o<t.length;o++)if(t[o].contains(e.target)){let n=parent.document.querySelector("#elementor-element--promotion__dialog"),i=t[o].querySelector(".icon > i").classList.toString();if(n.querySelectorAll(".shopengine-dialog-buttons-action").forEach((e=>e.remove())),i.indexOf("shopengine")>=0){e.stopImmediatePropagation(),n.querySelectorAll(".dialog-buttons-action:not(.shopengine-dialog-buttons-action)").forEach((e=>e.remove()));let t=document.createElement("a"),o=document.createTextNode("Upgrade ShopEngine");t.setAttribute("href","https://wpmet.com/plugin/shopengine/pricing/"),t.setAttribute("target","_blank"),t.classList.add("dialog-button","dialog-action","dialog-buttons-action","elementor-button","go-pro","elementor-button-success","shopengine-dialog-buttons-action"),t.appendChild(o),n.querySelector(".dialog-buttons-wrapper").appendChild(t)}else{n.querySelectorAll(".dialog-buttons-action:not(.shopengine-dialog-buttons-action)").forEach((e=>e.style.display=""));let e=n.querySelector(".shopengine-dialog-buttons-action");e&&e.remove()}break}}));