1import{B as o,f as i}from"./ui-CicS3nIv.js";import"./preload-helper-C1FmrZbK.js";import"./_commonjsHelpers-C4iS2aBk.js";class h extends o{constructor(){super()}init(t){return this.el=t,this.link=this.el.querySelector("[data-js-onboarding-link]"),this.teaserList=this.el.querySelector("[data-js-onboarding--list]"),this.total=this.el.querySelector("[data-js-onboarding-total]"),this.scrollButton=this.el.querySelector("[data-js-onboarding-scrollButton]"),this.bottoms=this.el.querySelectorAll("[data-js-onboarding-bottom]"),this.equalizeBottomHeight(),this.changeLink(),this.bindListeners(),this}equalizeBottomHeight(){let t=0;i.measure(()=>{this.bottoms.forEach(e=>{t=Math.max(t,e.offsetHeight)})}),i.mutate(()=>{this.el.style.setProperty("--bottom-minheight",`${t}px`),this.el.classList.add("is-measured")})}bindListeners(){this.on("change",this.onChangeEvent),this.scrollButton&&this.on(this.scrollButton,"click",t=>this.onScrollClick(t)),this.on(window,"resize",this.onWindowResize)}onWindowResize(){this.el.style.removeProperty("--bottom-minheight"),this.equalizeBottomHeight()}onChangeEvent(t){t.preventDefault(),this.changeCardStyling(t),this.changeLink()}isInputChecked(t){return t.checked}changeCardStyling(t){const e=t.target,s=e.closest(".OnboardingOption--inner");this.isInputChecked(e)?s.classList.add("is-checked"):s.classList.remove("is-checked")}changeLink(){const t=new URLSearchParams(new FormData(this.el)),e=this.link.getAttribute("data-base-url"),s=this.el.getAttribute("data-language");this.link.querySelector("a").setAttribute("href",`${e}?${t.toString()}&ident=NONE&lang=${s}`)}onScrollClick(t){t.preventDefault();const e=this.teaserList.offsetLeft;this.scrollButton.classList.add("is-stopped"),window.scrollTo({top:e,behavior:"smooth"})}}export{h as default}; 2//# sourceMappingURL=Onboarding-Bc7IZwHj.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.