{{terminalErrorHeading}}

An error has occurred

{{terminalError}}

window.onmessage = function(e) { const payload = JSON.parse(e.data); if(payload.customVariables && payload.customVariables.hasDarkMode) { document.getElementById('piano-checkout').classList.add('darkmode'); document.getElementById('piano-already-has-access').classList.add('darkmode'); document.getElementById('piano-shared-subscription-modal').classList.add('darkmode'); document.getElementById('piano-gift').classList.add('darkmode'); document.getElementById('piano-redemption').classList.add('darkmode'); setTimeout(() => { document.getElementById('view-receipt').classList.add('darkmode'); document.getElementById('view-offer').classList.add('darkmode'); }, 1000) } } window.parent.postMessage(JSON.stringify({event: "templateReady"}), "*");
user{{user | json}}
app{{app | json}}
params{{params | json}}
custom{{custom | json}}
terms{{terms | json}}
1. Monat gratis testen, danach CHF 15.– CHF 9.90 pro Mt. für 1 Jahr
close
user{{user | json}}
app{{app | json}}
params{{params | json}}
custom{{custom | json}}
terms{{terms | json}}
function redirToUrl(elm) { var scope = angular.element(".inlay-holder").scope(); var currentUrl = scope.params.url; var hrefUrl = elm.getAttribute("href"); if (hrefUrl && hrefUrl.startsWith("/")) { event.preventDefault(); hrefUrl = scope.app.businessUrl.replace(/\/$/, "") + hrefUrl; } if (hrefUrl && hrefUrl.indexOf("[[currentUrl]]") !== -1) { event.preventDefault(); var configUrl = elm.getAttribute("data-url"); var toUrl = configUrl.replace("[[currentUrl]]", currentUrl); elm.setAttribute("href", toUrl); if (elm.getAttribute("target") === "_parent") { window.parent.location = toUrl; } else { if (!window.open(toUrl, "_blank")) { window.parent.location.replace(toUrl); } } } } // replace currentUrl in urls // as sporadically the url doesn't seem to work we need to fallback with redirToUrl var scope = angular.element(".inlay-holder").scope(); setTimeout(() => { var currentUrl = scope.params.url; var elms = document.querySelectorAll(".grid__content a"); for (var i = 0; i < elms.length; i++) { var elm = elms[i]; var newUrl = elm.getAttribute("data-url"); if (newUrl && newUrl.startsWith("/")) { newUrl = scope.app.businessUrl.replace(/\/$/, "") + newUrl; } if (newUrl && newUrl.indexOf("[[currentUrl]]") !== -1) { elm.setAttribute("href", newUrl.replace("[[currentUrl]]", currentUrl)); } } }, 800);