PageSourceSearch

https://loopearplugs.in/cdn/shop/t/26/assets/vite_compiled-swiper-order-note.DY5MaLJJ.min.js

js loopearplugs.in collected 2026-09-30 12:51:13 UTC 1,915 bytes, 1 lines download raw bytes

1import{S as a}from"./vite_compiled-swiper-component.Bswzh60d.min.js";class u extends a{constructor(){super(),this.boundHandleSlideClick=this.handleSlideClick.bind(this)}getSwiperOptions(){return{...super.getSwiperOptions(),slidesPerView:1.35,spaceBetween:16,loop:!1,cssMode:!1,mousewheel:{enabled:!0,forceToAxis:!0,releaseOnEdges:!0}}}afterSwiperInit(){super.afterSwiperInit(),this.setupClickHandlers()}setupClickHandlers(){const r=this.querySelectorAll(".swiper-slide");this.slideClickHandlers=[],r.forEach((s,t)=>{s.style.cursor="pointer";const n=s.querySelector(".order-notes__input-card, .order-notes__image-card"),e=s.querySelector("textarea");if(!n)return;n.style.cursor="pointer";const l=d=>{const i=this.swiper?.activeIndex??0;t!==i&&this.boundHandleSlideClick(t)};n.addEventListener("click",l);let c=null,o=null;e&&(c=d=>{const i=this.swiper?.activeIndex??0;document.activeElement!==e&&t!==i?(this.boundHandleSlideClick(t),setTimeout(()=>{e.focus()},100)):document.activeElement!==e&&t===i&&(d.preventDefault(),setTimeout(()=>{e.focus()},0))},e.addEventListener("mousedown",c),o=d=>{const i=this.swiper?.activeIndex??0;document.activeElement!==e&&t!==i?l():document.activeElement!==e&&t===i&&e.focus()},e.addEventListener("click",o)),this.slideClickHandlers.push({slide:s,card:n,textarea:e,handler:l,mousedownHandler:c,textareaClickHandler:o})})}handleSlideClick(r){if(!this.swiper)return;const s=this.swiper.activeIndex;r!==s&&this.swiper.slideTo(r)}disconnectedCallback(){this.slideClickHandlers&&(this.slideClickHandlers.forEach(({slide:r,card:s,textarea:t,handler:n,mousedownHandler:e,textareaClickHandler:l})=>{r.style.cursor="",s&&(s.removeEventListener("click",n),s.style.cursor=""),t&&(e&&t.removeEventListener("mousedown",e),l&&t.removeEventListener("click",l))}),this.slideClickHandlers=[]),super.disconnectedCallback()}}customElements.define("swiper-order-note",u);export{u as SwiperOrderNote};

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.