PageSourceSearch

https://www.ottonova.de/assets/dist/general.min-legacy.DWYsTswK.js

js ottonova.de collected 2026-09-25 19:16:24 UTC 84,242 bytes, 2 lines download raw bytes

1System.register(["./customParseFormat-legacy.min.DmiAwKdX.js","./serialize-form-legacy.min.DGyi_p6K.js","./lead-service-legacy.min.Bvbr0dqw.js","./validation-legacy.min.DUanqWaf.js","./slide-legacy.min.D4NasZHe.js","./animateNumber-legacy.min.2SeBDhd9.js","./custom-consent-legacy.min.GZYV6VjH.js","./micro-modal-legacy.min.BW5cY-nV.js","./custom-dimensions-legacy.min.1LwUCc8B.js","./push-to-data-layer-legacy.min.BmF-LTOU.js","./utils-legacy.min.DcObc7yZ.js","./form-input-legacy.min.CYtBovuw.js","./cookies-helper-legacy.min.CDPUzpIn.js","./date-legacy.min.B8b9ty1P.js","./module-import-legacy.min.CuWAC16N.js","./calendar-legacy.min.Dr2g0OYL.js","./consultation-legacy.min.EJmxfg4C.js","./appointment-helpers-legacy.min.uPAiCBWZ.js","./exports-legacy.min.CeLGnnvI.js","./trace-legacy.min.CdKysne6.js"],function(e,t){"use strict";var n,r,o,a,i,s,l,c,d,u,p,f,m,h,g,v,y,b,S,q,L,w,E,_,k,T,A,x,C,P,M,H,O,I,B;return{setters:[e=>{n=e.g,r=e.d,o=e.a},e=>{a=e.s},e=>{i=e.p},e=>{s=e.v},e=>{l=e.b,c=e.s,d=e.a},e=>{u=e.a,p=e.b},e=>{f=e.p,m=e.i},e=>{h=e.M},e=>{g=e.d,v=e.g},e=>{y=e.p},e=>{b=e.r,S=e.d,q=e.t},e=>{L=e.t},e=>{w=e.s},e=>{E=e.a,_=e.g,k=e.b},e=>{T=e._,A=e.r},e=>{x=e.l},e=>{C=e.A,P=e.L,M=e.C,H=e.I,O=e.e},e=>{I=e.g,B=e.p},null,null],execute:function(){var e,N={exports:{}},D=(e||(e=1,function(e){e.exports={polyfill:function(){var e=window,t=document;if(!("scrollBehavior"in t.documentElement.style)||!0===e.__forceSmoothScrollPolyfill__){var n,r=e.HTMLElement||e.Element,o={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||s,scrollIntoView:r.prototype.scrollIntoView},a=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now,i=(n=e.navigator.userAgent,new RegExp(["MSIE ","Trident/","Edge/"].join("|")).test(n)?1:0);e.scroll=e.scrollTo=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?f.call(e,t.body,void 0!==arguments[0].left?~~arguments[0].left:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?~~arguments[0].top:e.scrollY||e.pageYOffset):o.scroll.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:e.scrollX||e.pageXOffset,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:e.scrollY||e.pageYOffset))},e.scrollBy=function(){void 0!==arguments[0]&&(l(arguments[0])?o.scrollBy.call(e,void 0!==arguments[0].left?arguments[0].left:"object"!=typeof arguments[0]?arguments[0]:0,void 0!==arguments[0].top?arguments[0].top:void 0!==arguments[1]?arguments[1]:0):f.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset)))},r.prototype.scroll=r.prototype.scrollTo=function(){if(void 0!==arguments[0])if(!0!==l(arguments[0])){var e=arguments[0].left,t=arguments[0].top;f.call(this,this,void 0===e?this.scrollLeft:~~e,void 0===t?this.scrollTop:~~t)}else{if("number"==typeof arguments[0]&&void 0===arguments[1])throw new SyntaxError("Value could not be converted");o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left:"object"!=typeof arguments[0]?~~arguments[0]:this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top:void 0!==arguments[1]?~~arguments[1]:this.scrollTop)}},r.prototype.scrollBy=function(){void 0!==arguments[0]&&(!0!==l(arguments[0])?this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior}):o.elementScroll.call(this,void 0!==arguments[0].left?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,void 0!==arguments[0].top?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop))},r.prototype.scrollIntoView=function(){if(!0!==l(arguments[0])){var n=function(e){for(;e!==t.body&&!1===u(e);)e=e.parentNode||e.host;return e}(this),r=n.getBoundingClientRect(),a=this.getBoundingClientRect();n!==t.body?(f.call(this,n,n.scrollLeft+a.left-r.left,n.scrollTop+a.top-r.top),"fixed"!==e.getComputedStyle(n).position&&e.scrollBy({left:r.left,top:r.top,behavior:"smooth"})):e.scrollBy({left:a.left,top:a.top,behavior:"smooth"})}else o.scrollIntoView.call(this,void 0===arguments[0]||arguments[0])}}function s(e,t){this.scrollLeft=e,this.scrollTop=t}function l(e){if(null===e||"object"!=typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;
1if("object"==typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.")}function c(e,t){return"Y"===t?e.clientHeight+i<e.scrollHeight:"X"===t?e.clientWidth+i<e.scrollWidth:void 0}function d(t,n){var r=e.getComputedStyle(t,null)["overflow"+n];return"auto"===r||"scroll"===r}function u(e){var t=c(e,"Y")&&d(e,"Y"),n=c(e,"X")&&d(e,"X");return t||n}function p(t){var n,r,o,i,s=(a()-t.startTime)/468;i=s=s>1?1:s,n=.5*(1-Math.cos(Math.PI*i)),r=t.startX+(t.x-t.startX)*n,o=t.startY+(t.y-t.startY)*n,t.method.call(t.scrollable,r,o),r===t.x&&o===t.y||e.requestAnimationFrame(p.bind(e,t))}function f(n,r,i){var l,c,d,u,f=a();n===t.body?(l=e,c=e.scrollX||e.pageXOffset,d=e.scrollY||e.pageYOffset,u=o.scroll):(l=n,c=n.scrollLeft,d=n.scrollTop,u=s),p({scrollable:l,method:u,startTime:f,startX:c,startY:d,x:r,y:i})}}}}(N)),N.exports);const j=n(D),z=new WeakMap,$=e=>{const t=e.target;t.style.backgroundSize=100*(parseFloat(t.value)-parseInt(t.min))/(parseInt(t.max)-parseInt(t.min))+"% 100%"};document.querySelectorAll(".otto-form-element").forEach(e=>L(e)),document.querySelectorAll("input[type=range]").forEach(e=>{var t;"range"===(t=e).type&&(t.addEventListener("input",$),t.addEventListener("update",$),t.dispatchEvent(new Event("input")))}),document.addEventListener("click",e=>{if(!e.target.classList.contains("btn")&&!e.target.classList.contains("more")){let e=document.querySelector(".box.show-more");e&&e.classList.remove("show-more")}},!1),document.querySelectorAll(".tariffOverview-block .box .more").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),e.parentNode.classList.add("show-more")})}),document.querySelectorAll(".mockupTabs-block .tabs-menu li a").forEach(e=>{let t=e.closest(".mockupTabs-block");e.addEventListener("click",n=>{n.preventDefault(),t.querySelector(".tabs-menu li.active").classList.remove("active"),e.parentNode.classList.add("active"),t.querySelector(".mockup-iphone.active").classList.add("hide"),setTimeout(()=>{t.querySelector(".mockup-iphone.active").classList.remove("active","hide"),t.querySelector(".mockup-iphone."+e.getAttribute("data-tab-link").substring(1)).classList.add("active","hide"),setTimeout(()=>{t.querySelector(".mockup-iphone.active").classList.add("show"),setTimeout(()=>{t.querySelector(".mockup-iphone.active").classList.remove("hide","show")},500)},100)},500)})}),document.querySelectorAll(".team-block .tabs-menu li a").forEach(e=>{let t=e.closest(".team-block");e.addEventListener("click",n=>{n.preventDefault();let r=e.getAttribute("href");t.querySelector(".tabs-menu li.active").classList.remove("active"),e.parentNode.classList.add("active"),t.querySelector(".tab.active").classList.remove("active"),t.querySelector(r).classList.add("active"),setTimeout(()=>{window.dispatchEvent(new CustomEvent("setSliderMobile")),window.dispatchEvent(new Event("resize"))},0)})}),document.querySelectorAll("#feature-overview header nav li a").forEach(e=>{let t=e.closest("#feature-overview");e.addEventListener("click",n=>{n.preventDefault();let r=e.getAttribute("href");t.querySelector("header nav li.active").classList.remove("active"),e.parentNode.classList.add("active"),t.querySelector(".phone > div.active").classList.remove("active"),t.querySelector(r).classList.add("active")})}),h.init({onShow:e=>{e.dispatchEvent(new CustomEvent("modalShow"))},onClose:e=>{e.dispatchEvent(new CustomEvent("modalClose"))},disableScroll:!0,openTrigger:"data-modal",closeTrigger:"data-close"}),document.querySelectorAll(".triggerChat").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),document.querySelector("body > otto-support-chat")?.shadowRoot?.querySelector("div > otto-support-chat-button")?.shadowRoot?.querySelector("button")?.click(),e.classList.contains("accessibility-chat")||setTimeout(()=>{document.querySelector("#header .navigation-toggle").click()},500)})});const W=(()=>{const e=new URLSearchParams(window.location.search),t={element_section:"doi_element"};return e.has("insurance_group")&&(t.insurance_group=e.get("insurance_group"),t.insurance_category=g(e.get("insurance_group"))),e.has("job_status")&&(t.job_status=e.get("job_status")),e.has("confirmed-appointment")?(y({...t,event:"sales_appointment",appointment_status:"val
1idated",appointment_class:"initial"}),"confirm-appointment-modal"):e.has("expired-appointment")?(w("doi_expired","true"),y({...t,event:"sales_appointment",appointment_status:"expired",appointment_class:"initial"}),"expired-appointment-modal"):e.has("confirmed")||e.has("confirmed-en")?en||e.has("confirmed-en")?"confirm-modal-en":"confirm-modal-de":e.has("consultation")?"consultation-modal":e.has("unsubscribed")?"unsubscribe-modal":!!e.has("chatDown")&&"chat-modal"})();function U(){document.querySelectorAll(".tariffTable-block,.elab-tariffTable-block").forEach(e=>{b(e.querySelector("table"))})}function R(e,t){let n=t.options[t.selectedIndex],r=Object.assign({},n.dataset);for(let o in r)e.querySelectorAll('span[data-select="'+t.dataset.select+'"][data-key="'+o+'"]').forEach(e=>{e.textContent=r[o]})}W&&document.querySelector(`#${W}`)&&h.show(W,{disableScroll:!0,closeTrigger:"data-close"}),window.addEventListener("customLoaded",U),window.addEventListener("resize",U),window.addEventListener("setStickyNavigationTab",U),window.addEventListener("customLoaded",function(){document.querySelectorAll(".benefits-table-24,.tariffTable-block,.elab-tariffTable-block").forEach(e=>{e.querySelectorAll("select[data-select]").forEach(t=>{R(e,t),t.addEventListener("change",n=>{R(e,t)})})})}),document.querySelectorAll(".faq-block .entry, .accordion-block .item").forEach(e=>{const t=e.querySelector("button");t&&t.addEventListener("click",n=>{e.classList.toggle("active"),l(e.querySelector(".content")),t.setAttribute("aria-expanded",e.classList.contains("active"))})}),document.querySelectorAll(".hero-accordion-block .item").forEach(e=>{e.querySelector("button").addEventListener("click",t=>{e.classList.contains("active")||(l(document.querySelector(".hero-accordion-block .item.active .content")),document.querySelector(".hero-accordion-block .item.active").classList.remove("active"),e.classList.add("active"),l(e.querySelector(".content")))})});const F=window.matchMedia("(min-width: 992px)");document.querySelectorAll(".abc-block .entry").forEach(e=>{e.addEventListener("click",t=>{F.matches||(e.classList.toggle("active"),l(e.querySelector(".entry-content")))})}),document.querySelectorAll("#footer .navigation .box nav").forEach(e=>{const t=e.querySelector("button");t&&t.addEventListener("click",n=>{e.classList.toggle("active"),l(e.querySelector("ul")),t.setAttribute("aria-expanded",e.classList.contains("active"))})}),document.querySelectorAll(".uc-privacy-setting").forEach(e=>{e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),__ucCmp.showSecondLayer()})}),document.querySelectorAll(".btn-download").forEach(e=>{const t=e.querySelector(".dlanim");void 0!==t&&null!=t&&e.addEventListener("click",e=>{t.classList.add("loaded")})}),document.querySelectorAll("div.data-link").forEach(e=>{e.addEventListener("click",t=>{t.stopPropagation(),t.preventDefault(),window.location.href=e.dataset.link})}),document.querySelectorAll(".keyfigures-v2-block, .app-preview-block, .trust-block-v2").forEach(e=>{const t=e.querySelectorAll(".phone-time");function n(){const e=new Date,n="en"===document.documentElement.lang,r={hour:"numeric",minute:"numeric"};t.forEach(t=>{t.innerText=e.toLocaleTimeString(n?"en-US":"de-DE",r).replace(" ","").replace("AM","").replace("PM","")})}n(),setInterval(n,5e3)});const Y=navigator.userAgent.toLowerCase().indexOf("safari/")>-1,V=navigator.userAgent.toLowerCase().indexOf("chrome/")>-1;window.innerWidth>993&&(!Y||V)?console.log("╔══════════════════════════════════════════════════════════════════════════╗\n║..WELCOME TO .............................................................║\n║..██████╗.████████╗████████╗.██████╗.███╗...██╗.██████╗.██╗...██╗.█████╗..║\n║.██╔═══██╗╚══██╔══╝╚══██╔══╝██╔═══██╗████╗..██║██╔═══██╗██║...██║██╔══██╗.║\n║.██║...██║...██║......██║...██║...██║██╔██╗.██║██║...██║██║...██║███████║.║\n║.██║...██║...██║......██║...██║...██║██║╚██╗██║██║...██║╚██╗.██╔╝██╔══██║.║\n║.╚██████╔╝...██║......██║...╚██████╔╝██║.╚████║╚██████╔╝.╚████╔╝.██║..██║.║\n║..╚═════╝....╚═╝......╚═╝....╚═════╝.╚═╝..╚═══╝.╚═════╝...╚═══╝..╚═╝..╚═╝.║\n║....................................OTTONOVA.TECH WISHES A PLEASANT STAY..║\n╚══════════════════════════════════════════════════════════════════════════╝"):console.log("════ WELCOME TO OTTONOVA.TECH ════"),document.querySelectorAll(".dentalCalculation-block").forEach(e
1=>{let t=e.querySelector("nav"),n=e.querySelector(".calculate"),r=e.querySelector(".top .text h3"),o=r.querySelector("span"),a=e.querySelector(".top .image"),i=a.querySelector("img");t.querySelectorAll("button").forEach(e=>{e.addEventListener("click",s=>{if(e.classList.contains("active"))return;t.querySelector(".active").classList.remove("active"),e.classList.add("active");const l=Object.assign({},e.dataset);for(let e in l)if("label"!==e&&"image"!==e)if(e.startsWith("percent")){let t=e.replace("percent","").toLowerCase();n.style.setProperty("--opacity-"+t,0==l[e]?0:1),n.querySelectorAll("[data-"+t+"]").forEach(t=>{t.classList.toggle("down",l[e]<10)}),u(e=>n.style.setProperty("--percent-"+t,e+"%"),parseInt(getComputedStyle(n).getPropertyValue("--percent-"+t)),parseInt(l[e]),250)}else n.querySelectorAll("[data-"+e+"]").forEach(t=>{u(e=>{"en"==document.documentElement.lang?t.innerHTML="&euro;"+Math.floor(e):t.innerHTML=Math.floor(e)+" &euro;"},parseInt(t.innerHTML.replace("€","").replace("percent","").trim()),parseInt(l[e]),250)});let c=document.createElement("span"),d=document.createElement("img");c.textContent=l.label,c.classList.add("new"),d.classList.add("new"),r.appendChild(c),o.classList.add("hide"),c.classList.add("show"),d.alt=l.label,d.src=l.image,d.addEventListener("load",e=>{a.appendChild(d),setTimeout(()=>{o.classList.remove("hide"),o.textContent=l.label,c.remove(),i.alt=l.label,i.src=l.image,d.remove()},250)}),n.querySelectorAll("[data-tooltip-replace]").forEach(e=>{"en"==document.documentElement.lang?e._tippy.setContent('<table class="calculation"><tr><th>Invoice amount</th><th>&euro;'+(parseInt(l.gkv)+parseInt(l.gkvyourshare))+"</th></tr><tr><td>"+e.dataset.tooltipPercent+" refundable</td><td>&euro;"+(parseInt(l.gkv)+parseInt(l[e.dataset.tooltipReplace]))+"</td></tr><tr><td>Public health insurance pays</td><td>- &euro;"+l.gkv+"</td></tr><tr><td>ottonova pays</td><td>&euro;"+l[e.dataset.tooltipReplace]+"</td></tr></table>"):e._tippy.setContent('<table class="calculation"><tr><th>Rechnungsbetrag</th><th>'+(parseInt(l.gkv)+parseInt(l.gkvyourshare))+" &euro;</th></tr><tr><td>"+e.dataset.tooltipPercent+" erstattungsfähig</td><td>"+(parseInt(l.gkv)+parseInt(l[e.dataset.tooltipReplace]))+" &euro;</td></tr><tr><td>GKV zahlt</td><td>- "+l.gkv+" &euro;</td></tr><tr><td>ottonova zahlt</td><td>"+l[e.dataset.tooltipReplace]+" &euro;</td></tr></table>")})})});let s=()=>{let n=e.querySelector("ul").offsetWidth-t.offsetWidth,r=n>0?100*t.scrollLeft/n:0,o=r<2?0:1,a=r>98||n<=0?0:1;e.querySelector(".scroll").style.setProperty("--left-opacity",o),e.querySelector(".scroll").style.setProperty("--right-opacity",a)};t.addEventListener("scroll",s),window.addEventListener("resize",s),window.addEventListener("setStickyNavigationTab",s),window.addEventListener("customLoaded",s)});const Z=e=>{let t=document.querySelector(`.tabs .${e.dataset.link}`),n=e.closest(".container");document.querySelector(".listTabs-block nav li.active")?.classList.remove("active"),e.parentNode.classList.add("active"),n.querySelector(".tabs .active")?.classList.add("hide"),setTimeout(()=>{n.querySelector(".tabs .active")?.classList.remove("active","hide"),t?.classList.add("active","hide"),setTimeout(()=>{t?.classList.add("show"),setTimeout(()=>{t?.classList.remove("hide","show")},400)},50)},400)};document.querySelectorAll(".listTabs-block nav li a").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),Z(e)})});const X=encodeURI(window.location.hash);if(X&&document.querySelector(`.listTabs-block nav a[href="${X}"]`)){const e=document.getElementById("header").offsetHeight,t=document.querySelector(`.listTabs-block nav a[href="${X}"]`);t&&(Z(t),window.scrollTo({top:t.getBoundingClientRect().top-document.body.getBoundingClientRect().top-e-60,behavior:"smooth"}))}const G=document.querySelector(".hero-link-back-block button");function J(e){e.querySelector(".timeline .inner").scrollLeft=e.querySelector(".timeline .inner .scroll").offsetWidth-e.querySelector(".timeline").offsetWidth}function K(e){let t=e.querySelector(".timeline .inner"),n=100*t.scrollLeft/(t.scrollWidth-t.clientWidth);e.querySelector(".slider input").value=n,e.querySelector(".slider input").dispatchEvent(new Event("input",{detail:{custom:!0}}))}G&&(history.length<=1&&document.referrer?G.disabled=!0:G.addEventListener("click",e=>{e.preventDefault(),history.back()}
1)),document.querySelectorAll(".milestones-block").forEach(e=>{let t=e.querySelector(".timeline .inner");e.querySelector(".slider input").addEventListener("input",n=>{if(n.detail&&n.detail.custom)return;let r=n.target.value;if(r>0){let n=e.querySelector(".timeline .inner .scroll").offsetWidth-e.querySelector(".timeline").offsetWidth;n>0&&(t.scrollLeft=n*(r/100))}}),t.addEventListener("resize",t=>K(e)),t.addEventListener("scroll",t=>K(e)),document.addEventListener("DOMContentLoaded",t=>J(e)),window.addEventListener("customLoaded",t=>J(e))});const Q=window.backendApiUrl+"/tariff",ee={flex:!1,care:!1,bonus:!1},te=async(e,t)=>{try{const n=await fetch(`${Q}/otto/${e}/quotes?date_of_birth=${E(t)}`);return!!n.ok&&await n.json()}catch(n){return!1}},ne=(e,t,n,r={})=>{let o="",a="",i=t.replace("tud-","").replace("tuc-","");if("dental"===e?a="tud-":"clinic"===e&&(a="tuc-"),"dental"===e&&t.indexOf("v2")>-1){i=i.replace("-v2","");const e=r.care,t="first"!==i&&r.bonus;o=e&&t?"-premium-v2":e?"-care-v2":t?"-bonus-v2":"-v2"}else"clinic"===e&&t.indexOf("zweibett")>-1&&n<=38&&r.flex&&(i="twen");return`${a}${i}${o}`};class re{constructor(e,t,n,r){this._name=e,this._options=n,this._optionPremiums=r,this._premium=t,this._changeHandlers=[]}subscribe(e){this._changeHandlers.push(e)}changeHandler(){this._changeHandlers.forEach(e=>e())}getOption(e){return this._options[e]}setOption(e,t){this._options[e]!==t&&(this._options[e]=t)}getOptions(){return this._options}setPremium(e){this._premium!==e&&(this._premium=e,this.changeHandler())}getPremium(){return this._premium}setOptionPremiums(e){this._optionPremiums=e}getOptionPremium(e){return this._optionPremiums[e]}getName(){return this._name}setName(e){e&&(this._name=e)}}const oe=(e=29,t=1,n=99)=>{let r=e;const o={},a={},i=[],s=async(e,t,n)=>{const o={},a=await c(e,ne(e,t,r,{}));for(const i in n){const n={};n[i]=!0;const s=await c(e,ne(e,t,r,n))-a;o[i]=s}return o},l=S(async()=>{for(const e in o){const t=await te(e,r);if(t){o[e]=t;for(const t in a[e]){const n=await a[e][t];r<38&&n.setOption("flex",!0);const o=n.getOptions();n.setName(ne(e,t,r,o)),n.setOptionPremiums(await s(e,t,o)),n.setPremium(await c(e,n.getName()))}}}},300),c=async(e,t)=>{const n=await o[e];if(!Array.isArray(n))return null;const r=n.find(e=>e.name===t);return r?.premium??null};return{setAge:async o=>{if(o){let a=parseInt(o)||e;if(a<t?a=t:a>n&&(a=n),a===r)return;r=a}else r=e;l(),i.forEach(e=>e())},getAge:()=>r,getMinAge:()=>t,getMaxAge:()=>n,addTariff:async(e,t,n={...ee})=>{if(["dental","clinic"].includes(e)){if(a[e]||(a[e]={},o[e]=te(e,r)),!a[e][t]){r<38&&(n.flex=!0);const o=ne(e,t,r,n);a[e][t]=new Promise(async r=>{r(new re(o,await c(e,o),n,await s(e,t,n)))})}return a[e][t]}console.warn("invalid qqc-type")},getTariff:(e,t)=>a[e][t],setTariffOption:async(e,t,n,o)=>{const i=await a[e][t];i.setOption(n,o),i.setName(ne(e,t,r,i.getOptions())),i.setPremium(await c(e,i.getName()))},subscribe:e=>{i.push(e)}}},ae=document,ie=window,se=window.matchMedia("(min-width: 768px)"),le=(e,t,n=!0)=>{const r=n?2:0,o=parseFloat(e.innerHTML.replace("€","").replace(",",".").trim());let a;a=isNaN(o)||"-"===e.innerHTML?parseFloat(t)+Math.floor(31*Math.random())+50:parseFloat(o.toFixed(r)),u(t=>{"en"===document.documentElement.lang?e.innerHTML=`&euro;${t.toFixed(r)}`:e.innerHTML=`${t.toFixed(r).replace(".",",")} &euro;`},a,t,550)};function ce(e){const t=e.getBoundingClientRect();return t.height>0&&t.top>=0&&t.bottom<=(ie.innerHeight||ae.documentElement.clientHeight)}let de=!1;const ue=(e,t,n)=>{if(!de){let r=t.closest("section"),o=r?r.classList[0]:"na";const a=r.querySelectorAll("[data-qqc-price]"),i=[],s=[];a.forEach(e=>{const t=e.innerText.trim();i.includes(t)||(i.push(t),s.push(e))}),setTimeout(()=>{let t="";s.forEach((e,n)=>{n<3&&(en?t+=e.innerText.replace("€ ","|").replace("€","|"):t+=e.innerText.replace(" €","|").replace(",","."))}),y({event:"quick_quote_calculated",element_section:o,yob:_(n),job_status:"na",amount_total:(en?t.substring(1):t.slice(0,-1))||"na",...v({},{includeProduct:!0}),..."clinic"===e&&{insurance_category:"clinic"},..."clinic"===e&&{insurance_group:"clinic"}})},1500),de=!0,setTimeout(()=>{de=!1},3500)}};let pe;const fe=()=>{pe=craftConfig.global.qqcAge?oe(craftConfig.global.qqcAge):oe(),pe.subscribe(q(()=>{ie.dispatchEvent(new Event("qqc-calculated"))},300))};
1ae.querySelectorAll(".qqcTariffs-block").forEach(e=>{const t=e.querySelector(".calculate"),n=e.querySelector(".tariffs"),r=n.querySelector("nav"),o=n.querySelectorAll(".list .box");pe||fe();const a=t.querySelector(".slider"),i=a.querySelector(".slider-control.left"),s=a.querySelector(".slider-control.right"),c=a.querySelector("input"),d=e.querySelector("form[data-qqc]"),u=d.dataset.tracking,p=d.querySelector(".age-input input");d.isInitialised=!0,c.min=pe.getMinAge(),c.max=pe.getMaxAge(),i&&s&&(i.addEventListener("click",()=>pe.setAge(pe.getAge()-1)),s.addEventListener("click",()=>{pe.setAge(pe.getAge()+1)})),p.addEventListener("input",()=>{p.value&&pe.setAge(p.value)}),p.addEventListener("blur",()=>{p.value||pe.setAge()}),c.addEventListener("input",()=>{pe.setAge(c.value)});const f=()=>{const e=pe.getAge();p.value=e,c.value=e,c.dispatchEvent(new Event("update")),i&&s&&(i.disabled=c.value<=c.min,s.disabled=c.value>=c.max)};pe.subscribe(()=>{f()}),f();const m=()=>{const e=r.getBoundingClientRect();r.classList.toggle("isSticky",e.top<=64)};ie.addEventListener("customLoaded",m),ie.addEventListener("scroll",q(m,300,!0,!0)),ie.addEventListener("resize",S(m,300)),o.forEach(async e=>{const t=e.querySelector(".price strong"),n=t.dataset.qqcPrice,a=t.dataset.type,i=r.querySelector(`[data-type="${a}"]`),s=await pe.addTariff(n,a),l=()=>{[t,i].forEach(e=>le(e,s.getPremium()/100))},c=q(()=>{(ce(t)||ce(i))&&(ie.removeEventListener("scroll",c),s.subscribe(()=>{l()}),l())},300);let d;ie.addEventListener("scroll",c),c(),r.querySelectorAll("li").forEach(e=>{const t=e.dataset.tariff;e.classList.contains("active")&&(d=e),e.addEventListener("click",n=>{d!==e&&(d.classList.remove("active"),e.classList.add("active"),d=e,o.forEach(e=>{e.classList.toggle("active",e.dataset.tariffTab===t)}))})});const p=(e,t)=>{pe.setTariffOption(n,a,e,t)},f=e.querySelector(".name-endings");if(f){const e=f.querySelector(".name-1"),t=f.querySelector(".name-2"),n=f.querySelector(".name-3"),r=()=>{e.classList.toggle("active",!s.getOption("bonus")),t.classList.toggle("active",s.getOption("bonus")),n.classList.toggle("active",s.getOption("care"))};s.subscribe(r),r()}const m=e.querySelector(".extension-1");let h="";if(m){const e=m.querySelector('input[value="1"]'),t=m.querySelector('input[value="2"]');h=e.nextElementSibling.innerText.split(" ")[0],e.addEventListener("click",()=>{p("care",!1),h=e.nextElementSibling.innerText.split(" ")[0]}),t.addEventListener("click",()=>{p("care",!0),h=t.nextElementSibling.innerText.split(" ")[0]}),s.subscribe(()=>{const n=s.getOption("care");t.checked=n,e.checked=!n})}const g=e.querySelector(".extension-2");let v="";if(g){const e=g.querySelector('input[value="1"]'),t=g.querySelector('input[value="2"]');e?(v=e.nextElementSibling.innerText.split(" %")[0],e.addEventListener("click",()=>{p("bonus",!1),v=e.nextElementSibling.innerText.split(" %")[0]}),t.addEventListener("click",()=>{p("bonus",!0),v=t.nextElementSibling.innerText.split(" %")[0]}),s.subscribe(()=>{const n=s.getOption("bonus");t.checked=n,e.checked=!n})):v=t.nextElementSibling.innerText.split(" %")[0]}if(e.classList.contains("highlight")){const t=e.querySelector(".highlight-content"),n=()=>{const e=t.offsetHeight;document.documentElement.style.setProperty("--highlightHeight",e+20+"px")};n(),ie.addEventListener("resize",S(n,300)),ae.addEventListener("DOMContentLoaded",n)}e.querySelectorAll(".buttons a").forEach(e=>{if(!e.href)return;const t=new URL(e.href),n=()=>{t.searchParams.set("tariff-id",s.getName()),e.href=t.toString();const n=e.dataset;n.trYob=_(pe.getAge()),n.trTariff=s.getName(),n.trAmount_total=(s.getPremium()/100).toLocaleString("en-US",{minimumFractionDigits:2}),n.trTeeth_cleaning=h.replace("€",""),n.trDenture=v.replace("%","")};s.subscribe(n),n()}),s.subscribe(()=>ue(u,e,pe.getAge()))}),e.querySelectorAll(".note-content").forEach(e=>{const t=e.querySelector(".toggle"),n=e.querySelector(".content-toggle");t.addEventListener("click",()=>{e.classList.toggle("active"),l(n)})})}),ae.querySelectorAll(".qqcTariffsV2-block").forEach(e=>{const t=e.querySelector(".tariffs"),n=t.querySelector("nav"),r=t.querySelectorAll(".list .box");pe||fe();const o=e.querySelector("form[data-qqc]"),a=o.dataset.tracking,i=o.querySelector(".age-dropdown select");o.isInitialised=!0,i.addEventListener("input",()=>{i.value&&pe.setAge(i.value)}),i.addEventListener("blur",()=>{i.value||pe.setAge()});const s=()=>{const e=pe.getAge();i.value=e};pe.subscribe(()=>{s()}),s();const c=()=>{const e=n.getBoundingClientRect();n.classList.toggle("isSticky",e.top<=64)};ie.addEventListener("customLoaded",c),ie.addEventListener("scroll",q(c,300,!0,!0)),ie.addEventListener("resize",S(c,300)),r.forEach(async e=>{const t=e.querySelector("[data-qqc-price]"),o=t.dataset.qqcPrice,i=t.dataset.type,s=n.querySelector(`[data-type="${i}"]`),l=e.querySelectorAll(".extra-payment"),c=e.querySelector(".notification-container"),d=await pe.addTariff(o,i),u=()=>
1{[t,s].forEach(e=>le(e,d.getPremium()/100))},p=()=>{l.forEach(e=>le(e,d.getOptionPremium(e.dataset.tariffOption)/100*12))},f=q(()=>{(ce(t)||ce(s))&&(ie.removeEventListener("scroll",f),d.subscribe(()=>{u(),p()}),u(),p())},300);let m;ie.addEventListener("scroll",f),f(),document.addEventListener("updateActiveItem",e=>{const t=e.detail.tariffName.replace("-v2","");n.querySelectorAll("li").forEach(e=>{const n=e.dataset.tariff===t;e.classList.toggle("active",n),n&&(m=e),r.forEach(e=>e.classList.toggle("active",e.dataset.tariffTab===t))})}),n.querySelectorAll("li").forEach(e=>{const t=e.dataset.tariff;e.classList.contains("active")&&(m=e),e.addEventListener("click",n=>{m!==e&&(m.classList.remove("active"),e.classList.add("active"),m=e,r.forEach(e=>e.classList.toggle("active",e.dataset.tariffTab===t)))})});const h=(e,t)=>{pe.setTariffOption(o,i,e,t)},g=e.querySelector(".name-endings");if(g){const e=g.querySelector(".name-1"),t=g.querySelector(".name-2"),n=g.querySelector(".name-3"),r=()=>{e.classList.toggle("active",!d.getOption("bonus")),t.classList.toggle("active",d.getOption("bonus")),n.classList.toggle("active",d.getOption("care")),e.ariaHidden=d.getOption("bonus"),t.ariaHidden=!d.getOption("bonus"),n.ariaHidden=!d.getOption("care")};d.subscribe(r),r()}const v=e.querySelector(".extension-1");if(v){const e=v.querySelector('input[value="1"]'),t=v.querySelector('input[value="2"]'),n=v.querySelector(".coverage-amount");e.addEventListener("click",()=>{h("care",!1)}),t.addEventListener("click",()=>{h("care",!0)}),d.subscribe(()=>{c.textContent=en?"Tariff available from: €"+d.getPremium()/100:`Tarif verfügbar ab: ${(d.getPremium()/100).toFixed(2).replace(".",",")} €`;const r=d.getOption("care");t.checked=r,e.checked=!r,n&&le(n,"business-v2"===i?r?100:70:r?110:90,!1)})}const y=e.querySelector(".extension-2");if(y){const e=y.querySelector('input[value="1"]'),t=y.querySelector('input[value="2"]');e&&(e.addEventListener("click",()=>{h("bonus",!1)}),t.addEventListener("click",()=>{h("bonus",!0)}),d.subscribe(()=>{const n=d.getOption("bonus");t.checked=n,e.checked=!n}))}if(e.classList.contains("highlight")){const t=e.querySelector(".highlight-content"),n=()=>{const e=t.offsetHeight;document.documentElement.style.setProperty("--highlightHeight",e+20+"px")};n(),ie.addEventListener("resize",S(n,300)),ae.addEventListener("DOMContentLoaded",n)}e.querySelectorAll(".buttons a").forEach(e=>{const t=new URL(e.href),n=()=>{t.searchParams.set("tariff-id",d.getName()),e.href=t.toString()};d.subscribe(n),n()}),d.subscribe(()=>ue(a,e,pe.getAge()))}),e.querySelectorAll(".note-content").forEach(e=>{const t=e.querySelector(".toggle"),n=e.querySelector(".content-toggle");t.addEventListener("click",()=>{e.classList.toggle("active"),l(n)})}),e.querySelectorAll(".box").forEach(e=>{e.querySelector(".call-to-action-mobile > a").addEventListener("click",()=>{if(se.matches)return;const t=new CustomEvent("dentalPreSelection",{detail:{tariff:e.dataset.tariffTab}});document.dispatchEvent(t)})})}),ae.querySelectorAll(".tariffTable-block, .elab-tariffTable-block, .benefits-table-24.dental-benefits, .benefits-table-24.dental-mdm, .clinic-highlight-table .clinic-highlight-block").forEach(e=>{const t=e.querySelectorAll(".flex-option"),n=e.querySelectorAll("[data-qqc-price]"),r=e.querySelectorAll("[data-qqc-option]"),o=e.querySelectorAll(".qqc-cta"),a=e.querySelectorAll("[data-qqc-cta]"),i=e.querySelectorAll("[data-qqc-dynamic-name]"),s=e.querySelectorAll("[data-qqc-show]"),l=e.querySelector(".tariff-selection-cards");let c;if(e.classList.contains("benefits-table-24")&&l&&(c=l.querySelectorAll("label > input")),!n.length&&!r.length||pe||fe(),o.forEach(async e=>{const t=e.dataset.type,n=e.dataset.trTariff,r=await pe.addTariff(t,n);e.setAttribute("data-tr-amount_total",(r.getPremium()/100).toFixed(2)),r.subscribe(()=>{e.setAttribute("data-tr-amount_total",(r.getPremium()/100).toFixed(2))})}),n.forEach(async e=>{const n=e.dataset.qqcPrice,r=e.dataset.type,o=await pe.addTariff(n,r),a=()=>{le(e,o.getPremium()/100)},i=q(()=>{ce(e)&&(ie.removeEventListener("scroll",i),o.subscribe(a),a())},300);ie.addEventListener("scroll",i),i(),"tuc-zweibett"===r&&t.forEach(e
1=>{const t=e.closest("tr")||e,a=e.querySelectorAll("input"),i=t!==e&&e.closest("table");a.forEach(e=>{e.addEventListener("change",()=>{const t="radio"===e.type?"true"===e.value:e.checked;pe.setTariffOption(n,r,"flex",t)})});const s=()=>{t.classList.toggle("is-hidden",pe.getAge()>38),i&&b(i)},l=()=>{const e=o.getOption("flex");a.forEach(t=>{"radio"===t.type?t.checked=e.toString()===t.value:t.checked=e})};o.subscribe(()=>{l(),ue("clinic",e,pe.getAge())}),pe.subscribe(S(s,300)),s(),l()})}),r.forEach(async e=>{const t=e.dataset.qqcType,n=e.dataset.qqcTariff,r=e.dataset.qqcOption,o=await pe.addTariff(t,n);if(!o)return;const a=e.querySelector('input[value="1"]'),i=e.querySelector('input[value="2"]');a?.addEventListener("click",()=>{pe.setTariffOption(t,n,r,!1),ue(t,e,pe.getAge())}),i?.addEventListener("click",()=>{pe.setTariffOption(t,n,r,!0),ue(t,e,pe.getAge())}),o.subscribe(()=>{const e=o.getOption(r);i.checked=e,i.setAttribute("checked",e?"":null),a.checked=!e,a.setAttribute("checked",e?null:"")})}),a.forEach(async e=>{const t=e.dataset.qqcType,n=e.dataset.qqcTariff,r=await pe.addTariff(t,n);if(!r)return;const o=()=>{const t=r.getName();e.setAttribute("data-tr-amount_total",r.getPremium()/100),e.setAttribute("data-tr-tariff",t);const n=new URL(e.href);n.searchParams.set("tariff-id",t),e.href=n.toString()};r.subscribe(o),o()}
1),i.forEach(async e=>{const t=e.dataset.qqcType,n=e.dataset.qqcTariff,r=await pe.addTariff(t,n);if(!r)return;const o=e.querySelectorAll("[data-qqc-name]"),a=()=>{o.forEach(e=>{let t;switch(e.dataset.qqcName){case"base":t=!r.getOption("bonus");break;case"bonus":t=r.getOption("bonus");break;case"care":t=r.getOption("care");break;default:t=!1}e.classList.toggle("is-hidden",!t)})};r.subscribe(a),a()}),s.forEach(async e=>{const t=e.dataset.qqcTariff.includes("tud")?"dental":"clinic",n=e.dataset.qqcTariff.replace("tud-",""),r=await pe.addTariff(t,n);if(!r)return;const o=()=>{e.classList.toggle("is-hidden",!e.dataset.qqcShow.includes(r.getName()))};r.subscribe(o),o()}),c&&c.forEach(async t=>{const n=t.dataset.tariff.replace("tud-","")+"-v2",r=e.querySelector(`.dental-header [data-type=${n}]`),o=await pe.addTariff("dental",n);if(!o)return;const a=()=>{le(r,o.getPremium()/100),window.dispatchEvent(new Event("scroll")),t.removeEventListener("click",a)},i=new CustomEvent("updateActiveItem",{detail:{tariffName:n}});t.addEventListener("click",()=>{se.matches||(a(),document.dispatchEvent(i))})}),e.classList.contains("clinic-highlight-block")){const t=e=>{const t=e.querySelector(".main-header"),n=e.querySelector(".sticky-header-wrapper"),r=e.querySelector(".additional.services");let o=!1,a=!1;const i=new IntersectionObserver(e=>{for(const n of e)switch(n.target){case t:o=n.isIntersecting;break;case r:a=n.isIntersecting}n.classList.toggle("show",!o&&a)},{threshold:.5});i.observe(t),i.observe(r)};e.querySelectorAll(".tariff-card").forEach(e=>{t(e)})}}),ae.querySelectorAll(".calc-price").forEach(e=>{const t=e.innerHTML.replace("€","").replace(",",".").trim(),n=parseInt(t)+Math.floor(31*Math.random())+50;"en"==ae.documentElement.lang?e.innerHTML=`&euro; ${n}`:e.innerHTML=`${n} &euro;`;const r=q(()=>{ce(e)&&(ie.removeEventListener("scroll",r),le(e,t,!1))},300);ie.addEventListener("scroll",r),r()});const me=ae.querySelectorAll("form[data-qqc]");me.length&&!pe&&fe(),me.forEach(e=>{if(e.isInitialised)return;const t=e.dataset.qqc,n=e.dataset.tracking,r=e.querySelector("input"),o=ae.querySelectorAll(`[data-qqc-price="${t}"]`);r.placeholder=pe.getAge();const a=t=>{if(t.preventDefault(),pe.setAge(r.value),(e=>{let t=!1;e.forEach(e=>{const n=[...document.querySelectorAll(".stickyNavigationTabsStart-block")].find(t=>t.contains(e));n&&window.setStickyNavigationTab&&window.setStickyNavigationTab(`#${n.id}`,null,!1),e.offsetParent&&!t&&(t=!0,!ce(e)&&e.getBoundingClientRect().top>0&&ie.scrollTo({top:e.getBoundingClientRect().top-ae.body.getBoundingClientRect().top-Math.max(ae.documentElement.clientHeight||0,window.innerHeight||0)/2,behavior:"smooth"}))})})(o),r.value.length>1)if(0===e.closest("section").querySelectorAll("[data-qqc-price]").length){const e=ae.querySelector("[data-qqc-price]");ue(n,e,r.value)}else ue(n,e,r.value)};e.hasAttribute("data-auto-submit")&&(r.addEventListener("input",e=>{r.value&&a(e)}),r.addEventListener("blur",e=>{r.value||a(e)})),e.addEventListener("submit",a),pe.subscribe(()=>r.value=pe.getAge())}),document.querySelectorAll("[data-scroll-to]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const n=document.getElementById("header").offsetHeight,r=document.querySelector(e.dataset.scrollTo);r&&(window.scrollTo({top:r.getBoundingClientRect().top-document.body.getBoundingClientRect().top-n-16,behavior:"smooth"}),setTimeout(()=>{r.classList.add("highlight"),setTimeout(()=>r.classList.remove("highlight"),2500)},300))})}),document.querySelector("#header");const he={},ge=document.querySelectorAll(".stickyNavigationTabs-block");ge.forEach(e=>{const t=e.querySelector("nav"),n={},r={};let o="";const a=(e,t=void 0,a=!0)=>{const i=n[e];i?(e!==o&&(n[o].classList.remove("active"),i.classList.add("active"),r[o].classList.remove("active"),r[e].classList.add("active"),o=e,window.dispatchEvent(new CustomEvent("setStickyNavigationTab")),window.dispatchEvent(new CustomEvent("setSliderMobile")),window.dispatchEvent(new Event("resize"))),a&&window.scrollToTarget(i,{onScrollend:t,offset:i})):console.warn("navigation tab ("+e+") not found")};
1t.querySelectorAll("li").forEach(e=>{const i=e.querySelector("a"),s=i.getAttribute("href"),l=document.querySelector(s);l?(n[s]=l,r[s]=e,l.classList.contains("active")&&(o=s),he[s]=(e,t)=>a(s,e,t),i.addEventListener("click",n=>{n.preventDefault(),a(s),((e,t,n)=>{const r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),a=parseInt(o.left),i=parseInt(o.right),s=parseInt(r.left),l=parseInt(r.right);let c=0;s<a+n?c=s-a-n:l>i-n&&(c=l-i+n),0!==c&&(e.scrollLeft+=c)})(t,e,60)})):console.warn("navigation tab ("+s+") not found")});const i=()=>{const n=e.querySelector("ul").offsetWidth-t.offsetWidth,r=n>0?100*t.scrollLeft/n:0,o=r<2?0:1,a=r>98||n<=0?0:1;e.querySelector(".scroll").style.setProperty("--left-opacity",o),e.querySelector(".scroll").style.setProperty("--right-opacity",a)};t.addEventListener("scroll",i),window.addEventListener("resize",i),document.addEventListener("DOMContentLoaded",i),window.addEventListener("customLoaded",i)});let ve=(e,t=void 0,n=!0)=>{console.warn("no sticky navigation present")};if(ge.length){ve=(e,t=void 0,n=!0)=>{he[e](t,n)};let e=window.location.hash.split("?")[0];"/"==e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),e&&document.querySelectorAll(e).length&&ve(e),document.querySelectorAll('[rel="tab:open"]').forEach(e=>{const t=new URL(e.getAttribute("href"),window.location.href).hash;t&&he[t]&&e.addEventListener("click",e=>{e.preventDefault(),ve(t)})})}window.setStickyNavigationTab=ve,document.querySelectorAll(".tarifftabs_24-block").forEach(e=>{let t=e.querySelector(".tariff-nav-item.active"),n=t.querySelector(".sub-nav-item.active");const r=e.querySelectorAll(".tariff-cards");let o=e.querySelector(".tariff-cards.active");const a=e.querySelector(".tariff-cards-container > p"),i=(e,t)=>(e.classList.remove("active"),t.parentNode.classList.add("active"),t.parentNode);e.querySelectorAll(".tariff-nav-item > button").forEach(e=>{e.addEventListener("click",n=>{n.preventDefault(),t=i(t,e),s(t.querySelector(".sub-nav-item"))})}),e.querySelectorAll(".sub-nav-item > button").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),n=i(n,e),s(n)})});const s=e=>{n.classList.remove("active"),n=e,n.classList.add("active"),o.classList.remove("active"),r.forEach(e=>{if(n.querySelector("button").getAttribute("data-job-status").replace("#","")===e.getAttribute("id")){const t=e.querySelectorAll(".tariff-card");let n=0;for(const e of t)e.style.opacity="0",e.style.transform="translateX(50px)",setTimeout(()=>{e.style.opacity="1",e.style.transform="translateX(0)"},n),n+=150;e.classList.add("active"),o=e}else e.querySelectorAll(".tariff-card").forEach(e=>{e.style.removeProperty("opacity"),e.style.removeProperty("transform")})}),window.innerWidth>991&&(a.textContent=e.querySelector("button").getAttribute("data-headline")),l()},l=()=>{if(window.innerWidth>991)return;const e=t.querySelector(".user-group-nav-container"),n=e.querySelector(".user-group-nav"),r=t.querySelector(".scroll-container"),o=getComputedStyle(n),a=n.querySelectorAll("li");let i;i=parseInt(o.gap)*(a.length-1),a.forEach(e=>{i+=e.offsetWidth}),e.addEventListener("scroll",()=>{s()});const s=()=>{e.scrollLeft>0?r.style.setProperty("--left-opacity",1):r.style.setProperty("--left-opacity",0),e.scrollLeft+e.offsetWidth===i?r.style.setProperty("--right-opacity",0):r.style.setProperty("--right-opacity",1)};s()};window.addEventListener("DOMContentLoaded",l),window.addEventListener("resize",S(l,300))});const ye="https://api.trustpilot.com/v1/business-units/5bae2f308d99e600014b32ac",be="8XnfBBjyvj01VkZP3xMGtX3W0QAvU39G",Se=["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"];let qe=document.querySelectorAll(".trustpilot-horizontal"),Le=document.querySelectorAll(".trustpilot-vertical"),we=document.querySelectorAll(".trustpilot-compact"),Ee=document.querySelectorAll(".trustpilot-slider"),_e=document.querySelectorAll(".trustpilot-boxes"),ke=document.querySelectorAll(".trustpilot-score");function Te(e,t){let n=e.querySelector(".load"),r=e.querySelector(".load-more");fetch(ye+"/reviews?"+new URLSearchParams({apikey:be,perPage:parseInt(e.dataset.entries),page:e.trustPilotCurrent,tagValue:e.dataset.tag,stars:e.dataset.stars,language:en?"en":"de"})).then(e=>e.json()).then(t=>{let o=t.reviews,a=document.createElement("div");if(a.classList.add("new"),o.length){e.trustPilotCurrent=parseInt(e.trustPilotCurrent)+1;for(const e of o)a.appendChild(Ae(e.stars,e.consumer.displayName,e.title,e.text));n.appendChild(a),n.animate([{height:n.offsetHeight+a.offsetHeight}],{duration:400}).onfinish=()=>{a.classList.add("show"),n.removeAttribute("style"),o.length<parseInt(e.dataset.entries)?r.textContent=en?"No more reviews":"Keine weiteren Einträge":(r.classList.remove("active"),r.textContent=en?"Load more reviews":"Mehr Bewertungen laden")}}}).catch(()=>{})}function Ae(e,t,n,r){let o=document.createElement("div"),a=document.createElement("div"),i=document.createElement("div"),s=document.createElement("p"),l=d
1ocument.createElement("div");return o.classList.add("box"),a.classList.add("top"),a.innerHTML='<img class="stars" width="118" height="22" src="https://cdn.trustpilot.net/brand-assets/4.1.0/stars/stars-'+e+'.svg">',i.classList.add("author"),i.innerHTML="<strong>"+t+'</strong><svg><use xlink:href="/assets/dist/sprite.svg#btn-check" /></svg><span>'+(en?"verified ottonova customer":"Verifizierter ottonova Kunde")+"</span>",s.innerHTML=n,l.classList.add("text"),l.innerHTML=r,a.appendChild(i),o.appendChild(a),o.appendChild(s),o.appendChild(l),o}(qe.length||Le.length||we.length||ke.length)&&fetch(ye+"?"+new URLSearchParams({apikey:be})).then(e=>e.json()).then(e=>{!function(e){qe.forEach(t=>{t.querySelector(".trustpilot-stars").src="https://cdn.trustpilot.net/brand-assets/4.1.0/stars/stars-"+e.score.stars+".svg",t.querySelector(".trustpilot-score").textContent=e.score.trustScore,t.querySelector(".trustpilot-amount").textContent=e.numberOfReviews.total})}(e),function(e){Le.forEach(t=>{t.querySelector(".trustpilot-stars").src="https://cdn.trustpilot.net/brand-assets/4.1.0/stars/stars-"+e.score.stars+".svg",t.querySelector(".trustpilot-amount").textContent=e.numberOfReviews.total})}(e),function(e){we.forEach(t=>{t.querySelector(".trustpilot-stars").src="https://cdn.trustpilot.net/brand-assets/4.1.0/stars/stars-"+e.score.stars+".svg",t.querySelector(".trustpilot-score").textContent=e.score.trustScore,t.querySelector(".trustpilot-amount").textContent=e.numberOfReviews.total})}(e),function(e){ke.forEach(t=>{t.textContent=e.score.trustScore.toString().replace(".",",")})}(e)}).catch(()=>{}),Ee.length&&Ee.forEach(e=>{fetch(ye+"/reviews?"+new URLSearchParams({apikey:be,perPage:parseInt(e.dataset.entries),page:parseInt(e.dataset.page),tagValue:e.dataset.tag,stars:e.dataset.stars,language:en?"en":"de"})).then(e=>e.json()).then(t=>{if(t.reviews.length){const n=e.querySelector(".slider-wrapper");for(const e of t.reviews){const t=new Date(e.createdAt),r=document.createElement("div");r.classList.add("box","slide"),r.innerHTML='<div class="top"><img class="stars" width="118" height="22" alt="Trustpilot '+e.stars+(en?" stars rating":" Sterne Bewertung")+'" src="https://cdn.trustpilot.net/brand-assets/4.1.0/stars/stars-'+e.stars+'.svg"><span class="date">'+t.getUTCDate()+". "+Se[t.getUTCMonth()]+"</span></div><strong>"+e.title+"</strong><p>"+e.text+'</p><div class="author"><strong>'+e.consumer.displayName+'</strong><svg><use xlink:href="/assets/dist/sprite.svg#btn-check" /></svg><span>ottonova Kunde</span></div>',n.appendChild(r)}const r=e.querySelector(".load");r.setAttribute("initialized","");const o=new CustomEvent("isInitialized");r.dispatchEvent(o)}}).catch(()=>{})}),_e.length&&_e.forEach(e=>{e.trustPilotCurrent=parseInt(e.dataset.page);let t=e.querySelector(".load-more");t.addEventListener("click",n=>{t.classList.contains("active")||(t.classList.add("active"),t.innerHTML=progressText,Te(e))}),Te(e)}),r.extend(o);const xe=window.backendApiUrl+"/tariff",Ce=e=>r().diff(r(e,"YYYY-MM-DD"),"year");document.querySelectorAll(".comprehensiveQqc-block").forEach(e=>{const t=e.querySelector(".form"),n=t.querySelector(".qqc-slide-wrapper"),o=t.querySelector(".basic"),i=t.querySelector(".extended"),c=t.querySelector(".content-toggle"),d=t.querySelector(".customize-tariff-btn"),u=t.querySelector(".back-btn"),p=t.querySelector(".head-toggle"),f=t.querySelector(".submitter"),m=t.querySelector(".dob-input"),h=t.querySelector(".start-select"),g=t.querySelector(".status-select"),v=t.querySelector(".deductible-select"),y=v.querySelector('option[value="25"]'),b=t.querySelector(".dsa-group"),q=t.querySelector(".dsa-payout-select"),L=t.querySelector(".dsa-after-days-select"),w=t.querySelector(".protection-group"),E=t.querySelector(".protection-value-select"),_=t.querySelector(".protection-from-select");let k=!1,T={};const A=e=>en?"€ "+e/100:e/100+" €",x=(e,t,n=!1)=>{const r=document.createDocumentFragment();if(t.forEach((e,t)=>{const o=document.createElement("option");o.value=e.value,o.selected=!1===n&&0===t,o.innerText=e.label,r.appendChild(o)}),n){const t=e.querySelector("option");r.prepend(t)}e.innerHTML="",e.append(r)},C=_.closest(".otto-form-element"),P=()=>{const e="none"===E.value;_.disabled=e,C.classList.toggle("disabled",e)},M=L.closest(".otto-form-element"),H=()=>{const e="none"===q.value;L.disabled=e,M.classList.toggle("disabled",e)},O=y.dataset.studentLabel,I=y.dataset.defaultLabel,B=async(e=a(t))=>{e.employment!==T.employment&&(e.deductible=("student"===a(t).employment?(y.value="50",y.innerHTML=O):(y.value="25",y.innerHTML=I),v.value));const n=[];return["employment","date_of_birth","deductible","ingress_date"].some(t=>e[t]!==T[t])&&n.push((async(e,t,n,r)=>{const o=Ce(t);if("student"===e||o<21||o>55)return void(w.style.display="none");w.style="";const a=await fetch(`${xe}/otto/bek/range?occupational_status=${e}&date_of_birth=${t}&tariff_name=business2019twin&tariff_excess=${n}&ingress_date=${r}`).then(e=>e.json()),i=[];for(let s=a.min;s<=a.max;s+=a.step)i.push({value:s/100,label:A(s)});x(E,i,!0),P()})(e.employment,e.date_of_birth,e.deductible,e.ingress_date)),["employment","ingress_date","date_of_birth"].some(t=>e[t]!==T[t])&&n.push((async(e,t,n)=>{const r=Ce(n);if("student"===e||r<18||r>69)return void(b.style.display="none");b.style="";const o=await fetch(`${xe}/otto/dsa/range?occupational_status=${e}
1&number_of_employees=0&profession_id=999&ingress_date=${t}&salary=69999`).then(e=>e.json());x(L,o.waiting_days.map(e=>({value:e,label:en?`${e}. day`:`${e}. Tag`})));const a=[];for(let i=o.min;i<=o.max;i+=o.step)a.push({value:i/100,label:A(i)});x(q,a,!0),H()})(e.employment,e.ingress_date,e.date_of_birth)),await Promise.all(n),T=a(t),T},N=[],D=r().date(1);for(let r=1;r<6;r++){const e=D.add(r,"Month");N.push({value:e.format("YYYY-MM-DD"),label:e.format("DD.MM.YYYY")})}x(h,N),[g,h,m,v].forEach(e=>{e.addEventListener("input",()=>{const e=a(t);m.dataset.bouncerMaxAge="student"===e.employment?"37":"101",s.validate(m)||B(e)})}),E.addEventListener("change",P),q.addEventListener("change",H);const j=()=>{if(window.matchMedia("(min-width: 992px)").matches)if(o.classList.contains("shown")){const e=o.offsetHeight;n.style.height=e+"px"}else{const e=i.offsetHeight;n.style.height=e+"px"}else n.style=""};j(),window.addEventListener("resize",S(j,300)),d.addEventListener("click",async e=>{e.preventDefault(),s.validate(m)||(await B(),k=!k,o.classList.toggle("shown",!k),i.classList.toggle("shown",k),j())}),u.addEventListener("click",e=>{k=!1,e.preventDefault(),o.classList.toggle("shown",!k),i.classList.toggle("shown",k),j()}),p.addEventListener("click",async e=>{e.preventDefault(),!k&&s.validate(m)||(await B(),k=!k,l(c,void 0,300),i.classList.toggle("active",k))}),f.addEventListener("click",e=>{if(e.preventDefault(),s.validate(m))return;const n=a(t),r={occupational_status:n.employment,signup_type:"comprehensive",tariff:"student"===n.employment?"economy":"business2019twin",ingress_date:n.ingress_date,date_of_birth:n.date_of_birth,tariff_excess:parseInt(n.deductible)};"employed"===r.occupational_status?r.income=69999:"self-employed"===r.occupational_status&&(r.employees=0),"student"!==r.occupational_status&&"none"!==n.dsa_requested_payout&&(r.dsa_after_days=parseInt(n.dsa_after_days),r.dsa_requested_payout=parseInt(n.dsa_requested_payout)),"student"!==r.occupational_status&&"none"!==n.contribution_relief&&(r.contribution_relief=parseInt(n.contribution_relief),r.contribution_relief_from_age=parseInt(n.contribution_relief_from_age));const o={holder:r};localStorage.setItem("da-data-transfer",JSON.stringify(o)),document.location="/online-beitragsrechner/dein-angebot/ergebnis?origin=comprehensive"})});const Pe=document.querySelectorAll(".scroll-navigation-block");if(Pe.length){const e=document.querySelector("#main > section"),t=e?e.offsetHeight:0,n=document.querySelector("#header"),r=document.querySelectorAll("section"),o=(e,t,n)=>{const r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),a=parseInt(o.left,10),i=parseInt(o.right,10),s=parseInt(r.left,10),l=parseInt(r.right,10);let c=0;s<a+n?c=s-a-n:l>i-n&&(c=l-i+n),0!==c&&(e.scrollLeft+=c)};Pe.forEach(e=>{const a=e.querySelector(".scroll-nav"),i=a.querySelector(".nav-wrapper"),s=a.querySelector(".nav-indicator"),l=a.querySelectorAll("a:not(.keyboard-hidden)"),c=a.querySelector("a.keyboard-hidden");document.querySelector(".scroll-navigation-block").offsetHeight;const d=[];let u;const p=e=>{var t;(e||u)&&e!==u&&(u&&u.link.classList.remove("active"),e?(e.link.classList.add("active"),o(a,e.link,60),(t=e.link).classList.contains("active")&&(t.removeAttribute("style"),s.style.transform="scale(1, 1)",s.style.width=`${t.offsetWidth}px`,s.style.left=`${t.offsetLeft}px`)):(s.style.width=`${l[0].offsetWidth}px`,s.style.left=-1*(l[0].offsetWidth+20)+"px"),u=e)};if(e.classList.contains("mag-block")){const t=e.dataset.skipBlocks;let n=document.querySelectorAll("h2");if(t){const e=t.split(",");n=Array.from(n).filter((t,n)=>-1===e.indexOf((n+1).toString()))}l.forEach((e,t)=>{const r=n[t].closest("section"),o=r.id?r.id:e.textContent.trim().replace(" ","-").toLowerCase().slice(0,6)+(t+1);e.href="#"+o,r.id=o})}l.forEach(t=>{let n=document.querySelector(t.getAttribute("href"));if(!n)return;"SECTION"!==n.tagName&&(n=n.closest("section"));const o=n.dataset.offset||0,a=window.getComputedStyle(n),i=parseFloat(a.getPropertyValue("padding-top"));if(!document.querySelector(".mag-cont-toc")){const o=n.querySelector(".container");let s=null;if(o){const e=o.getBoundingClientRect();s=window.innerWidth-e.right}const l=document.createElement("a");if(l.href="#",l.innerHTML=(window.en?"To the scroll navigation":"Zur Scroll-Navigation")+'<svg>\n                <use xlink:href="/assets/dist/sprite.svg#btn-arrow"></use>\n              </svg>',l.classList.add("keyboard-hidden","back-to-scroll-nav","display--sm"),l.addEventListener("click",e=>{e.preventDefault(),t.focus()}),n.prepend(l),l.style.right=o?s+"px":a.paddingRight,i)l.style.top=i/2-l.offsetHeight/2+"px";else{const t=parseFloat(a.marginTop),o=Array.from(r).indexOf(n),i=r[o-1];n.style.marginTop=t-40+"px",n.style.paddingTop="40px",l.style.top=0,i!==e&&(i.style.marginBottom=parseInt(window.getComputedStyle(i).marginBottom)-40+"px")}}const s={link:t,entry:n,offset:o,padding:i};d.push(s),t.classList.contains("active")&&(u=s),t.addEventListener("click",e=>{e.preventDefault(),c&&c.classList.remove("disabled")})}),c&&c.addEventListener("click",e=>{if(e.preventDefault(),c.classList.contains("disabled"))return;let t;if(u&&u.entry)t=u.entry;else{const e=a.querySelector("a.active");if(!e)return;t=document.querySelector(e.getAttribute("href"))}const n=t.querySelector(".back-to-scroll-nav");
1(n||t.querySelector('a, button, input, select, [tabindex]:not([aria-hidden="true"])')).focus()});const f=(e,t)=>e.entry.getBoundingClientRect().top+e.padding>t,m=()=>{const e=n?n.offsetHeight:0,r=.3*(window.innerHeight-e)+e;if(window.scrollY<t-r)return void p();const o=u?d.indexOf(u):0;if(f(d[o],r)){for(let e=o-1;e>0;e--)if(!f(d[e],r))return void p(d[e]);p(d[0])}else{for(let e=o;e<d.length-1;e++)if(f(d[e+1],r))return void p(d[e]);p(d[d.length-1])}};window.addEventListener("scroll",q(m,150)),window.addEventListener("resize",S(()=>{d.forEach(e=>{e.padding=parseFloat(window.getComputedStyle(e.entry).getPropertyValue("padding-top"))}),m()},300));const h=()=>{const t=i.offsetWidth-a.offsetWidth,n=t>0?100*a.scrollLeft/t:0,r=n<2?0:1,o=n>98||t<=0?0:1;e.querySelector(".scroll").style.setProperty("--left-opacity",r),e.querySelector(".scroll").style.setProperty("--right-opacity",o)};a.addEventListener("scroll",q(h,300,!0,!0)),window.addEventListener("resize",S(h,300)),document.addEventListener("DOMContentLoaded",h),window.addEventListener("customLoaded",h)})}document.querySelectorAll(".scroll-mobile").forEach(e=>{const t=e.querySelector(".table-container"),n=e.querySelector(".table-wrapper"),r=()=>{const r=e.querySelector("table").offsetWidth-n.offsetWidth,o=r>0?100*n.scrollLeft/r:0,a=o<2?0:1,i=o>98||r<=0?0:1;t.style.setProperty("--left-opacity",a),t.style.setProperty("--right-opacity",i)};n.addEventListener("scroll",r),window.addEventListener("resize",r),document.addEventListener("DOMContentLoaded",r),window.addEventListener("customLoaded",r)}),document.querySelectorAll('[class*="col-as-head"]').forEach(e=>{let t;e.classList.forEach(e=>{e.includes("col-as-head")&&(t=parseInt(e.replace("col-as-head=",""),10))}),e.querySelectorAll("table").forEach(e=>{const n=e.querySelector("thead");let r;n&&(r=n.querySelector("tr").querySelector("th"));const o=r?r.innerHTML:"",a=e.querySelector("tbody").querySelectorAll("tr"),i=window.getComputedStyle(a[0]),s=i.getPropertyValue("background-color"),l=i.getPropertyValue("color"),c=window.getComputedStyle(a[1]),d=c.getPropertyValue("background-color"),u=c.getPropertyValue("color"),p=()=>{a.forEach(e=>{e.querySelectorAll("td").forEach((e,n)=>{window.innerWidth<=t?n>0?(e.style.backgroundColor=d,e.style.color=u):(e.style.backgroundColor=s,e.style.color=l):(e.style.removeProperty("background-color"),e.style.removeProperty("color"))})}),n&&(r.innerHTML=window.innerWidth<=t?"":o)};window.addEventListener("resize",p),document.addEventListener("DOMContentLoaded",p),window.addEventListener("customLoaded",p)})});const Me=document.querySelectorAll(".benefits-table-24"),He=document.querySelectorAll(".highlights-table-block");if(Me.length||He.length){const e=[768,1200];T(async()=>{const{initHighlightsTable:e,initBenefitsTable:n}=await t.import("./tariffs-module-legacy.min._g-yf5og.js");return{initHighlightsTable:e,initBenefitsTable:n}},void 0).then(({initHighlightsTable:t,initBenefitsTable:n})=>{for(const r of He)r.querySelector(".clinic-highlight-block")||(t(r),e.forEach(e=>{window.matchMedia(`(min-width: ${e}px)`).addEventListener("change",()=>t(r))}));for(const e of Me)n(e),window.addEventListener("orientationchange",()=>{window.innerWidth<1200&&n(e)})}).catch(e=>A(e,{chunk:"tariffs-module"}))}document.querySelectorAll(".waiting-period-note").forEach(e=>{const t=e.querySelector(".toggle"),n=e.querySelector(".content-toggle"),r=e.querySelector(".copy-code");let o;const a=()=>{e.style.height&&e.style.removeProperty("height"),o=e.offsetHeight,e.style.height=`${o}px`};a(),t&&t.addEventListener("click",()=>{e.classList.toggle("active"),n.classList.toggle("open");const t=n.offsetHeight;e.style.height=`${o+t}px`}),r&&(r.style.cursor="pointer",r.addEventListener("click",()=>{const e=r.innerText;navigator.clipboard.writeText(e);const t=document.createElement("div");t.className="copy-feedback",t.innerHTML="Gutscheincode kopiert",document.body.appendChild(t),setTimeout(function(){document.body.removeChild(t)},3e3)})),window.addEventListener("resize",S(a,300))});const Oe=window.serviceURL+"/appointment";function Ie(e){switch(e?.split("+").join("")){case"Vollversicherung":case"Vollversicherung Angestellte Selbststaendige":return"comprehensive";
1case"Vollversicherung Student":return"comprehensive-student";case"Beihilfe Beamte":return"civil-servant";case"Beihilfeversicherung":return"civil-servant-broker";case"Beihilfe Beamtenanwaerter":return"civil-servant-applicant";case"Vollversicherung Expat":return"comprehensive-expat";case"Zahnzusatzversicherung":return"dental";default:return"general"}}async function Be(e){if(!e)return null;try{const t=await fetch(Oe+"/appointment-details/public/"+e);if(!t.ok)return null;const n=await t.json();return!n.result||n.result.status!==O.Confirmed&&n.result.status!==O.Pending||function(e){const t=new Date(e?.start).getTime();return Ne>t}(n.result)?null:n.result}catch(t){return null}}document.querySelectorAll(".internal-consultation").forEach(e=>{let t,n,r=!1;const o=e.querySelector('select[name="product"]'),i=e.querySelector('button[data-action="search-appointments"]');let l=null;const c=e.querySelectorAll('input[type="radio"]'),d=e.querySelector(".reschedule-appointment.slide"),u=e.querySelector(".appointments-wrapper"),p=e.querySelector(".appointments-placeholder"),f=p.textContent,m=e.querySelector(".no-appointments-text"),h=e.querySelector(".modal.cancellation-modal"),g=e.querySelector(".modal.reschedule-modal"),v=g.querySelector("form"),y=v.querySelector('select[name="language"]'),b=g.querySelector(".rebook-calendar-type"),S=v.querySelector(".dateSelect"),q=v.querySelector(".timeSelect"),L=e.querySelector(".reschedule-alert.alert"),w=e.querySelector(".new-appointment.slide"),E=e.querySelector(".new-appointment form"),_=E.querySelector('button[type="submit"]'),k=e.querySelector(".new-appointment.alert"),T=e.querySelector("[data-calendar]"),A=window.location.href,O=A.indexOf("?")>-1?A.split("?")[1].split("&"):"";let N,D={};if(""!==O)for(const a in O){const e=O[a].split("=");D[e[0]]=decodeURIComponent(e[1])}D.opportunity_id||o.querySelector('option[value="underwriting"]').setAttribute("disabled",""),D.upselling||o.querySelector('option[value="upselling"]').setAttribute("disabled","");let j=null;const z=new Map([[C.Consultation,Be(D.consultation_appointment_id)],[C.Idd,Be(D.idd_appointment_id)],[C.Underwriting,Be(D.uw_appointment_id)],[C.Signup,Be(D.signup_appointment_id)],[C.FollowUp,Be(D.followup_appointment_id)],[C.Upselling,Be(D.upselling_appointment_id)],[C.Bap,Be(D.bap_appointment_id)]]);function $(e){c.forEach(e=>e.disabled=!1),p.classList.toggle("hidden",e),m.classList.toggle("hidden",e),d.classList.toggle("active",e),w.classList.toggle("active",!e),c[0].checked=e,c[1].checked=!e}function W(t){const n=e.querySelector("template").content.cloneNode(!0),r=n.querySelector("h3.appointment-type"),o=n.querySelector(".calendar-type"),a=n.querySelector(".appointment-details"),i=n.querySelector("button.red"),s=n.querySelector("button.outline");return r.textContent=I(t.calendar_type),o.textContent=K(t.type,t.calendar_type.includes("expat")?P.English:P.German,N),a.textContent=B(t.start),i.addEventListener("click",()=>{j=t,h.classList.add("is-open"),F(L,!1)}),s.addEventListener("click",async()=>{g.classList.add("is-open"),j=t,y.value="Englisch"===Y.get("language")?P.English:P.German,R(),F(L,!1)}),n}function U(){const e=u.querySelector(".appointment-card");e&&e.remove()}async function R(){j&&S&&(n=K(j.type,y.value,N),x(n,S,q,!1),b.textContent=n)}if(c.forEach(e=>{e.addEventListener("click",()=>{d.classList.toggle("active",d.classList.contains(e.value)),w.classList.toggle("active",w.classList.contains(e.value))})}),o.addEventListener("change",()=>{_.disabled=!0,i.disabled=""===o.value||o.value===l,F(k,!1),F(L,!1)}),i.addEventListener("click",async e=>{e.preventDefault(),l=o.value,i.disabled=!0,_.disabled=!1,p.innerHTML=window.progressText;const t=await z.get(o.value);if(!t)return U(),f&&(p.innerHTML=f),void $(!1);U(),u.appendChild(W(t)),$(!0)}),h){const e=h.querySelector('button[data-action="abort"]'),t=h.querySelector('button[data-action="cancel"]');if(e&&e.addEventListener("click",()=>{h.classList.remove("is-open")}),t){const e=t.innerHTML;t.addEventListener("click",async()=>{if(!j)return;t.disabled=!0,t.innerHTML=window.progressText;const n=a(v);try{const r=await fetch(Oe+"/reschedule/internal",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({existing_appointment_id:j.id,appointment_type:o.value,contact_details:{first_name:D.first_name,last_name:D.last_name,email:D.email,landing_page_language:j.calendar_type.includes("expat")?"en":j.type===C.Underwriting?D.language.slice(0,2).toLowerCase():"de",...n.p
1hone_number&&{phone_number:n.phone_number}},metadata:{product_type:Ie(D.product),...D.lead_id&&{salesforce_lead_id:D.lead_id},...D.opportunity_id&&{salesforce_opportunity_id:D.opportunity_id},...D.signup_service_id&&{signup_service_id:D.signup_service_id},...D.lead_service_id&&{lead_service_id:D.lead_service_id},...D.ottonova_tracking_id&&{ottonova_tracking_id:D.ottonova_tracking_id}}})});if(!r.ok)throw new Error(`${r.status}`);z.set(o.value,Be(j.id)),F(L,!0,"success","Termin erfolgreich storniert."),U(),p.innerHTML=f,p.classList.remove("hidden"),t.disabled=!1,h.classList.remove("is-open"),t.innerHTML=e}catch(r){F(L,!0,"danger","Es lag ein Problem beim Stornieren des Termins vor."),h.classList.remove("is-open"),t.innerHTML=e,t.disabled=!1}})}}if(g){const e=g.querySelector('button[data-action="abort"]'),t=g.querySelector('button[data-action="submit"]');if(y.addEventListener("change",()=>{R()}),e&&e.addEventListener("click",e=>{e.preventDefault(),g.classList.remove("is-open"),j=null}),t){const e=t.innerHTML;t.addEventListener("click",async r=>{if(r.preventDefault(),!j)return;if(s.validateAll(v).length)return;const o=a(v);t.innerHTML=window.progressText,t.disabled=!0;const i=q.options[q.selectedIndex],l=i.dataset.start||"",c=i.dataset.end||"";try{const r=await fetch(Oe+"/reschedule/internal",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({existing_appointment_id:j.id,appointment_type:j.type,appointment:{start:l,end:c},calendar:n,contact_details:{first_name:D.first_name,last_name:D.last_name,email:D.email,landing_page_language:o.language,phone_number:D.phone_number},metadata:{product_type:Ie(D.product),...D.lead_id&&{salesforce_lead_id:D.lead_id},...D.opportunity_id&&{salesforce_opportunity_id:D.opportunity_id},...D.signup_service_id&&{signup_service_id:D.signup_service_id},...D.lead_service_id&&{lead_service_id:D.lead_service_id},...D.ottonova_tracking_id&&{ottonova_tracking_id:D.ottonova_tracking_id}}})});if(!r.ok)throw new Error(`${r.status}`);const a=(await r.json()).appointment_id;g.classList.remove("is-open"),F(L,!0,"success","Der Termin wurde erfolgreich umgebucht"),t.innerHTML=e,t.disabled=!1,z.set(j.type,Be(a));const i=await z.get(j.type);U(),i?(u.appendChild(W(i)),$(!0)):$(!1)}catch(d){g.classList.remove("is-open"),F(L,!0,"danger","Es lag ein Problem beim Umbuchen des Termins vor"),t.innerHTML=e}})}}const F=(e,t,n,r)=>{const o=e.querySelector(".otto-alert-block-content");e.classList.toggle("is-hidden",!t),n&&(e.classList.toggle("warning","warning"===n),e.classList.toggle("danger","danger"===n),e.classList.toggle("success","success"===n)),r&&(o.innerHTML=r)},Y=new URLSearchParams(window.location.search),V=Array.from(w.querySelectorAll("input, select")).reduce((e,t)=>{if(e[t.name]=t,"product"===t.name){const e=Ie(Y.get("product"));N=e,e?t.value=e:F(k,!0,"warning","Der Benutzer hat bis jetzt noch nicht angegeben, für welches Produkt er sich interessiert.")}else"language"===t.name?t.value="Englisch"===Y.get("language")?P.English:P.German:t.value=Y.get(t.name)||t.value;return t.dispatchEvent(new Event("update")),e},{}),Z=V.product,X=V.date,G=V.time,J=V.language;if(Z&&J&&X&&G){const e=()=>{t=K(o.value,J.value,Z.value),x(t,X,G,!1),T.innerText=t,"comprehensive"!==Z.value&&"dental"!==Z.value||o.value!==C.Upselling?k.classList.remove("force-keep-open"):(k.classList.add("force-keep-open"),Z instanceof HTMLSelectElement&&F(k,!0,"warning",`Termin zu Umstellungen sind für Produkt "${Z.options[Z.selectedIndex].text}" nicht vorhergesehen.`))};o.addEventListener("change",e),Z.addEventListener("change",e),J.addEventListener("change",e)}function K(e,t,n){let r=M.Sales;if(e===C.Upselling)r=t===P.English||"comprehensive-expat"===n?M.ExpatUpselling:M.Upselling;else if("dental"!==n){const o=("comprehensive-expat"===n||t===P.English)&&"civil-servant"!==n&&"civil-servant-applicant"!==n;r=e===C.Idd?o?M.ExpatIdd:M.Idd:e===C.FollowUp?o?M.ExpatFollowUp:M.FollowUp:e===C.Signup?o?M.ExpatSignup:M.Signup:e===C.Underwriting?M.Underwriting:e===C.Bap?o?M.ExpatBap:M.Bap:o?M.SalesExpat:M.Sales}else r=e===C.Underwriting?M.Underwriting:M.SalesDental;return r}E.addEventListener("submit",async e=>{if(e.preventDefault(),r)return;if(r=!0,s.validateAll(E).length)return;if(await z.get(o.value))return F(k,!0,"warning","Es besteht bereits ein Termin dieser Terminart!"),void(r=!1);F(k,!1);const n=a(E);_.innerHTML=window.progressText;const i=G.querySelector(`option[value="${n.time}"]`);if(!i)return r=!1,!1;if(Z.value===H.Expat&&J.value===P.German)return F(k,!0,"warning","Expat kann nicht Deutsch sein"),_.textContent="Abschicken",void(r=!1);const l={start:i.dataset.start,end:i.dataset.end};try{const e=await fetch(Oe+"/reschedule/internal",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({appointment_type:o.value,appointment:l,calendar:t,contact_details:{first_name:n.first_name,last_name:n.last_name,email:n.email,landing_page_language:J.value,...n.phone_number&&{phone_number:n.phone_number}},metadata:{product_type:Z.value,...D.lead_id&&{salesforce_lead_id:D.lead_id},...D.opportunity_id&&{salesforce_opportunity_id:D.opportunity_id},...D.signup_service_id&&{signup_service_id:D.signup_service_id},...D.lead_service_id&&{lead_service_id:D.lead_service_id},...D.ottonova_tracking_id&&{ottonova_tracking_id:D.ottonova_tracking_id}}})});if(!e.ok)throw new Error(`${e.status}`);const r=(await e.json()).appointment_id;F(L,!0,"success","Der Termin wurde erfolgreich gebucht"),_.textContent="Abschicken";const a=Be(r);z.set(o.value,a);const i=await a;i&&(U(),u.appendChild(W(i)),$(!0))}catch(c){let e="Es lag ein Problem beim Buchen des Termins vor: "+(c.message||c);"422"===c.message&&(e="Zum Buchen eines Underwriting-Termins muss der Signup Schritt <i>underwriting_pending</i> oder <i>offer_underwriting_appointment</i> sein"),F(k,!0,"danger",e),_.textContent="Erneut versuchen",r=!1,console.error(c)}}
1),E.querySelectorAll("input").forEach(e=>{e.addEventListener("input",()=>{k.classList.contains("is-hidden")||k.classList.contains("force-keep-open")||F(k,!1)})}),E.querySelectorAll("select").forEach(e=>{e.addEventListener("change",()=>{k.classList.contains("is-hidden")||k.classList.contains("force-keep-open")||F(k,!1)})})});const Ne=(new Date).getTime(),De=[{tariffBundle:"economy",tariffName:"Premium Economy",deductible:en?"€500":"500 €",benefits:[en?"Double room incl. head of department":"2-Bett Zimmer inkl. Chefarzt",en?"60 - 80% for dental prostheses":"60 - 80 % für Zahnersatz"]},{tariffBundle:"business2019twin",tariffName:"Business Class",deductible:en?"€500":"500 €",benefits:[en?"Double room incl. head of department":"2-Bett Zimmer inkl. Chefarzt",en?"80 - 90% for dental prostheses":"80 - 90 % für Zahnersatz"]},{tariffBundle:"businesspro2024",tariffName:'Business Class <span class="pro-badge">Pro</span>',deductible:en?"€0":"0 €",benefits:[en?'No-claim bonus <span class="tooltip info" data-tooltip="You have the opportunity to get part of your premiums back (up to 1 annual average monthly premium) if you don\'t claim any benefits other than preventive check-ups (statutory programs), professional dental cleanings and vaccinations (except travel vaccinations) for a year." tabindex="0"></span>':'Beitragsrückerstattung <span class="tooltip info" data-tooltip="Wenn du ein Jahr lang keine Leistungen außer Vorsorgeuntersuchungen (gesetzl. Programme), professionelle Zahnreinigung und Impfungen (außer Auslandsimpfungen) einreichst, erhältst du einen Teil deiner Beiträge (bis zu 1 Jahres-Durchschnitts-Monatsbeitrag) zurückerstattet. "tabindex="0"></span>',en?"Double room incl. head of department":"2-Bett Zimmer inkl. Chefarzt",en?"80 - 90% for dental prostheses":"80 - 90 % für Zahnersatz"]},{tariffBundle:"first2019single",tariffName:"First Class",deductible:en?"€500":"500 €",benefits:[en?"Private room incl. head of department":"1-Bett Zimmer inkl. Chefarzt",en?"90% for dental prostheses":"90 % für Zahnersatz"]},{tariffBundle:"firstproplus2024",tariffName:'First Class <span class="pro-badge">Pro+</span>',deductible:en?"€0":"0 €",benefits:[en?'No-claim bonus <span class="tooltip info" data-tooltip="If you do not submit any claims for a year except for preventive check-ups (statutory programs), professional dental cleaning and vaccinations (except for vaccinations abroad), you will receive a refund of part of your contributions (up to 1 annual average monthly premium)" tabindex="0"></span>':'Beitragsrückerstattung <span class="tooltip info" data-tooltip="Wenn du ein Jahr lang keine Leistungen außer Vorsorgeuntersuchungen (gesetzl. Programme), professionelle Zahnreinigung und Impfungen (außer Auslandsimpfungen) einreichst, erhältst du einen Teil deiner Beiträge zurückerstattet (bis zu 1 Jahres-Durchschnitts-Monatsbeitrag)" tabindex="0"></span>',en?"9 months free of contribution during parental leave":"9 Monate beitragsfrei bei Elterngeldbezug",en?"Private room incl. head of department":"1-Bett Zimmer inkl. Chefarzt",en?"90% for dental prostheses":"90 % für Zahnersatz"]},{tariffBundle:"chi-student-smart",tariffName:"Study Smart",deductible:en?"€0":"0 €",benefits:[en?"Accommodation in double room":"2-Bett Zimmer inkl. Chefarzt",en?"€80 per year for professional dental cleaning":"80 € im Jahr für eine professionelle Zahnreinigung",en?"€100 within 60 months for visual aids":"100 € alle 60 Monate für Sehhilfen",en?"Continuation in another tariff without health check after the studies":"Wechseloption ohne erneute Gesundheitsprüfung nach dem Studium"]},{tariffBundle:"chi-student-protect",tariffName:"Study Protect",deductible:en?"€500":"500 €",benefits:[en?"Accommodation in double room":"2-Bett Zimmer inkl. Chefarzt",en?"€ 125 per year for professional dental cleaning":"125 € im Jahr für eine professionelle Zahnreinigung",en?"€ 550 within 36 months for visual aids":"550 € alle 36 Monate für Sehhilfen",en?"Continuation in another tariff without health check after the studies":"Wechseloption ohne erneute Gesundheitsprüfung nach dem Studium"]}
1,{tariffBundle:"chi-student-free",tariffName:"Study Free",deductible:en?"€0":"0 €",benefits:[en?"Accommodation in double room":"2-Bett Zimmer inkl. Chefarzt",en?"€ 125 per year for professional dental cleaning":"125 € im Jahr für eine professionelle Zahnreinigung",en?"€ 550 within 36 months for visual aids":"550 € alle 36 Monate für Sehhilfen",en?"Continuation in another tariff without health check after the studies":"Wechseloption ohne erneute Gesundheitsprüfung nach dem Studium"]},{tariffBundle:"expat",tariffName:"First Class Expats",deductible:en?"€500":"500 €",benefits:[en?"English-support-team":"Englischsprachiges Support-Team",en?"Dental treatment 100%":"bis zu 100 % für Zahnersatz",en?"Accommodation: 1 bed room":"1-Bett Zimmer inkl. Chefarzt"]}];document.querySelectorAll(".qqc-breakdown-v2-block").forEach(e=>{const t=e.querySelector("form.pkvQQC"),n=t?.querySelector("input.ageInput"),r=t?.querySelector("select.employmentSelect"),o=t?.querySelector("select.incomeSelect");let a,i,s,l,c,d;o&&o.dataset.jaeg&&(a=o.dataset.jaeg,l="30.000",c=o?.querySelector('option[value="over"]'),d=o?.querySelector('option[value="under"]'),i=(Number(a.replace(en?",":".",""))+1).toString(),s=(Number(a.replace(en?",":".",""))-1).toString());const u=t?.querySelector(".tooltip.jaeg"),f=t?.querySelector(".select-wrapper.interest"),m=f?.querySelector("select.interestSelect");let h=e.querySelector(".qqc")?.dataset.initTariffChoice;"expat"===h&&m&&(h="businesspro2024");const g=h;m&&Array.from(m.querySelectorAll("option")).forEach(e=>{e.value===h&&e.setAttribute("selected","")});const v=e.querySelector(".topup-tariff-container"),b=e.querySelector(".topupContainer");let q,L;v&&(q=b?.querySelector(".dental-price"),L=b?.querySelector(".clinic-price"));const w=b?.querySelector(".no-offers .employed"),_=b?.querySelector(".no-offers .self-employed"),T=e.querySelector(".tariff-buttons-wrapper"),A=T.querySelector(".tariff"),x=A?.querySelector(".tariff-name"),C=A?.querySelector(".contribution > div"),P=A?.querySelector(".deductible-bre-gkv-advantage-wrapper"),M=P?.dataset.averageGkvNormal,H=P?.dataset.averageGkvUnder,O=P?.dataset.averageMaxGkv;let I=P?.dataset.maxEmployerKv,B=P?.dataset.maxEmployerPv;I&&B&&(I=parseFloat(I.replace(/[,.]/g,"")),B=parseFloat(B.replace(/[,.]/g,"")));const N=P?.querySelector(".deductible strong"),D=P?.querySelector(".bre");let j=null;D&&(j=D?.querySelector("strong"));const z=A?.querySelector(".otto-list"),$=A?.querySelector(".savings");let W=null,U=null;$&&(W=$?.querySelector(".savings .number"),U=$.querySelectorAll(".tooltip"));const R=A?.querySelector(".no-recommendation");let F=0;const Y=A?.querySelector(".bafog.switch input"),V=A.querySelector(".bafog-text-wrapper");let Z,X,G;V&&(Z=V.querySelector(".under"),X=V.querySelector(".over"),G=V.querySelector(".hr"));const J=backendApiUrl+"/tariff",K=window.matchMedia("(min-width: 400px)"),Q=window.matchMedia("(min-width: 575px)"),ee=window.matchMedia("(min-width: 768px)"),te=e.querySelectorAll("a.btn");let ne,re=!1,oe=parseInt(n.value),ae=!1;async function ie(){if(!le())return void he();const e=n.value;let t;r&&(t=r.value);const a=await async function(e,t){let n;if(o){const r="employed"===t?"43":"42",o="&is_non_eu=1",a=(e<21?"":"&contribution_relief_from_age=67")+"&contribution_relief=100";n=`/otto/quotes?occupational_status=${t}&date_of_birth=${E(e)}&dsa_after_days=${r}&dsa_requested_payout=120${h?.includes("expat")?o:""}${!h?.includes("expat")&&e<56?a:""}&ingress_date=${k()}&tariff_name=${h}&tariff_excess=${h?.includes("pro")?"0":"10"}`}else n=`/otto/student/quotes?date_of_birth=${E(e)}&ingress_date=${k()}&tariff_name=${h}`;try{const e=await fetch(J+n);if(!e.ok)return!1;const t=await e.json(),r=t.find(e=>e.name.includes(h))?.premium||0,o=t.find(e=>e.name.includes("cnci-normal"))?.premium||0;let a=t.map(e=>e.premium),i=0;return a.forEach(e=>{i+=e}),{tariffPremium:i,premiumPlain:r,nursingCareShare:o}}catch(r){return console.error(r),!1}}(parseInt(e),t||void 0);let i=!1,s=!1,l=!1;if("boolean"!=typeof a&&(i=a?.tariffPremium,s=a?.premiumPlain,l=a?.nursingCareShare),"number"==typeof i&&"number"==typeof l){if(r&&"self-employed"===r.value&&"number"==typeof s||!r)i/=100;else if("number"==typeof I&&"number"==typeof B){const e=Math.min((i-l)/2,I),t=Math.min(l/2,B);i=Math.floor(i-(e+t))/100}if(r){let e=M;"self-employed"===r.value?e=O:parseInt(n.value)<23&&(e=H),e&&(F=parseInt(e.replace(/[,.]/g,""))/(e.length<4?1:100));const t=12*(F-i);if($.classList.toggle("no-savings",t<0),t>0&&p(W,t),"number"==typeof s&&h?.includes("pro")&&("employed"===r.value||"self-employed"===r.value)){const e=Math.round(s)/100/1.
11;j&&p(j,e)}}ne=i.toFixed(2),p(C,i),he()}}function se(e){if(e&&(h=e),!le())return void he();z.innerHTML="",ie();const t=De.find(e=>e.tariffBundle===h);if(t){A?.setAttribute("tariff",h);const e=t.tariffName;x.classList.add("move-out"),setTimeout(()=>{x.innerHTML=e,x.classList.remove("move-out")},300),o&&D.classList.toggle("hide",!h?.includes("pro")),N.innerHTML=t.deductible,t.benefits.forEach(e=>{const n=document.createElement("li");n.classList.add("otto-list-item","move-in"),t.tariffBundle.includes("first")||t.tariffBundle.includes("free")?n.classList.add("gold"):t.tariffBundle.includes("expat")&&n.classList.add("expats"),n.innerHTML=e;const r=n.querySelector(".tooltip");r&&ae&&initTooltip(r),z.appendChild(n)});let n=0;z.querySelectorAll("li").forEach(e=>{setTimeout(()=>{e.classList.remove("move-in")},n),n+=150}),ue()}}function le(){const e=parseInt(n.value);return e>17&&e<69&&(!o||"over"===o.value)}async function ce(){const e=await de("dental"),t=await de("clinic");"number"==typeof e&&"number"==typeof t&&L&&q&&(p(L,t),p(q,e))}async function de(e){let t=`${J}/otto/`;t+="clinic"===e?`clinic/quotes?date_of_birth=${E(parseInt(n.value))}`:`dental/tariffs?tariff_name=economy-v2&ingress_date=${k()}&date_of_birth=${E(parseInt(n.value))}&missing_teeth=0&agent_verified_ingress_date_change=0`;try{const n=await fetch(t);if(!n.ok)return!1;const r=(await n.json()).find(t=>t.name===("dental"===e?"tud-economy-v2":"tuc-zweibett"));return!!r&&("dental"===e?r.premium.base:r.premium)/100}catch(r){console.error(r)}}function ue(){v&&(v.style.height=`${o&&"over"!==o.value?b?.offsetHeight:T?.offsetHeight}px`)}function pe(){let e="auto";en&&h?.includes("student")?ee.matches?e="chi-student-smart"===h?"45%":"chi-student-protect"===h?"50%":"auto":Q.matches&&(e="chi-student-smart"===h?"60%":"chi-student-protect"===h?"65%":"auto"):h?.includes("business")||h?.includes("student")||(ee.matches?e="45%":Q.matches?e="60%":K.matches&&(e="70%")),f.style.width=e}function fe(){u.classList.toggle("hide","self-employed"===r.value),w.classList.toggle("active","employed"===r.value),_.classList.toggle("active","self-employed"===r.value);const e="employed"===r.value?a:l;c.innerHTML=en?`over €${e}`:`über ${e}€`,d.innerHTML=en?`under €${e}`:`unter ${e}€`}function me(){const e=parseInt(n.value);if(V&&G&&X&&Z){Z.classList.toggle("hide",!(Y.checked&&e<30)),X.classList.toggle("hide",!(Y.checked&&e>29)),G.classList.toggle("hide",!Y.checked);const t=parseFloat(getComputedStyle(G).borderTopWidth.replace("px",""))+parseFloat(getComputedStyle(G).marginBottom.replace("px",""))+G.offsetHeight,r=(Y.checked&&parseFloat(n.value)<30?Z?.offsetHeight:X?.offsetHeight)+t;V.style.height=Y.checked?r+"px":"0px",v.style.height=`${Y.checked?T?.offsetHeight+r:T?.offsetHeight-r}px`}}function he(){te.forEach(e=>{if(e.setAttribute("data-tr-job_status",Y?"student":r.value),e.setAttribute("data-tr-yob",E(parseInt(n.value)).substring(0,4)),e.setAttribute("data-tr-amount_total",ne),e.setAttribute("data-tr-tariff",h),!Y){"self-employed"!==r.value&&e.setAttribute("data-tr-jaeg_reached","over"===o.value?"1":"0");let t="self-employed"===r.value?"29999":s;"over"===o.value&&(t="self-employed"===r.value?"30001":i),e.setAttribute("data-tr-income",t)}m&&e.setAttribute("data-tr-default_tariff",g)})}function ge(){y({event:"quick_quote_calculated",element_section:e.classList.contains("qqc-hero")?"qqc-breakdown-hero-v2-block":"qqc-breakdown-v2-block",tariff:h,insurance_category:"full",insurance_group:Y?"student":"employee_self-employed"})}window.addEventListener("tooltips-loaded",()=>{ae=!0}),n?.addEventListener("input",()=>{const e=parseInt(n.value);(o||!o&&e>17&&e<39)&&ie(),q&&L&&!b.classList.contains("hidden")&&2===n.value.length&&ce(),le()&&(re||(ge(),re=!0),Y&&(Z?.classList.toggle("hide",!(Y.checked&&e<30)),X?.classList.toggle("hide",!(Y.checked&&e>29))),(e>55&&oe<56||e<56&&oe>55)&&o&&"expat"!==h&&($.classList.toggle("active",parseInt(n.value)<55),R.classList.toggle("active",parseInt(n.value)>55),oe=e,ue()))}),r?.addEventListener("change",()=>
1{ie(),fe(),U&&U.forEach(e=>{e.classList.toggle("active",e.classList.contains(r.value))}),re||(ge(),re=!0)}),o?.addEventListener("change",()=>{se(),async function(){o&&(b?.classList.toggle("hidden","over"===o.value),T?.classList.toggle("hidden","under"===o.value)),q&&L&&!b.classList.contains("hidden")&&ce(),ue()}(),re||(ge(),re=!0)}),m&&m?.addEventListener("change",()=>{se(m.value),h?.includes("student")&&!en||pe(),re||(ge(),re=!0)}),Y&&Y?.addEventListener("change",()=>{me()}),Y&&me(),se(),!m||h?.includes("student")&&!en||pe(),o&&fe(),window.addEventListener("resize",S(()=>{!m||h?.includes("student")&&!en||pe(),Y&&me(),ue()},300)),window.addEventListener("pageshow",()=>{t?.reset()})});const je=window.matchMedia("(max-width: 992px)");document.querySelectorAll(".trust-block-v2").forEach(e=>{const t=e.querySelector(".scroll-nav-container"),n=e.querySelector(".scroll-nav"),r=n?.querySelectorAll("button"),o=(e,n)=>{t?.style.setProperty("--left-opacity",0!==e?"1":"0"),t?.style.setProperty("--right-opacity",e<=n?"1":"0")},a=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"class"===e.attributeName&&e.target instanceof HTMLElement&&e.target.classList.contains("active")){const t=e.target,o=Array.from(r||[]).indexOf(t),a=50;if(0===o)n.scrollTo({left:0,behavior:"smooth"});else if(o===r.length-1)n.scrollTo({left:n.scrollWidth-n.clientWidth,behavior:"smooth"});else{const e=t.offsetLeft,r=e+t.offsetWidth,o=n.scrollLeft,i=o+n.clientWidth;e<o?n.scrollTo({left:e-a,behavior:"smooth"}):r>i&&n.scrollTo({left:r-n.clientWidth+a,behavior:"smooth"})}}})});function i(){const e=(n?.scrollWidth||0)-(t?.scrollWidth||0);e>0?(n?.addEventListener("scroll",t=>o(t.target.scrollLeft,e)),n&&o(n.scrollLeft,e)):(n?.removeEventListener("scroll",t=>o(t.target.scrollLeft,e)),t?.style.setProperty("--left-opacity","0"),t?.style.setProperty("--right-opacity","0"))}console.log("%c ~ scrollNav","background: #d9ff00ff; color: #000000ff; font-size: 14px;",n),n&&a.observe(n,{attributes:!0,attributeFilter:["class"],subtree:!0}),i(),je.addEventListener("change",()=>i()),e.querySelectorAll(".trust-box .quote").forEach(async t=>{if(void 0!==t.dataset.latestRating)try{const n=(await fetch("https://api.trustpilot.com/v1/business-units/5bae2f308d99e600014b32ac/reviews?"+new URLSearchParams({apikey:"8XnfBBjyvj01VkZP3xMGtX3W0QAvU39G",tagValue:t.dataset.tag||"",language:en?"en":"de",stars:"5",perPage:"1"})).then(e=>e.json())).reviews[0];t.querySelector(".author strong").textContent=n.consumer.displayName,t.querySelector(".text-quote").textContent="„"+n.text+"”",e.querySelector(".trust-slider")?.slider?.updateContainerHeight()}catch{return}})}),j.polyfill(),window.websiteUtils={postToLead:i,serializeForm:a,validate:s,slides:{slideUp:d,slideDown:c,slideToggle:l},animatePriceField:p,getCaptchaToken:function(e){return z.get(e)?.controller.getToken()},postToLeadWithCaptcha:async function(e,t,n){const r=z.get(n);return f(e,t,{captcha:r?.controller,requireCaptcha:r?.requireCaptcha??!1})}},window.dispatchEvent(new Event("websiteUtilsReady")),document.querySelectorAll("form.captcha-enabled").forEach(e=>{const t=e.querySelector(".captaincaps");if(!t)return;const n=e.querySelector('[type="submit"], .submitter'),r=e.querySelector('input[type="email"]'),o="en"===document.documentElement.lang?"en":"de",{controller:a,requireCaptchaOnSubmit:i}=m({form:e,mountElement:t,emailInput:r,locale:o,onShowWidget:()=>{t.classList.remove("is-hidden"),n?.classList.add("is-hidden")},onHideWidget:()=>{t.classList.add("is-hidden"),n?.classList.remove("is-hidden")}});a&&(z.set(e,{controller:a,requireCaptcha:i}),e.addEventListener("input",()=>{a.hasUsableToken()||a.startIfNeeded()},{once:!0}))})}}});
2//# sourceMappingURL=general.min-legacy.DWYsTswK.js.map

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.