HEX
Server: Apache
System: Linux br80.hostgator.com.br 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User: bloga741 (1102)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home1/bloga741/test.cleannacional.com.br/Scripts/runtime-module-anchors.07e9c88e2f2abfa677af.js
!function(){document&&document.currentScript&&document.currentScript.src;(window.webpackJsonpruntime=window.webpackJsonpruntime||[]).push([[4],{q6BR:function(e,t,r){"use strict";r.r(t);class n{constructor(e){let{elementsSelector:t,listener:r,threshold:n}=e;this.onIntersection=e=>{e.forEach(e=>{e.isIntersecting?this.currentIntersecting.add(e.target):this.currentIntersecting.delete(e.target)}),this.listener(this.currentIntersecting)},this.elementSelector=t,this.listener=r,this.threshold=n,this.observer=new IntersectionObserver(this.onIntersection,{threshold:this.threshold}),this._init()}destroy(){this.elementsToMonitor.forEach(e=>{this.observer.unobserve(e)})}_init(){this.elementsToMonitor=document.querySelectorAll(this.elementSelector)||[],this.currentIntersecting=new Set([]),this.elementsToMonitor.forEach(e=>{this.observer.observe(e)})}reinit(){this.destroy(),this._init()}}n.displayName="ElementIntersectionObserver";let i,s;class o{constructor(){this.onObserverUpdated=e=>{this.currentIntersecting=Array.from(e)},this.onScroll=()=>{if(document.querySelector(".layout-drawer_open"))return;if(!this.currentIntersecting)return;const e=this.currentIntersecting.filter(e=>{const t=document.scrollingElement||document.documentElement;return(e.offsetTop-t.scrollTop)/window.innerHeight<.35});this.transitioning||(this.transitioning=!0,window.requestAnimationFrame(()=>{this.navigationWidgets.forEach(t=>{(t.querySelectorAll("a")||[]).forEach(t=>{t.classList.remove("dmNavItemSelected"),function(e){let{intersectingElements:t,href:r}=e;return t[t.length-1]&&r.includes(t[t.length-1].getAttribute("id"))}({href:t.getAttribute("href"),intersectingElements:e})&&function(e){e.classList.add("dmNavItemSelected"),function e(t,r){if(t.matches("nav"))return r;t.matches(".unifiednav__item-wrap")&&r.push(t);return e(t.parentNode,r)}(e,[]).forEach(t=>{const r=t.querySelector("a");e&&r.classList.add("dmNavItemSelected")})}(t)}),this.transitioning=!1}),function(e){e.length||Array.from(document.querySelectorAll(".currentPage")||[]).forEach(e=>{e.href.includes("#")||e.classList.add("dmNavItemSelected")})}(e)}))},this.destroy=()=>{this.observer.destroy()},this._init()}reInitMarkers(){this._init()}_init(){if(!document.querySelectorAll(".unifiednav"))return this.observer&&this.observer.destroy(),void document.removeEventListener("scroll",this.onScroll,{passive:!0});document.removeEventListener("scroll",this.onScroll,{passive:!0}),document.addEventListener("scroll",this.onScroll,{passive:!0}),this.observer=function(){let{elementsSelector:e,listener:t=(()=>{}),threshold:r=.2}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({elementsSelector:e,listener:t,threshold:r})}({elementsSelector:"[data-anchor]",threshold:.4,listener:this.onObserverUpdated}),this.navigationWidgets=Array.from(document.querySelectorAll(".unifiednav"))||[]}}function c(){return s=window.rtCommonProps["feature.flag.mark.anchors"]?(i=new o,i):null,Promise.resolve()}function l(){s&&s.reInitMarkers()}function h(){s&&s.clean()}o.displayName="AnchorMarker",r.d(t,"init",(function(){return c})),r.d(t,"clean",(function(){return h})),r.d(t,"onPageChange",(function(){return l}))}}])}();