1"use strict";(self.NiveaXwebpackJsonp=self.NiveaXwebpackJsonp||[]).push([[9872],{59492:(t,e,i)=>{i.r(e),i.d(e,{default:()=>s});class s{constructor(t,e,i,s){this.element=t,this.link=Array.from(this.element.getElementsByTagName("a")),this.radius=e-.66*this.element.offsetWidth,this.rootAngle=this.angle=i,this.foldAngle=s,this.oneDegInPX=this.radius*Math.sin(Math.PI/180),this.height=this.element.offsetHeight,this.originRect=this.element.getBoundingClientRect(),document.documentElement.addEventListener("niveax:navigation:leftaligned",t=>this.leftAligned=t.detail.leftAligned)}setup(){return this.angle=this.rootAngle-(this.element.offsetTop+this.element.offsetHeight/2)/this.oneDegInPX,this.translate(this.angle),this.element.cni=this,this}move(t){var e=this.angle-t/this.oneDegInPX;return this.translate(e),this}translate(t){return this.element.style.transform=`rotate(${this.leftAligned?-t:t}deg)translate(${this.leftAligned?-this.radius:this.radius}px)rotate(${this.leftAligned?t:-t}deg)`,this}reset(){return this.element.classList.remove("nx-mob-nav__item--show"),this.element.classList.remove("nx-mob-nav__item--open"),this.element.removeAttribute("style"),this.originRect=this.element.getBoundingClientRect(),this}fadeIn(){return this.element.classList.add("nx-mob-nav__item--show"),this}fadeOut(){return this.element.classList.remove("nx-mob-nav__item--show"),this}open(){return this.element.classList.add("nx-mob-nav__item--open"),this}close(){return this.element.classList.remove("nx-mob-nav__item--open"),this}fadeLink(t,e){var i,s;return e=e||0,this.originRect.bottom+e>t.bottom?(i=this.originRect.bottom-t.bottom,s=Math.max(Math.min(1-(i+e)/40,1),0),this.link.forEach(t=>t.style.opacity=s.toString()),this):(i=this.originRect.top-t.top,s=Math.max(Math.min(1+(i+e)/40,1),0),this.link.forEach(t=>t.style.opacity=s.toString()),this.element.classList.toggle("nx-mob-nav__item--hidden",0==s),this)}}}}]); 2//# sourceMappingURL=/dist/NiveaX/./modules/CircleNavigationItem.d88aa2ed.js.7a894eb6.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.