PageSourceSearch

https://www.telkomsel.com/themes/custom/new_telkomsel/assets/respo…vigation-menu-with-action-nav.min.js?tm6ozn

js telkomsel.com collected 2026-10-01 10:12:24 UTC 3,071 bytes, 1 lines download raw bytes

1"use strict";(()=>{function u(s=document){try{let t=s instanceof HTMLElement?s:document.body;return new r(t)}catch(t){return console.warn("NavigationMenuWithActionNav init failed:",t),null}}var c=class c{constructor(t){this.element=t,t.dataset.carouselInit!=="1"&&(t.dataset.carouselInit="1",c.instances.add(this),this.init(),this.handleMenu(),this.handleScroll())}init(){let t=this.element.querySelector(".splide");t&&this.waitForSplide().then(()=>{this.splideInstance=new window.Splide(t,{perPage:4,preloadPages:4,arrows:!1,autoplay:!1,rewind:!1,interval:0,speed:0,lazyLoad:"nearby",height:"auto",mediaQuery:"min",breakpoints:{1366:{height:"auto",dots:!1,perPage:5,preloadPages:5},768:{height:"auto",arrows:!1,perPage:4,preloadPages:4}}}).mount()})}waitForSplide(){return new Promise(t=>{if(window.Splide){t();return}let i=()=>{window.Splide?t():setTimeout(i,50)};i()})}destroy(){c.instances.delete(this),this.element.dataset.carouselInit="",this.splideInstance&&this.splideInstance.destroy()}handleMenu(){document.querySelectorAll(".navigation-menu-with-action-nav__item").forEach(n=>{n.addEventListener("click",()=>{let e=n.getAttribute("data-target");if(document.querySelectorAll(".navigation-menu-with-action-nav__item").forEach(o=>o.classList.remove("active-item")),e){let o=document.getElementById(e);if(n.classList.add("active-item"),o){let m=o.getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:m,behavior:"smooth"})}}})});let t=n=>{document.querySelectorAll(".navigation-menu-with-action-nav__item").forEach(e=>{e.classList.remove("active-item"),e.getAttribute("data-target")===n&&e.classList.add("active-item")})},i=[];document.querySelectorAll(".navigation-menu-with-action-nav__item").forEach(n=>{let e=n.getAttribute("data-target");if(e){let a=document.getElementById(e);a&&i.push({id:e,el:a})}});let l=120;window.addEventListener("scroll",()=>{let n="";for(let{id:e,el:a}of i)a.getBoundingClientRect().top<=l&&(n=e);n&&t(n)},{passive:!0})}handleScroll(){var a;let t=document.querySelector(".navigation-menu-with-action-nav");if(!t)return;let i=document.createElement("div");i.classList.add("navigation-menu-with-action-nav__placeholder"),(a=t.parentElement)==null||a.insertBefore(i,t);let l=t.getBoundingClientRect().height,n=t.getBoundingClientRect().top+window.scrollY,e=()=>{let o=window.scrollY>=n,d=t.classList.contains("active-nav");o&&!d?(i.style.height=`${l}px`,t.classList.add("active-nav")):!o&&d&&(t.classList.remove("active-nav"),requestAnimationFrame(()=>{i.style.height="0px"}))};window.addEventListener("scroll",e,{passive:!0}),e()}};c.instances=new Set;var r=c;function v(){try{if(!(document.querySelector("[data-navigation-menu-with-action-nav]")||document.querySelector(".navigation-menu-with-action-nav")||document.querySelector("navigation-menu-with-action-nav")))return;u(document)||console.warn("initNavigationMenuWithActionNav returned false")}catch(s){console.error("init failed",s)}}typeof window!="undefined"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",v,{once:!0}):v());})();

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.