PageSourceSearch

https://devis.pro/vite/assets/navbar_tabs_controller-Q5fD1kTp.js

js devis.pro collected 2026-09-24 13:37:40 UTC 1,865 bytes, 2 lines download raw bytes

1var r=Object.defineProperty;var o=(i,t,e)=>t in i?r(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var a=(i,t,e)=>o(i,typeof t!="symbol"?t+"":t,e);import{C as n}from"./application-k8eSbXnI.js";class c extends n{connect(){this.locked=!1,this.resetIndicatorTimeout=null,this.renderIndicator()}disconnect(){this.hasIndicatorTarget&&this.indicatorTarget.remove()}lock(){this.locked=!0}renderIndicator(){if(!this.hasActiveLinkTarget)return;const t=document.createElement("div");t.dataset.navbarTabsTarget="indicator",t.style.width="".concat(this.activeLinkTarget.offsetWidth,"px"),t.style.height="3px",t.style.left="".concat(this.activeLinkTarget.offsetLeft,"px"),t.style.top="".concat(this.activeLinkTarget.offsetTop+this.activeLinkTarget.offsetHeight-10,"px"),t.classList.add("bg-[--active-navbar-item]","absolute","rounded-full","transition-all","duration-300"),this.element.append(t);const e=this.activeLinkTarget.getBoundingClientRect().right-this.element.getBoundingClientRect().right;e>0&&this.element.scrollBy(e,0)}moveIndicator(t){if(!this.hasActiveLinkTarget||!this.hasIndicatorTarget)return;const e=t.type==="scroll",s=t.type==="mouseenter"?t.target:this.activeLinkTarget;t.type==="mouseenter"?(this.resetIndicatorTimeout&&clearTimeout(this.resetIndicatorTimeout),this._moveIndicator(s)):e?(this.indicatorTarget.classList.remove("duration-300","transition-all"),this._moveIndicator(s),this.indicatorTarget.classList.add("duration-300","transition-all")):this.resetIndicatorTimeout=setTimeout(()=>{this._moveIndicator(s)},300)}_moveIndicator(t){this.hasIndicatorTarget&&(this.locked||(this.indicatorTarget.style.width="".concat(t.offsetWidth,"px"),this.indicatorTarget.style.left="".concat(t.offsetLeft,"px")))}}a(c,"targets",["link","activeLink","indicator"]);export{c as default};
2//# sourceMappingURL=navbar_tabs_controller-Q5fD1kTp.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.