1'use strict';(async function(){await window.globalEventBus.waitForEvents(["rc-component-loaded"]);class f extends RCComponent{constructor(e){super(e);this.wrapper=this.el.querySelector(".carousel-dots__wrapper");this.classes={hideProgressbar:"carousel-dots--hide-progressbar"};this.publish("init",{container:this.wrapper,className:"carousel-dots__item",activeClassName:"carousel-dots__item--active",progressbarClassName:"carousel-dots__progressbar",progressbarDesktop:"true"===this.wrapper.dataset.progressbarDesktop, 2progressbarTablet:"true"===this.wrapper.dataset.progressbarTablet,progressbarMobile:"true"===this.wrapper.dataset.progressbarMobile});this.subscribe("carousel","stop-autoplay run-autoplay",g=>{!1===g.detail.isAutoplayRunning&&!1===g.detail.isAutoplayPaused?this.el.classList.add(this.classes.hideProgressbar):this.el.classList.remove(this.classes.hideProgressbar)})}}RC_STORE.component("carousel-dots",f)})(); 3(async function(){await window.globalEventBus.waitForEvents(["rc-component-loaded"]);class f extends RCComponent{constructor(e){super(e);this.wrapper=this.el.querySelector(".carousel-content__wrapper");this.stage=this.el.querySelector(".carousel-content__stage");this.classes={ready:"carousel-content__wrapper--ready"};const g=this.el.closest(".carousel");this.publish("init",{element:this.wrapper,stage:this.stage,readyClassName:this.classes.ready,scope:g});this.subscribe("carousel","mounted",a=>{a.target=== 4g&&this.wrapper.classList.add(this.classes.ready)},!1,!0)}}RC_STORE.component("carousel-content",f)})(); 5(async function(){await window.globalEventBus.waitForEvents(["rc-component-loaded","custom-carousel-js-loaded","tools-loaded"]);const f=a=>a.map(b=>+b).find(b=>!Number.isNaN(b));class e extends RCComponent{constructor(a){super(a);if("edit"!==CookiesManager.getCookie("wcmmode")||"disabled"===GetParamsManager.getParam("wcmmode"))this.wrapper=this.el.querySelector(".carousel__wrapper"),this.dataset=this.wrapper.dataset,Object.keys(this.dataset).length&&(this.classes={slideUp:"carousel--slide-up",visible:"carousel--visible"}, 6this.cachedSlides=new Map,this.orderedSlides="true"===this.dataset.orderedSlides,this.visible=!0,this.initialized=!1,this.subscribe("carousel-content","init",b=>{b.detail.scope===this.el&&this.init(b.detail.element,b.detail.stage)},!0),this.subscribe("background","init-carousel-content",b=>{b.stopPropagation();this.init(b.detail.element,b.detail.stage)},!0),this.subscribe("case-studies","init-carousel-content",b=>{b.stopPropagation();this.init(b.detail.element,b.detail.stage)},!0),this.publish("mounted"))}get sharedActions(){return[...super.sharedActions, 7{title:"Go to page",name:"go-to-page",fn:({index:a})=>{this.carousel.stopAutoplay();this.carousel.state.direction=a<this.carousel.state.currentPage?"left":"right";this.carousel.currentPage=Number(a);this.carousel.runAutoplay()},input:[{title:"Page index",name:"index"}]},{title:"Run autoplay",name:"run-autoplay",fn:()=>{this.carousel.runAutoplay()}},{title:"Stop autoplay. Resume when the component reappears in the viewport.",name:"stop-autoplay",fn:()=>{this.carousel.stopAutoplay()}},{title:"Disable autoplay. Can not be resumed", 8name:"disable-autoplay",fn:()=>{this.carousel.disableAutoplay()}}]}get sharedEvents(){return[{title:"Ready",name:"init"},{title:"Active slides are changed",name:"page-change"},{title:"Autoplay is started",name:"run-autoplay"},{title:"Autoplay is stopped",name:"stop-autoplay"}]}get sharedProps(){return[{title:"Active page index",name:"activePageIndex",get:()=>this.carousel.state.currentPage},{title:"First active slide",name:"firstActiveSlide",get:()=>this.firstActiveSlide},{title:"ID of the first active slide", 9name:"firstActiveSlideId",get:()=>this.firstActiveSlide?this.firstActiveSlide.id:void 0},{title:"Count of pages",name:"pagesCount",get:()=>this.carousel.state.pagesCount},{title:"Synchronization ID",name:"syncId",get:()=>this.dataset.syncId},{title:"Transition speed",name:"speed",get:()=>this.carousel.state.speed},{title:"Autoplay delay",name:"autoplayDelay",get:()=>this.carousel.state.autoplayDelay}
9,{title:"Is autoplay running",name:"isAutoplayRunning",get:()=>this.carousel.isAutoplayRunning},{title:"Is autoplay enabled", 10name:"isAutoplayEnabled",get:()=>this.carousel.state.autoplayEnabled},{title:"Is autoplay paused",name:"isAutoplayPaused",get:()=>this.carousel.isAutoplayPaused}]}get random(){return this.dataset&&"true"===this.dataset.random}get showSlideByHash(){return this.dataset&&"true"===this.dataset.showSlideByHash}static getSpeed(a,b){return"number"!==typeof a||isNaN(a)?"number"===typeof b?1<b?500:250:250:a}get state(){return{element:this.carousel,progress:this.carousel.state.progress,pageIndex:this.carousel.state.currentPage, 11pagesCount:this.carousel.state.pagesCount,id:this.firstActiveSlide?this.firstActiveSlide.id:void 0,syncId:this.dataset.syncId,activeSlide:this.firstActiveSlide,speed:this.carousel.state.speed,isAutoplayRunning:this.carousel.isAutoplayRunning,isAutoplayEnabled:this.carousel.state.autoplayEnabled,isAutoplayPaused:this.carousel.isAutoplayPaused}}goToSlideById(a){if(a&&this.carousel.slides){var b=this.carousel.slides.find(c=>this.getSlide(c).id===a);b&&(this.triggeredExternally=!0,this.carousel.goToSlide(b))}}hashHandler(){if(location.hash){var a= 12location.hash.substring(1);this.goToSlideById(a)}}get options(){return{markup:{container:this.el,wrapper:this.stageEl,ariaLabelTemplate:this.dataset.ariaLabelWrapper},all:{autoplayDelay:+this.dataset.autoplayDelay||5E3,autoplayPauseOnHover:this.dataset.autoplayPauseOnHover,animation:this.dataset.animation||"slide",customSlideWidth:"true"===this.dataset.customSlideWidth,adjustHeightToSlides:"true"===this.dataset.adjustHeightToSlides,slidesAlignment:this.dataset.slidesAlignment},desktop:{spaceBetweenSlides:f([this.dataset.desktopSpaceBetweenSlides, 1320]),slidesPerView:+this.dataset.desktopSlidesPerView||3,slideWidth:this.dataset.slideWidthDesktop,slideWidthUnits:this.dataset.slideWidthUnitsDesktop||"%",slidesPerTransition:+this.dataset.desktopSlidesPerTransition||1,loop:"true"===this.dataset.desktopLoop,drag:"true"===this.dataset.desktopDrag,autoplay:"true"===this.dataset.desktopAutoplay,speed:e.getSpeed(+this.dataset.desktopSpeed,+this.dataset.desktopSlidesPerTransition),reverse:"true"===this.dataset.desktopReverse,scroll:"true"===this.dataset.desktopScroll, 14mousewheel:"true"===this.dataset.desktopMousewheel,overflowVisible:"true"===this.dataset.desktopOverflowVisible,slidesHorizontalAlignment:this.dataset.slidesHorizontalAlignmentDesktop},tablet:{spaceBetweenSlides:f([this.dataset.tabletSpaceBetweenSlides,this.dataset.desktopSpaceBetweenSlides,20]),slidesPerView:+this.dataset.tabletSlidesPerView||3,slideWidth:this.dataset.slideWidthTablet||this.dataset.slideWidthDesktop,slideWidthUnits:this.dataset.slideWidthUnitsTablet||this.dataset.slideWidthUnitsDesktop|| 15"%",slidesPerTransition:+this.dataset.tabletSlidesPerTransition||1,loop:"true"===this.dataset.tabletLoop,drag:"true"===this.dataset.tabletDrag,autoplay:"true"===this.dataset.tabletAutoplay,speed:e.getSpeed(+this.dataset.tabletSpeed,+this.dataset.tabletSlidesPerTransition),reverse:"true"===this.dataset.tabletReverse,scroll:"true"===this.dataset.tabletScroll,mousewheel:"true"===this.dataset.tabletMousewheel,overflowVisible:"true"===this.dataset.tabletOverflowVisible,slidesHorizontalAlignment:this.dataset.slidesHorizontalAlignmentTablet}, 16mobile:{spaceBetweenSlides:f([this.dataset.mobileSpaceBetweenSlides,this.dataset.tabletSpaceBetweenSlides,this.dataset.desktopSpaceBetweenSlides,20]),slidesPerView:+this.dataset.mobileSlidesPerView||1,slideWidth:this.dataset.slideWidthMobile||this.dataset.slideWidthTablet||this.dataset.slideWidthDesktop,slideWidthUnits:this.dataset.slideWidthUnitsMobile||this.dataset.slideWidthUnitsTablet||this.dataset.slideWidthUnitsDesktop||"%",slidesPerTransition:+this.dataset.mobileSlidesPerTransition||1,loop:"true"=== 17this.dataset.mobileLoop,drag:"true"===this.dataset.mobileDrag,autoplay:"true"===this.dataset.mobileAutoplay,speed:e.getSpeed(+this.dataset.mobileSpeed,+this.dataset.mobileSlidesPerTransition),reverse:"true"===this.dataset.mobileReverse,scroll:"true"===this.dataset.mobileScroll,mousewheel:"true"===this.dataset.mobileMousewheel,overflowVisible:"true"===this.dataset.mobileOverflowVisible,slidesHorizontalAlignment:this.dataset.slidesHorizontalAlignmentMobile},onInit:()=>{this.setStateAttributes();this.attachEvents(); 18this.handleVisibility();this.showSlideByHash&&this.hashHandler();this.publish("init",this.state);this.initialized=!0}}}init(a,b){a&&!this.isClosingCarousel&&(this.carouselEl=a,this.stageEl=b,this.random&&this.hideRandomSlides(),this.orderSlides(),this.carousel=new CustomCarouselJS(this.carouselEl,this.options))}setStateAttributes(){this.el.dataset.stateActivePage=this.state.pageIndex;this.el.dataset.stateAutoplayRunning=this.state.isAutoplayRunning}attachEvents(){window.resolution.addListener(this.handleVisibility.bind(this)); 19["page-change","run-autoplay","stop-autoplay","progress"].forEach(a=>{this.carouselEl.addEventListener(a,()=>{this.triggeredExternally||this.publish(a,this.state);this.triggeredExternally=!1})});["run-autoplay","stop-autoplay"].forEach(a=>{this.carouselEl.addEventListener(a,()=>{this.setStateAttributes()})});this.carouselEl.addEventListener("iteration-change",()=>{const a=+this.dataset[window.resolution.current+"AutoplayIterationCount"];
19"undefined"!==typeof a&&this.carousel.autoplayIterationCount>= 20a&&this.carousel.disableAutoplay()});this.carouselEl.addEventListener("mouse-in",()=>{this.initialized&&this.publish("mouse-in",this.state)});this.carouselEl.addEventListener("mouse-out",()=>{this.initialized&&this.publish("mouse-out",this.state)});this.showSlideByHash&&window.addEventListener("hashchange",()=>{this.hashHandler()});this.subscribe("custom-itl--switch-slider-card","switch",a=>{this.goToSlideById(a.detail.hash)});this.subscribe(["cta-v2","link-card"],"change-slide",a=>{this.goToSlideById(a.detail.hash)}); 21this.subscribe("cta-v2","init-close-button",a=>{a.stopPropagation();a.detail.element.addEventListener("click",()=>{this.closingGroupId&&"undefined"!==typeof localStorage&&localStorage.setItem(this.dataset.closingGroupId,"true");this.hide()})},!0);this.subscribe("cta-v2","init-next-slide-button",a=>{a.stopPropagation();this.carousel.setArrowNext(a.detail.element)},!0);this.subscribe("cta-v2","init-prev-slide-button",a=>{a.stopPropagation();this.carousel.setArrowPrev(a.detail.element)},!0);this.subscribe("cta-v2", 22"click-carousel-slideshow-toggler",a=>{a.stopPropagation();a.detail.active?this.carousel.pauseAutoplay():this.carousel.resumeAutoplay()},!0);this.subscribe("carousel-dots","init",a=>{a.stopPropagation();this.carousel.setDots(a.detail)},!0);this.subscribe("carousel-scrollbar","init",a=>{a.stopPropagation();this.carousel.setScrollbar(a.detail)},!0);this.subscribe("accordion","switch",a=>{this.goToSlideById(a.detail.hash)});this.subscribe("custom-itl--switch-slider-card","mouseover",a=>{a=new CustomEvent("mouseover"); 23this.el.dispatchEvent(a)});this.subscribe("custom-itl--switch-slider-card","mouseout",a=>{a=new CustomEvent("mouseout");this.el.dispatchEvent(a)});this.subscribe("modal-window","close",a=>{this.carousel.page=0},!1,!0);this.dataset.syncId&&(this.subscribe("carousel","progress",a=>{const {syncId:b,progress:c,target:d}=a.detail;d!==this.el&&b&&b===this.dataset.syncId&&(this.triggeredExternally=!0,this.carousel.stopAutoplay(),this.carousel.progress=c)}),this.subscribe("carousel","mouse-in",a=>{const {syncId:b, 24target:c}=a.detail;c!==this.el&&b&&b===this.dataset.syncId&&this.carousel.stopAutoplay()}),this.subscribe("carousel","mouse-out",a=>{const {syncId:b,target:c}=a.detail;c!==this.el&&b&&b===this.dataset.syncId&&this.carousel.runAutoplay()}))}hide(){this.el.style.height=this.el.clientHeight+"px";this.el.classList.add(this.classes.slideUp);this.disableElementsAccessibility();setTimeout(()=>{this.el.style.height=0;this.el.style.display="none"},0)}disableElementsAccessibility(){this.el.querySelectorAll("a, button").forEach(a=> 25{Tools.hideElementAccessibility(a,!0)})}handleVisibility(){0!==this.el.getBoundingClientRect().width&&(!this.carousel.slides.length&&this.visible?(this.el.classList.add(this.classes.slideUp),this.el.style.height=0,this.el.style.display="none",this.visible=!1):this.carousel.slides.length&&!this.visible&&(this.el.classList.remove(this.classes.slideUp),this.el.style.height="auto",this.el.style.display="block"))}hideRandomSlides(){const a={};[...this.stageEl.children].forEach(b=>{const {random:c,randomGroupId:d}= 26this.getSlide(b);c&&(a[d]||(a[d]=[]),a[d].push(b))});Object.values(a).forEach(b=>{const c=Math.round(Math.random()*(b.length-1));b.forEach((d,h)=>
26{h!==c&&(d.style.display="none")})})}getSlide(a){if(a instanceof HTMLElement){var b=this.cachedSlides.get(a);b||(b=new g(a),this.cachedSlides.set(a,b));return b}}get firstActiveSlide(){const {activeSlides:a}=this.carousel;return a&&a.length&&a instanceof Array?this.getSlide(a[0]):null}orderSlides(){if(this.orderedSlides){var a=[...this.stageEl.children].sort((b, 27c)=>{const [d,h]=[b,c].map(k=>{k=[...k.children];for(let l=0,n=k.length;l<n;l++){const m=k[l];if("undefined"!==typeof m.dataset.order)return m.dataset.order}});return"undefined"===typeof h||d<h?-1:"undefined"===typeof d||d>h?1:0});this.stageEl.textContent="";a.forEach(b=>this.stageEl.appendChild(b))}}get closingGroupId(){return this.dataset.closingGroupId}get componentInstanceId(){return this.dataset.componentInstanceId}get isClosingCarousel(){return"undefined"!==typeof localStorage&&localStorage.getItem(this.closingGroupId)}} 28class g{constructor(a){if(a instanceof HTMLElement){this.el=a;if(a=[...this.el.children].filter(b=>"DIV"===b.tagName)[0])this.dataset=a.dataset;this.random="true"===this.dataset.random;this.randomGroupId=this.dataset.randomGroupId}}get id(){if(!this.dataset)return"";this.dataset.id||(this.dataset.id=this.uniqueClassName);return this.dataset.id}get uniqueClassName(){const a=this.el.className.match("IID-(\\S+)");return a?a[1]:""}}RC_STORE.component("carousel",e)})();
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.