PageSourceSearch

https://www.transporeon.com/cache-buster-1788358318/dist/anchor-navigation.js

js transporeon.com collected 2026-09-24 09:37:42 UTC 1,753 bytes, 1 lines download raw bytes

1import{S as d}from"./assets/swiper-core-D0PNu2gI.js";import{N as l}from"./assets/navigation-CHY7BKBM.js";import{s as h}from"./assets/helper-qsFk-eJT.js";import"./assets/create-element-if-not-defined-JgnD-RhU.js";class v{constructor(t){this.anchorNavigation=t,this.slidePrev=this.anchorNavigation.querySelector(".anchor-navigation__slider-pagination-prev"),this.slideNext=this.anchorNavigation.querySelector(".anchor-navigation__slider-pagination-next"),this.slider=void 0}init(){if(!this.slidePrev&&!this.slideNext)return;const t=document.querySelectorAll("[data-section]"),i=this.anchorNavigation.querySelector(".anchor-navigation__slider"),e=i.querySelector(".anchor-navigation__slider-wrapper"),n=[];t==null||t.forEach(o=>{const r=o.getAttribute("data-section");if(!r)return;const a=document.createElement("div"),s=document.createElement("div");a.classList.add("swiper-pagination-slide"),a.classList.add("swiper-slide"),a.classList.add("anchor-navigation__slide"),a.setAttribute("data-section",r),s.innerHTML=r,s.classList.add("anchor-navigation__slide-content"),a.appendChild(s),e.appendChild(a),n.push(a)}),this.initAnchorSlider(i),this.addAnchorClickEvent(n,t)}initAnchorSlider(t){t&&(this.slider=new d(t,{slidesPerView:"auto",modules:[l],navigation:{disabledClass:"is--disabled",prevEl:this.slidePrev,nextEl:this.slideNext}}))}addAnchorClickEvent(t,i){t.forEach(e=>e.addEventListener("click",()=>{var o;const n=(o=Array.from(i))==null?void 0:o.find(r=>r.getAttribute("data-section")===e.getAttribute("data-section"));n&&h(0,n.offsetTop,1e3)}))}}window.addEventListener("content.loaded",c=>{var e;const t=(e=c.detail)==null?void 0:e.context;if(!t)return;const i=t.querySelectorAll(".anchor-navigation");i==null||i.forEach(n=>{new v(n).init()})});

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.