PageSourceSearch

https://bernstein-badshop.de/cdn/shop/t/2/assets/product.js?v=517027527606071011785918118

js bernstein-badshop.de collected 2026-09-26 02:25:58 UTC 6,239 bytes, 13 lines download raw bytes

1if(!customElements.get("product-section")){class a extends HTMLElement{constructor(){super(),this.header=document.querySelector(".header"),this.swiper=void 0,this.gallery_videos=this.querySelectorAll(".product__gallery video");var e=this.querySelector(".product__content-inner"),t=this.querySelector(".product__content");e&&t&&(this.sticky=new hcSticky(e,{stickTo:t,top:24,bottom:24,responsive:{991:{disable:!0}}}));const i=window.matchMedia("(min-width: 992px)");(this.media=i).addEventListener("change",this.mediaChangeHandler=()=>this.onResize(i)),this.gallery_videos.forEach(e=>{e.addEventListener("mouseenter",()=>{i.matches&&e.play()}),e.addEventListener("mouseleave",()=>{i.matches&&this.gallery_videos.forEach(e=>e.pause())})}),this.querySelectorAll('a[href="#reviews"]').forEach(t=>{t.addEventListener("click",e=>{e.preventDefault();var e=new URL(t.href),e=document.querySelector(e.hash);e&&(e=e.getBoundingClientRect(),window.scrollTo({top:e.top,behavior:"smooth"}))})}),window.addEventListener("variantChange",this.variantChangeHandler=t=>{var e,i,s,r,a,o,d,n,l,c=document.querySelector(".wishlist_button");c&&(c.setAttribute("data-variant-id",t.detail.id),n=(o=window.VariantData?.find(e=>e.id==t.detail.id))?.image?.src,l=o?.url,e=o?.title,i=o?.subtitle,s=o?.price,r=o?.oldPrice,a=o?.lowestPrice,o=o?.productHandle,c.setAttribute("data-img",n),c.setAttribute("data-url",l),c.setAttribute("data-title",e),c.setAttribute("data-subtitle",i),c.setAttribute("data-price",s),c.setAttribute("data-old-price",r),c.setAttribute("data-lowest-price",a),c.setAttribute("data-handle",o)),d=t.detail.id,n=JSON.parse(localStorage.getItem("wishlist"))||[],(l=document.querySelector(".wishlist_button"))&&d&&(n=n.some(e=>e.variantId==d),l.innerHTML=n?`<svg width="40" height="40" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
2                            <g transform="scale(0.9) translate(1.33, 1.33)">
3                                <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5
4                                        2 5.42 4.42 3 7.5 3c1.74 0 3.41 0.81 4.5 2.09
5                                        C13.09 3.81 14.76 3 16.5 3
6                                        19.58 3 22 5.42 22 8.5
7                                        c0 3.78-3.4 6.86-8.55 11.54L12 21.35z" fill="black"/>
8                            </g>
9                        </svg>`:`<svg width="40" height="40" viewBox="0 0 26 22" fill="none" xmlns="http://www.w3.org/2000/svg">
10                            <g transform="scale(0.9) translate(1.33, 1.33)">
11                            <path d="M23.8185 6.71922C23.8185 5.93296 23.716 5.24926 23.5109 4.66811C23.3058 4.08696 23.0408 3.61691 22.7161 3.25797C22.3913 2.89902 21.9982 2.617 21.5367 2.41189C21.0752 2.20678 20.6308 2.05294 20.2034 1.95039C19.7761 1.84783 19.3061 1.81365 18.7933 1.84783C18.2805 1.88202 17.7507 2.00166 17.2037 2.20677C16.6567 2.41189 16.1269 2.71955 15.6141 3.12978C15.1013 3.54 14.6911 3.88185 14.3834 4.15533C14.0758 4.42881 13.7852 4.71939 13.5117 5.02705C13.3408 5.24926 13.11 5.36036 12.8194 5.36036C12.5289 5.36036 12.2981 5.24926 12.1272 5.02705C11.8879 4.77066 11.5973 4.48009 11.2555 4.15533C10.9136 3.83057 10.5034 3.48872 10.0248 3.12978C9.54622 2.77083 9.01634 2.46316 8.4352 2.20677C7.85405 1.95039 7.32418 1.83074 6.84558 1.84783C6.36699 1.86492 5.89695 1.89911 5.43545 1.95039C4.97395 2.00166 4.52954 2.1555 4.10222 2.41189C3.67491 2.66828 3.28178 2.9503 2.92283 3.25797C2.56389 3.56564 2.29895 4.03568 2.12803 4.66811C1.9571 5.30054 1.85455 5.98424 1.82036 6.71922C1.82036 8.30883 2.71772 10.001 4.51245 11.7957L12.8194 19.7951L21.1264 11.7957C22.9212 10.001 23.8185 8.30883 23.8185 6.71922ZM25.6389 6.71922C25.6389 8.82161 24.545 10.9667 22.3571 13.1546L13.4604 21.7436C13.2895 21.9145 13.0758 22 12.8194 22C12.5631 22 12.3494 21.9145 12.1785 21.7436L3.25614 13.1289L2.87156 12.7444C2.70063 12.5734 2.43569 12.2572 2.07675 11.7957C1.71781 11.3342 1.39305 10.8727 1.10247 10.4112C0.811898 9.94972 0.555509 9.37712 0.333306 8.69341C0.111102 8.00971 0 7.35164 0 6.71922C0 4.61683 0.606787 2.97594 1.82036 1.79655C3.03394 0.617164 4.70901 0.018924 6.84558 0.00183139C7.42673 0.00183139 8.02497 0.104384 8.64031 0.309495C9.25564 0.514607 9.82824 0.796636 10.3581 1.15558C10.888 1.51452 11.3495 1.83928 11.7426 2.12986C12.1357 2.42043 12.4947 2.74519 12.8194 3.10414C13.1613 2.76228 13.5202 2.43752 13.8963 2.12986C14.2723 1.82219 14.7338 1.49743 15.2808 1.15558C15.8277 0.813728 16.4003 0.531699 16.9986 0.309495C17.5968 0.0872916 18.1951 -0.0152612 18.7933 0.00183139C20.9299 0.00183139 22.605 0.600071 23.8185 1.79655C25.0321 2.99303 25.6389 4.63392 25.6389 6.71922Z" fill="currentColor"></path>
12                            </g>
13                        </svg>
13`),void 0!==this.swiper&&this.swiper.update()}),window.addEventListener("scroll",this.scrollHandler=()=>{this.onScroll()}),this.onResize(i)}disconnectedCallback(){this.sticky&&"function"==typeof this.sticky.destroy&&this.sticky.destroy(),this.media&&this.mediaChangeHandler&&this.media.removeEventListener("change",this.mediaChangeHandler),this.variantChangeHandler&&window.removeEventListener("variantChange",this.variantChangeHandler),this.scrollHandler&&window.removeEventListener("scroll",this.scrollHandler),void 0!==this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=void 0)}onResize(e){e.matches?(window.disableStickyHeader=!0,void 0!==this.swiper&&(this.swiper.destroy(),this.swiper=void 0,this.gallery_videos.forEach(e=>e.pause()))):(window.disableStickyHeader=!1,void 0===this.swiper&&(e=this.querySelector(".swiper-pagination"),this.swiper=new Swiper(this.querySelector(".product__gallery .swiper-container"),{loop:!1,grabCursor:!0,speed:500,slidesPerView:1,watchSlidesProgress:!0,watchOverflow:!0,pagination:{el:e},breakpoints:{576:{spaceBetween:16,slidesPerView:"auto"},768:{spaceBetween:24,slidesPerView:"auto"}},on:{slideChange:e=>{this.gallery_videos.forEach(e=>e.pause()),e.slides[e.activeIndex].querySelector("video")&&e.slides[e.activeIndex].querySelector("video").play()}}})))}onScroll(){window.matchMedia("(max-width: 991px)").matches||(window.lastScroll>this.offsetHeight?window.disableStickyHeader=!1:window.disableStickyHeader=!0)}}customElements.define("product-section",a)}

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.