var OneTrust_ConfirmDialog=(n=>{t.prototype.create=function(n){var e=this,o=n.text,t=n.description,i=n.cancelText,l=n.confirmText,a=n.onConfirm,n=n.onCancel,c=(null!=(c=this.overlay)&&c.remove(),this.onConfirm=a,this.onCancel=n,this.overlay=document.createElement("div"),this.overlay.className="ot-confirm-dialog-overlay ot-hide ot-fade-in",this.overlay.tabIndex=0,this.overlay.innerHTML='\n \n ",this.overlay.querySelector("#ot-dialog-confirm-handler")),a=this.overlay.querySelector("#ot-dialog-cancel-handler"),n=this.overlay.querySelector("#ot-dialog-close-handler");return null!=(t=c)&&t.addEventListener("click",function(){"function"==typeof e.onConfirm&&e.onConfirm(),e.close()}),null!=(o=a)&&o.addEventListener("click",function(){"function"==typeof e.onCancel&&e.onCancel(),e.close()}),null!=(i=n)&&i.addEventListener("click",function(){"function"==typeof e.onCancel&&e.onCancel(),e.close()}),this.overlay.addEventListener("click",function(n){n.target===e.overlay&&e.close()}),{open:this.open.bind(this),close:this.close.bind(this)}},t.prototype.open=function(n){document.addEventListener("keydown",this.handleKey),null!=(n=document.querySelector(n))&&n.append(this.overlay),null!=(n=this.overlay)&&n.classList.remove("ot-hide")},t.prototype.close=function(){var n;document.removeEventListener("keydown",this.handleKey),null!=(n=this.overlay)&&n.remove()},t.prototype.handleKeyEvent=function(n){"Escape"===n.key&&this.close()};var e,o=t;function t(){this.handleKey=this.handleKeyEvent.bind(this)}function i(){e=new o}return n.getInstance=function(){return e||i(),e},n.initConfirmDialog=i,Object.defineProperty(n,"__esModule",{value:!0}),n})({});