1import i from"./zoom-service-CPA3EI0_.js";class r{constructor(t){this.element=t,this.initialSize=this.element.offsetWidth,this.default=16,this.zoomService=i.getInstance(),this.zoomService.zoomFactor=this.element.offsetWidth/this.default,this.zoomLevels=[{factor:1.75,class:"text-zoom-175"},{factor:1.5,class:"text-zoom-150"},{factor:1.25,class:"text-zoom-125"},{factor:1,class:"text-zoom-100"}],this.initialize()}setZoomClass(){this.zoomService.zoomFactor=this.element.offsetWidth/this.default,this.zoomLevels.forEach(t=>{document.body.classList.remove(t.class),this.zoomService.zoomFactor>=t.factor&&document.body.classList.add(t.class)})}initialize(){this.setZoomClass(),new ResizeObserver(s=>{for(const o of s){const{target:e}=o;e instanceof HTMLElement&&e.offsetWidth!==this.initialSize&&(this.initialSize=e.offsetWidth,this.setZoomClass())}}).observe(this.element)}}export{r as default};
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.