PageSourceSearch

https://www.hubspot.es/hubfs/hub_generated/template_assets/1/20164…late_csol-media-with-rich-text.mount.min.js

js hubspot.es collected 2026-09-24 07:52:42 UTC 23,222 bytes, 2 lines download raw bytes

1(()=>{"use strict";const i=(t,{container:i,strict:s=!1}={})=>{i=i instanceof Element?i:document.documentElement;let n=null;if(t instanceof Element?n=i.contains(t)?t:null:"string"==typeof t&&(n=((t,{container:e}={})=>((t,{container:e}={})=>(t=document.getElementById(t),e instanceof Element&&!e.contains(t)?null:t))(t,{container:e})||((t,{container:e}={})=>(e instanceof Element?e:document.documentElement).querySelector(t))(t,{container:e}))(t,{container:i})),s&&!n)throw new Error("[getElement]: No element found.");return n};let s="data-cl-mounted";const n=class{element;id;settings={};ui={};static get defaultSettings(){return{}}get isMounted(){return!!this.element&&this.element.hasAttribute(s)}set isMounted(t){var e;e=this.element,t?e.setAttribute(s,""):e.removeAttribute(s)}constructor(e,s={}){var n=i(e,{strict:!0});if(!n)throw new Error("ClComponent: element not found for "+e);this.element=n,this.element.clComponent&&console.warn(`Element ${this.element} was previously initialized as a ClComponent, using constructor ${this.element.clComponent?.constructor?.name}.\nWe recommend only using one component per element. Proceed with caution!`),this.element.id||=(({prefix:t="cl-id-"}={})=>""+t+(window.crypto&&"function"==typeof window.crypto.randomUUID?window.crypto.randomUUID():Math.random().toString(36).substring(2)))(),this.id=this.element.id,this.settings={...this.constructor.defaultSettings,...s},this.element.clComponent=this}update(t={}){this.settings={...this.settings,...t}}mount(){throw new Error("mount() must be implemented by the subclass extending ClComponent")}unmount(){throw new Error("unmount() must be implemented by the subclass extending ClComponent")}on(t,e,i){this.element.addEventListener(t,e,i)}destroy(){this.unmount(),delete this.element.clComponent,this.settings={},this.ui={},delete this.id,delete this.element}};class r extends n{lastScrollDirection;directionChangeCount=0;hasExcessDots=!1;swipeStartX=null;swipeStartY=null;swipeStartTrainTranslateX=0;autoplayIntervalId=null;autoplayState=r.AUTOPLAY_STATES.inactive;computedStyle;style;container;controlsPosition;slideCountValue=0;dotCount=0;activeDotIndex=0;dotsListOffset=0;intersectionObserver;isExcessInfinite=!1;isExcessConstrained=!1;static get EVENTS(){return{change:"cl-carousel:change"}}static get CSS_CLASSES(){return{CUSTOM_BREAKPOINTS:"-custom-breakpoints",ACTIVE:"-active",INFINITE:"-infinite",SCROLLING:"-scrolling",DRAGGING:"-dragging",CLONE:"-clone",USE_CONTAINER:"-use-container",CONTROLS_BOTTOM:"-bottom",ELEMENT:"cl-carousel",RAIL:"cl-carousel-rail",TRAIN:"cl-carousel-train",SLIDE:"cl-carousel-slide",CONTROLS:"cl-carousel-controls",PREVIOUS:"cl-carousel-controls-previous",NEXT:"cl-carousel-controls-next",AUTOPLAY_TOGGLE:"cl-carousel-autoplay-toggle",DOTS_LIST:"cl-carousel-dots-list",DOTS_ITEM:"cl-carousel-dots-item"}}static get SELECTORS(){return{ELEMENT:"."+r.CSS_CLASSES.ELEMENT,RAIL:`.${r.CSS_CLASSES.RAIL}, [data-cl-carousel="rail"]`,TRAIN:"."+r.CSS_CLASSES.TRAIN,SLIDE:"."+r.CSS_CLASSES.SLIDE,CONTROLS:"."+r.CSS_CLASSES.CONTROLS,PREVIOUS:`.${r.CSS_CLASSES.PREVIOUS}, [data-cl-carousel="<"]`,NEXT:`.${r.CSS_CLASSES.NEXT}, [data-cl-carousel=">"]`,AUTOPLAY_TOGGLE:"."+r.CSS_CLASSES.AUTOPLAY_TOGGLE,DOTS_LIST:`.${r.CSS_CLASSES.DOTS_LIST}, [data-cl-carousel="dots"]`}}static get CUSTOM_PROPERTIES(){return{IS_ACTIVE:"--cl-carousel-is-active",SLIDE_COUNT:"--cl-carousel-slide-count",ACTIVE_SLIDE_INDEX:"--cl-carousel-active-slide-index",SLIDES_PER_VIEW:"--cl-carousel-slides-per-view",SLIDES_TO_SCROLL:"--cl-carousel-slides-to-scroll",SLIDE_GAP:"--cl-carousel-slide-gap",PEEK:"--cl-carousel-peek",PEEK_BEFORE:"--cl-carousel-peek-before",PEEK_AFTER:"--cl-carousel-peek-after",EASING:"--cl-carousel-easing",ANIMATION_DURATION:"--cl-carousel-animation-duration",DOT_SIZE:"--cl-carousel-dot-size",DOT_GAP:"--cl-carousel-dot-gap",SHOW_DOTS:"--cl-carousel-show-dots",AUTOPLAY_INTERVAL:"--cl-carousel-autoplay-interval",AUTOPLAY_ENABLED:"--cl-carousel-autoplay-enabled"}}static get settingsMap(){return{startAt:{property:r.CUSTOM_PROPERTIES.ACTIVE_SLIDE_INDEX,type:"number"},slidesPerView:{property:r.CUSTOM_PROPERTIES.SLIDES_PER_VIEW,type:"number"},slidesToScroll:{property:r.CUSTOM_PROPERTIES.SLIDES_TO_SCROLL,type:"number"},slideGap:{property:r.CUSTOM_PROPERTIES.SLIDE_GAP,type:"number",unit:"px"},peek:{property:r.CUSTOM_PROPERTIES.PEEK,type:"number",unit:"px"},easing:{property:r.CUSTOM_PROPERTIES.EASING,type:"string"},animationDuration:{property:r.CUSTOM_PROPERTIES.ANIMATION_DURATION,type:"number",unit:"ms"},showDots:{property:r.CUSTOM_PROPERTIES.SHOW_DOTS,type:"boolean"}}}static get SCROLL_DIRECTIONS(){return{NEXT:"next",PREVIOUS:"previous"}}static get EXCESS_DOT_THRESHOLD(){return{CONSTRAINED:5,INFINITE:4}}static get MAX_DOTS_TO_DISPLAY(){return 7}get centerDotIndex(){return Math.floor((this.maxDotsToDisplay-1)/2)}get maxDotsToDisplay(){return"bottom"===this.controlsPosition?5:r.MAX_DOTS_TO_DISPLAY}static get CENTER_DOT_COUNT(){return 3}static get SWIPE_THRESHOLD(){return 80}static get SWIPE_MOVE_FACTOR(){return.5}static get AUTOPLAY_INTERVAL(){return 3e3}static get AUTOPLAY_STATES(){return{inactive:"INACTIVE",startedAutomatically:"STARTED_AUTOMATICALLY",startedByUser:"STARTED_BY_USER",paused:"PAUSED",stopped:"STOPPED"}}constructor(t=r.SELECTORS.ELEMENT,e={}){super(t,e),this.computedStyle=window.getComputedStyle(this.element),this.ui.rail
1=this.element.querySelector(r.SELECTORS.RAIL),this.ui.train=this.ui.rail?.querySelector(r.SELECTORS.TRAIN),this.ui.slides=this.ui.train?.querySelectorAll(r.SELECTORS.SLIDE)||[],this.slideCount=this.ui.slides.length,this.ui.slides.forEach((t,e)=>{Boolean(t.getAttribute("aria-labelledby"))||Boolean(t.getAttribute("aria-label"))||t.setAttribute("aria-label",e+1+" of "+this.slideCount)}),this.ui.controls=this.element.querySelector(r.SELECTORS.CONTROLS),this.ui.previousButton=this.ui.controls?.querySelector(r.SELECTORS.PREVIOUS),this.ui.nextButton=this.ui.controls?.querySelector(r.SELECTORS.NEXT),this.ui.autoplayToggleButton=this.element.querySelector(r.SELECTORS.AUTOPLAY_TOGGLE),this.ui.dotsList=this.element.querySelector(r.SELECTORS.DOTS_LIST),this.container=this.getContainer(),this.style=this.getStyleElement(),this.controlsPosition=this.element.querySelector(`.${r.CSS_CLASSES.CONTROLS}.-bottom`)?"bottom":"auto",this.container&&this.element.classList.add(r.CSS_CLASSES.USE_CONTAINER),this.lastScrollDirection=r.SCROLL_DIRECTIONS.PREVIOUS}get isActive(){return this.element.classList.contains(r.CSS_CLASSES.ACTIVE)}set isActive(t){this.element.classList.toggle(r.CSS_CLASSES.ACTIVE,t)}get isScrolling(){return this.element.classList.contains(r.CSS_CLASSES.SCROLLING)}set isScrolling(t){this.element.classList.toggle(r.CSS_CLASSES.SCROLLING,t)}get isDragging(){return this.element.classList.contains(r.CSS_CLASSES.DRAGGING)}set isDragging(t){this.element.classList.toggle(r.CSS_CLASSES.DRAGGING,t)}get isInfinite(){return this.element.classList.contains(r.CSS_CLASSES.INFINITE)}set isInfinite(t){this.element.classList.toggle(r.CSS_CLASSES.INFINITE,t),this.isMounted&&this.checkIsActive()}get slideCount(){return this.slideCountValue}set slideCount(t){this.element.style.setProperty(r.CUSTOM_PROPERTIES.SLIDE_COUNT,""+t),this.slideCountValue=t}get slidesToShow(){var t=this.computedStyle.getPropertyValue(r.CUSTOM_PROPERTIES.SLIDES_PER_VIEW),e=(t=Number(t),this.slideCount);return Math.min(t,e)}get slidesToScroll(){var t=this.computedStyle.getPropertyValue(r.CUSTOM_PROPERTIES.SLIDES_TO_SCROLL);return parseInt(t,10)||1}get activeSlideIndex(){var t=this.element.style.getPropertyValue(r.CUSTOM_PROPERTIES.ACTIVE_SLIDE_INDEX);return parseInt(t,10)||0}set activeSlideIndex(t){this.element.style.setProperty(r.CUSTOM_PROPERTIES.ACTIVE_SLIDE_INDEX,""+t)}get maxSlideIndex(){return this.slideCount-this.slidesToShow}get dotSize(){var t=this.computedStyle.getPropertyValue(r.CUSTOM_PROPERTIES.DOT_SIZE);return parseInt(t,10)||0}get dotGap(){var t=this.computedStyle.getPropertyValue(r.CUSTOM_PROPERTIES.DOT_GAP);return parseInt(t,10)||0}get dotScales(){return[1,.75,!this.isInfinite||this.dotCount>2*this.maxDotsToDisplay?.5:0]}get excessDotThreshold(){return this.isInfinite?r.EXCESS_DOT_THRESHOLD.INFINITE:this.maxDotsToDisplay}get activeDotIsCenter(){return this.directionChangeCount%2==1}get isAutoplayEnabled(){return"1"===this.computedStyle.getPropertyValue(r.CUSTOM_PROPERTIES.AUTOPLAY_ENABLED)}set isAutoplayEnabled(t){this.element.style.setProperty(r.CUSTOM_PROPERTIES.AUTOPLAY_ENABLED,t?"1":"0")}get isAutoplayActive(){return this.autoplayState===r.AUTOPLAY_STATES.startedAutomatically||this.autoplayState===r.AUTOPLAY_STATES.startedByUser}getContainer(){var t;return(t=(t=this.settings.containerSelector)?this.element.closest(t):null)&&"normal"!==window.getComputedStyle(t).containerType?t:null}mount(){return this.isMounted||(this.applyStyles(),Array.isArray(this.settings.breakpoints)&&(this.element.classList.add(r.CSS_CLASSES.CUSTOM_BREAKPOINTS),this.applyBreakpointStyles()),"boolean"==typeof this.settings.infinite&&(this.isInfinite=this.settings.infinite),!this.settings.infinite&&this.settings.autoplay&&console.warn("[Carousel] auto
1play is only supported when the infinite setting is applied."),this.ui.rail.removeAttribute("tabindex"),this.ui.train?.addEventListener("touchstart",this.handleTrainSwipeStart),this.ui.train?.addEventListener("mousedown",this.handleTrainSwipeStart),this.ui.train?.addEventListener("transitionend",this.handleTrainTransitionEnd),this.ui.controls?.addEventListener("transitionend",this.handleControlsTransitionEnd),this.ui.previousButton?.addEventListener("click",this.handlePreviousButtonClick),this.ui.nextButton?.addEventListener("click",this.handleNextButtonClick),this.ui.autoplayToggleButton?.addEventListener("click",this.handleAutoplayToggleButtonClick),this.element.addEventListener("mouseenter",this.handleMouseEnter),this.element.addEventListener("mouseleave",this.handleMouseLeave),this.element.addEventListener("focusin",this.handleFocusIn),this.checkIsActive(),this.ui.rail.scrollLeft=0,this.isMounted=!0),this}update(t={}){return super.update(t),this.isMounted&&(this.applyStyles(),this.checkIsActive()),this}activate(){return console.warn("[Carousel] activate() method is deprecated.",this),this}deactivate(){return console.warn("[Carousel] deactivate() method is deprecated.",this),this}goTo(){return console.warn("[Carousel] goTo() method is deprecated.",this),this}applyStyles(){this.style=this.getStyleElement();var t=this.getSettingsStyles();this.style.innerHTML=`#${this.id}{${t}}`}getStyleElement(){var t=this.id+"-style",e=document.getElementById(t);return e||((e=document.createElement("style")).id=t,document.head.append(e),e)}getSettingsStyles(t=this.settings){let e=[];return Object.entries(t).forEach(([t,i])=>{if(t=r.settingsMap[t]){var{property:t,type:s,unit:n}=t;if(typeof i===s){let s="boolean"==typeof i?i?1:0:i;n&&(s=""+s+n),e.push(`${t}:${s};`)}}}),t="object"==typeof(t=t.peek)?t:null,"number"==typeof t?.before&&e.push(`${r.CUSTOM_PROPERTIES.PEEK_BEFORE}: ${t.before}px;`),"number"==typeof t?.after&&e.push(`${r.CUSTOM_PROPERTIES.PEEK_AFTER}: ${t.after}px;`),e.join("")}applyBreakpointStyles(t=this.settings.breakpoints??[]){if(Array.isArray(t)&&t.length){let e=this.container instanceof Element?"@container":"@media";t.sort((t,e)=>t.order<e.order?-1:1),t=t.map(({mediaQuery:t,settings:i})=>(i=this.getSettingsStyles(i),e+`(${t}){ #${this.id}{${i}}}`)).join(""),this.style.insertAdjacentHTML("beforeend",t)}}checkIsActive(){var t=this.slidesToShow<this.slideCount,e=(this.isActive=t,this.toggleActiveAttributes(t),this.toggleClones(t),this.observeSlides(t),this.renderDots(),this.isAutoplayEnabled);this.isAutoplayEnabled=Boolean(this.settings.autoplay)&&t&&this.isInfinite,this.isAutoplayEnabled&&!e?this.mountAutoplay():!this.isAutoplayEnabled&&e&&this.unmountAutoplay()}toggleActiveAttributes(t=this.isActive){this.ui.controls?.toggleAttribute("inert",!t),this.ui.autoplayToggleButton?.toggleAttribute("inert",!t),t?(this.element.setAttribute("role","group"),this.element.setAttribute("aria-roledescription","carousel"),this.ui.train?.setAttribute("role","none"),this.ui.train?.setAttribute("aria-atomic","false"),this.updateAriaLive(),this.ui.slides?.forEach(t=>{t.setAttribute("role","group"),t.setAttribute("aria-roledescription","slide")})):(this.element.removeAttribute("role"),this.element.removeAttribute("aria-roledescription"),this.ui.train?.removeAttribute("role"),this.ui.train?.removeAttribute("aria-atomic"),this.ui.train?.removeAttribute("aria-live"),this.ui.slides?.forEach(t=>{t.removeAttribute("role"),t.removeAttribute("aria-roledescription")}))}updateAriaLive(){this.isActive&&this.ui.train&&this.ui.train.setAttribute("aria-live",this.isAutoplayActive?"off":"polite")}toggleClones(t=this.isActive){var e;this.ui.rail&&this.ui.train&&(t&&this.isInfinite?(this.ui.previousClones?.length&&this.ui.nextClones?.length||(t=this.ui.train.cloneNode(!0),e=this.ui.train.cloneNode(!0),this.ui.previousClones=[...t.children],this.ui.nextClones=[...e.children],[...this.ui.previousClones,...this.ui.nextClones].forEach(t=>{t.classList.add(r.CSS_CLASSES.CLONE)})),this.ui.train.prepend(...this.ui.previousClones),this.ui.train.append(...this.ui.nextClones),this.ui.rail.scrollLeft=0):(this.ui.previousClones?.forEach(t=>t.remove()),this.ui.nextClones?.forEach(t=>t.remove())))}observeSlides(t=this.isActive){t?(this.intersectionObserver||(this.intersectionObserver=this.getIntersectionObserver()),this.intersectionObserver.disconnect(),(this.ui.train?.querySelectorAll(r.SELECTORS.SLIDE))?.forEach(t=>this.intersectionObserver?.observe(t))):this.intersectionObserver?.disconnect()}getIntersectionObserver(){var t={root:this.ui.rail,threshold:.5};return new IntersectionObserver(this.intersectionObserverCallback,t)}intersectionObserverCallback=t=>{t.forEach(t=>{var e=t.target;r.toggleSlideInteractivity(e,t.isIntersecting)}),this.checkControls(),this.renderDots()};static toggleSlideInteractivity(t,e){t.toggleAttribute("inert",!e),t.setAttribute("aria-hidden",e?"false":"true")}checkControls(){var{activeSlideIndex:t,maxSlideIndex:e,isInfinite:i}=this,e=i||t<e;this.ui.previousButton?.setAttribute("aria-disabled",i||0<t?"false":"true"),this.ui.nextButton?.setAttribute("aria-disabled",e?"false":"true")}renderDots(t=!1){if(this.ui.dotsList)if(this.isActive){var e=this.ui.dotsList.children.length,i=(this.dotCount=this.getDotCount(),this.dotCount-e);if(i<0)for(let t=0;t>i;t--)this.ui.dotsList.lastElementChild?.remove();if(0<i){var s=[];for(let t=0;t<i;t++){var n=r.createDot();s.push(n)}this.ui.dotsList.append(...s)}this.activeDotIndex=this.getActiveDotIndex();let o=0===this.directionChangeCount||t||this.isExcessConstrained;o&&(this.dotsListOffset=this.getDotsListOffset()),[...this.ui.dotsList.children].forEac
1h((t,e)=>{t.classList.toggle(r.CSS_CLASSES.ACTIVE,e===this.activeDotIndex),o&&(t.style.scale=String(this.getDotScale(e)))}),o&&this.updateDotsListTranslate()}else this.ui.dotsList.innerHTML=""}getDotCount({slideCount:t,slidesToScroll:e,slidesToShow:i,isInfinite:s,excessDotThreshold:n}=this){let o=Math.ceil((t+e-i)/e);return s&&(1===e?o=t:i!==e&&o++),this.hasExcessDots=o>n,this.isExcessInfinite=s&&this.hasExcessDots,this.isExcessConstrained=!s&&this.hasExcessDots,this.isExcessInfinite&&(o+=2*n),o}static createDot(){var t=document.createElement("li");return t.classList.add(r.CSS_CLASSES.DOTS_ITEM),t}getActiveDotIndex({activeSlideIndex:t,slidesToScroll:e,isInfinite:i,isExcessInfinite:s,excessDotThreshold:n,slideCount:o}=this){let r=t,a=(i&&!s&&(r=(t+o)%o),Math.floor(r/e));return t%e!=0&&!i&&(a+=1),s&&(a+=n),a}updateDotsListTranslate({dotSize:t,dotGap:e}=this){var i=this.dotsListOffset;this.ui.dotsList.style.setProperty("--cl-carousel-dots-list-translate",i*(t+e)+"px")}getDotsListOffset({activeDotIndex:t,dotCount:e,lastScrollDirection:i,hasExcessDots:s,activeDotIsCenter:n}=this){if(!s)return 0;s=e-1,i=i===r.SCROLL_DIRECTIONS.NEXT;var o=(a=this.centerDotIndex)-1,a=a+1;let l,u=0;return n&&(u=i?-1:1),l=0===t||t<r.CENTER_DOT_COUNT&&i?o+u:t===s||t>s-r.CENTER_DOT_COUNT&&!i?a-s+u:(i?a:o)-t+u,this.isExcessInfinite||(n=-(e-this.maxDotsToDisplay),l=Math.max(n,Math.min(0,l))),l}getDotScale(t){var e,i,s;return this.hasExcessDots?this.isExcessConstrained?(i=t+(this.dotsListOffset??0),(i=Math.abs(i-this.centerDotIndex))<=1?this.dotScales[0]:this.dotScales[i-1]||0):(({activeDotIndex:i,lastScrollDirection:s,activeDotIsCenter:e}=this),t-=i,i=Math.abs(t),s=s===r.SCROLL_DIRECTIONS.NEXT,0==t?this.dotScales[0]:e?this.dotScales[i-1]||0:s&&0<t||!s&&t<0?this.dotScales[i]||0:s&&t<0||!s&&0<t?i<=2?this.dotScales[0]:this.dotScales[i-2]||0:0):this.dotScales[0]}handleControlsTransitionEnd=t=>{"opacity"===t.propertyName&&this.checkIsActive()};handlePreviousButtonClick=()=>{"true"!==this.ui.previousButton?.getAttribute("aria-disabled")&&this.scrollToPrevious()};handleNextButtonClick=()=>{"true"!==this.ui.nextButton?.getAttribute("aria-disabled")&&this.scrollToNext()};handleAutoplayToggleButtonClick=()=>{this.autoplayState===r.AUTOPLAY_STATES.stopped?this.startAutoplay(r.AUTOPLAY_STATES.startedByUser):this.stopAutoplay(r.AUTOPLAY_STATES.stopped)};updateAutoplayToggleButton(){var t,e,i;this.ui.autoplayToggleButton&&(e=this.autoplayState===r.AUTOPLAY_STATES.stopped,({stopText:t,playText:i}=((t=this.ui.autoplayToggleButton.querySelector("use"))&&t.setAttribute("href",e?"#cl-icon-play":"#cl-icon-pause"),this.ui.autoplayToggleButton.dataset)),t)&&i&&(e=e?i:t,i=this.ui.autoplayToggleButton.querySelector(".visually-hidden"))&&(i.textContent=e)}handleMouseEnter=()=>{this.autoplayState===r.AUTOPLAY_STATES.startedAutomatically&&this.pauseAutoplay()};handleMouseLeave=()=>{this.autoplayState===r.AUTOPLAY_STATES.paused&&this.startAutoplay(r.AUTOPLAY_STATES.startedAutomatically)};handleFocusIn=()=>{this.autoplayState===r.AUTOPLAY_STATES.startedAutomatically&&this.stopAutoplay(r.AUTOPLAY_STATES.stopped)};scrollToPrevious(){this.scroll(r.SCROLL_DIRECTIONS.PREVIOUS)}scrollToNext(){this.scroll(r.SCROLL_DIRECTIONS.NEXT)}scroll(t=r.SCROLL_DIRECTIONS.NEXT){this.isScrolling||(this.directionChangeCount=t!==this.lastScrollDirection?this.directionChangeCount+1:0,this.lastScrollDirection=t,(t=this.getNextActiveSlideIndex(t))!==this.activeSlideIndex&&(this.isScrolling=!0,this.activeSlideIndex=t,this.renderDots()))}getNextActiveSlideIndex(t=r.SCROLL_DIRECTIONS.NEXT){var{activeSlideIndex:e,slidesToScroll:i,maxSlideIndex:s,isInfinite:n}=this,e=e+i*(t===r.SCROLL_DIRECTIONS.PREVIOUS?-1:1);return!n&&e<=0?0:!n&&s<=e?s:e}handleTrainSwipeStart=t=>{!this.isActive||this.isScrolling||this.isDragging||(t=r.getTouch(t),this.swipeStartX=t.clientX,this.swipeStartY=t.clientY,t=window.getComputedStyle(this.ui.train).getPropertyValue("translate"),this.swipeStartTrainTranslateX=parseInt(t.split(" ")[0],10),this.toggleTrainSwipeEvents(!0))};static getTouch(t){return t.type.startsWith("mouse")?t:t.touches[0]||t.changedTouches[0]}toggleTrainSwipeEvents(t=!1){t=t?"addEventListener":"removeEventListener",this.ui.train?.[t]("touchmove",this.handleTrainSwipeMove),this.ui.train?.[t]("mousemove",this.handleTrainSwipeMove),this.ui.train?.[t]("touchcancel",this.handleTrainSwipeEnd),this.ui.train?.[t]("mouseleave",this.handleTrainSwipeEnd),this.ui.train?.[t]("touchend",this.handleTrainSwipeEnd),this.ui.train?.[t]("mouseup",this.handleTrainSwipeEnd)}handleTrainSwipeMove=t=>{var e=r.getTouch(t),i=e.clientX;null===this.swipeStartX||null===this.swipeStartY||(i-=this.swipeStartX,e=e.clientY-this.swipeStartY,Math.abs(i)<Math.abs(e))||(t.stopPropagation(),this.isDragging=!0,this.ui.train.style.setProperty("translate",this.swipeStartTrainTranslateX+r.SWIPE_MOVE_FACTOR*i+"px"))};handleTrainSwipeEnd=t=>{var e;this.isDragging=!1,this.ui.train.style.removeProperty("translate"),this.swipeStartTrainTranslateX=0,this.toggleTrainSwipeEvents(!1),!this.isActive||this.isScrolling||null===this.swipeStartX||null===this.swipeStartY||(e=(t=r.getTouch(t)).clientX-this.swipeStartX,t=t.clientY-this.swipeStartY,this.swipeStartX=null,this.swipeStartY=null,Math.abs(e)<=r.SWIPE_THRESHOLD)||Math.abs(e)<Math.abs(t)||(0<e?this.scrollToPrevious():this.scrollToNext())};handleTrainTransitionEnd=t=>{"translate"===t.propertyName&&(this.isScrolling=!1,this.correctActiveSlideIndex(),this.element.dispatchEvent(new CustomEvent(r.EVENTS.change,{bubbles:!0})))};correctActiveSlideIndex({activeSlideIndex:t,slideCount:e,maxSlideIndex:i,isInfinite:s,slidesToScroll:n}=this){s?(s=(t+e)%e,e=Math.abs(t-s)>n,this.activeSlideIndex=s,e&&this.correctActiveDotIndex()):i<t&&(this.activeSlideIndex=i)}correctActiveDotIndex(){this.isExcessInfinite&&this.renderDots(!0)}setAutoplayInterval(){this.autoplayIntervalId||(this.autoplayIntervalId=setInterval(()=>{this.scrollToNext()},r.AUTOPLAY_INTERVAL))}clearAutoplayInterval(){this.autoplayIntervalId&&(clearInterval(this.autoplayIntervalId),this.autoplayIntervalId=null)}mountAutoplay(){window.matchMedia("(prefers-reduced-motion: reduce)").matches&&this.autoplayState!==r.AUTOPLAY_STATES.startedByUser?this.stopAutoplay(r.AUTOPLAY_STATES.stopped):this.startAutoplay(r.AUTOPLAY_STATES.startedAutomatically)}unmountAutoplay(){this.stopAutoplay(r.AUTOPLAY_STATES.inactive)}
1startAutoplay(t=r.AUTOPLAY_STATES.startedAutomatically){this.isAutoplayEnabled&&(this.autoplayState=t,this.setAutoplayInterval(),this.updateAutoplayToggleButton(),this.updateAriaLive())}stopAutoplay(t=r.AUTOPLAY_STATES.stopped){this.autoplayState=t,this.clearAutoplayInterval(),this.updateAutoplayToggleButton(),this.updateAriaLive()}pauseAutoplay(){this.stopAutoplay(r.AUTOPLAY_STATES.paused)}unmount(){return this.isMounted&&(this.unmountAutoplay(),this.isAutoplayEnabled=!1,this.style.innerHTML="",this.style.remove(),this.element.classList.remove(r.CSS_CLASSES.CUSTOM_BREAKPOINTS),this.toggleClones(!1),this.ui.rail.setAttribute("tabindex","0"),this.ui.train?.removeEventListener("touchstart",this.handleTrainSwipeStart),this.ui.train?.removeEventListener("mousedown",this.handleTrainSwipeStart),this.ui.train?.removeEventListener("transitionend",this.handleTrainTransitionEnd),this.ui.controls?.removeEventListener("transitionend",this.handleControlsTransitionEnd),this.ui.previousButton?.removeEventListener("click",this.handlePreviousButtonClick),this.ui.nextButton?.removeEventListener("click",this.handleNextButtonClick),this.ui.autoplayToggleButton?.removeEventListener("click",this.handleAutoplayToggleButtonClick),this.element.removeEventListener("mouseenter",this.handleMouseEnter),this.element.removeEventListener("mouseleave",this.handleMouseLeave),this.element.removeEventListener("focusin",this.handleFocusIn),this.toggleActiveAttributes(!1),this.isActive=!1,this.intersectionObserver?.disconnect(),this.ui.slides?.forEach(t=>{r.toggleSlideInteractivity(t,!0)}),this.isScrolling=!1,this.isMounted=!1),this}}const a=r,l={containerSelector:".csol-media-with-rich-text-media"};window.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".csol-media-with-rich-text").forEach(t=>{t.querySelectorAll(".cl-carousel").forEach(t=>{new a(t,l).mount()})})})})();
2//# sourceURL=https://53.fs1.hubspotusercontent-na1.net/hubfs/53/hub_generated/template_assets/1/201642011242/1790171340187/template_csol-media-with-rich-text.mount.js

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.