well-waterfall 1.1.8 → 1.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/index.html +28 -0
- package/package.json +5 -7
- package/src/types/env.d.ts +1 -0
- package/tsconfig.json +4 -3
- package/vite.config.ts +34 -0
- package/src/types/webpack-env.d.ts +0 -1
- package/vite.config.js +0 -41
- package/webpack.config.js +0 -46
package/dist/index.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
translate3d(${T}, ${p}, ${A}px)
|
|
3
3
|
rotateZ(${o.rotate?f?-D:D:0}deg)
|
|
4
4
|
scale(${O})
|
|
5
|
-
`;if(o.slideShadows){let C=n.querySelector(".swiper-slide-shadow");C||(C=we("cards",n)),C&&(C.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}n.style.zIndex=-Math.abs(Math.round(l))+c.length;const y=Ie(o,n);y.style.transform=I}},setTransition:c=>{const d=e.slides.map(f=>me(f));d.forEach(f=>{f.style.transitionDuration=`${c}ms`,f.querySelectorAll(".swiper-slide-shadow").forEach(o=>{o.style.transitionDuration=`${c}ms`})}),Be({swiper:e,duration:c,transformElements:d})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}const Pl=[al,rl,nl,ll,ol,dl,cl,fl,ul,pl,ml,Tl,hl,El,gl,Sl,bl,Ll,yl,Il,Ol,Cl,Ml];te.use(Pl);function V(t,e,s){const i=t.getAttribute(e)?.trim();if(!(!i||i===s))return i}function k(t,e,s){const i=t.getAttribute(e)?.trim();if(!i)return;const a=Number(i);if(!(isNaN(a)||a===s))return a}function x(t,e,s){const i=t.getAttribute(e)?.trim()?.toLowerCase();if(i){if(i==="true")return s===!0?void 0:!0;if(i==="false")return s===!1?void 0:!1}}function Dl(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function _t(t){if(typeof t!="object"||t===null)return t;for(const e in t){const s=t[e];s==null?delete t[e]:typeof s=="object"&&s!==null&&!Dl(s)&&(_t(s),Object.keys(s).length===0&&delete t[e])}return t}function Nl(t,e,s){const i=t.filter(a=>a.name===e).map(a=>a.swiper);return s&&console.log(`📊 Found ${i.length} matching swiper(s) for "${e}"`),i}const he="waterfall",xl="waterfall-preload",Gl="waterfall-postload",vt="waterfall-debug-mode",Bl="waterfall-advanced-debug-mode",zl="waterfall-a11y",Rt="waterfall-a11y-container-message",bt="waterfall-a11y-container-role",Lt="waterfall-a11y-container-role-description-message",yt="waterfall-a11y-enabled",It="waterfall-a11y-first-slide-message",Ot="waterfall-a11y-id",Ct="waterfall-a11y-item-role-description-message",Mt="waterfall-a11y-last-slide-message",Pt="waterfall-a11y-next-slide-message",Dt="waterfall-a11y-notification-class",Nt="waterfall-a11y-pagination-bullet-message",xt="waterfall-a11y-prev-slide-message",Gt="waterfall-a11y-scroll-on-focus",Bt="waterfall-a11y-slide-label-message",zt="waterfall-a11y-slide-role",$t="waterfall-centered-slides-lmobile",Ht="waterfall-slides-per-view-lmobile",Vt="waterfall-slides-per-group-lmobile",kt="waterfall-space-between-lmobile",Ft="waterfall-centered-slides-tablet",Wt="waterfall-slides-per-view-tablet",$l="waterfall-slides-per-group-tablet",Yt="waterfall-space-between-tablet",Ut="waterfall-centered-slides-desktop",Xt="waterfall-slides-per-view-desktop",qt="waterfall-slides-per-group-desktop",jt="waterfall-space-between-desktop",Kt="waterfall-centered-slides-large",Zt="waterfall-slides-per-view-large",it="waterfall-slides-per-group-large",Qt="waterfall-space-between-large",Jt="waterfall-centered-slides-xlarge",es="waterfall-slides-per-view-xlarge",ts="waterfall-slides-per-group-xlarge",ss="waterfall-space-between-xlarge",ze="waterfall-controller",is="waterfall-controller-by",as="waterfall-controller-inverse",Hl="waterfall-effect-crossfade",rs="waterfall-coverflow-depth",ns="waterfall-coverflow-modifier",ls="waterfall-coverflow-rotate",os="waterfall-coverflow-scale",ds="waterfall-coverflow-slide-shadows",cs="waterfall-coverflow-stretch",fs="waterfall-flip-limit-rotation",us="waterfall-flip-slide-shadows",ps="waterfall-cube-shadow",ms="waterfall-cube-shadow-offset",Ts="waterfall-cube-shadow-scale",hs="waterfall-cube-slide-shadows",Es="waterfall-cards-per-slide-offset",gs="waterfall-cards-per-slide-rotate",Ss="waterfall-cards-rotate",ws="waterfall-cards-slide-shadows",As="waterfall-allow-slide-next",_s="waterfall-allow-slide-prev",vs="waterfall-allow-touch-move",Rs="waterfall-auto-height",bs="waterfall-breakpoints-base",Ls="waterfall-center-insufficient-slides",ys="waterfall-centered-slides",Vl="waterfall-centered-slides-bounds",Is="waterfall-container-modifier-class",Os="waterfall-create-elements",Cs="waterfall-css-mode",Ms="waterfall-direction",Ps="waterfall-edge-swipe-detection",Ds="waterfall-edge-swipe-threshold",Ns="waterfall-effect",xs="waterfall-enabled",Gs="waterfall-events-prefix",Bs="waterfall-focusable-elements",zs="waterfall-follow-finger",$s="waterfall-grab-cursor",Hs="waterfall-height",Vs="waterfall-init",ks="waterfall-initial-slide",Fs="waterfall-lazy-preload-prev-next",Ws="waterfall-lazy-preloader-class",Ys="waterfall-long-swipes",Us="waterfall-long-swipes-ms",Xs="waterfall-long-swipes-ratio",kl="waterfall-loop-mode",qs="waterfall-loop-add-blank-slides",js="waterfall-loop-additional-slides",Ks="waterfall-loop-prevents-sliding",Zs="waterfall-max-backface-hidden-slides",Qs="waterfall-nested",Js="waterfall-no-swiping",ei="waterfall-no-swiping-class",ti="waterfall-no-swiping-selector",si="waterfall-normalize-slide-index",ii="waterfall-observe-parents",ai="waterfall-observe-slide-children",ri="waterfall-observer",ni="waterfall-data-one-way-movement",li="waterfall-passive-listeners",oi="waterfall-prevent-clicks",di="waterfall-prevent-clicks-propagation",ci="waterfall-prevent-interaction-on-transition",fi="waterfall-resistance",ui="waterfall-resistance-ratio",pi="waterfall-resize-observer",Fl="waterfall-rewind",mi="waterfall-round-lengths",Ti="waterfall-run-callbacks-on-init",hi="waterfall-set-wrapper-size",Ei="waterfall-short-swipes",gi="waterfall-simulate-touch",Si="waterfall-slide-active-class",wi="waterfall-slide-class",Ai="waterfall-slide-blank-class",_i="waterfall-slide-fully-visible-class",vi="waterfall-slide-next-class",Ri="waterfall-slide-prev-class",bi="waterfall-slide-to-clicked-slide",Li="waterfall-slide-visible-class",yi="waterfall-slides-offset-after",Ii="waterfall-slides-offset-before",Oi="waterfall-slides-per-group",Ci="waterfall-slides-per-group-auto",Mi="waterfall-slides-per-group-skip",Pi="waterfall-slides-per-view",Di="waterfall-space-between",Ni="waterfall-speed",xi="waterfall-swipe-handler",Gi="waterfall-swiper-element-node-name",Bi="waterfall-threshold",zi="waterfall-touch-angle",$i="waterfall-touch-events-target",Hi="waterfall-touch-move-stop-propagation",Vi="waterfall-touch-ratio",ki="waterfall-touch-release-on-edges",Fi="waterfall-touch-start-force-prevent-default",Wi="waterfall-touch-start-prevent-default",Yi="waterfall-unique-nav-elements",Ui="waterfall-update-on-window-resize",Xi="waterfall-url",qi="waterfall-user-agent",Wl="waterfall-virtual-translate",ji="waterfall-watch-overflow",Ki="waterfall-watch-slides-progress",Zi="waterfall-width",Qi="waterfall-wrapper-class",Ji="waterfall-hash-replace-state",ea="waterfall-hash-watch-state",ta="waterfall-history-keep-query",sa="waterfall-history-key",ia="waterfall-history-replace-state",aa="waterfall-history-root",ra="waterfall-keyboard-enabled",na="waterfall-keyboard-only-in-viewport",la="waterfall-keyboard-page-up-down",oa="waterfall-mouse-enabled",da="waterfall-mouse-events-target",ca="waterfall-mouse-force-to-axis",fa="waterfall-mouse-invert",ua="waterfall-mouse-no-mouse-wheel-class",pa="waterfall-mouse-release-on-edges",ma="waterfall-mouse-sensitivity",Ta="waterfall-mouse-threshold-delta",ha="waterfall-mouse-threshold-time",Ea="waterfall-grid-rows",ga="waterfall-grid-fill",Sa="waterfall-navigation-disabled-class",wa="waterfall-navigation-enabled",Aa="waterfall-navigation-hidden-class",_a="waterfall-navigation-hide-on-click",at="waterfall-navigation-lock-class",va="waterfall-navigation-navigation-disabled-class",Ra="waterfall-pagination-type",Yl="waterfall-pagination-bullet-class",ba="waterfall-pagination-bullet-active-class",La="waterfall-pagination-clickable",ya="waterfall-pagination-clickable-class",Ia="waterfall-pagination-current-class",Oa="waterfall-pagination-dynamic-bullets",Ca="waterfall-pagination-dynamic-main-bullets",Ma="waterfall-pagination-enabled",Pa="waterfall-pagination-hidden-class",Da="waterfall-pagination-hide-on-click",Na="waterfall-pagination-horizontal-class",Ul="waterfall-pagination-lock-class",xa="waterfall-pagination-modifier-class",Ga="waterfall-pagination-pagination-disabled-class",Ba="waterfall-pagination-progressbar-fill-class",za="waterfall-pagination-progressbar-opposite",$a="waterfall-pagination-total-class",Ha="waterfall-pagination-vertical-class",Va="waterfall-autoplay-mode",ka="waterfall-smooth-autoplay",Fa="waterfall-delay",Wa="waterfall-disable-on-interaction",Ya="waterfall-reverse-direction",Ua="waterfall-pause-on-mouse-enter",Xa="waterfall-stop-on-last-slide",Xl="waterfall-wait-for-transition",qa="waterfall-free-mode-enabled",ja="waterfall-free-mode-minimum-velocity",Ka="waterfall-free-mode-momentum",Za="waterfall-free-mode-momentum-bounce",Qa="waterfall-free-mode-momentum-bounce-ratio",Ja="waterfall-free-mode-momentum-ratio",er="waterfall-free-mode-momentum-velocity-ratio",tr="waterfall-free-mode-sticky",ql="waterfall-scrollbar-drag-class",sr="waterfall-scrollbar-drag-size",ir="waterfall-scrollbar-draggable",ar="waterfall-scrollbar-enabled",rr="waterfall-scrollbar-hide",nr="waterfall-scrollbar-horizontal-class",lr="waterfall-scrollbar-lock-class",or="waterfall-scrollbar-scrollbar-disabled-class",dr="waterfall-scrollbar-vertical-class",cr="waterfall-scrollbar-snap-on-release",$e="waterfall-thumbs",fr="waterfall-thumbs-auto-scroll-offset",ur="waterfall-thumbs-multiple-active-thumbs",pr="waterfall-slide-thumb-active-class",mr="waterfall-thumbs-container-class",Tr="waterfall-add-slide",hr="waterfall-add-index",Er="waterfall-append-slide",gr="waterfall-prepend-slide",Sr="waterfall-remove-slide",wr="waterfall-remove-index",jl="waterfall-remove-all-slides",Kl="waterfall-zoom",Zl="waterfall-zoom-enabled",Ar="waterfall-zoom-container-class",_r="waterfall-zoom-limit-to-original-size",vr="waterfall-zoom-max-ratio",Rr="waterfall-zoom-min-ratio",br="waterfall-zoom-pan-on-mouse-move",Lr="waterfall-zoom-toggle",yr="waterfall-zoomed-slide-class",Ql="waterfall-zoom-fade",Ir="waterfall-parallax-enabled",Jl="data-swiper-parallax",eo="data-swiper-parallax-x",to="data-swiper-parallax-y",so="data-swiper-parallax-scale",io="data-swiper-parallax-opacity",ao="data-swiper-parallax-duration",Or="waterfall-playback-mode",ce="waterfall-el",Cr="pagination",Mr="pagination-bullet",ro="pagination-bullet-active",no="waterfall-navigation",Pr="navigation-next",Dr="navigation-prev",Nr="scrollbar",xr="scrollbar-drag",Gr="slide-count";function lo(t,e,s){t.allowSlideNext=x(e,As,!0),t.allowSlidePrev=x(e,_s,!0),t.disabledClass=V(e,Sa,"swiper-button-disabled"),t.enabled=x(e,wa),t.hiddenClass=V(e,Aa,"swiper-button-hidden"),t.hideOnClick=x(e,_a,!1),t.lockClass=V(e,at,"swiper-button-lock"),t.navigationDisabledClass=V(e,va,"swiper-navigation-disabled"),t.navigation={nextEl:`[${he}='${s}'] [${ce}=${Pr}]`,prevEl:`[${he}='${s}'] [${ce}=${Dr}]`}}function oo(t,e){t.breakpointsBase=V(e,bs,"window"),t.breakpoints={478:{centeredSlides:x(e,$t),slidesPerView:k(e,Ht),slidesPerGroup:k(e,Vt),spaceBetween:k(e,kt)},767:{centeredSlides:x(e,Ft),slidesPerView:k(e,Wt),slidesPerGroup:k(e,it),spaceBetween:k(e,Yt)},991:{centeredSlides:x(e,Ut),slidesPerView:k(e,Xt),slidesPerGroup:k(e,qt),spaceBetween:k(e,jt)},1280:{centeredSlides:x(e,Kt),slidesPerView:k(e,Zt),slidesPerGroup:k(e,it),spaceBetween:k(e,Qt)},1440:{centeredSlides:x(e,Jt),slidesPerView:k(e,es),slidesPerGroup:k(e,ts),spaceBetween:k(e,ss)}}}function co(t,e){const s=e.querySelector(`[${ce}=${Cr}]`);if(!s)return;const i=V(e,Ra),a=e.querySelector(`[${ce}=${Mr}]`);t.pagination={bulletActiveClass:V(e,ba,"swiper-pagination-bullet-active"),bulletClass:a?.getAttribute("class")?.trim()||"swiper-pagination-bullet",bulletElement:a?.tagName?.toLowerCase()||"span",clickable:x(e,La,!1),clickableClass:V(e,ya,"swiper-pagination-clickable"),currentClass:V(e,Ia,"swiper-pagination-current"),dynamicBullets:V(e,Oa,"swiper-pagination-current"),dynamicMainBullets:k(e,Ca,1),el:s||null,enabled:x(e,Ma),hiddenClass:V(e,Pa,"swiper-pagination-hidden"),hideOnClick:x(e,Da,!0),horizontalClass:V(e,Na,"swiper-pagination-horizontal"),lockClass:V(e,at,"swiper-pagination-lock"),modifierClass:V(e,xa,"swiper-pagination-"),paginationDisabledClass:V(e,Ga,"swiper-pagination-disabled"),progressbarFillClass:V(e,Ba,"swiper-pagination-progressbar-fill"),progressbarOpposite:V(e,za,"swiper-pagination-progressbar-opposite"),renderBullet:r(),totalClass:V(e,$a,"swiper-pagination-total"),type:c(),verticalClass:V(e,Ha,"swiper-pagination-vertical")};function r(){let d=null;return i==="numberBullets"&&(d=(f,o)=>`<span class="${o}">${f+1}</span>`),i==="bullets"&&(d=(f,o)=>`<span class="${o}"></span>`),d}function c(){return i==="numberBullets"||i==="bullets"?"bullets":i==="fraction"?"fraction":i==="progressbar"?"progressbar":i==="custom"?"custom":"bullets"}}function fo(t,e){const s=e.querySelector(`[${ce}=${Nr}]`);if(!s)return;const i=s?.querySelector(`[${ce}=${xr}]`);t.scrollbar={dragClass:i?.getAttribute("class")||"",dragSize:V(e,sr,"auto"),draggable:x(e,ir,!1),el:s||null,enabled:x(e,ar),hide:x(e,rr,!0),horizontalClass:V(e,nr,"swiper-scrollbar-horizontal"),lockClass:V(e,lr,"swiper-scrollbar-lock"),scrollbarDisabledClass:V(e,or,"swiper-scrollbar-disabled"),snapOnRelease:x(e,cr,!0),verticalClass:V(e,dr,"swiper-scrollbar-vertical")}}function uo(t,e){const s=V(e,Or,"none");s==="loop"&&(t.loop=!0),s==="rewind"&&(t.rewind=!0),s==="none"&&(t.loop=!1,t.rewind=!1),t.loopAddBlankSlides=x(e,qs,!0),t.loopAdditionalSlides=k(e,js,0),t.loopPreventsSliding=x(e,Ks,!0),x(e,Va,!1)&&(po(),t.autoplay={delay:k(e,Fa,3e3),disableOnInteraction:x(e,Wa,!1),reverseDirection:x(e,Ya,!1),pauseOnMouseEnter:x(e,Ua,!1),stopOnLastSlide:x(e,Xa,!1)}),t.speed=k(e,Ni,300),t.oneWayMovement=x(e,ni,!1)}function po(){document.querySelectorAll(`[${ka}='true'] .swiper-wrapper`).forEach(t=>{t.style.transitionTimingFunction="linear"})}function mo(t,e){const s=V(e,Ns,"slide");t.effect=s,s==="fade"?t.fadeEffect={crossFade:"true"}:s==="coverflow"?t.coverflowEffect={depth:k(e,rs,100),modifier:k(e,ns,1),rotate:k(e,ls,50),scale:k(e,os,1),slideShadows:x(e,ds,!0),stretch:k(e,cs,0)}:s==="flip"?t.flipEffect={limitRotation:x(e,fs,!0),slideShadows:x(e,us,!0)}:s==="cube"?t.cubeEffect={shadow:x(e,ps,!0),shadowOffset:k(e,ms,20),shadowScale:k(e,Ts,.94),slideShadows:x(e,hs,!0)}:s==="cards"&&(t.cardsEffect={perSlideOffset:k(e,Es,8),perSlideRotate:k(e,gs,2),rotate:x(e,Ss,!0),slideShadows:x(e,ws,!0)})}function To(t,e){t.autoHeight=x(e,Rs,!1),t.centerInsufficientSlides=x(e,Ls,!1),t.centeredSlides=x(e,ys,!1),t.direction=V(e,Ms,"horizontal"),t.grid={fill:V(e,ga,"column"),rows:k(e,Ea,1)},t.height=k(e,Hs),t.slidesOffsetAfter=k(e,yi,0),t.slidesOffsetBefore=k(e,Ii,0),t.slidesPerGroup=k(e,Oi,1),t.slidesPerGroupAuto=x(e,Ci,!1),t.slidesPerGroupSkip=k(e,Mi,0),t.slidesPerView=k(e,Pi,1),t.spaceBetween=k(e,Di,0),t.width=k(e,Zi)}function ho(t,e){t.containerModifierClass=V(e,Is,"swiper-"),t.initialSlide=k(e,ks,0),t.nested=x(e,Qs,!1),t.normalizeSlideIndex=x(e,si,!0),t.slideActiveClass=V(e,Si,"swiper-slide-active"),t.slideBlankClass=V(e,Ai,"swiper-slide-blank"),t.slideClass=V(e,wi,"swiper-slide"),t.slideFullyVisibleClass=V(e,_i,"swiper-slide-fully-visible"),t.slideNextClass=V(e,vi,"swiper-slide-next"),t.slidePrevClass=V(e,Ri,"swiper-slide-prev"),t.slideVisibleClass=V(e,Li,"swiper-slide-visible"),t.swipeHandler=V(e,xi),t.swiperElementNodeName=V(e,Gi,"SWIPER-CONTAINER"),t.wrapperClass=V(e,Qi,"swiper-wrapper")}function Eo(){document.querySelectorAll(".swiper-wrapper").forEach(t=>{t.querySelectorAll(".swiper-slide").forEach((e,s)=>{const i=e.querySelector(`[${ce}=${Gr}]`);i&&(i.textContent=(s+1).toString())})})}function go(t,e,s,i){const a=V(e,$e,"");if(!a||a==="")return;const r=s.find(c=>c.name===a);if(!r){i&&console.warn("A matching thumbs waterfall was not found for ",a);return}return t.thumbs={autoScrollOffset:k(e,fr,0),multipleActiveThumbs:x(e,ur,!1),slideThumbActiveClass:V(e,pr,"swiper-slide-thumb-active"),swiper:r.swiper,thumbsContainerClass:V(e,mr,"swiper-thumbs")},t}function So(t,e){t.keyboard={enabled:x(e,ra,!1),onlyInViewport:x(e,na,!0),pageUpDown:x(e,la,!0)}}function wo(t,e){t.hashNavigation={replaceState:x(e,Ji,!1),watchState:x(e,ea,!1)}}function Ao(t,e){t.history={keepQuery:x(e,ta,!1),key:V(e,sa,"slides"),replaceState:x(e,ia,!1),root:V(e,aa,"")}}function _o(t,e,s,i){const a=V(e,ze,"");if(!a)return;const r=Nl(s,a,i);i&&(r.length?console.log(`Controller Swipers for selector "${a}":`,r):console.error(`No controller swipers found for selector "${a}"`)),t.controller={by:V(e,is,"slide"),control:r,inverse:x(e,as,!1)}}function vo(t,e){return t.a11y={containerMessage:V(e,Rt,""),containerRole:V(e,bt,""),containerRoleDescriptionMessage:V(e,Lt,""),enabled:x(e,yt,!0),firstSlideMessage:V(e,It,"This is the first slide"),id:V(e,Ot,""),itemRoleDescriptionMessage:V(e,Ct,""),lastSlideMessage:V(e,Mt,"This is the last slide"),nextSlideMessage:V(e,Pt,"Next slide"),notificationClass:V(e,Dt,"swiper-notification"),paginationBulletMessage:V(e,Nt,"Go to slide {{index}}"),prevSlideMessage:V(e,xt,"Previous slide"),scrollOnFocus:x(e,Gt,!0),slideLabelMessage:V(e,Bt,"{{index}} / {{slidesLength}}"),slideRole:V(e,zt,"group")},t}function He(t,e){if(!Array.isArray(window.waterfalls)){console.error("window.waterfalls is not an array or not defined.");return}const s=new Set;document.querySelectorAll(`[${t}]`).forEach(i=>{const a=i.getAttribute(t),r=window.waterfalls.find(f=>f.name===a);if(!r){console.warn(`[MANIPULATION] No Waterfall found with name: "${a}"`);return}const c=r.swiper;if(!c){console.error(`[MANIPULATION] Invalid Swiper instance in Waterfall "${a}"`);return}if(e==="append")c.appendSlide(i.outerHTML);else if(e==="prepend")c.prependSlide(i.outerHTML);else if(e==="add"){let f=Number(i.getAttribute(hr));f||(f=1),c.addSlide(f,[i.outerHTML])}else if(e==="remove"){const f=Number(i.getAttribute(wr));f!==-1?c.removeSlide(f):console.warn(`[MANIPULATION] Slide not found in Swiper for removal: ${a}`)}i.remove();const d=i.closest(".w-dyn-list");d&&s.add(d),c.update()}),s.forEach(i=>i.remove())}function Ro(){He(Tr,"add"),He(Er,"append"),He(gr,"prepend"),He(Sr,"remove")}function bo(t,e){t.zoom={containerClass:V(e,Ar,"swiper-zoom-container"),limitToOriginalSize:x(e,_r,!1),maxRatio:k(e,vr,3),minRatio:k(e,Rr,1),panOnMouseMove:x(e,br,!1),toggle:x(e,Lr,!0),zoomedSlideClass:V(e,yr,"swiper-slide-zoomed")}}function Lo(t,e){t.allowTouchMove=x(e,vs,!0),t.edgeSwipeDetection=x(e,Ps,!1),t.edgeSwipeThreshold=k(e,Ds,20),t.focusableElements=V(e,Bs,"input, select, option, textarea, button, video, label"),t.followFinger=x(e,zs,!0),t.grabCursor=x(e,$s,!1),t.longSwipes=x(e,Ys,!0),t.longSwipesMs=k(e,Us,300),t.longSwipesRatio=k(e,Xs,.5),t.noSwiping=x(e,Js,!0),t.noSwipingClass=V(e,ei,"swiper-no-swiping"),t.noSwipingSelector=V(e,ti),t.preventClicks=x(e,oi,!0),t.preventClicksPropagation=x(e,di,!0),t.preventInteractionOnTransition=x(e,ci,!1),t.resistance=x(e,fi,!0),t.resistanceRatio=k(e,ui,.85),t.shortSwipes=x(e,Ei,!0),t.simulateTouch=x(e,gi,!0),t.slideToClickedSlide=x(e,bi,!1),t.threshold=k(e,Bi,5),t.touchAngle=k(e,zi,45),t.touchEventsTarget=V(e,$i,"wrapper"),t.touchMoveStopPropagation=x(e,Hi,!1),t.touchRatio=k(e,Vi,1),t.touchReleaseOnEdges=x(e,ki,!1),t.touchStartForcePreventDefault=x(e,Fi,!1),t.touchStartPreventDefault=x(e,Wi,!0)}function yo(t,e){t.mousewheel={enabled:x(e,oa,!1),eventsTarget:V(e,da,"container"),forceToAxis:x(e,ca,!1),invert:x(e,fa,!1),noMouseWheelClass:V(e,ua,"swiper-no-mousewheel"),releaseOnEdges:x(e,pa,!1),sensitivity:k(e,ma,1),thresholdDelta:k(e,Ta),thresholdTime:k(e,ha)}}function Io(t,e){t.freeMode={enabled:x(e,qa,!1),minimumVelocity:k(e,ja,.02),momentum:x(e,Ka,!0),momentumBounce:x(e,Za,!0),momentumBounceRatio:k(e,Qa,1),momentumRatio:k(e,Ja,1),momentumVelocityRatio:k(e,er,1),sticky:x(e,tr,!1)}}function Oo(t,e){t.lazyPreloadPrevNext=k(e,Fs,0),t.lazyPreloaderClass=V(e,Ws,"swiper-lazy-preloader")}function Co(t,e){t.createElements=x(e,Os,!1),t.cssMode=x(e,Cs,!1),t.enabled=x(e,xs,!0),t.eventsPrefix=V(e,Gs,"swiper"),t.init=x(e,Vs,!0),t.maxBackfaceHiddenSlides=k(e,Zs,10),t.passiveListeners=x(e,li,!0),t.roundLengths=x(e,mi,!1),t.runCallbacksOnInit=x(e,Ti,!0),t.setWrapperSize=x(e,hi,!1),t.uniqueNavElements=x(e,Yi,!0),t.url=V(e,Xi),t.userAgent=V(e,qi)}function Mo(t,e){t.observeParents=x(e,ii,!1),t.observeSlideChildren=x(e,ai,!1),t.observer=x(e,ri,!1),t.resizeObserver=x(e,pi,!0),t.updateOnWindowResize=x(e,Ui,!0),t.watchOverflow=x(e,ji,!0),t.watchSlidesProgress=x(e,Ki,!1)}function Po(t,e){t.parallax={enabled:x(e,Ir,!1)}}console.log("🚿 Hello from Wellflow Waterfall v1.1.8");const Ve=[];window.waterfalls=Ve;function Br(t,e){let s=e;return document.querySelectorAll(t).forEach(i=>{zr(i,s++)}),s}let Oe=0;document.querySelectorAll(`[${he}]`).forEach(t=>{t.hasAttribute($e)||t.hasAttribute(ze)||zr(t,Oe++)}),Oe=Br(`[${he}][${$e}]`,Oe),Oe=Br(`[${he}][${ze}]`,Oe);function zr(t,e){{const s=V(t,he,`Swiper ${e}`);if(!s)return;const i=!!x(t,vt,!1);i&&console.warn(`Initializing Waterfall: ${s}`);let a={};ho(a,t),oo(a,t),uo(a,t),lo(a,t,s),co(a,t),fo(a,t),mo(a,t),Io(a,t),To(a,t),go(a,t,Ve,i),So(a,t),yo(a,t),Lo(a,t),wo(a,t),Ao(a,t),_o(a,t,Ve,i),vo(a,t),Oo(a,t),Mo(a,t),bo(a,t),Po(a,t),Co(a,t),i&&console.warn(a);const r=_t(a),c=t.querySelector(".swiper");if((c?.querySelectorAll(".swiper-slide")||[]).length===0){console.warn(`Skipping "${s}": no .swiper-slide elements found.`);return}const f=new te(c,r);Ve.push({name:s,swiper:f})}}Ro(),Eo(),E.ATTR_A11Y=zl,E.ATTR_A11Y_CONTAINER_MESSAGE=Rt,E.ATTR_A11Y_CONTAINER_ROLE=bt,E.ATTR_A11Y_CONTAINER_ROLE_DESCRIPTION_MESSAGE=Lt,E.ATTR_A11Y_ENABLED=yt,E.ATTR_A11Y_FIRST_SLIDE_MESSAGE=It,E.ATTR_A11Y_ID=Ot,E.ATTR_A11Y_ITEM_ROLE_DESCRIPTION_MESSAGE=Ct,E.ATTR_A11Y_LAST_SLIDE_MESSAGE=Mt,E.ATTR_A11Y_NEXT_SLIDE_MESSAGE=Pt,E.ATTR_A11Y_NOTIFICATION_CLASS=Dt,E.ATTR_A11Y_PAGINATION_BULLET_MESSAGE=Nt,E.ATTR_A11Y_PREV_SLIDE_MESSAGE=xt,E.ATTR_A11Y_SCROLL_ON_FOCUS=Gt,E.ATTR_A11Y_SLIDE_LABEL_MESSAGE=Bt,E.ATTR_A11Y_SLIDE_ROLE=zt,E.ATTR_ADVANCED_DEBUG_MODE=Bl,E.ATTR_ALLOW_SLIDE_NEXT=As,E.ATTR_ALLOW_SLIDE_PREV=_s,E.ATTR_ALLOW_TOUCH_MOVE=vs,E.ATTR_AUTOPLAY=Va,E.ATTR_AUTO_HEIGHT=Rs,E.ATTR_BREAKPOINTS_BASE=bs,E.ATTR_CARDS_PER_SLIDE_OFFSET=Es,E.ATTR_CARDS_PER_SLIDE_ROTATE=gs,E.ATTR_CARDS_ROTATE=Ss,E.ATTR_CARDS_SLIDE_SHADOWS=ws,E.ATTR_CENTERED_SLIDES=ys,E.ATTR_CENTERED_SLIDES_BOUNDS=Vl,E.ATTR_CENTER_INSUFFICIENT_SLIDES=Ls,E.ATTR_CONTAINER_MODIFIER_CLASS=Is,E.ATTR_CONTROLLER=ze,E.ATTR_CONTROLLER_BY=is,E.ATTR_CONTROLLER_INVERSE=as,E.ATTR_COVERFLOW_DEPTH=rs,E.ATTR_COVERFLO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ACE_STATE=Ji,E.ATTR_HASH_WATCH_STATE=ea,E.ATTR_HEIGHT=Hs,E.ATTR_HISTORY_KEEP_QUERY=ta,E.ATTR_HISTORY_KEY=sa,E.ATTR_HISTORY_REPLACE_STATE=ia,E.ATTR_HISTORY_ROOT=aa,E.ATTR_INIT=Vs,E.ATTR_INITIAL_SLIDE=ks,E.ATTR_KEYBOARD_ENABLED=ra,E.ATTR_KEYBOARD_ONLY_IN_VIEWPORT=na,E.ATTR_KEYBOARD_PAGE_UP_DOWN=la,E.ATTR_LARGE_CENTERED_SLIDES=Kt,E.ATTR_LARGE_SLIDES_PER_GROUP=it,E.ATTR_LARGE_SLIDES_PER_VIEW=Zt,E.ATTR_LARGE_SPACE_BETWEEN=Qt,E.ATTR_LAZY_PRELOADER_CLASS=Ws,E.ATTR_LAZY_PRELOAD_PREV_NEXT=Fs,E.ATTR_LMOBILE_CENTERED_SLIDES=$t,E.ATTR_LMOBILE_SLIDES_PER_GROUP=Vt,E.ATTR_LMOBILE_SLIDES_PER_VIEW=Ht,E.ATTR_LMOBILE_SPACE_BETWEEN=kt,E.ATTR_LONG_SWIPES=Ys,E.ATTR_LONG_SWIPES_MS=Us,E.ATTR_LONG_SWIPES_RATIO=Xs,E.ATTR_LOOP=kl,E.ATTR_LOOP_ADD_ADDITIONAL_SLIDES=js,E.ATTR_LOOP_ADD_BLANK_SLIDES=qs,E.ATTR_LOOP_PREVENTS_SLIDING=Ks,E.ATTR_MANIPULATION_ADD_INDEX=hr,E.ATTR_MANIPULATION_ADD_SLIDE=Tr,E.ATTR_MANIPULATION_APPEND_SLIDE=Er,E.ATTR_MANIPULATION_PREPEND_SLIDE=gr,E.ATTR_MANIPULATION_REMOVE_ALL_SLIDES=jl,E.ATTR_MANIPULATION_REMOVE_INDEX=wr,E.ATTR_MANIPULATION_REMOVE_SLIDE=Sr,E.ATTR_MAX_BACKFACE_HIDDEN_SLIDES=Zs,E.ATTR_MOUSE_ENABLED=oa,E.ATTR_MOUSE_EVENTS_TARGET=da,E.ATTR_MOUSE_FORCE_TO_AXIS=ca,E.ATTR_MOUSE_INVERT=fa,E.ATTR_MOUSE_NO_MOUSE_WHEEL_CLASS=ua,E.ATTR_MOUSE_RELEASE_ON_EDGES=pa,E.ATTR_MOUSE_SENSITIVITY=ma,E.ATTR_MOUSE_THRESHOLD_DELTA=Ta,E.ATTR_MOUSE_THRESHOLD_TIME=ha,E.ATTR_NAVIGATION_DISABLED_CLASS=Sa,E.ATTR_NAVIGATION_ENABLED=wa,E.ATTR_NAVIGATION_HIDDEN_CLASS=Aa,E.ATTR_NAVIGATION_HIDE_ON_CLICK=_a,E.ATTR_NAVIGATION_LOCK_CLASS=at,E.ATTR_NAVIGATION_NAVIGATION_DISABLED_CLASS=va,E.ATTR_NESTED=Qs,E.ATTR_NORMALIZE_SLIDE_INDEX=si,E.ATTR_NO_SWIPING=Js,E.ATTR_NO_SWIPING_CLASS=ei,E.ATTR_NO_SWIPING_SELECTOR=ti,E.ATTR_OBSERVER=ri,E.ATTR_OBSERVE_SLIDE_CHILDREN=ai,E.ATTR_OBSERVE_SLIDE_PARENTS=ii,E.ATTR_ONE_WAY_MOVEMENT=ni,E.ATTR_PAGINATION_BULLET_ACTIVE_CLASS=ba,E.ATTR_PAGINATION_BULLET_CLASS=Yl,E.ATTR_PAGINATION_CLICKABLE=La,E.ATTR_PAGINATION_CLICKABLE_CLASS=ya,E.ATTR_PAGINATION_CURRENT_CLASS=Ia,E.ATTR_PAGINATION_DYNAMIC_BULLETS=Oa,E.ATTR_PAGINATION_DYNAMIC_MAIN_BULLETS=Ca,E.ATTR_PAGINATION_ENABLED=Ma,E.ATTR_PAGINATION_HIDDEN_CLASS=Pa,E.ATTR_PAGINATION_HIDE_ON_CLICK=Da,E.ATTR_PAGINATION_HORIZONTAL_CLASS=Na,E.ATTR_PAGINATION_LOCK_CLASS=Ul,E.ATTR_PAGINATION_MODIFIER_CLASS=xa,E.ATTR_PAGINATION_PAGINATION_DISABLED_CLASS=Ga,E.ATTR_PAGINATION_PROGRESSBAR_FILL_CLASS=Ba,E.ATTR_PAGINATION_PROGRESSBAR_OPPOSITE=za,E.ATTR_PAGINATION_TOTAL_CLASS=$a,E.ATTR_PAGINATION_TYPE=Ra,E.ATTR_PAGINATION_VERTICAL_CLASS=Ha,E.ATTR_PARALLAX=Jl,E.ATTR_PARALLAX_DURATION=ao,E.ATTR_PARALLAX_ENABLED=Ir,E.ATTR_PARALLAX_OPACITY=io,E.ATTR_PARALLAX_SCALE=so,E.ATTR_PARALLAX_X=eo,E.ATTR_PARALLAX_Y=to,E.ATTR_PASSIVE_LISTENERS=li,E.ATTR_PAUSE_ON_MOUSE_ENTER=Ua,E.ATTR_PLAYBACK_MODE=Or,E.ATTR_PREVENT_CLICKS=oi,E.ATTR_PREVENT_CLICKS_PROPAGATION=di,E.ATTR_PREVENT_INTERACTION_ON_TRANSITION=ci,E.ATTR_RESISTANCE=fi,E.ATTR_RESISTANCE_RATIO=ui,E.ATTR_RESIZE_OBSERVER=pi,E.ATTR_REVERSE_DIRECTION=Ya,E.ATTR_REWIND=Fl,E.ATTR_ROUND_LENGTHS=mi,E.ATTR_RUN_CALLBACKS_ON_INIT=Ti,E.ATTR_SCROLLBAR_DRAGGABLE=ir,E.ATTR_SCROLLBAR_DRAG_CLASS=ql,E.ATTR_SCROLLBAR_DRAG_SIZE=sr,E.ATTR_SCROLLBAR_ENABLED=ar,E.ATTR_SCROLLBAR_HIDE=rr,E.ATTR_SCROLLBAR_HORIZONTAL_CLASS=nr,E.ATTR_SCROLLBAR_LOCK_CLASS=lr,E.ATTR_SCROLLBAR_SCROLLBAR_DISABLED_CLASS=or,E.ATTR_SCROLLBAR_SNAP_ON_RELEASE=cr,E.ATTR_SCROLLBAR_VERTICAL_CLASS=dr,E.ATTR_SET_WRAPPER_SIZE=hi,E.ATTR_SHORT_SWIPES=Ei,E.ATTR_SIMULATE_TOUCH=gi,E.ATTR_SLIDES_OFFSET_AFTER=yi,E.ATTR_SLIDES_O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_ON_WINDOW_RESIZE=Ui,E.ATTR_URL=Xi,E.ATTR_USER_AGENT=qi,E.ATTR_VIRTUAL_TRANSLATE=Wl,E.ATTR_WAIT_FOR_TRANSITION=Xl,E.ATTR_WATCH_OVERFLOW=ji,E.ATTR_WATCH_SLIDES_PROGRESS=Ki,E.ATTR_WATERFALL=he,E.ATTR_WATERFALL_ELEMENT=ce,E.ATTR_WATERFALL_POSTLOAD=Gl,E.ATTR_WATERFALL_PRELOAD=xl,E.ATTR_WIDTH=Zi,E.ATTR_WRAPPER_CLASS=Qi,E.ATTR_XLARGE_CENTERED_SLIDES=Jt,E.ATTR_XLARGE_SLIDES_PER_GROUP=ts,E.ATTR_XLARGE_SLIDES_PER_VIEW=es,E.ATTR_XLARGE_SPACE_BETWEEN=ss,E.ATTR_ZOOM=Kl,E.ATTR_ZOOMED_SLIDE_CLASS=yr,E.ATTR_ZOOM_CONTAINER_CLASS=Ar,E.ATTR_ZOOM_ENABLED=Zl,E.ATTR_ZOOM_FADE=Ql,E.ATTR_ZOOM_LIMIT_TO_ORIGINAL_SIZE=_r,E.ATTR_ZOOM_MAX_RATIO=vr,E.ATTR_ZOOM_MIN_RATIO=Rr,E.ATTR_ZOOM_PAN_ON_MOUSE_MOVE=br,E.ATTR_ZOOM_TOGGLE=Lr,E.EL_NAVIGATION=no,E.EL_NAVIGATION_NEXT=Pr,E.EL_NAVIGATION_PREV=Dr,E.EL_PAGINATION=Cr,E.EL_PAGINATION_BULLET=Mr,E.EL_PAGINATION_BULLET_ACTIVE=ro,E.EL_SCROLLBAR=Nr,E.EL_SCROLLBAR_DRAG=xr,E.EL_SLIDE_COUNT=Gr,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`;if(o.slideShadows){let C=n.querySelector(".swiper-slide-shadow");C||(C=we("cards",n)),C&&(C.style.opacity=Math.min(Math.max((Math.abs(g)-.5)/.5,0),1))}n.style.zIndex=-Math.abs(Math.round(l))+c.length;const y=Ie(o,n);y.style.transform=I}},setTransition:c=>{const d=e.slides.map(f=>me(f));d.forEach(f=>{f.style.transitionDuration=`${c}ms`,f.querySelectorAll(".swiper-slide-shadow").forEach(o=>{o.style.transitionDuration=`${c}ms`})}),Be({swiper:e,duration:c,transformElements:d})},perspective:()=>!0,overwriteParams:()=>({_loopSwapReset:!1,watchSlidesProgress:!0,loopAdditionalSlides:e.params.cardsEffect.rotate?3:2,centeredSlides:!0,virtualTranslate:!e.params.cssMode})})}const Pl=[al,rl,nl,ll,ol,dl,cl,fl,ul,pl,ml,Tl,hl,El,gl,Sl,bl,Ll,yl,Il,Ol,Cl,Ml];te.use(Pl);function V(t,e,s){const i=t.getAttribute(e)?.trim();if(!(!i||i===s))return i}function k(t,e,s){const i=t.getAttribute(e)?.trim();if(!i)return;const a=Number(i);if(!(isNaN(a)||a===s))return a}function x(t,e,s){const i=t.getAttribute(e)?.trim()?.toLowerCase();if(i){if(i==="true")return s===!0?void 0:!0;if(i==="false")return s===!1?void 0:!1}}function Dl(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function _t(t){if(typeof t!="object"||t===null)return t;for(const e in t){const s=t[e];s==null?delete t[e]:typeof s=="object"&&s!==null&&!Dl(s)&&(_t(s),Object.keys(s).length===0&&delete t[e])}return t}function Nl(t,e,s){const i=t.filter(a=>a.name===e).map(a=>a.swiper);return s&&console.log(`📊 Found ${i.length} matching swiper(s) for "${e}"`),i}const he="waterfall",xl="waterfall-preload",Gl="waterfall-postload",vt="waterfall-debug-mode",Bl="waterfall-advanced-debug-mode",zl="waterfall-a11y",Rt="waterfall-a11y-container-message",bt="waterfall-a11y-container-role",Lt="waterfall-a11y-container-role-description-message",yt="waterfall-a11y-enabled",It="waterfall-a11y-first-slide-message",Ot="waterfall-a11y-id",Ct="waterfall-a11y-item-role-description-message",Mt="waterfall-a11y-last-slide-message",Pt="waterfall-a11y-next-slide-message",Dt="waterfall-a11y-notification-class",Nt="waterfall-a11y-pagination-bullet-message",xt="waterfall-a11y-prev-slide-message",Gt="waterfall-a11y-scroll-on-focus",Bt="waterfall-a11y-slide-label-message",zt="waterfall-a11y-slide-role",$t="waterfall-centered-slides-lmobile",Ht="waterfall-slides-per-view-lmobile",Vt="waterfall-slides-per-group-lmobile",kt="waterfall-space-between-lmobile",Ft="waterfall-centered-slides-tablet",Wt="waterfall-slides-per-view-tablet",$l="waterfall-slides-per-group-tablet",Yt="waterfall-space-between-tablet",Ut="waterfall-centered-slides-desktop",Xt="waterfall-slides-per-view-desktop",qt="waterfall-slides-per-group-desktop",jt="waterfall-space-between-desktop",Kt="waterfall-centered-slides-large",Zt="waterfall-slides-per-view-large",it="waterfall-slides-per-group-large",Qt="waterfall-space-between-large",Jt="waterfall-centered-slides-xlarge",es="waterfall-slides-per-view-xlarge",ts="waterfall-slides-per-group-xlarge",ss="waterfall-space-between-xlarge",ze="waterfall-controller",is="waterfall-controller-by",as="waterfall-controller-inverse",Hl="waterfall-effect-crossfade",rs="waterfall-coverflow-depth",ns="waterfall-coverflow-modifier",ls="waterfall-coverflow-rotate",os="waterfall-coverflow-scale",ds="waterfall-coverflow-slide-shadows",cs="waterfall-coverflow-stretch",fs="waterfall-flip-limit-rotation",us="waterfall-flip-slide-shadows",ps="waterfall-cube-shadow",ms="waterfall-cube-shadow-offset",Ts="waterfall-cube-shadow-scale",hs="waterfall-cube-slide-shadows",Es="waterfall-cards-per-slide-offset",gs="waterfall-cards-per-slide-rotate",Ss="waterfall-cards-rotate",ws="waterfall-cards-slide-shadows",As="waterfall-allow-slide-next",_s="waterfall-allow-slide-prev",vs="waterfall-allow-touch-move",Rs="waterfall-auto-height",bs="waterfall-breakpoints-base",Ls="waterfall-center-insufficient-slides",ys="waterfall-centered-slides",Vl="waterfall-centered-slides-bounds",Is="waterfall-container-modifier-class",Os="waterfall-create-elements",Cs="waterfall-css-mode",Ms="waterfall-direction",Ps="waterfall-edge-swipe-detection",Ds="waterfall-edge-swipe-threshold",Ns="waterfall-effect",xs="waterfall-enabled",Gs="waterfall-events-prefix",Bs="waterfall-focusable-elements",zs="waterfall-follow-finger",$s="waterfall-grab-cursor",Hs="waterfall-height",Vs="waterfall-init",ks="waterfall-initial-slide",Fs="waterfall-lazy-preload-prev-next",Ws="waterfall-lazy-preloader-class",Ys="waterfall-long-swipes",Us="waterfall-long-swipes-ms",Xs="waterfall-long-swipes-ratio",kl="waterfall-loop-mode",qs="waterfall-loop-add-blank-slides",js="waterfall-loop-additional-slides",Ks="waterfall-loop-prevents-sliding",Zs="waterfall-max-backface-hidden-slides",Qs="waterfall-nested",Js="waterfall-no-swiping",ei="waterfall-no-swiping-class",ti="waterfall-no-swiping-selector",si="waterfall-normalize-slide-index",ii="waterfall-observe-parents",ai="waterfall-observe-slide-children",ri="waterfall-observer",ni="waterfall-data-one-way-movement",li="waterfall-passive-listeners",oi="waterfall-prevent-clicks",di="waterfall-prevent-clicks-propagation",ci="waterfall-prevent-interaction-on-transition",fi="waterfall-resistance",ui="waterfall-resistance-ratio",pi="waterfall-resize-observer",Fl="waterfall-rewind",mi="waterfall-round-lengths",Ti="waterfall-run-callbacks-on-init",hi="waterfall-set-wrapper-size",Ei="waterfall-short-swipes",gi="waterfall-simulate-touch",Si="waterfall-slide-active-class",wi="waterfall-slide-class",Ai="waterfall-slide-blank-class",_i="waterfall-slide-fully-visible-class",vi="waterfall-slide-next-class",Ri="waterfall-slide-prev-class",bi="waterfall-slide-to-clicked-slide",Li="waterfall-slide-visible-class",yi="waterfall-slides-offset-after",Ii="waterfall-slides-offset-before",Oi="waterfall-slides-per-group",Ci="waterfall-slides-per-group-auto",Mi="waterfall-slides-per-group-skip",Pi="waterfall-slides-per-view",Di="waterfall-space-between",Ni="waterfall-speed",xi="waterfall-swipe-handler",Gi="waterfall-swiper-element-node-name",Bi="waterfall-threshold",zi="waterfall-touch-angle",$i="waterfall-touch-events-target",Hi="waterfall-touch-move-stop-propagation",Vi="waterfall-touch-ratio",ki="waterfall-touch-release-on-edges",Fi="waterfall-touch-start-force-prevent-default",Wi="waterfall-touch-start-prevent-default",Yi="waterfall-unique-nav-elements",Ui="waterfall-update-on-window-resize",Xi="waterfall-url",qi="waterfall-user-agent",Wl="waterfall-virtual-translate",ji="waterfall-watch-overflow",Ki="waterfall-watch-slides-progress",Zi="waterfall-width",Qi="waterfall-wrapper-class",Ji="waterfall-hash-replace-state",ea="waterfall-hash-watch-state",ta="waterfall-history-keep-query",sa="waterfall-history-key",ia="waterfall-history-replace-state",aa="waterfall-history-root",ra="waterfall-keyboard-enabled",na="waterfall-keyboard-only-in-viewport",la="waterfall-keyboard-page-up-down",oa="waterfall-mouse-enabled",da="waterfall-mouse-events-target",ca="waterfall-mouse-force-to-axis",fa="waterfall-mouse-invert",ua="waterfall-mouse-no-mouse-wheel-class",pa="waterfall-mouse-release-on-edges",ma="waterfall-mouse-sensitivity",Ta="waterfall-mouse-threshold-delta",ha="waterfall-mouse-threshold-time",Ea="waterfall-grid-rows",ga="waterfall-grid-fill",Sa="waterfall-navigation-disabled-class",wa="waterfall-navigation-enabled",Aa="waterfall-navigation-hidden-class",_a="waterfall-navigation-hide-on-click",at="waterfall-navigation-lock-class",va="waterfall-navigation-navigation-disabled-class",Ra="waterfall-pagination-type",Yl="waterfall-pagination-bullet-class",ba="waterfall-pagination-bullet-active-class",La="waterfall-pagination-clickable",ya="waterfall-pagination-clickable-class",Ia="waterfall-pagination-current-class",Oa="waterfall-pagination-dynamic-bullets",Ca="waterfall-pagination-dynamic-main-bullets",Ma="waterfall-pagination-enabled",Pa="waterfall-pagination-hidden-class",Da="waterfall-pagination-hide-on-click",Na="waterfall-pagination-horizontal-class",Ul="waterfall-pagination-lock-class",xa="waterfall-pagination-modifier-class",Ga="waterfall-pagination-pagination-disabled-class",Ba="waterfall-pagination-progressbar-fill-class",za="waterfall-pagination-progressbar-opposite",$a="waterfall-pagination-total-class",Ha="waterfall-pagination-vertical-class",Va="waterfall-autoplay-mode",ka="waterfall-smooth-autoplay",Fa="waterfall-delay",Wa="waterfall-disable-on-interaction",Ya="waterfall-reverse-direction",Ua="waterfall-pause-on-mouse-enter",Xa="waterfall-stop-on-last-slide",Xl="waterfall-wait-for-transition",qa="waterfall-free-mode-enabled",ja="waterfall-free-mode-minimum-velocity",Ka="waterfall-free-mode-momentum",Za="waterfall-free-mode-momentum-bounce",Qa="waterfall-free-mode-momentum-bounce-ratio",Ja="waterfall-free-mode-momentum-ratio",er="waterfall-free-mode-momentum-velocity-ratio",tr="waterfall-free-mode-sticky",ql="waterfall-scrollbar-drag-class",sr="waterfall-scrollbar-drag-size",ir="waterfall-scrollbar-draggable",ar="waterfall-scrollbar-enabled",rr="waterfall-scrollbar-hide",nr="waterfall-scrollbar-horizontal-class",lr="waterfall-scrollbar-lock-class",or="waterfall-scrollbar-scrollbar-disabled-class",dr="waterfall-scrollbar-vertical-class",cr="waterfall-scrollbar-snap-on-release",$e="waterfall-thumbs",fr="waterfall-thumbs-auto-scroll-offset",ur="waterfall-thumbs-multiple-active-thumbs",pr="waterfall-slide-thumb-active-class",mr="waterfall-thumbs-container-class",Tr="waterfall-add-slide",hr="waterfall-add-index",Er="waterfall-append-slide",gr="waterfall-prepend-slide",Sr="waterfall-remove-slide",wr="waterfall-remove-index",jl="waterfall-remove-all-slides",Kl="waterfall-zoom",Zl="waterfall-zoom-enabled",Ar="waterfall-zoom-container-class",_r="waterfall-zoom-limit-to-original-size",vr="waterfall-zoom-max-ratio",Rr="waterfall-zoom-min-ratio",br="waterfall-zoom-pan-on-mouse-move",Lr="waterfall-zoom-toggle",yr="waterfall-zoomed-slide-class",Ql="waterfall-zoom-fade",Ir="waterfall-parallax-enabled",Jl="data-swiper-parallax",eo="data-swiper-parallax-x",to="data-swiper-parallax-y",so="data-swiper-parallax-scale",io="data-swiper-parallax-opacity",ao="data-swiper-parallax-duration",Or="waterfall-playback-mode",ce="waterfall-el",Cr="pagination",Mr="pagination-bullet",ro="pagination-bullet-active",no="waterfall-navigation",Pr="navigation-next",Dr="navigation-prev",Nr="scrollbar",xr="scrollbar-drag",Gr="slide-count";function lo(t,e,s){t.allowSlideNext=x(e,As,!0),t.allowSlidePrev=x(e,_s,!0),t.disabledClass=V(e,Sa,"swiper-button-disabled"),t.enabled=x(e,wa),t.hiddenClass=V(e,Aa,"swiper-button-hidden"),t.hideOnClick=x(e,_a,!1),t.lockClass=V(e,at,"swiper-button-lock"),t.navigationDisabledClass=V(e,va,"swiper-navigation-disabled"),t.navigation={nextEl:`[${he}='${s}'] [${ce}=${Pr}]`,prevEl:`[${he}='${s}'] [${ce}=${Dr}]`}}function oo(t,e){t.breakpointsBase=V(e,bs,"window"),t.breakpoints={478:{centeredSlides:x(e,$t),slidesPerView:k(e,Ht),slidesPerGroup:k(e,Vt),spaceBetween:k(e,kt)},767:{centeredSlides:x(e,Ft),slidesPerView:k(e,Wt),slidesPerGroup:k(e,it),spaceBetween:k(e,Yt)},991:{centeredSlides:x(e,Ut),slidesPerView:k(e,Xt),slidesPerGroup:k(e,qt),spaceBetween:k(e,jt)},1280:{centeredSlides:x(e,Kt),slidesPerView:k(e,Zt),slidesPerGroup:k(e,it),spaceBetween:k(e,Qt)},1440:{centeredSlides:x(e,Jt),slidesPerView:k(e,es),slidesPerGroup:k(e,ts),spaceBetween:k(e,ss)}}}function co(t,e){const s=e.querySelector(`[${ce}=${Cr}]`);if(!s)return;const i=V(e,Ra),a=e.querySelector(`[${ce}=${Mr}]`);t.pagination={bulletActiveClass:V(e,ba,"swiper-pagination-bullet-active"),bulletClass:a?.getAttribute("class")?.trim()||"swiper-pagination-bullet",bulletElement:a?.tagName?.toLowerCase()||"span",clickable:x(e,La,!1),clickableClass:V(e,ya,"swiper-pagination-clickable"),currentClass:V(e,Ia,"swiper-pagination-current"),dynamicBullets:V(e,Oa,"swiper-pagination-current"),dynamicMainBullets:k(e,Ca,1),el:s||null,enabled:x(e,Ma),hiddenClass:V(e,Pa,"swiper-pagination-hidden"),hideOnClick:x(e,Da,!0),horizontalClass:V(e,Na,"swiper-pagination-horizontal"),lockClass:V(e,at,"swiper-pagination-lock"),modifierClass:V(e,xa,"swiper-pagination-"),paginationDisabledClass:V(e,Ga,"swiper-pagination-disabled"),progressbarFillClass:V(e,Ba,"swiper-pagination-progressbar-fill"),progressbarOpposite:V(e,za,"swiper-pagination-progressbar-opposite"),renderBullet:r(),totalClass:V(e,$a,"swiper-pagination-total"),type:c(),verticalClass:V(e,Ha,"swiper-pagination-vertical")};function r(){let d=null;return i==="numberBullets"&&(d=(f,o)=>`<span class="${o}">${f+1}</span>`),i==="bullets"&&(d=(f,o)=>`<span class="${o}"></span>`),d}function c(){return i==="numberBullets"||i==="bullets"?"bullets":i==="fraction"?"fraction":i==="progressbar"?"progressbar":i==="custom"?"custom":"bullets"}}function fo(t,e){const s=e.querySelector(`[${ce}=${Nr}]`);if(!s)return;const i=s?.querySelector(`[${ce}=${xr}]`);t.scrollbar={dragClass:i?.getAttribute("class")||"",dragSize:V(e,sr,"auto"),draggable:x(e,ir,!1),el:s||null,enabled:x(e,ar),hide:x(e,rr,!0),horizontalClass:V(e,nr,"swiper-scrollbar-horizontal"),lockClass:V(e,lr,"swiper-scrollbar-lock"),scrollbarDisabledClass:V(e,or,"swiper-scrollbar-disabled"),snapOnRelease:x(e,cr,!0),verticalClass:V(e,dr,"swiper-scrollbar-vertical")}}function uo(t,e){const s=V(e,Or,"none");s==="loop"&&(t.loop=!0),s==="rewind"&&(t.rewind=!0),s==="none"&&(t.loop=!1,t.rewind=!1),t.loopAddBlankSlides=x(e,qs,!0),t.loopAdditionalSlides=k(e,js,0),t.loopPreventsSliding=x(e,Ks,!0),x(e,Va,!1)&&(po(),t.autoplay={delay:k(e,Fa,3e3),disableOnInteraction:x(e,Wa,!1),reverseDirection:x(e,Ya,!1),pauseOnMouseEnter:x(e,Ua,!1),stopOnLastSlide:x(e,Xa,!1)}),t.speed=k(e,Ni,300),t.oneWayMovement=x(e,ni,!1)}function po(){document.querySelectorAll(`[${ka}='true'] .swiper-wrapper`).forEach(t=>{t.style.transitionTimingFunction="linear"})}function mo(t,e){const s=V(e,Ns,"slide");t.effect=s,s==="fade"?t.fadeEffect={crossFade:"true"}:s==="coverflow"?t.coverflowEffect={depth:k(e,rs,100),modifier:k(e,ns,1),rotate:k(e,ls,50),scale:k(e,os,1),slideShadows:x(e,ds,!0),stretch:k(e,cs,0)}:s==="flip"?t.flipEffect={limitRotation:x(e,fs,!0),slideShadows:x(e,us,!0)}:s==="cube"?t.cubeEffect={shadow:x(e,ps,!0),shadowOffset:k(e,ms,20),shadowScale:k(e,Ts,.94),slideShadows:x(e,hs,!0)}:s==="cards"&&(t.cardsEffect={perSlideOffset:k(e,Es,8),perSlideRotate:k(e,gs,2),rotate:x(e,Ss,!0),slideShadows:x(e,ws,!0)})}function To(t,e){t.autoHeight=x(e,Rs,!1),t.centerInsufficientSlides=x(e,Ls,!1),t.centeredSlides=x(e,ys,!1),t.direction=V(e,Ms,"horizontal"),t.grid={fill:V(e,ga,"column"),rows:k(e,Ea,1)},t.height=k(e,Hs),t.slidesOffsetAfter=k(e,yi,0),t.slidesOffsetBefore=k(e,Ii,0),t.slidesPerGroup=k(e,Oi,1),t.slidesPerGroupAuto=x(e,Ci,!1),t.slidesPerGroupSkip=k(e,Mi,0),t.slidesPerView=k(e,Pi,1),t.spaceBetween=k(e,Di,0),t.width=k(e,Zi)}function ho(t,e){t.containerModifierClass=V(e,Is,"swiper-"),t.initialSlide=k(e,ks,0),t.nested=x(e,Qs,!1),t.normalizeSlideIndex=x(e,si,!0),t.slideActiveClass=V(e,Si,"swiper-slide-active"),t.slideBlankClass=V(e,Ai,"swiper-slide-blank"),t.slideClass=V(e,wi,"swiper-slide"),t.slideFullyVisibleClass=V(e,_i,"swiper-slide-fully-visible"),t.slideNextClass=V(e,vi,"swiper-slide-next"),t.slidePrevClass=V(e,Ri,"swiper-slide-prev"),t.slideVisibleClass=V(e,Li,"swiper-slide-visible"),t.swipeHandler=V(e,xi),t.swiperElementNodeName=V(e,Gi,"SWIPER-CONTAINER"),t.wrapperClass=V(e,Qi,"swiper-wrapper")}function Eo(){document.querySelectorAll(".swiper-wrapper").forEach(t=>{t.querySelectorAll(".swiper-slide").forEach((e,s)=>{const i=e.querySelector(`[${ce}=${Gr}]`);i&&(i.textContent=(s+1).toString())})})}function go(t,e,s,i){const a=V(e,$e,"");if(!a||a==="")return;const r=s.find(c=>c.name===a);if(!r){i&&console.warn("A matching thumbs waterfall was not found for ",a);return}return t.thumbs={autoScrollOffset:k(e,fr,0),multipleActiveThumbs:x(e,ur,!1),slideThumbActiveClass:V(e,pr,"swiper-slide-thumb-active"),swiper:r.swiper,thumbsContainerClass:V(e,mr,"swiper-thumbs")},t}function So(t,e){t.keyboard={enabled:x(e,ra,!1),onlyInViewport:x(e,na,!0),pageUpDown:x(e,la,!0)}}function wo(t,e){t.hashNavigation={replaceState:x(e,Ji,!1),watchState:x(e,ea,!1)}}function Ao(t,e){t.history={keepQuery:x(e,ta,!1),key:V(e,sa,"slides"),replaceState:x(e,ia,!1),root:V(e,aa,"")}}function _o(t,e,s,i){const a=V(e,ze,"");if(!a)return;const r=Nl(s,a,i);i&&(r.length?console.log(`Controller Swipers for selector "${a}":`,r):console.error(`No controller swipers found for selector "${a}"`)),t.controller={by:V(e,is,"slide"),control:r,inverse:x(e,as,!1)}}function vo(t,e){return t.a11y={containerMessage:V(e,Rt,""),containerRole:V(e,bt,""),containerRoleDescriptionMessage:V(e,Lt,""),enabled:x(e,yt,!0),firstSlideMessage:V(e,It,"This is the first slide"),id:V(e,Ot,""),itemRoleDescriptionMessage:V(e,Ct,""),lastSlideMessage:V(e,Mt,"This is the last slide"),nextSlideMessage:V(e,Pt,"Next slide"),notificationClass:V(e,Dt,"swiper-notification"),paginationBulletMessage:V(e,Nt,"Go to slide {{index}}"),prevSlideMessage:V(e,xt,"Previous slide"),scrollOnFocus:x(e,Gt,!0),slideLabelMessage:V(e,Bt,"{{index}} / {{slidesLength}}"),slideRole:V(e,zt,"group")},t}function He(t,e){if(!Array.isArray(window.waterfalls)){console.error("window.waterfalls is not an array or not defined.");return}const s=new Set;document.querySelectorAll(`[${t}]`).forEach(i=>{const a=i.getAttribute(t),r=window.waterfalls.find(f=>f.name===a);if(!r){console.warn(`[MANIPULATION] No Waterfall found with name: "${a}"`);return}const c=r.swiper;if(!c){console.error(`[MANIPULATION] Invalid Swiper instance in Waterfall "${a}"`);return}if(e==="append")c.appendSlide(i.outerHTML);else if(e==="prepend")c.prependSlide(i.outerHTML);else if(e==="add"){let f=Number(i.getAttribute(hr));f||(f=1),c.addSlide(f,[i.outerHTML])}else if(e==="remove"){const f=Number(i.getAttribute(wr));f!==-1?c.removeSlide(f):console.warn(`[MANIPULATION] Slide not found in Swiper for removal: ${a}`)}i.remove();const d=i.closest(".w-dyn-list");d&&s.add(d),c.update()}),s.forEach(i=>i.remove())}function Ro(){He(Tr,"add"),He(Er,"append"),He(gr,"prepend"),He(Sr,"remove")}function bo(t,e){t.zoom={containerClass:V(e,Ar,"swiper-zoom-container"),limitToOriginalSize:x(e,_r,!1),maxRatio:k(e,vr,3),minRatio:k(e,Rr,1),panOnMouseMove:x(e,br,!1),toggle:x(e,Lr,!0),zoomedSlideClass:V(e,yr,"swiper-slide-zoomed")}}function Lo(t,e){t.allowTouchMove=x(e,vs,!0),t.edgeSwipeDetection=x(e,Ps,!1),t.edgeSwipeThreshold=k(e,Ds,20),t.focusableElements=V(e,Bs,"input, select, option, textarea, button, video, label"),t.followFinger=x(e,zs,!0),t.grabCursor=x(e,$s,!1),t.longSwipes=x(e,Ys,!0),t.longSwipesMs=k(e,Us,300),t.longSwipesRatio=k(e,Xs,.5),t.noSwiping=x(e,Js,!0),t.noSwipingClass=V(e,ei,"swiper-no-swiping"),t.noSwipingSelector=V(e,ti),t.preventClicks=x(e,oi,!0),t.preventClicksPropagation=x(e,di,!0),t.preventInteractionOnTransition=x(e,ci,!1),t.resistance=x(e,fi,!0),t.resistanceRatio=k(e,ui,.85),t.shortSwipes=x(e,Ei,!0),t.simulateTouch=x(e,gi,!0),t.slideToClickedSlide=x(e,bi,!1),t.threshold=k(e,Bi,5),t.touchAngle=k(e,zi,45),t.touchEventsTarget=V(e,$i,"wrapper"),t.touchMoveStopPropagation=x(e,Hi,!1),t.touchRatio=k(e,Vi,1),t.touchReleaseOnEdges=x(e,ki,!1),t.touchStartForcePreventDefault=x(e,Fi,!1),t.touchStartPreventDefault=x(e,Wi,!0)}function yo(t,e){t.mousewheel={enabled:x(e,oa,!1),eventsTarget:V(e,da,"container"),forceToAxis:x(e,ca,!1),invert:x(e,fa,!1),noMouseWheelClass:V(e,ua,"swiper-no-mousewheel"),releaseOnEdges:x(e,pa,!1),sensitivity:k(e,ma,1),thresholdDelta:k(e,Ta),thresholdTime:k(e,ha)}}function Io(t,e){t.freeMode={enabled:x(e,qa,!1),minimumVelocity:k(e,ja,.02),momentum:x(e,Ka,!0),momentumBounce:x(e,Za,!0),momentumBounceRatio:k(e,Qa,1),momentumRatio:k(e,Ja,1),momentumVelocityRatio:k(e,er,1),sticky:x(e,tr,!1)}}function Oo(t,e){t.lazyPreloadPrevNext=k(e,Fs,0),t.lazyPreloaderClass=V(e,Ws,"swiper-lazy-preloader")}function Co(t,e){t.createElements=x(e,Os,!1),t.cssMode=x(e,Cs,!1),t.enabled=x(e,xs,!0),t.eventsPrefix=V(e,Gs,"swiper"),t.init=x(e,Vs,!0),t.maxBackfaceHiddenSlides=k(e,Zs,10),t.passiveListeners=x(e,li,!0),t.roundLengths=x(e,mi,!1),t.runCallbacksOnInit=x(e,Ti,!0),t.setWrapperSize=x(e,hi,!1),t.uniqueNavElements=x(e,Yi,!0),t.url=V(e,Xi),t.userAgent=V(e,qi)}function Mo(t,e){t.observeParents=x(e,ii,!1),t.observeSlideChildren=x(e,ai,!1),t.observer=x(e,ri,!1),t.resizeObserver=x(e,pi,!0),t.updateOnWindowResize=x(e,Ui,!0),t.watchOverflow=x(e,ji,!0),t.watchSlidesProgress=x(e,Ki,!1)}function Po(t,e){t.parallax={enabled:x(e,Ir,!1)}}console.log("🚿 Hello from Wellflow Waterfall v1.1.9");const Ve=[];window.waterfalls=Ve;function Br(t,e){let s=e;return document.querySelectorAll(t).forEach(i=>{zr(i,s++)}),s}let Oe=0;document.querySelectorAll(`[${he}]`).forEach(t=>{t.hasAttribute($e)||t.hasAttribute(ze)||zr(t,Oe++)}),Oe=Br(`[${he}][${$e}]`,Oe),Oe=Br(`[${he}][${ze}]`,Oe);function zr(t,e){{const s=V(t,he,`Swiper ${e}`);if(!s)return;const i=!!x(t,vt,!1);i&&console.warn(`Initializing Waterfall: ${s}`);let a={};ho(a,t),oo(a,t),uo(a,t),lo(a,t,s),co(a,t),fo(a,t),mo(a,t),Io(a,t),To(a,t),go(a,t,Ve,i),So(a,t),yo(a,t),Lo(a,t),wo(a,t),Ao(a,t),_o(a,t,Ve,i),vo(a,t),Oo(a,t),Mo(a,t),bo(a,t),Po(a,t),Co(a,t),i&&console.warn(a);const r=_t(a),c=t.querySelector(".swiper");if((c?.querySelectorAll(".swiper-slide")||[]).length===0){console.warn(`Skipping "${s}": no .swiper-slide elements found.`);return}const f=new te(c,r);Ve.push({name:s,swiper:f})}}Ro(),Eo(),E.ATTR_A11Y=zl,E.ATTR_A11Y_CONTAINER_MESSAGE=Rt,E.ATTR_A11Y_CONTAINER_ROLE=bt,E.ATTR_A11Y_CONTAINER_ROLE_DESCRIPTION_MESSAGE=Lt,E.ATTR_A11Y_ENABLED=yt,E.ATTR_A11Y_FIRST_SLIDE_MESSAGE=It,E.ATTR_A11Y_ID=Ot,E.ATTR_A11Y_ITEM_ROLE_DESCRIPTION_MESSAGE=Ct,E.ATTR_A11Y_LAST_SLIDE_MESSAGE=Mt,E.ATTR_A11Y_NEXT_SLIDE_MESSAGE=Pt,E.ATTR_A11Y_NOTIFICATION_CLASS=Dt,E.ATTR_A11Y_PAGINATION_BULLET_MESSAGE=Nt,E.ATTR_A11Y_PREV_SLIDE_MESSAGE=xt,E.ATTR_A11Y_SCROLL_ON_FOCUS=Gt,E.ATTR_A11Y_SLIDE_LABEL_M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R_EDGE_SWIPE_THRESHOLD=Ds,E.ATTR_EFFECT=Ns,E.ATTR_EFFECT_CROSSFADE=Hl,E.ATTR_ENABLED=xs,E.ATTR_EVENTS_PREFIX=Gs,E.ATTR_FLIP_LIMIT_ROTATION=fs,E.ATTR_FLIP_SLIDE_SHADOWS=us,E.ATTR_FOCUSABLE_ELEMENTS=Bs,E.ATTR_FOLLOW_FINGER=zs,E.ATTR_FREE_MODE_ENABLED=qa,E.ATTR_FREE_MODE_MINIMUM_VELOCITY=ja,E.ATTR_FREE_MODE_MOMENTUM=Ka,E.ATTR_FREE_MODE_MOMENTUM_BOUNCE=Za,E.ATTR_FREE_MODE_MOMENTUM_BOUNCE_RATIO=Qa,E.ATTR_FREE_MODE_MOMENTUM_RATIO=Ja,E.ATTR_FREE_MODE_MOMENTUM_VELOCITY_RATIO=er,E.ATTR_FREE_MODE_STICKY=tr,E.ATTR_GRAB_CURSOR=$s,E.ATTR_GRID_FILL=ga,E.ATTR_GRID_ROWS=Ea,E.ATTR_HASH_REPLACE_STATE=Ji,E.ATTR_HASH_WATCH_STATE=ea,E.ATTR_HEIGHT=Hs,E.ATTR_HISTORY_KEEP_QUERY=ta,E.ATTR_HISTORY_KEY=sa,E.ATTR_HISTORY_REPLACE_STATE=ia,E.ATTR_HISTORY_ROOT=aa,E.ATTR_INIT=Vs,E.ATTR_INITIAL_SLIDE=ks,E.ATTR_KEYBOARD_ENABLED=ra,E.ATTR_KEYBOARD_ONLY_IN_VIEWPORT=na,E.ATTR_KEYBOARD_PAGE_UP_DOWN=la,E.ATTR_LARGE_CENTERED_SLIDES=Kt,E.ATTR_LARGE_SLIDES_PER_GROUP=it,E.ATTR_LARGE_SLIDES_PER_VIEW=Zt,E.ATTR_LARGE_SPACE_BETWEEN=Qt,E.ATTR_LAZY_PRELOADER_CLASS=Ws,E.ATTR_LAZY_PRELOAD_PREV_NEXT=Fs,E.ATTR_LMOBILE_CENTERED_SLIDES=$t,E.ATTR_LMOBILE_SLIDES_PER_GROUP=Vt,E.ATTR_LMOBILE_SLIDES_PER_VIEW=Ht,E.ATTR_LMOBILE_SPACE_BETWEEN=kt,E.ATTR_LONG_SWIPES=Ys,E.ATTR_LONG_SWIPES_MS=Us,E.ATTR_LONG_SWIPES_RATIO=Xs,E.ATTR_LOOP=kl,E.ATTR_LOOP_ADD_ADDITIONAL_SLIDES=js,E.ATTR_LOOP_ADD_BLANK_SLIDES=qs,E.ATTR_LOOP_PREVENTS_SLIDING=Ks,E.ATTR_MANIPULATION_ADD_INDEX=hr,E.ATTR_MANIPULATION_ADD_SLIDE=Tr,E.ATTR_MANIPULATION_APPEND_SLIDE=Er,E.ATTR_MANIPULATION_PREPEND_SLIDE=gr,E.ATTR_MANIPULATION_REMOVE_ALL_SLIDES=jl,E.ATTR_MANIPULATION_REMOVE_INDEX=wr,E.ATTR_MANIPULATION_REMOVE_SLIDE=Sr,E.ATTR_MAX_BACKFACE_HIDDEN_SLIDES=Zs,E.ATTR_MOUSE_ENABLED=oa,E.ATTR_MOUSE_EVENTS_TARGET=da,E.ATTR_MOUSE_FORCE_TO_AXIS=ca,E.ATTR_MOUSE_INVERT=fa,E.ATTR_MOUSE_NO_MOUSE_WHEEL_CLASS=ua,E.ATTR_MOUSE_RELEASE_ON_EDGES=pa,E.ATTR_MOUSE_SENSITIVITY=ma,E.ATTR_MOUSE_THRESHOLD_DELTA=Ta,E.ATTR_MOUSE_THRESHOLD_TIME=ha,E.ATTR_NAVIGATION_DISABLED_CLASS=Sa,E.ATTR_NAVIGATION_ENABLED=wa,E.ATTR_NAVIGATION_HIDDEN_CLASS=Aa,E.ATTR_NAVIGATION_HIDE_ON_CLICK=_a,E.ATTR_NAVIGATION_LOCK_CLASS=at,E.ATTR_NAVIGATION_NAVIGATION_DISABLED_CLASS=va,E.ATTR_NESTED=Qs,E.ATTR_NORMALIZE_SLIDE_INDEX=si,E.ATTR_NO_SWIPING=Js,E.ATTR_NO_SWIPING_CLASS=ei,E.ATTR_NO_SWIPING_SELECTOR=ti,E.ATTR_OBSERVER=ri,E.ATTR_OBSERVE_SLIDE_CHILDREN=ai,E.ATTR_OBSERVE_SLIDE_PARENTS=ii,E.ATTR_ONE_WAY_MOVEMENT=ni,E.ATTR_PAGINATION_BULLET_ACTIVE_CLASS=ba,E.ATTR_PAGINATION_BULLET_CLASS=Yl,E.ATTR_PAGINATION_CLICKABLE=La,E.ATTR_PAGINATION_CLICKABLE_CLASS=ya,E.ATTR_PAGINATION_CURRENT_CLASS=Ia,E.ATTR_PAGINATION_DYNAMIC_BULLETS=Oa,E.ATTR_PAGINATION_DYNAMIC_MAIN_BULLETS=Ca,E.ATTR_PAGINATION_ENABLED=Ma,E.ATTR_PAGINATION_HIDDEN_CLASS=Pa,E.ATTR_PAGINATION_HIDE_ON_CLICK=Da,E.ATTR_PAGINATION_HORIZONTAL_CLASS=Na,E.ATTR_PAGINATION_LOCK_CLASS=Ul,E.ATTR_PAGINATION_MODIFIER_CLASS=xa,E.ATTR_PAGINATION_PAGINATION_DISABLED_CLASS=Ga,E.ATTR_PAGINATION_PROGRESSBAR_FILL_CLASS=Ba,E.ATTR_PAGINATION_PROGRESSBAR_OPPOSITE=za,E.ATTR_PAGINATION_TOTAL_CLASS=$a,E.ATTR_PAGINATION_TYPE=Ra,E.ATTR_PAGINATION_VERTICAL_CLASS=Ha,E.ATTR_PARALLAX=Jl,E.ATTR_PARALLAX_DURATION=ao,E.ATTR_PARALLAX_ENABLED=Ir,E.ATTR_PARALLAX_OPACITY=io,E.ATTR_PARALLAX_SCALE=so,E.ATTR_PARALLAX_X=eo,E.ATTR_PARALLAX_Y=to,E.ATTR_PASSIVE_LISTENERS=li,E.ATTR_PAUSE_ON_MOUSE_ENTER=Ua,E.ATTR_PLAYBACK_MODE=Or,E.ATTR_PREVENT_CLICKS=oi,E.ATTR_PREVENT_CLICKS_PROPAGATION=di,E.ATTR_PREVENT_INTERACTION_ON_TRANSITION=ci,E.ATTR_RESISTANCE=fi,E.ATTR_RESISTANCE_RATI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LED=Zl,E.ATTR_ZOOM_FADE=Ql,E.ATTR_ZOOM_LIMIT_TO_ORIGINAL_SIZE=_r,E.ATTR_ZOOM_MAX_RATIO=vr,E.ATTR_ZOOM_MIN_RATIO=Rr,E.ATTR_ZOOM_PAN_ON_MOUSE_MOVE=br,E.ATTR_ZOOM_TOGGLE=Lr,E.EL_NAVIGATION=no,E.EL_NAVIGATION_NEXT=Pr,E.EL_NAVIGATION_PREV=Dr,E.EL_PAGINATION=Cr,E.EL_PAGINATION_BULLET=Mr,E.EL_PAGINATION_BULLET_ACTIVE=ro,E.EL_SCROLLBAR=Nr,E.EL_SCROLLBAR_DRAG=xr,E.EL_SLIDE_COUNT=Gr,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})}));
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/index.html
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Wellflow Waterfall - Development</title>
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<h1>Wellflow Waterfall Development</h1>
|
|
10
|
+
<p>This is a development page for testing the library.</p>
|
|
11
|
+
|
|
12
|
+
<!-- Example Swiper structure for testing -->
|
|
13
|
+
<div data-waterfall="Test Swiper" style="max-width: 600px;">
|
|
14
|
+
<div class="swiper">
|
|
15
|
+
<div class="swiper-wrapper">
|
|
16
|
+
<div class="swiper-slide">Slide 1</div>
|
|
17
|
+
<div class="swiper-slide">Slide 2</div>
|
|
18
|
+
<div class="swiper-slide">Slide 3</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="swiper-pagination"></div>
|
|
21
|
+
<div class="swiper-button-prev"></div>
|
|
22
|
+
<div class="swiper-button-next"></div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<script type="module" src="/src/index.ts"></script>
|
|
27
|
+
</body>
|
|
28
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "well-waterfall",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "An attribute-based wrapper of SwiperJS for Webflow",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"build": "vite build",
|
|
7
9
|
"dev": "vite",
|
|
8
|
-
"
|
|
10
|
+
"preview": "vite preview",
|
|
11
|
+
"tsc": "tsc --noEmit"
|
|
9
12
|
},
|
|
10
13
|
"keywords": [],
|
|
11
14
|
"author": "kevingerstner",
|
|
12
15
|
"license": "ISC",
|
|
13
16
|
"dependencies": {
|
|
14
|
-
"css-loader": "^7.1.2",
|
|
15
17
|
"fs": "^0.0.1-security",
|
|
16
|
-
"style-loader": "^4.0.0",
|
|
17
18
|
"swiper": "^11.2.10"
|
|
18
19
|
},
|
|
19
20
|
"devDependencies": {
|
|
20
21
|
"@types/jquery": "^3.5.32",
|
|
21
22
|
"@types/node": "^22.10.5",
|
|
22
|
-
"@types/webpack": "^5.28.5",
|
|
23
23
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
24
24
|
"@typescript-eslint/parser": "^8.26.1",
|
|
25
|
-
"@vitejs/plugin-react": "^5.0.0",
|
|
26
25
|
"eslint": "^9.22.0",
|
|
27
26
|
"eslint-config-prettier": "^9.1.0",
|
|
28
27
|
"eslint-plugin-prettier": "^5.2.1",
|
|
29
28
|
"prettier": "^3.4.2",
|
|
30
|
-
"ts-loader": "^9.5.1",
|
|
31
29
|
"typescript": "^5.7.3",
|
|
32
30
|
"vite": "^7.1.2"
|
|
33
31
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare const APP_VERSION: string;
|
package/tsconfig.json
CHANGED
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
"noImplicitAny": true,
|
|
5
5
|
"strictNullChecks": true,
|
|
6
6
|
"strictFunctionTypes": true,
|
|
7
|
-
"target": "
|
|
7
|
+
"target": "ES2020",
|
|
8
8
|
"module": "ESNext",
|
|
9
9
|
"checkJs": true,
|
|
10
10
|
"moduleResolution": "bundler",
|
|
11
11
|
"esModuleInterop": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true,
|
|
12
13
|
"skipLibCheck": true,
|
|
13
|
-
"outDir": "
|
|
14
|
+
"outDir": "dist",
|
|
14
15
|
"baseUrl": "./src",
|
|
15
16
|
"paths": {
|
|
16
17
|
"lib/*": ["./lib/*"]
|
|
17
18
|
},
|
|
18
19
|
"resolveJsonModule": true,
|
|
19
20
|
"sourceMap": true,
|
|
20
|
-
"types": ["jquery"]
|
|
21
|
+
"types": ["jquery", "vite/client"]
|
|
21
22
|
},
|
|
22
23
|
"include": ["src/**/*", "src/**/*.tsx", "src/types/**/*.d.ts"],
|
|
23
24
|
"exclude": ["node_modules"]
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineConfig } from 'vite';
|
|
2
|
+
import { resolve } from 'path';
|
|
3
|
+
|
|
4
|
+
export default defineConfig({
|
|
5
|
+
build: {
|
|
6
|
+
lib: {
|
|
7
|
+
entry: resolve(__dirname, 'src/index.ts'),
|
|
8
|
+
name: 'Waterfall',
|
|
9
|
+
formats: ['umd'],
|
|
10
|
+
fileName: () => 'index.js'
|
|
11
|
+
},
|
|
12
|
+
outDir: 'dist',
|
|
13
|
+
sourcemap: true,
|
|
14
|
+
rollupOptions: {
|
|
15
|
+
// Ensure external dependencies are not bundled
|
|
16
|
+
external: [],
|
|
17
|
+
output: {
|
|
18
|
+
globals: {}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
resolve: {
|
|
23
|
+
alias: {
|
|
24
|
+
'lib': resolve(__dirname, 'src/lib')
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
define: {
|
|
28
|
+
APP_VERSION: JSON.stringify(process.env.npm_package_version)
|
|
29
|
+
},
|
|
30
|
+
css: {
|
|
31
|
+
// CSS will be injected into the bundle
|
|
32
|
+
postcss: {}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare const APP_VERSION: string; // Replace 'string' with the appropriate type
|
package/vite.config.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
// vite.config.ts
|
|
2
|
-
import { defineConfig } from 'vite';
|
|
3
|
-
import path from 'path';
|
|
4
|
-
import pkg from './package.json';
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [],
|
|
8
|
-
resolve: {
|
|
9
|
-
alias: {
|
|
10
|
-
lib: path.resolve(__dirname, 'src/lib'),
|
|
11
|
-
},
|
|
12
|
-
extensions: ['.js', '.ts', '.json'],
|
|
13
|
-
},
|
|
14
|
-
define: {
|
|
15
|
-
APP_VERSION: JSON.stringify(pkg.version),
|
|
16
|
-
},
|
|
17
|
-
build: {
|
|
18
|
-
outDir: 'dist',
|
|
19
|
-
lib: {
|
|
20
|
-
entry: path.resolve(__dirname, 'src/index.ts'),
|
|
21
|
-
name: 'Waterfall', // global variable name in browser
|
|
22
|
-
fileName: () => `index.js`,
|
|
23
|
-
formats: ['umd'],
|
|
24
|
-
},
|
|
25
|
-
rollupOptions: {
|
|
26
|
-
output: {
|
|
27
|
-
globals: {
|
|
28
|
-
// Map external dependencies to global variables for UMD
|
|
29
|
-
'some-other-external': 'someOtherExternal',
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
external: [
|
|
33
|
-
'some-other-external', // exclude from bundle
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
sourcemap: true,
|
|
37
|
-
},
|
|
38
|
-
css: {
|
|
39
|
-
// CSS is handled automatically by Vite, no need for style-loader/css-loader
|
|
40
|
-
},
|
|
41
|
-
});
|
package/webpack.config.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// webpack.config.js
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
entry: "./src/index.ts",
|
|
7
|
-
output: {
|
|
8
|
-
path: path.resolve(__dirname, 'dist'),
|
|
9
|
-
filename: 'index.js', // Output bundle file
|
|
10
|
-
library: 'Waterfall', // Name of the global variable if your package is used in the browser
|
|
11
|
-
libraryTarget: 'umd', // Universal module definition, for browser and Node.js
|
|
12
|
-
globalObject: 'this', // Ensures compatibility in different environments
|
|
13
|
-
},
|
|
14
|
-
module: {
|
|
15
|
-
rules: [
|
|
16
|
-
{
|
|
17
|
-
test: /\.css$/, // Apply this rule to all `.css` files
|
|
18
|
-
use: [
|
|
19
|
-
'style-loader', // Injects CSS into the DOM
|
|
20
|
-
'css-loader', // Turns CSS into CommonJS
|
|
21
|
-
],
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
test: /\.ts$/,
|
|
25
|
-
use: 'ts-loader',
|
|
26
|
-
exclude: /node_modules/,
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
externals: {
|
|
31
|
-
// Any dependencies you don't want to include in your bundle
|
|
32
|
-
'some-other-external': 'commonjs2 some-other-external',
|
|
33
|
-
},
|
|
34
|
-
mode: 'development', // Can be 'development' for debugging
|
|
35
|
-
resolve: {
|
|
36
|
-
extensions: ['.js', '.ts', '.json'], // Add file extensions you use
|
|
37
|
-
alias: {
|
|
38
|
-
lib: path.resolve(__dirname, 'src/lib'),
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
plugins: [
|
|
42
|
-
new webpack.DefinePlugin({
|
|
43
|
-
APP_VERSION: JSON.stringify(require('./package.json').version),
|
|
44
|
-
}),
|
|
45
|
-
],
|
|
46
|
-
};
|