(()=>{const t={handleRedirect(t,e){try{const n="simplyin_3ds_redirect_"+String(e);if("1"!==sessionStorage.getItem(n)){sessionStorage.setItem(n,"1");const e=document.querySelector(".simplyin-blik-main-message");e&&(e.textContent="Redirecting to bank for authentication..."),setTimeout((()=>{window.location.replace(t)}),1e3)}}catch(e){window.location.href=t}},init(){const t=document.getElementById("simplyin-blik-status-modal");if(t&&t.dataset.redirectUrl&&t.dataset.orderId){const e=t.dataset.redirectUrl,n=t.dataset.orderId,i=t.dataset.paymentStatus;e&&"PENDING"===i&&this.handleRedirect(e,n)}}};document.addEventListener("DOMContentLoaded",(()=>{t.init()})),window.addEventListener("load",(()=>{t.init()}))})();