PageSourceSearch

https://moveoss.nl/content/themes/movenl/assets/js/subscribe-session-failed-D01tzoDR.js

js moveoss.nl collected 2026-10-01 23:54:25 UTC 2,667 bytes, 10 lines download raw bytes

1import { m as modal } from './default-BKfytsTg.js';
2import { e as event, t as tempStore, q as quotations } from './main-module-Dg7u5i1g.js';
3import { r as reformat } from './reformat-CJwysHiu.js';
4import { S as Swal } from './sweetalert2.esm.all-Cmp6ZwOu.js';
5import './loading-CnaT4-R9.js';
6
7class subscribeSessionFailedNotification extends modal{constructor(){super();this.modalElement=document.querySelector(".js-modal[data-modal='subscribe-session-failed-notification']");this.openModals=document.querySelectorAll(".js-modal-open[data-modal='subscribe-session-failed-notification']");this.closeModals=document.querySelectorAll(".js-modal-close[data-modal='subscribe-session-failed-notification']");this.offerName='';this.transactionId=null;this.elements={name:document.querySelector(".js-modal[data-modal='subscribe-session-failed-notification'] .js-name"),tryAgainButton:document.querySelector(".js-modal[data-modal='subscribe-session-failed-notification'] .js-pay")};}init(){super.init();this.initEventListeners();}initEventListeners(){super.initEventListeners();event.listen('subscribeSessionFailed',e=>{this.offerName=e.detail.offerName?e.detail.offerName:'';this.transactionId=e.detail.transactionId?e.detail.transactionId:null;this.open();});this.elements.tryAgainButton.addEventListener('click',()=>{this.purchase();});}async open(){this.elements.name.innerHTML=this.offerName;if(!this.transactionId){this.elements.tryAgainButton.style.display='none';}super.open(this.modalElement);}async purchase(){this.loading();try{let quotationData={redirect_url:tempStore.currentUrl+"?notification="+reformat.encodeObjectForUrl({id:"subscribe-paid",transactionId:this.transactionId,type:"bundles"}),payment_type:'ideal'};// Let's pay
8const paymentData=await quotations.pay(this.transactionId,quotationData);if(paymentData&&paymentData.status!==422){if(paymentData.checkout_url){window.location.href=paymentData.checkout_url;}else {console.error('Something went wrong. PaymentData:',paymentData);Swal.fire({icon:"error",text:"Er is iets misgegaan, probeer het later opnieuw of neem contact met ons op."});}}else {console.error('Something went wrong. PaymentData:',paymentData);Swal.fire({icon:"error",text:"Er is iets misgegaan, probeer het later opnieuw of neem contact met ons op."});}}catch(error){console.error(error);Swal.fire({icon:"error",text:"Er is iets misgegaan, probeer het later opnieuw of neem contact met ons op."});}this.doneLoading();return '';}}const subscribeSessionFailedNotificationModal=new subscribeSessionFailedNotification();(function(){subscribeSessionFailedNotificationModal.init();})();
9
10export { subscribeSessionFailedNotificationModal };

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.