PageSourceSearch

https://www.faber-castell.es/dist/FC.Ecom/modules/GallerySlider.48cdc797.js

js faber-castell.es collected 2026-10-02 13:25:44 UTC 2,356 bytes, 1 lines download raw bytes

1"use strict";(self["FC.EcomwebpackJsonp"]=self["FC.EcomwebpackJsonp"]||[]).push([[8978],{80858:(e,t,i)=>{i.r(t),i.d(t,{default:()=>a});var n=i(60516),s=i(42120),o={mouseDrag:!0,speed:400,responsive:{320:{controls:!1,items:1,nav:!0,gutter:3},1024:{controls:!0,items:1,nav:!1,gutter:8}}},r=function(){function e(e,t){void 0===t&&(t=(0,s.Zw)(o)),this.element=e,this.options=this.getSliderOptions(t),this.initSlider(e)}return e.setup=function(t){void 0===t&&(t='[data-module="GallerySlider"]'),Array.from(document.querySelectorAll(t)).filter((function(e){return!e.dataset.moduleInitialized})).forEach((function(t){new e(t),t.dataset.moduleInitialized="true"}))},e.prototype.initSlider=function(e){var t=this;this.options.container=this.element.querySelector(".gallery-slider__items"),this.options.controlsContainer=this.element.querySelector(".slider-controls"),this.slider=(0,n.W)(this.options),this.slider.events.on("indexChanged",(function(i){t.setSlideTabIndex(i),t.setSliderNavLabels(e,i)})),this.setSlideTabIndex(this.slider.getInfo()),this.setSliderNavLabels(e,this.slider.getInfo())},e.prototype.setSlideTabIndex=function(e){var t=e.slideItems[e.index];t.querySelectorAll("button, a, .animated-image").forEach((function(e){e.setAttribute("tabindex","0")})),Array.from(e.slideItems).filter((function(e){return e!==t})).forEach((function(e){e.querySelectorAll("button, a, img, .animated-image").forEach((function(e){e.setAttribute("tabindex","-1")}))}))},e.prototype.setSliderNavLabels=function(e,t){var i,n=e.getAttribute("data-slide-label"),s=e.getAttribute("data-current-slide-label");i=t.slideCountNew>t.slideCount?t.index-1<0?t.slideCount-1:t.index>t.slideCount?t.index-1-t.slideCount:t.index-1:t.index-1,Array.from(t.navItems).forEach((function(e,t){var o=n+" "+(t+1);t===i&&(o+=" ("+s+")"),e.setAttribute("aria-label",o)}));var o=t.container.closest("section[data-slideof-label]"),r=null==o?void 0:o.dataset.slideofLabel,a=o.querySelector(".tns-liveregion");a&&(a.innerHTML=r.format('<span class="current">'+(i+1)+"</span>",'<span class="total">'+t.slideCount+"</span>"))},e.prototype.getSliderOptions=function(e){var t,i=this.element.dataset.options;if(e.container=this.element,i)try{t=JSON.parse(i)}catch(e){console.warn("Bad data-options for slider")}return"object"==typeof t?Object.assign(e,t):Object.assign(e)},e}();const a=r;new r.setup}}]);

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.