PageSourceSearch

https://elvie.com/cdn/shop/t/24/assets/testimonials-h9cRz-5G.js

js elvie.com collected 2026-10-01 10:18:21 UTC 2,494 bytes, 1 lines download raw bytes

1import{b as c,r as h,n as m,t as g,_ as p,u as f}from"./index-Cn-q3e7r.js";import{c as u,r as d}from"./evx.es-D_-Lbk8t.js";import{i as _}from"./intersection-watcher-Bc9PMyTN.js";import{d as l}from"./delay-offset-BYAArl0V.js";import{s as v}from"./shouldAnimate-DivGpKBN.js";import{g as b}from"./media-queries-CokWIw5y.js";const i={content:".testimonials__item-content > *",image:".testimonials__item-product-image",imageCaption:".testimonials__item-product-title",item:".animation--item"},w={imageRight:"testimonials__item--image-placement-right"},B=t=>{const e=[];c(t,w.imageRight)?(e.push(i.content),e.push(i.image),e.push(i.imageCaption)):(e.push(i.image),e.push(i.imageCaption),e.push(i.content)),l(t,e,2),l(t,[i.item])},o={item:".testimonials__item",swiper:".swiper",navigationNext:".testimonials__navigation-button--next",navigationPrev:".testimonials__navigation-button--prev",productImage:".testimonials__item-product-image"};h("testimonials",{onLoad(){this.events=[],this.items=g(o.item,this.container),this.itemsContainer=m(o.swiper,this.container),v(this.container)&&(this.itemAnimations=this.items.map(t=>B(t)),this.observer=_(this.container)),this.items.length>1?p(async()=>{const{Swiper:t,Navigation:e,EffectFade:s}=await import("./swiper-BYGuTQ1t.js");return{Swiper:t,Navigation:e,EffectFade:s}},[],import.meta.url).then(({Swiper:t,Navigation:e,EffectFade:s})=>{const n={modules:[e,s],autoHeight:!0,slidesPerView:1,effect:"fade",loop:!0,fadeEffect:{crossFade:!0},grabCursor:!0,navigation:{nextEl:o.navigationNext,prevEl:o.navigationPrev},breakpoints:{720:{spaceBetween:42}},on:{slideChangeTransitionEnd(){const a=this.slides;setTimeout(function(){a.forEach(r=>{r.toggleAttribute("inert",!r.classList.contains("swiper-slide-active"))})},50)}}};window.matchMedia(b("below-720")).matches&&(n.effect="slide",n.slidesPerView="auto"),this.carousel=new t(this.itemsContainer,n),this.setMobileButtonOffset(),d("testimonials:initialized")}):this.items.length===1&&f(this.items[0],"swiper-slide-visible")},setMobileButtonOffset(){const t=m(o.productImage,this.container),s=34/2,a=t.offsetHeight/2+s;this.container.style.setProperty("--mobile-button-offset",`${a}px`)},handleBlockSelect(t){this.carousel.slideToLoop(parseInt(t,10))},onBlockSelect({target:t}){const{index:e}=t.dataset;this.carousel?this.handleBlockSelect(e):this.events.push(u("testimonials:initialized",()=>{this.handleBlockSelect(e)}))},onUnload(){var t;this.events.forEach(e=>e()),(t=this.observer)==null||t.destroy()}});

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.