1"use strict";(self.webpackChunkmckesson_dotcom_frontend=self.webpackChunkmckesson_dotcom_frontend||[]).push([[746],{746:(e,i,t)=>{t.r(i),t.d(i,{default:()=>l});var r=t(880),s=t(236),n=t(848);function o(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,i||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:i+""}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}const l=class{constructor(e){var i,t,l;o(this,"prepareStyles",(e=>{e.forEach((e=>{e.style.opacity=0}))})),o(this,"slideIn",(e=>{r.os.fromTo(e,{x:50,y:50},{x:0,y:0,opacity:1,stagger:.3,duration:.6})})),o(this,"handleIntersection",((e,i)=>{e.forEach((e=>{e.isIntersecting&&(this.slideIn([...this.thumbnailSlides]),i.unobserve(e.target))}))})),this.$el=e,this.videoContainer=null===(i=this.$el)||void 0===i?void 0:i.querySelector(".slider-videos__video .slider__container"),this.thumbnailContainer=null===(t=this.$el)||void 0===t?void 0:t.querySelector(".slider-videos__thumbnail .slider__container"),this.thumbnailSlides=null===(l=this.thumbnailContainer)||void 0===l?void 0:l.querySelectorAll(".swiper-slide");const a=window.matchMedia("(width >= 1200px)"),d={modules:[n.Vx,n.Ze],wrapperClass:"slider__wrapper--video",watchOverflow:!0,watchSlidesProgress:!0,allowTouchMove:!1,a11y:!0,spaceBetween:20,sliderPerView:1,on:{slideChange:()=>{var e;const i=null===(e=this.videoContainer)||void 0===e?void 0:e.querySelectorAll(".vidyard-player-container");null==i||i.forEach((e=>{var i;null===(i=window)||void 0===i||null===(i=i.VidyardV4)||void 0===i||null===(i=i.players)||void 0===i||i.forEach((i=>{e===i.container&&i.pause()}))}))}}},c={modules:[n.Vx,n.Ze],watchOverflow:!0,watchSlidesProgress:!0,wrapperClass:"slider__wrapper--thumbnail",navigation:{nextEl:".slider__button--next",prevEl:".slider__button--prev"},scrollbar:{el:".swiper-scrollbar",draggable:!0,hide:!1},slideToClickedSlide:!0,a11y:!0,spaceBetween:20,slidesPerView:"auto",breakpoints:{768:{spaceBetween:24}},on:{init:e=>{e.slides[0].classList.add("slider-thumbnail-active")},click:(e,i)=>{i.target.classList.contains("swiper-slide-visible")&&([...this.thumbnailSlides].map((e=>e.classList.remove("slider-thumbnail-active"))),i.target.classList.add("slider-thumbnail-active"),this.videosSwiper.slideTo(e.clickedIndex),this.videoContainer.scrollIntoView())}}};this.thumbnailSwiper=new s.A(this.thumbnailContainer,c),this.videosSwiper=new s.A(this.videoContainer,d),window.matchMedia("(prefers-reduced-motion: no-preference)").matches&&a.matches&&(this.prepareStyles([...this.thumbnailSlides]),this.observerConfig={threshold:.5},this.observer=new IntersectionObserver(this.handleIntersection,this.observerConfig),this.observer.observe(this.$el))}}}}]);
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.