1class Dropdown{constructor(element){this.dropdown=element,this.toggleCTA=element.querySelector(".dropdown-toggle"),this.supportedEvents=["click","touchend","mouseenter","mouseleave","focusout"],this.init()}init(){this.supportedEvents.forEach(type=>{type==="click"||type==="touchend"?this.toggleCTA.addEventListener(type,evt=>{(evt.target.closest(".drawer-body")||evt.detail===0)&&evt.preventDefault(),evt.detail!==0&&this.toggleDropdown()}):type==="mouseenter"?(this.toggleCTA.addEventListener(type,evt=>{this.dropdownShow(this.dropdown)}),this.toggleCTA.addEventListener(type,_evt=>{this.childOnFocusChange(this.dropdown)})):type==="mouseleave"?this.dropdown.addEventListener(type,evt=>{this.dropdownHide(this.dropdown)}):type=="focusout"&&this.dropdown.addEventListener(type,evt=>{!this.dropdown.contains(evt.relatedTarget)&&this.dropdown.classList.contains("open")&&this.dropdownHide(this.dropdown)})}),this.toggleCTA.addEventListener("keydown",evt=>{evt.key!=="Enter"&&evt.key!==" "||(evt.preventDefault(),evt.stopPropagation(),this.toggleDropdown())}),this.bindEvents()}bindEvents(){const closeBtn=this.dropdown.querySelector(".slideout-submenu");closeBtn&&closeBtn.addEventListener("click",evt=>{evt.preventDefault(),this.dropdownToggle(this.dropdown)})}toggleDropdown(){this.dropdownToggle(this.dropdown)}dropdownToggle(dropdownParent){setTimeout(()=>{dropdownParent.classList.contains("open")?this.dropdownHide(dropdownParent):this.dropdownShow(dropdownParent)},50)}dropdownShow(dropdownParent){dropdownParent&&(this.toggleCTA.setAttribute("aria-expanded",!0),dropdownParent.classList.add("open"))}dropdownHide(dropdownParent){if(!dropdownParent)return;this.toggleCTA.setAttribute("aria-expanded",!1),dropdownParent.classList.remove("open");const childDropdowns=dropdownParent.querySelectorAll(".dropdown.open");childDropdowns.length>0&&childDropdowns.forEach(child=>{child.classList.remove("open"),child.querySelector(".dropdown-toggle").setAttribute("aria-expanded",!1)})}childOnFocusChange(dropdownParent){const openDropdowns=Array.from(dropdownParent.parentElement.querySelectorAll(".dropdown.open")),currentIndex=openDropdowns.indexOf(dropdownParent);openDropdowns.forEach(ele=>{openDropdowns.indexOf(ele)!==currentIndex&&this.dropdownHide(ele)})}}const allDropdowns=document.querySelectorAll('[is="drop-down"]');allDropdowns.forEach(ele=>{new Dropdown(ele)});class SiteOverlay extends HTMLElement{constructor(){super(),this.overlayElement=document.querySelector("#site-overlay"),this.bindEvents()}bindEvents(){this.addEventListener("click",this.onClick.bind(this)),this.addEventListener("touchend",this.onClick.bind(this))}onClick(){document.querySelector("search-modal")?.classList.contains("open__modal")&&document.querySelector(".search-modal__close-button")?.dispatchEvent(new Event("click")),this.hideOverlay()}showOverlay(){document.querySelector("#site-overlay").classList.add("overlay--body"),document.querySelector("#site-overlay").setAttribute("aria-hidden",!1),document.body.classList.add("scroll-fixed")}hideOverlay(){document.querySelectorAll("custom-drawer.open").forEach(drawer=>{drawer.closeDrawer()}),document.querySelector("#site-overlay").classList.remove("overlay--body"),document.querySelector("#site-overlay").setAttribute("aria-hidden",!0),document.body.classList.remove("scroll-fixed")}disconnectedCallback(){this.removeEventListener("click",this.onClick.bind(this)),this.removeEventListener("touchend",this.onClick.bind(this))}}customElements.define("site-overlay",SiteOverlay,{once:!0});class CustomVideo extends HTMLElement{constructor(){super(),this.type=this.getAttribute("data-video-type"),this.videoURL=this.getAttribute("data-video-id"),this.placementType=this.getAttribute("data-placement"),this.videoStatus="empty",this.isPlaying=!1,this.container=this.closest(".custom-video-container"),this.videoModal=document.getElementById("PopupModal-video"),this.contentSection=this.querySelector(".content-section"),this.videoSection=this.querySelector(".video-section"),this.placementType=="popup"&&(this.videoSection=this.videoModal.querySelector(".video-container")),this.triggerVideo=this.container.querySelector("[data-trigger-video]")}connectedCallback(){this.bindEvents()}disconnectedCallback(){this.triggerVideo&&this.triggerVideo.removeEventListener("click",this.toggleView.bind(this))}
1bindEvents(){this.querySelector("[data-postervideo]")&&this.managePosterVideos(),this.triggerVideo&&this.triggerVideo.addEventListener("click",this.toggleView.bind(this)),this.dataset.autoplay=="true"&&!this.closest("swiper-slide")&&this.placementType!=="popup"&&this.autoplayOnInit()}focusOut(_event){this.container.classList.contains("playing--video")&&this.toggleView()}toggleView(event){event&&event.preventDefault();const isOpen=this.container.classList.contains("playing--video");if(this.dataset.autoplay=="true")if(this.placementType==="popup")if(this.videoStatus==="empty")requestAnimationFrame(()=>{const videoElement=this._buildVideo();videoElement.id="custom-video"+Math.floor(Math.random()*100+1),this.videoSection.appendChild(videoElement),this.videoStatus="loaded",this._setVolume(videoElement),setTimeout(()=>{openModal(this.videoModal,this.triggerVideo),this.videoSection.setAttribute("aria-hidden","false"),this._playVideo(videoElement)},500)});else if(this.videoModal&&this.videoModal.classList.contains("open"))this.hideContent();else{let videoElement=this.videoSection.querySelector("video")||this.videoSection.querySelector("iframe");videoElement||(videoElement=this._buildVideo(),videoElement.id="custom-video"+Math.floor(Math.random()*100+1),this.videoSection.appendChild(videoElement),this.videoStatus="loaded",this._setVolume(videoElement)),openModal(this.videoModal,this.triggerVideo),this.videoSection.setAttribute("aria-hidden","false"),setTimeout(()=>{this._playVideo(videoElement)},300)}else isOpen?this.hideContent():this.showContent();else if(this.videoStatus==="empty")requestAnimationFrame(()=>{const videoElement=this._buildVideo();if(videoElement.id="custom-video"+Math.floor(Math.random()*100+1),this.videoSection.appendChild(videoElement),this.videoStatus="loaded",this._setVolume(videoElement),this.placementType==="popup")setTimeout(()=>{openModal(this.videoModal,this.triggerVideo),this.videoSection.setAttribute("aria-hidden","false"),this.dataset.autoplay=="true"?this._playVideo(videoElement):this._updatePlayButtonIcon(!1)},500);else if(this.type==="local")videoElement.addEventListener("canplay",()=>{this.container.classList.add("playing--video"),this.videoSection.setAttribute("aria-hidden","false"),this._playVideo(videoElement)},{once:!0}),videoElement.readyState>=3&&(this.container.classList.add("playing--video"),this.videoSection.setAttribute("aria-hidden","false"),this._playVideo(videoElement));else{let hasShown=!1;const showAndPlay=()=>{hasShown||(hasShown=!0,setTimeout(()=>{this.container.classList.add("playing--video"),this.videoSection.setAttribute("aria-hidden","false"),this._playVideo(videoElement)},300))};videoElement.addEventListener("load",showAndPlay,{once:!0}),setTimeout(()=>{!hasShown&&videoElement.contentWindow&&showAndPlay()},500),setTimeout(()=>{hasShown||showAndPlay()},2e3)}});else{let videoElement=this.videoSection.querySelector("video")||this.videoSection.querySelector("iframe");videoElement||(videoElement=this._buildVideo(),videoElement.id="custom-video"+Math.floor(Math.random()*100+1),this.videoSection.appendChild(videoElement),this.videoStatus="loaded",this._setVolume(videoElement)),videoElement&&(this.isPlaying?this._pauseVideo(videoElement):this.placementType==="popup"?this.videoModal&&!this.videoModal.classList.contains("open")?(openModal(this.videoModal,this.triggerVideo),setTimeout(()=>{this.videoSection.setAttribute("aria-hidden","false"),this._playVideo(videoElement)},300)):(this.videoSection.setAttribute("aria-hidden","false"),this._playVideo(videoElement)):(this.container.classList.contains("playing--video")||(this.container.classList.add("playing--video"),this.videoSection.setAttribute("aria-hidden","false")),this._playVideo(videoElement)))}}showContent(){if(this.videoStatus==="empty"||this.placementType==="popup"){const videoElement=this._buildVideo();videoElement.id="custom-video"+Math.floor(Math.random()*100+1),this.videoSection.appendChild(videoElement),this.videoStatus="loaded",setTimeout(()=>{this.placementType==="popup"?openModal(this.videoModal,this.triggerVideo):this.container.classList.add("playing--video"),this.videoSection.setAttribute("aria-hidden","false");const shouldAutoplay=this.dataset.autoplay=="true";this._setVolume(videoElement),shouldAutoplay?this._playVideo(videoElement):this._updatePlayButtonIcon(!1),this.dataset.controls=="true"&&this.pauseOnVisibilityChange(videoElement)},500)}else{const videoElement=this.querySelector(".video-section video")||this.querySelector(".video-section iframe");this.container.classList.add("playing--video");const shouldAutoplay=this.dataset.autoplay=="true";this._setVolume(videoElement),shouldAutoplay&&this._playVideo(videoElement),shouldAutoplay||this._updatePlayButtonIcon(!1)}}hideContent(){this.container.classList.remove("playing--video"),this.videoSection.setAttribute("aria-hidden","true");const videoElement=this.querySelector(".video-section video")||this.querySelector(".video-section iframe");videoElement&&this._pauseVideo(videoElement)}_setVolume(video){if(!(!video||this.dataset.muted==="true")){if(this.t
1ype==="local")video.volume=.2;else if(this.type==="youtube"||this.type==="dynamic"){const setVolumeCommand=()=>{try{video.contentWindow&&(video.src&&video.src.includes("vimeo.com")?video.contentWindow.postMessage('{"method":"setVolume","value":0.2}',"*"):video.contentWindow.postMessage('{"event":"command","func":"setVolume","args":[20]}',"*"))}catch{setTimeout(setVolumeCommand,100)}};video.contentWindow?(setVolumeCommand(),setTimeout(setVolumeCommand,400)):(setTimeout(setVolumeCommand,200),setTimeout(setVolumeCommand,600))}}}_playVideo(video){if(this.isPlaying=!0,this.type=="local")video.play().then(()=>{this._updatePlayButtonIcon(!0)}).catch(()=>{this.isPlaying=!1,this._updatePlayButtonIcon(!1)});else if(this.type=="youtube"||this.type=="dynamic"){this._updatePlayButtonIcon(!0),this._setVolume(video);const sendPlayCommand=()=>{try{video.src&&video.src.includes("vimeo.com")?video.contentWindow.postMessage('{"method":"play"}',"*"):video.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}catch{setTimeout(sendPlayCommand,100)}};video.contentWindow?(sendPlayCommand(),setTimeout(sendPlayCommand,400)):setTimeout(sendPlayCommand,200)}}_updatePlayButtonIcon(isPlaying){if(!this.triggerVideo||this.placementType==="popup")return;const playIcon=this.triggerVideo.querySelector(".play-icon"),pauseIcon=this.triggerVideo.querySelector(".pause-icon");playIcon&&pauseIcon&&(isPlaying?(playIcon.classList.add("d-none"),pauseIcon.classList.remove("d-none")):(playIcon.classList.remove("d-none"),pauseIcon.classList.add("d-none")))}_pauseVideo(video){this.isPlaying=!1,this.type==="local"?(video.pause(),this._updatePlayButtonIcon(!1)):(this.type==="youtube"||this.type==="dynamic")&&video.contentWindow&&(video.src&&video.src.includes("vimeo.com")?video.contentWindow.postMessage('{"method":"pause"}',"*"):video.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*"),this._updatePlayButtonIcon(!1))}_buildVideo(){let video,videoURL=this.videoURL;if(this.type=="local"){video=document.createElement("video"),video.src=videoURL,this.dataset.controls=="true"&&(video.controls=this.dataset.controls);const isMuted=this.dataset.muted==="true";video.muted=isMuted,isMuted||(video.volume=.2),this.dataset.autoplay=="true"&&(video.autoplay=this.dataset.autoplay);const shouldLoop=this.dataset.loop==="true";video.loop=shouldLoop,video.playsInline=!0}else if(this.type=="youtube"||this.type=="dynamic"){const shouldAutoplay=this.dataset.autoplay=="true";let videoID="";if(videoURL.includes("youtube.com/watch?v="))videoID=videoURL.split("v=")[1]?.split("&")[0];else if(videoURL.includes("youtu.be/"))videoID=videoURL.split("youtu.be/")[1]?.split("?")[0];else if(videoURL.includes("youtube.com/embed/"))videoID=videoURL.split("embed/")[1]?.split("?")[0];else if(videoURL.includes("vimeo.com/")){const vimeoID=videoURL.match(/vimeo\.com\/(\d+)/)?.[1];if(vimeoID){video=document.createElement("iframe"),video.setAttribute("allowfullscreen",""),video.setAttribute("frameborder","0"),video.setAttribute("allow","autoplay");const isMuted=this.dataset.muted==="true",hasControls=this.dataset.controls==="true",loopParam=this.dataset.loop==="true"?"&loop=1":"&loop=0";return video.setAttribute("src",`https://player.vimeo.com/video/${vimeoID}?autoplay=${shouldAutoplay?1:0}&muted=${isMuted?1:0}${loopParam}&controls=${hasControls?1:0}`),video}}if(videoID){video=document.createElement("iframe"),video.setAttribute("allowfullscreen",""),video.setAttribute("frameborder","0"),video.setAttribute("allow","autoplay");const isMuted=this.dataset.muted==="true",hasControls=this.dataset.controls==="true",loopParam=this.dataset.loop==="true"?`&loop=1&playlist=${videoID}`:"",muteParam=`&mute=${isMuted?1:0}`;video.setAttribute("src",`https://www.youtube.com/embed/${videoID}?rel=0&showinfo=0&autoplay=${shouldAutoplay?1:0}${muteParam}&controls=${hasControls?1:0}${loopParam}&enablejsapi=1&origin=${window.origin}`)}}return video}pauseOnVisibilityChange(videoEle){this.scrollObserver=new IntersectionObserver(entries=>{if(videoEle==null||videoEle.contentWindow==null){this.scrollObserver.disconnect();return}entries[0].isIntersecting||this._pauseVideo(videoEle)}),this.scrollObserver.observe(videoEle)}managePosterVideos(){const posterVideo=this.querySelector("[data-postervideo
1]");if(!posterVideo)return;const videoIntersection=entries=>{for(const entry of entries)if(entry.isIntersecting&&entry.target){const sourceTag=document.createElement("source");sourceTag.src=entry.target.dataset.src,sourceTag.type="video/mp4",entry.target.appendChild(sourceTag),entry.target.play(),observerPosterVideo.disconnect()}},observerPosterVideo=new IntersectionObserver(videoIntersection);observerPosterVideo.observe(posterVideo)}autoplayOnInit(element=this){const elementIntersection=entries=>{entries[0].isIntersecting&&entries[0].intersectionRatio>0&&(element.toggleView(),observeElement.disconnect())};let observeElement=new IntersectionObserver(elementIntersection);observeElement.observe(element)}}customElements.define("custom-video",CustomVideo);function openModal(modal,opener){modal&&opener!=null&&modal.show(opener)}class ModalDialog extends HTMLElement{constructor(){super(),this.modal=this.querySelector(".modal"),this.modalOpeners=[...document.querySelectorAll(`[data-modal-opener="${this.id}"]`)],this.closeBtn=this.querySelector('[id^="ModalClose-"]')}connectedCallback(){this.modalOpeners.forEach(opener=>{opener.addEventListener("click",evt=>{evt.preventDefault(),this.show(opener)})}),this.closeBtn&&this.closeBtn.addEventListener("click",this.hide.bind(this)),this.addEventListener("click",evt=>{const modalContent=this.querySelector(".modal-content");(evt.target===this||modalContent&&!modalContent.contains(evt.target))&&this.hide()}),this.addEventListener("keyup",evt=>{evt.code&&evt.code.toUpperCase()==="ESCAPE"&&this.hide()})}disconnectedCallback(){this.modalOpeners.forEach(opener=>{opener.removeEventListener("click",this.show.bind(this))}),this.closeBtn&&this.closeBtn.removeEventListener("click",this.hide.bind(this)),this.removeEventListener("click",this.hide),this.removeEventListener("keyup",this.hide)}show(opener){this.openedBy=opener,this.modal.classList.add("open"),this.setAttribute("aria-hidden",!1),SiteOverlay.prototype.showOverlay(),Utility.trapFocus(this),Utility.forceFocus(this.closeBtn)}hide(){this.modal.classList.remove("open"),this.setAttribute("aria-hidden",!0),SiteOverlay.prototype.hideOverlay(),Utility.removeTrapFocus(this.openedBy),this.id=="PopupModal-video"&&(this.querySelector(".video-container").innerHTML="",document.querySelectorAll('custom-video[data-placement="popup"]').forEach(customVideo=>{customVideo.videoStatus&&(customVideo.videoStatus="empty",customVideo.isPlaying=!1)}))}}customElements.define("modal-dialog",ModalDialog);class ToastNotification extends HTMLElement{constructor(){super(),this.container=this.querySelector(".snotifyToast"),this.closeBtn=this.querySelector(".snotifyToast__close"),this.animateNotifcation=null,this.container.setAttribute("role","alert")}connectedCallback(){this.closeBtn&&this.closeBtn.addEventListener("click",e=>{e.preventDefault(),this.hide()})}disconnectedCallback(){this.closeBtn&&this.closeBtn.removeEventListener("click",this.hide.bind(this))}updateNotification(title,body,options){this.querySelector(".snotifyToast__title").textContent=title,this.querySelector(".snotifyToast__body").textContent=body,this.container.classList.add("open",`snotify-${options.type}`),this._manageToggle(options.timeout)}_manageToggle(timeout){this.progressBar=this.querySelector("[data-toast-pr]");const totalFrames=Math.ceil(timeout/16.67)/2;let frame=0,width=0;this.animateNotifcation=()=>{width=frame/totalFrames*100,this.progressBar.setAttribute("style",`width: ${width}%`),frame<totalFrames?(frame++,requestAnimationFrame(this.animateNotifcation)):this.closeBtn.dispatchEvent(new Event("click"))},requestAnimationFrame(this.animateNotifcation)}hide(){this.animateNotification&&cancelAnimationFrame(this.animateNotification),this.container.className="snotifyToast",[this.querySelector(".snotifyToast__title"),this.querySelector(".snotifyToast__body")].forEach(ele=>ele.textContent=""),this.querySelector("[data-toast-pr]").removeAttribute("style")}}customElements.define("toast-notification",ToastNotification),window.notificationEle=document.querySelector("toast-notification");class CustomDrawer extends HTMLElement{constructor(){super(),this.isOpen=!1,this.openedBy=null,this.toggleDrawer=document.querySelectorAll(`[data-toggleDrawer="${this.id}"]`),this.closeButtons=this.querySelectorAll("[data-closedrawer]"),this.forceFocus=this.querySelector(".drawer-header")||this.querySelector(".first-focusable-ele")}connectedCallback(){this.classList.contains("open")||(this.setAttribute("inert",""),this.setAttribute("aria-hidden","true")),this.bindEvents()}disconnectedCallback(){this.toggleDrawer.forEach(btn=>btn.removeEventListener("click",this.openDrawer())),this.closeButtons.forEach(btn=>btn.removeEventListener("click",this.closeDrawer.bind(this))),this.removeEventListener("keyup",this.onKeyUp.bind(this)),this.removeEventListener("focusout",this.focusOut.bind(this))}bindEvents(){this.toggleDrawer.forEach(btn=>{btn.setAttribute("aria-expanded",!1),btn.addEventListener("click",evt=>
1{evt.preventDefault(),btn.dataset.for=="collection-sorting"?(this.classList.add("collection-sorting"),setTimeout(()=>{this.isOpen?this.closeDrawer(evt):this.openDrawer(evt.currentTarget)},500)):this.isOpen?this.closeDrawer(evt):this.openDrawer(evt.currentTarget)})}),this.closeButtons.forEach(btn=>btn.addEventListener("click",this.closeDrawer.bind(this))),this.addEventListener("keyup",this.onKeyUp.bind(this)),this.addEventListener("focusout",this.focusOut.bind(this))}onKeyUp(evt){evt.keyCode&&evt.keyCode!==27||this.closeDrawer()}focusOut(evt){!this.contains(evt.relatedTarget)&&this.open&&this.closeDrawer()}openDrawer(opener){this.resetOtherDrawers(),this.isOpen=!0,this.openedBy=opener||null,this.classList.add("open"),this.setAttribute("aria-hidden","false"),this.removeAttribute("inert"),this.openedBy?.setAttribute("aria-expanded",!0),SiteOverlay.prototype.showOverlay(),Utility.trapFocus(this,this.forceFocus),Utility.forceFocus(this.forceFocus)}closeDrawer(){this.isOpen=!1,this.classList.remove("open"),this.setAttribute("aria-hidden","true"),this.setAttribute("inert",""),this.openedBy?.setAttribute("aria-expanded",!1),setTimeout(()=>{this.classList.remove("collection-sorting")},500),SiteOverlay.prototype.hideOverlay(),Utility.removeTrapFocus(this.openedBy),this.openedBy=null}resetOtherDrawers(){document.querySelectorAll("custom-drawer.open").forEach(drawer=>{})}}customElements.define("custom-drawer",CustomDrawer);class ReadMore extends HTMLElement{constructor(){super(),this.maxLines=parseInt(this.dataset.maxLine)||3,this.isExpanded=!1,this.originalText="",this.readMoreLink=null,this.textContainer=null,this.fadeGradient=null,this.maxHeight=0}connectedCallback(){this.init()}disconnectedCallback(){this.readMoreLink&&this.readMoreLink.removeEventListener("click",this.toggle.bind(this))}init(){this.originalText=this.innerHTML.trim(),this.textContainer=document.createElement("div"),this.textContainer.className="read-more-text",this.textContainer.innerHTML=this.originalText,this.innerHTML="",this.appendChild(this.textContainer),setTimeout(()=>this.checkTruncation(),100)}checkTruncation(){const computedStyle=window.getComputedStyle(this.textContainer),lineHeight=parseFloat(computedStyle.lineHeight);this.maxHeight=lineHeight*this.maxLines;const testElement=document.createElement("div");testElement.style.cssText=` 2 position: absolute; 3 visibility: hidden; 4 width: ${this.textContainer.offsetWidth}px; 5 font-size: ${computedStyle.fontSize}; 6 line-height: ${computedStyle.lineHeight}; 7 font-family: ${computedStyle.fontFamily}; 8 word-wrap: break-word; 9 overflow-wrap: break-word; 10 `,testElement.innerHTML=this.originalText,document.body.appendChild(testElement);const needsTruncation=testElement.offsetHeight>this.maxHeight;document.body.removeChild(testElement),needsTruncation&&this.setupTruncation()}setupTruncation(){this.textContainer.style.maxHeight=`${this.maxHeight}px`,this.fadeGradient=document.createElement("div"),this.fadeGradient.className="read-more-fade",this.textContainer.appendChild(this.fadeGradient),this.readMoreLink=document.createElement("a"),this.readMoreLink.href="#",this.readMoreLink.className="read-more-link fade-in mt-1",this.readMoreLink.textContent="Read More",this.appendChild(this.readMoreLink),setTimeout(()=>{this.readMoreLink.classList.add("show")},100),this.readMoreLink.addEventListener("click",this.toggle.bind(this))}toggle(event){event.preventDefault(),this.isExpanded?this.collapse():this.expand()}expand(){this.isExpanded=!0,this.fadeGradient&&(this.fadeGradient.style.opacity="0"),this.readMoreLink.classList.add("text-changing");const fullHeight=this.textContainer.scrollHeight;this.textContainer.style.maxHeight=`${fullHeight}px`,setTimeout(()=>{this.textContainer.style.maxHeight=`${fullHeight}px`,this.readMoreLink.textContent="Read Less",this.readMoreLink.classList.remove("text-changing")},200)}collapse(){this.isExpanded=!1,this.fadeGradient&&(this.fadeGradient.style.opacity="0.1"),this.readMoreLink.classList.add("text-changing"),this.textContainer.style.maxHeight=`${this.textContainer.scrollHeight}px`,setTimeout(()=>{this.textContainer.style.maxHeight=`${this.maxHeight}px`,this.readMoreLink.textContent="Read More",this.readMoreLink.classList.remove("text-changing")},50)}}customElements.define("read-more",ReadMore);const swiperSliders=document.querySelectorAll("swiper-container");
10swiperSliders.forEach(swiperEle=>{swiperEle.addEventListener("swiperslidechange",event=>{const index=event.detail[0].activeIndex,swipDirection=event.detail[0].swipeDirection,prevSlide=swiperEle.querySelector(`swiper-slide[data-index="${swipDirection=="prev"?index+2:index}"]`),activeSlide=swiperEle.querySelector(`swiper-slide[data-index="${index+1}"]`);if(prevSlide&&prevSlide.querySelector(".custom-video-container.playing--video")){let customElement=prevSlide.querySelector("custom-video"),videoEle=customElement.querySelector("video")||customElement.querySelector("iframe");videoEle&&customElement.dataset.controls=="true"&&customElement._pauseVideo(videoEle)}if(prevSlide&&activeSlide.querySelector(".custom-video-container")){let customElement=activeSlide.querySelector("custom-video");if(customElement.videoStatus=="empty")customElement.toggleView();else{let videoEle=customElement.querySelector("video")||customElement.querySelector("iframe");videoEle&&customElement._playVideo(videoEle)}}})}),(function(){let headerEle=document.querySelector(".section-header");if(headerEle!=null){let headerHeight=headerEle.clientHeight;document.querySelector(":root").style.setProperty("--bs-navdrawer",`${headerHeight}px`),document.querySelector(":root").style.setProperty("--bs-mobile-navdrawer",`${headerHeight}px`)}const stickyTopbars=document.querySelectorAll('[data-top-bar][data-sticky="true"]');let totalTopbarHeight=0;stickyTopbars.forEach(topbar=>{totalTopbarHeight+=topbar.clientHeight}),document.documentElement.style.setProperty("--bs-topbar-height",`${totalTopbarHeight}px`)})();const sections=document.querySelectorAll(".media-with-text.with-animate");function checkInitialSections(){sections.forEach(section=>{section.getBoundingClientRect().bottom<0&§ion.classList.add("animated")})}const observer=new IntersectionObserver((entries,observer2)=>{entries.forEach(entry=>{entry.isIntersecting&&entry.target.classList.add("animated")})},{root:null,rootMargin:"0px",threshold:.2});sections.forEach(section=>{observer.observe(section)}),document.addEventListener("DOMContentLoaded",checkInitialSections),document.addEventListener("click",evt=>{if(!evt.target.closest("[data-skip-to-chat]"))return;const chat=window.GorgiasChat||window.gorgiasChat;!chat||typeof chat.open!="function"||(evt.preventDefault(),chat.open(),setTimeout(()=>{document.querySelector('iframe[id*="gorgias"], iframe[title*="chat" i]')?.focus()},300))}); 11//# sourceMappingURL=/cdn/shop/t/61/assets/global.js.map?v=164326155966012926121778249605
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.