var e;vr.tcCookieConsentState=new class{constructor(){this.name="TC_PRIVACY_CENTER",this.essentialsID="1",this.analyticsID="2",this.marketingID="3"}get(){let e;try{e=ogr.cookies.get(this.name)}catch(t){e=""}return"string"==typeof e?e:""}getSettingValue(e){const t=this.get();return!!(t.length&&t.search(e)>-1)}hasCookie(){return this.get().length>0}hasEssentials(){return!0===window.vr.debugMode||this.getSettingValue(this.essentialsID)}hasAnalytics(){return this.getSettingValue(this.analyticsID)}hasMarketing(){return this.getSettingValue(this.marketingID)}},e=window,(isNaN(ogr.resizeHelperDebounceTimeOut)||ogr.resizeHelperDebounceTimeOut<0)&&(ogr.resizeHelperDebounceTimeOut=250),ogr.resizeHelper=new class{constructor(t){this.resizes=[],this.media="desktop";const i=e.matchMedia("(max-width: 412px)"),s=e.matchMedia("(max-width: 599px)"),n=e.matchMedia("(max-width: 979px)"),o=e.matchMedia("(min-width: 980px)"),r=()=>{let e="desktop";this.plus=!1,i.matches?(e="small",this.plus=!0):s.matches?e="small":n.matches?e="medium":o.matches&&(e="desktop"),this.media=e};r(),this.resizes.push(r),ogr.onDomReady(r),e.addEventListener("resize",ogr.debounce((()=>{const e=this.resizes.length;for(let t=0;t{const e=document.getElementById("logo");if(!e)return;const t="/privatkunden.html",i="Volksbank Raiffeisenbank",s=`${i}`,n=document.querySelector(".logo__link");if([1,6,8,9].indexOf(window.vr.ak)>-1){const o=[s,``,``];n?(o.shift(),n.innerHTML=n.innerHTML+o.join(""),n.classList.add("logo__bvr-mitgliedskampagne")):e.innerHTML=`${o.join("")}`}else n||(e.innerHTML=`${s}`)})(),(()=>{const e=document.getElementsByClassName("section-teaser");for(let t=0,i=e.length;t-1||!s.dataset.src&&s.src.search(/\.gif/gi)>-1)&&i.classList.add("js-hasgif")}})(),(e=>{const t=[];e.vr=e.vr||{},e.vr.trigger=(e,i)=>{t.forEach((t=>{"function"==typeof t.fn&&("string"==typeof t.key&&t.key===e||t.key instanceof RegExp&&t.key.test(e))&&(void 0!==i?setTimeout(t.fn.bind(null,i),0):setTimeout(t.fn.bind(null),0))}))},e.vr.on=(e,i)=>"function"==typeof i?(t.push({key:e,fn:i}),t.length-1):-1,e.vr.off=(e,i)=>{for(let s=0;s{const i=e.querySelector(".top-nav"),s=e.querySelector("#header"),n=e.querySelector("#diveloginlayer-template"),o=e.querySelector("#navmobilelist-template");if(s&&o&&o.content&&s.append(o.content.cloneNode(!0)),!i)return;n&&n.content&&i.append(n.content.cloneNode(!0));const r=i.querySelector(".top-nav__btn--login"),a=i.querySelector("#diveloginlayer"),l=a.querySelector(".close");if(t&&8===t.ak)return r.remove(),void a.remove();function c(e,i){i&&i.preventDefault(),e||a.classList.contains("is-open")?(r.setAttribute("aria-expanded",!1),r.classList.remove("is-active"),a.classList.remove("is-open")):(r.setAttribute("aria-expanded",!0),r.classList.add("is-active"),a.classList.add("is-open"),t.trigger("layer::opened::login",{id:a.id}))}r&&a&&l&&(t.on(/^layer::opened::(?!login).*$/,(()=>c(!0))),t.on("layer::open::login",(()=>c())),r.addEventListener("click",(e=>c(!1,e))),l.addEventListener("click",(e=>c(!0,e))))})(document,window.vr),(e=>{const t=e.createElement("div");t.className="sticky-header",e.body.prepend(t)})(document),((e,t,i,s)=>{const n=t.location.href,o=e.body.classList.contains("errorpage");t.vr=t.vr||{};let r="/";i.search(/internetneu/)>-1&&(r=i.split("/website/")[0],r+="/website/"),r=location.origin+r,t.vr.absolutePath=r,t.vr.mnav=t.vr.absolutePath+"homepage.jnav.html",t.vr.debugMode=s.search(/(gasfdbvr|localhost|8099)/gi)>-1,o&&n.search(/filialen/gi)>-1&&e.location.replace("https://www.vr.de/privatkunden/service/filialen-a-z/a.html");const a=e.querySelector(".branch-office-contact");if(n.search(/\/standorte\//gi)>-1&&t.location.search.search(/openform=true/)>-1&&a&&a.classList.add("is-open"),e.body.classList.contains("geldautomatendetailseite")&&n.search(/geldautomaten/gi)>-1&&[].forEach.call(e.querySelectorAll(".checked-list > li"),(e=>{"Bankcard Service"===e.textContent.trim()&&(e.textContent="BankCard ServiceNetz")})),[].forEach.call(e.querySelectorAll("#secondary-page-area .jsb_sticky"),(e=>{e.classList.remove("jsb_","jsb_sticky")})),[].forEach.call(e.getElementsByTagName("img"),(e=>{const t=e.parentNode;("string"!=typeof e.getAttribute("data-src")||e.getAttribute("data-src").trim())&&("string"!=typeof e.getAttribute("src")||e.getAttribute("src").trim())||e.remove(),t&&t.children&&!t.children.length&&/(^|\s)figure($|\s)/i.test(t.className)&&t.remove()})),n.search(/karriere/)>-1&&e.body.classList.add("karriere-unterseite"),-1===n.search(/karriere\/schueler(\/next)?\.html/))return;const l=e.querySelectorAll(".module-teaserlist--view-tile a");[].forEach.call(l,(e=>{0!==e.href.indexOf(t.location.origin)&&e.setAttribute("target","_blank")}))})(document,window,location.pathname,location.hostname),(e=>{const t=e.querySelector(".nav__list--lvl-2");if(t){const i=t.children[t.children.length-1];if(i&&1===i.nodeType&&-1!==i.getAttribute("data-nav").indexOf("filialsuche")){i.id="filialsuche",i.setAttribute("data-nav","filialsuche");const t=i.querySelector("a");if(t){t.className="nav__link--lvl-2 icons-navigation-store";const i=e.createDocumentFragment(),s=ogr.svg.createSvgElement("icon-location");s.append(ogr.svg.createUseElement("#icon-location")),i.append(s);const n=e.createElement("span");for(n.setAttribute("class","icons-navigation-store__title");t.childNodes.length;)n.append(t.childNodes[0]);i.append(n),t.append(i)}}}})(document),((e,t,i)=>{new class{constructor(){this.navMobileList=e.querySelector(".navmobilelist"),this.navMobileListItems=[].slice.call(this.navMobileList.querySelectorAll(".navmobilelist__item")),this.navMobileListLinks=[].slice.call(this.navMobileList.querySelectorAll(".navmobilelist__link")),this.navMobileListContent=e.querySelector(".navmobilelist__content"),this.navMobileListContentItems=[].slice.call(this.navMobileListContent.querySelectorAll(".navmobilelist__content__item")),this.initContents(),this.navMobileList.addEventListener("click",(e=>{e.preventDefault();const t=e.target.closest(".navmobilelist__link");t&&(this.showHide(t.dataset.type),i.trigger("layer::opened::menu"))})),i.on(/^layer::opened::(?!menu).*$/,(()=>this.closeAll()))}initContents(){this.navMobileListContentItems.forEach(((e,t)=>{const i=this.navMobileListLinks[t].dataset.type;"search"===i&&this.getSearch(e,i),"menu"===i&&this.initMenu(e,i)}))}initMenu(e){const s=e.querySelector(".dive-login__menu-button");s&&(s.onclick=e=>{e.preventDefault(),i.trigger("layer::open::login")});const n=e.querySelector(".mobile-nav");n&&t.vr&&i.ausgabekanal&&8===i.ausgabekanal&&(n.classList.remove("jsb_mobilenav"),n.classList.add("jsb_mobilenavak8"))}getSearch(t,i){let s=e.getElementById("top-search");if(!s){const t=e.querySelector(".navmobilelist__item--"+i);return void(t&&t.parentNode.removeChild(t))}const n=s.cloneNode(!0);n.id="mobile-search-form",n.classList.remove("is-hidden");const o=n.querySelector(".text-input");o&&(o.id="mobile-search",o.removeAttribute("data-jsb"),o.className="text-input");const r=n.getElementsByTagName("ul"),a=r.length;for(let e=0;ee.classList.remove("is-active");this.navMobileListContentItems.forEach(t),this.navMobileListItems.forEach(t);const i=e.querySelector(".navmobilelist__content--menu");if(i){[].slice.call(i.querySelectorAll(".nav-mobile .open")).forEach((e=>{e.setAttribute("data-open","false"),e.classList.remove("open")}))}}}})(document,window,window.vr),((e,t)=>{let i=e.querySelector(".omnikanal-hero__video"),s=0,n=ogr.isMobile;if(!i)return;const o=e.getElementById("header"),r=e.querySelector(".omnikanal-hero");if(!o||!r)return;const a=e.querySelector(".sticky-header");if(n&&"video"===i.nodeName.toLowerCase()){const t=e.createElement("img");t.classList.add("omnikanal-hero__video"),t.setAttribute("alt",""),t.setAttribute("src",i.getAttribute("poster")),i.parentNode.replaceChild(t,i),i=t}function l(e){let l,c=t.innerWidth,d=0;const h=e||!1,u=t.getComputedStyle(o);if(n&&s===c&&!h)return;if(s=c,a){const e=t.getComputedStyle(a);d=Number(e.height.replace(/px|em|%/gi,""))}l=Math.ceil(t.innerHeight-Number(u.height.replace(/px|em|%/gi,""))-d)+1,l<280&&(l=280),r.style.height=`${l}px`,i.style.width="auto",i.style.height=`${l}px`;const m=t.getComputedStyle(i);Number(m.width.replace(/px|em|%/gi,""))l(!0);t.addEventListener("load",c),e.body.addEventListener("pageupdate",c),l(!0)})(document,window),(()=>{const e=[];function t(){"desktop"===ogr.resizeHelper.getMedia()&&e.forEach((e=>{const t=e.innerwrapper.getBoundingClientRect(),i=e.top,s=Math.ceil(t.left+t.width),n=e.bottom,o=Math.ceil(t.left);e.clip.style.clip=`rect(${i}px, ${s}px, ${n}px, ${o}px)`}))}[".profibroker",".account-change"].forEach((t=>{const i=document.querySelector(t);if(!i)return;const s=i.querySelector(".omnikanal-figure");s&&e.push({clip:s,wrapper:i,innerwrapper:i.querySelector(".profibroker"===t?".grid-50-50":".ym-gbox-left"),top:".profibroker"===t?140:95,bottom:".profibroker"===t?550:750})})),e.length&&(t(),ogr.resizeHelper.add(t))})(),(()=>{const e=document.querySelector(".quickstart");e&&(e.classList.remove("is-hidden"),e.addEventListener("mousedown",(e=>{const t=e.target.closest("a");let i="Mobile_Klick-Schnelleinstiege_";if(t){const e=t.textContent.trim();switch(e){case"Filiale finden":i+="Filiale";break;case"Geldautomat finden":i+="Geldautomat";break;case"Karte sperren":i+="Kartesperren";break;default:i+=e.split(" ").join("_")}"undefined"!=typeof tc_events&&tc_events.click(i)}})))})(),window.vr=window.vr||{},window.vr.contactcentralSwitch="#MP_contactcentral_switch#",window.vr.smartAppSwitch="#MP_smartapp_switch#",(e=>{if(4===e.ak||5===e.ak)return;const t=document.getElementById("servicefooter");if(t){const e=t.querySelector(".service-navigation .nav-service-1 li:last-child");e&&e.addEventListener("click",(e=>(e.preventDefault(),tC&&tC.privacyCenter&&tC.privacyCenter.showPrivacyCenter())))}})(window.vr),(e=>{const t=e.body.classList.contains("activate-sticky-faq")?e.getElementById("sticky-faq--tpl"):e.getElementById("sticky-dive--tpl"),i=new DOMParser;try{const s=Array.from(i.parseFromString(t.textContent,"text/html").body.children);e.body.append(...s)}catch(e){console.log(e)}})(document);