PageSourceSearch

https://www.mustela.es/cdn/shop/t/508/assets/ClrzSlider.min.D1SbtX6x.js

js mustela.es collected 2026-09-26 10:27:52 UTC 3,104 bytes, 2 lines download raw bytes

1import{S as c}from"./splide.esm.min.BUlXYiLa.js";import{s as d}from"./configClrzApp.min.DYZwY6Ws.js";import{s as u}from"./main.min.Sms5vrd4.js";import{D as p}from"./DeferWebComponent.min.BrKhvwE6.js";import"./Component.min.CipuJ8e-.js";import"./_commonjsHelpers.min.Cpj98o6Y.js";import"./Device.min.CYJawtrK.js";import"./FixScroll.min.DIV4s2JF.js";import"./getData.min.DzeQKNSg.js";class f extends p{constructor(){super()}ready(){this.defaultOptions=d.default,this.options=this.dataset.options?d[this.dataset.options]:{},this.options={...this.defaultOptions,...this.options},this.dataset.destroy=="true"&&(this.options.destroy=!0),this.initSlider()}initSlider(){var l;this.options.direction||(this.options.direction=document.documentElement.dir==="rtl"?"rtl":"ltr");const i=new c(this,this.options);if(i.on("overflow",function(t){t||(i.options={arrows:!1,pagination:!1,drag:!1})}),i.mount(),u(this),this.hasAttribute("data-slider-a11y-articles")){const t="a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])",e=s=>{s.querySelectorAll('a[aria-hidden="true"][href]').forEach(o=>{o.setAttribute("tabindex","-1")})},a=()=>{this.querySelectorAll(".splide__slide").forEach(s=>{const o=s.classList.contains("is-visible");s.querySelectorAll(t).forEach(n=>{if(n.matches('a[aria-hidden="true"]')){n.setAttribute("tabindex","-1");return}o?n.removeAttribute("tabindex"):n.setAttribute("tabindex","-1")})})},r=()=>{requestAnimationFrame(()=>{a(),e(this)})};r(),["moved","resized","updated"].forEach(s=>{i.on(s,r)}),i.on("destroy",()=>{this.querySelectorAll(".splide__slide").forEach(s=>{s.querySelectorAll(t).forEach(o=>{if(o.matches('a[aria-hidden="true"]')){o.setAttribute("tabindex","-1");return}o.removeAttribute("tabindex")})})})}if(this.dataset.positionArrows=="true"&&this.querySelector(".splide__slide img")){const t=((l=this.querySelector(".splide__slide img"))==null?void 0:l.offsetHeight)/2;this.querySelectorAll(".splide__arrow-wrapper").forEach(e=>{e.style.top=t+"px"})}this.classList.contains("splide--timeline")&&(document.querySelectorAll(".js-dates").forEach(t=>{t.addEventListener("click",()=>{const e=Number(t.dataset.index)-1;i.go(e)})}),i.on("move",function(t){const e=t+1;document.querySelector(".js-dates.is-active").classList.remove("is-active"),document.querySelector('.js-dates[data-index="'+e+'"]').classList.add("is-active")})),this.classList.contains("splide--strate-hero")&&i.on("active",function(t){const e=t.slide.dataset.paginationColor;i.root.style.setProperty("--pagination-color",e)}),this.querySelectorAll(".splide__slide").forEach(function(t){const e=t.querySelector(".js-stop-drag-slider"),a=t.querySelectorAll(".js-drag-slider");e&&(e.addEventListener("click",function(){i.options={drag:!1},this.closest(".splide__list.remove-transform")&&(this.closest(".splide__list.remove-transform").style.transform="")}),a.forEach(function(r){r.addEventListener("click",function(){i.options={drag:!0}})}))})}}customElements.get("clrz-slider")||customElements.define("clrz-slider",f);
2//# sourceMappingURL=ClrzSlider.min.D1SbtX6x.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.