PageSourceSearch

https://www.waterdrop.com/cdn/shop/t/30/assets/swiper-slider-base-DfzbbA0q.js

js waterdrop.com collected 2026-09-24 08:57:05 UTC 2,832 bytes, 7 lines download raw bytes

1import o from"./custom-html-element-Cddc4xm8.js";import{g as h}from"./theme-C25wr5Yb.js";import{a as r}from"./customer-portal-R96TstYq.js";import{c as n}from"./exports-NHIMKJG4.js";import"./logger-pamvzmAu.js";import"./event-zU-Y6ZHH.js";class _ extends o{connectedCallback(){this._swiper=null,this.nextEl=this.querySelector(".js-next"),this.prevEl=this.querySelector(".js-prev");const{breakpoints:e,breakpointsValues:t}=h();this.breakpoints=e,this.breakpointsValues=t,this.query=window.matchMedia(this.breakpoints.md),this._initializeListeners(),this._checkBreakpointAndInitSwiper()}_initializeListeners(){var e;this._handleBreakpointListener=this._handleBreakpoint.bind(this),(e=this.query)==null||e.addEventListener("change",this._handleBreakpointListener)}_checkBreakpointAndInitSwiper(){this._shouldInitSwiper()&&this.initSwiper()}_handleBreakpoint(){this._shouldInitSwiper()&&!this._swiper?(this.initSwiper(),this._resetOpacity()):!this._shouldInitSwiper()&&this._swiper&&(this._swiper.destroy(),this._swiper=null)}_getCommonSwiperOptions(){var a,p;const e={direction:"horizontal",a11y:{enabled:!0,firstSlideMessage:r("firstSlideMessage"),lastSlideMessage:r("lastSlideMessage"),nextSlideMessage:r("nextSlideMessage"),prevSlideMessage:r("prevSlideMessage"),slideRole:"region"},watchOverflow:!0,navigation:{nextEl:this.nextEl,prevEl:this.prevEl},pagination:{el:this.querySelector(".js-pagination"),type:"fraction",clickable:!0,renderFraction:(i,l)=>`
2          <p class="flex gap-4 items-center mb-0">
3            <span class="${i} p1"></span>
4            <span class="p1 text-gray-700">/</span>
5            <span class="${l} p1 text-gray-700"></span>
6          </p>
7        `}},t=this.dataset||{};if(t.spaceBetween){const i=parseInt(t.spaceBetween,10);Number.isNaN(i)||(e.spaceBetween=i)}const s={};if(t.spaceBetweenMd){const i=parseInt(t.spaceBetweenMd,10);!Number.isNaN(i)&&((a=this.breakpointsValues)!=null&&a.md)&&(s[this.breakpointsValues.md]={spaceBetween:i})}if(t.spaceBetweenLg){const i=parseInt(t.spaceBetweenLg,10);!Number.isNaN(i)&&((p=this.breakpointsValues)!=null&&p.lg)&&(s[this.breakpointsValues.lg]={spaceBetween:i})}return Object.keys(s).length&&(e.breakpoints=Object.assign({},e.breakpoints||{},s)),e}_resetOpacity(){const e=this.querySelectorAll(this._getSlideSelector());!e||e.length===0||Array.from(e).forEach(t=>{t.style.opacity=1})}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.query)==null||e.removeEventListener("change",this._handleBreakpointListener),this._swiper&&(this._swiper.destroy(),this._swiper=null)}_shouldInitSwiper(){return n(new Error("_shouldInitSwiper method must be implemented")),!1}initSwiper(){n(new Error("initSwiper method must be implemented"))}_getSlideSelector(){return n(new Error("_getSlideSelector method must be implemented")),""}}export{_ as default};

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.