function onPlayVideo(n){var t=$(n),i;t.removeClass("overlay");i=t.closest("div");i.find("img").removeClass("active");i.find(".c-video-button").css("display","none");t.prop("controls",!0)}function prepareVideoPlayer(){$("video.autoplay-video").each(function(n,t){onPlayVideo(t)});$(".c-video__container, .c-related-products__video").click(function(){$(this).find("video").get(0).play()});$("video").on("pause",function(n){var t=$(n.target),i;t.addClass("overlay");i=t.closest("div");i.find("img").addClass("active");i.find(".c-video-button").css("display","flex");t.prop("controls",!1)});$("video").on("play",function(n){onPlayVideo(n.target)})}function setNavItemMargin(){if($(window).width()>1024){let n=($(".grid-container--small").outerWidth(!0)-$(".grid-container--small").outerWidth())/2;$(".header-container .desktop-nav .nav-item a").css("padding-left",n+"px");$(".desktop-nav .close-drowpdown-icon").css("right",n+"px")}}function prepareFontSize(){$(".c-infographic__wrapper > .c-infographic__item").length>0&&($(".c-infographic__wrapper > .c-infographic__item").each(function(){$(window).width()<=767&&($(this).find(".c-infographic__item--title").fitText(.8,{minFontSize:"15px",maxFontSize:"41px"}),$(this).find(".c-infographic__item--description").fitText(.8,{minFontSize:"8px",maxFontSize:"12px"}),$(this).find(".c-infographic__item--text").fitText(1,{minFontSize:"10px",maxFontSize:"14px"}));$(window).width()>=768&&$(window).width()<=1500&&($(this).find(".c-infographic__item--title").fitText(.8,{minFontSize:"40px",maxFontSize:"91px"}),$(this).find(".c-infographic__item--description").fitText(.8,{minFontSize:"15px",maxFontSize:"29px"}),$(this).find(".c-infographic__item--text").fitText(1,{minFontSize:"10px",maxFontSize:"14px"}));$(window).width()>=1501&&($(this).find(".c-infographic__item--title").fitText(.8,{minFontSize:"38px",maxFontSize:"52px"}),$(this).find(".c-infographic__item--description").fitText(.8,{minFontSize:"15px",maxFontSize:"25px"}),$(this).find(".c-infographic__item--text").fitText(1,{minFontSize:"10px",maxFontSize:"14px"}))}),$(window).resize(function(){$(".c-infographic__wrapper > .c-infographic__item").each(function(){$(window).width()<=767&&($(this).find(".c-infographic__item--title").fitText(.8,{minFontSize:"15px",maxFontSize:"41px"}),$(this).find(".c-infographic__item--description").fitText(.8,{minFontSize:"8px",maxFontSize:"12px"}),$(this).find(".c-infographic__item--text").fitText(1,{minFontSize:"10px",maxFontSize:"14px"}));$(window).width()>=768&&$(window).width()<=1500&&($(this).find(".c-infographic__item--title").fitText(.8,{minFontSize:"40px",maxFontSize:"91px"}),$(this).find(".c-infographic__item--description").fitText(.8,{minFontSize:"15px",maxFontSize:"29px"}),$(this).find(".c-infographic__item--text").fitText(1,{minFontSize:"10px",maxFontSize:"14px"}));$(window).width()>=1501&&($(this).find(".c-infographic__item--title").fitText(.8,{minFontSize:"38px",maxFontSize:"52px"}),$(this).find(".c-infographic__item--description").fitText(.8,{minFontSize:"15px",maxFontSize:"25px"}),$(this).find(".c-infographic__item--text").fitText(1,{minFontSize:"10px",maxFontSize:"14px"}))})}));$(".c-explore-phones__wrapper .c-explore-phones__item").length>0&&($(".c-explore-phones__wrapper .c-explore-phones__item").each(function(){$(window).width()<=767&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"10px",maxFontSize:"32px"});$(window).width()>=768&&$(window).width()<=1023&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"25px",maxFontSize:"42px"});$(window).width()>=1024&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"20px",maxFontSize:"27px"})}),$(window).resize(function(){$(".c-explore-phones__wrapper .c-explore-phones__item").each(function(){$(window).width()<=767&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"10px",maxFontSize:"32px"});$(window).width()>=768&&$(window).width()<=1023&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"25px",maxFontSize:"42px"});$(window).width()>=1024&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"20px",maxFontSize:"27px"})})}));$(".c-explore-phones__wrapper .c-explore-phones__item.career").length>0&&($(".c-explore-phones__wrapper .c-explore-phones__item.career").each(function(){$(window).width()<=767&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"10px",maxFontSize:"27px"});$(window).width()>=768&&$(window).width()<=1023&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"25px",maxFontSize:"35px"});$(window).width()>=1024&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"20px",maxFontSize:"24px"})}),$(window).resize(function(){$(".c-explore-phones__wrapper .c-explore-phones__item.career").each(function(){$(window).width()<=767&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"10px",maxFontSize:"27px"});$(window).width()>=768&&$(window).width()<=1023&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"25px",maxFontSize:"35px"});$(window).width()>=1024&&$(this).find(".c-explore-phones__item--title").fitText(1.2,{minFontSize:"20px",maxFontSize:"24px"})})}));$(".c-contact-local__container .c-contact-local__item").length>0&&($(".c-contact-local__container .c-contact-local__item").each(function(){$(this).find(".title").fitText(1.2,{minFontSize:"25px",maxFontSize:"34px"})}),$(window).resize(function(){$(".c-contact-local__container .c-contact-local__item").each(function(){$(this).find(".title").fitText(1.2,{minFontSize:"25px",maxFontSize:"34px"})})}));$(".c-other-products  .c-other-products__item").length>0&&($(".c-other-products  .c-other-products__item").each(function(){$(window).width()<=1300&&$(this).find("a").fitText(1.2,{minFontSize:"13px",maxFontSize:"24px"})}),$(window).resize(function(){$(".c-other-products  .c-other-products__item").each(function(){$(window).width()<=1300&&$(this).find("a").fitText(1.2,{minFontSize:"13px",maxFontSize:"24px"})})}));$(".c-explore-products  .c-explore-products__item").length>0&&($(".c-explore-products  .c-explore-products__item").each(function(){$(this).find(".c-explore-products__item--title").fitText(1.2,{minFontSize:"20px",maxFontSize:"24px"})}),$(window).resize(function(){$(".c-explore-products  .c-explore-products__item").each(function(){$(this).find(".c-explore-products__item--title").fitText(1.2,{minFontSize:"20px",maxFontSize:"32px"})})}))}function setArrowsTop(){if($(".c-carousel__wrapper").length>0){let n=$(".slick-current .c-carousel__img").height()/2;$(".slick-arrow").css("top",n+25+"px")}if($(".landing-carousel").length>0){let n=$(".landing-carousel .slick-current .c-carousel__img").height()/2;$(".landing-carousel .slick-arrow").css("top",n-15+"px")}}function prepareCarrousel(){if($(".c-carousel__wrapper").length>0&&($(".c-carousel__wrapper").slick({dots:!0,infinite:!0,speed:500,fade:!0,cssEase:"linear",prevArrow:`<button class="slide-arrow prev-arrow"></button>`,nextArrow:`<button class="slide-arrow next-arrow"></button>`,adaptiveHeight:!1,responsive:[{breakpoint:1024,settings:{adaptiveHeight:!0}}]}),$(window).width()<1024)){setArrowsTop();$(".slick-arrow").click(function(){setArrowsTop()});$(".c-carousel__wrapper").on("swipe",function(){setArrowsTop()})}$("div.c-carousel__item").removeClass("hide-item")}function processRetrievedNews(n){parseRetrievedNews(n,!0)}function applyArchiveAction(){var n=$(".c-news__archive--title, .c-media__archive--title");n.length!==0&&n.each(function(){var n=$(this);n.click(function(){var t=$(this),i=null,n=t.parent(),r;if(!n.hasClass("collapsible-no")){if(n.data("url")||(n=t.siblings("div").first(),i=t.closest(".c-media__archive")),t.hasClass("active")){t.removeClass("active");n.removeClass("active");i!=null&&i.removeClass("active");n.find(".c-news").hide();n.find(".c-related-products").hide();n.find(".item").hide();n.find("form").hide();n.find(".c-news__download-section").hide();return}if(t.addClass("active"),n.addClass("active"),i!=null&&i.addClass("active"),n.data("is-loaded")){n.find(".c-news").show();n.find(".c-related-products").show();n.find(".item").show();n.find("form").show();n.find(".c-news__download-section").show();return}n.data("is-loaded",!0);r=n.data("url");$.get(r,function(t){var i=$(t).filter(":not(input[type=hidden][id='hfSummary'])");n.append(i);parseRetrievedNews(t,!1)})}})})}function parseRetrievedNews(n,t){var i=$(n),e=i.filter("div"),o="input[type=hidden][id='hfSummary']",u=i.filter(o),r;u.length===0&&(u=i.find(o),e=i.children("div"));r=i.filter("form");r.length===0&&(r=i.find("form"));var s=u.data("form-id"),h=u.data("container-id"),f=$("#"+h);f.find("#hfSummary").replaceWith(null);$("#"+s).replaceWith(null);t&&f.append(e);r&&f.append(r)}function searchResultsLoaded(n){var i=$(n),t=i.filter("input[type='hidden'][name='hfSearchData']");t.length===0?$("#loadMoreResultsForm").hide():($("#hfNextReference").val(t.val()),console.log(t),console.log($("#hfNextReference").val()))}function homepageSearchLoaded(n){if(n!=null){var i=$(n),t=i.find("input[type='hidden'][name='pageRedirect']");if(t.length>0&&t.val()!==""){window.location.href=t.val();return}}prepareFormButtons()}function prepareFormButtons(){$(".c-search__input button").click(function(){var n=$(this),t=n.parent().find(".searchTextBox");t.val("");n.data("is-header")==null&&($("#search-container").html(""),$("#loadMoreResultsForm").remove());$("header .rootmenu, header .search").removeClass("active")})}function showPleaseWait(){var n=$("#hfPleaseWaitMessage").val();$.blockUI({css:{border:"none",padding:"15px",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px",opacity:.5,color:"#fff"},message:"<h2 class='heading-two'>"+n+"<\/h2>"})}function prepareEventsList(){var n=$(".events-button");n.length!==0&&n.each(function(){var n=$(this);n.click(function(){var n=$(this);n.hasClass("show")?(n.removeClass("show"),$("div.c-calendar-events__item[data-is-passed='True']").hide()):(n.addClass("show"),$("div.c-calendar-events__item[data-is-passed='True']").show())})})}function resetSelectedValue(){}function prepareSelect2(){$(".filter-select").select2({}).on("select2:unselect",function(){})}function prepareFilterAutoSubmit(){$("#ddlPageFilter, .auto-submit").change(function(){var r=$(this),n=r.data("form-to-submit"),t,i;n!==""&&(t=$("#"+n),t.length>0&&(i=t.find("input[name='trigger']"),i.length>0&&i.val(r.attr("name")),$("#"+n).submit()))});prepareSelect2()}function prepareLazyImages(){var n=[].slice.call(document.querySelectorAll("img.lazy"));if("IntersectionObserver"in window){let t=new IntersectionObserver(function(n){n.forEach(function(n){if(n.isIntersecting){let i=n.target;i.src=i.dataset.src;t.unobserve(i)}})});n.forEach(function(n){t.observe(n)})}else n.forEach(function(n){n.src=n.dataset.src})}function prepareImageCaption(){$(".c-image__hover--image").length>0&&$(".c-image__hover--image").click(function(){$(".c-image__hover--text").toggleClass("active")})}function prepareArrowIssueFix(){$(".desktop-tab-navigation").length>0&&$(window).width()<1024&&($(".desktop-tab-navigation .c-button--link").prop("style").display===""?$(".desktop-tab-navigation .c-button--link").css("display","inline"):$(".desktop-tab-navigation .c-button--link").prop("style").display==="block"?$(".desktop-tab-navigation .c-button--link").css("display","inline"):$(".desktop-tab-navigation .c-button--link").css("display","block"))}function updateInterface(n,t,i){$("div.rtcc-container").children("a.c-tab-navigation__item").removeClass("active");n&&$("div.rtcc-container").children("a.c-tab-navigation__item[data-category='"+n+"']").addClass("active");t&&$("div.rtcc-container").children("a.c-tab-navigation__item[data-role='"+t+"']").addClass("active");i&&$("div.rtcc-container").children("a.c-tab-navigation__item[data-segment-type='"+i+"']").addClass("active")}function updateUrl(n){var i=window.location.href,t=new URL(i);t.searchParams.set("segment",n);window.history.pushState(null,document.title,t)}function fetchData(n,t,i,r){var u=$("#"+r),f,e;u&&(i?$("input[type=hidden][name=SelectedSegmentType]",u).val(i):(f=$("#rtccSelectedRole").val(),f||(f=t),$("input[type=hidden][name=SelectedRole]",u).val(f),e=$("#rtccSelectedCategory").val(),e||(e=n),$("input[type=hidden][name=SelectedCategory]",u).val(e)),u.submit())}function prepareRTCCContentAfterSubmit(){var n=$("#rtccPageMasterContainer").find("img"),i,t;if(n){i=n.length;t=0;n.on("load",function(){t++;t==i&&prepareCarrousel()})}prepareVideoPlayer();prepareImageCaption();prepareArrowIssueFix()}function prepareSegmentManagement(){$("a.c-tab-navigation__item").click(function(n){var t;n.preventDefault();var f=$(this),i=f.data("category"),r=f.data("role"),u=f.data("segment-type"),e=f.data("form-id");(i||r||u)&&(updateInterface(i,r,u),t="",i?t=i:r?t=r:u&&(t=u),t)&&(updateUrl(t),fetchData(i,r,u,e))});$("#ddlRTCCMobileFilterSelect").change(function(){var t=$(this),n=t.val(),e=t.data("form-id"),i=t.data("select-type"),r="",u="",f="";if(i==="categories")r=n;else if(i==="roles")u=n;else if(i==="segment-types")f=n;else return!1;updateUrl(n);fetchData(r,u,f,e)})}function renderBackgroundInformation(){var n=$(".c-board__item");n.length!==0&&n.each(function(){var n=$(this),i=n.children(".show-more"),t=n.children(".second-info__container"),r=$(".show-more").data("more"),u=$(".show-more").data("less");i.click(function(){var n=$(this);n.hasClass("active")?(n.text(r),n.removeClass("active"),t.removeClass("active")):(n.addClass("active"),n.text(u),t.addClass("active"))})})}$(document).ready(function(){prepareVideoPlayer()});$(document).ready(function(){var n=document.querySelectorAll(".c-button__show-more");n.forEach(function(n){n.addEventListener("click",function(){this.classList.toggle("show");var n=this.previousElementSibling;n&&(n.classList.toggle("expanded"),n.classList.toggle("not-expanded"),$("html, body").animate({scrollTop:$(this).parent().offset().top-150},350));this.textContent=this.classList.contains("show")?this.getAttribute("data-restrain-text"):this.getAttribute("data-expand-text")})})});$(document).ready(function(){$("header .rootmenu .nav-title, .c-infobar__left .selector, .c-infobar__left img").click(function(n){var t=$(this);t.closest("li").hasClass("contact")||t.closest("li").hasClass("nav-link")||(n.preventDefault(),$("header .rootmenu, header .search").removeClass("active"),$(this).parent().addClass("active"))});$("header .search img").click(function(){$("header .rootmenu").removeClass("active");$("header .search").addClass("active")});$(".close-drowpdown-icon, .c-search__input button").click(function(){$("header .rootmenu, header .search, header .country-selector").removeClass("active");$(".c-search__input input").val("")});$(document).mouseup(function(n){var t=$(".desktop-nav__inner, .dropdown-search, .dropdown-country__inner");t.is(n.target)||t.has(n.target).length!==0||$("header .rootmenu, header .search, header .country-selector").removeClass("active")});$(document).on({keydown:function(n){n.which===27&&$("header .rootmenu, header .search, header .country-selector").removeClass("active")}});$(".arrow-image-container").click(function(){$(this).parent().parent().toggleClass("active")});$(".hamburger-button").click(function(){$(".mobile-nav").toggleClass("active");$(".contact-us-mobile").toggleClass("active");$(this).toggleClass("active");$("html").toggleClass("menu-open")});setNavItemMargin()});$(window).resize(function(){setNavItemMargin()});$(document).ready(function(){prepareFontSize()}),function(n){n.fn.fitText=function(t,i){var u=t||1,r=n.extend({minFontSize:Number.NEGATIVE_INFINITY,maxFontSize:Number.POSITIVE_INFINITY},i);return this.each(function(){var t=n(this),i=function(){t.css("font-size",Math.max(Math.min(t.width()/(u*10),parseFloat(r.maxFontSize)),parseFloat(r.minFontSize)))};i();n(window).on("resize.fittext orientationchange.fittext",i)})}}(jQuery);$(window).on("load",function(){prepareCarrousel()});$(document).ready(function(){if($(".c-banner__image--item.active").length>0)$(".flip-button").on("click",function(){var t=$(this).parent().find(".c-banner__image--item.active"),n=$(this).parent().find(".c-banner__image--item").index(t),i=$(this).parent().find(".c-banner__image--item").length-1;console.log(t);$(this).length>0?n++:n--;n>i?n=0:n<0&&(n=i);$(this).parent().find(".c-banner__image--item.active").removeClass("active");$(this).parent().find(".c-banner__image--item:nth-child("+(n+1)+")").addClass("active")})});$(document).ready(function(){$("ul.c-navigation__tabs li").click(function(){var n=$(this).data("tab"),t=$(this).data("tab-always-open");$("ul.c-navigation__tabs li").removeClass("active");$(".c-navigation__container .tab-content").removeClass("active current");$(this).addClass("active");$("#"+n).addClass("current");t&&$("#"+n).addClass("active");$(".c-button--minimize").removeClass("active")});$(".tab-content").click(function(){$(this).hasClass("downloads-content")||($(this).hasClass("active")?($(this).find(".c-button--minimize").removeClass("active"),$(this).removeClass("active")):($(this).find(".c-button--minimize").addClass("active"),$(this).addClass("active")))})});$(document).ready(function(){if($(".c-newsletter").length>0)$(".c-newsletter__button").on("click",function(){if($(this).toggleClass("active"),$(".c-get-in-touch__wrapper").toggleClass("active"),$(this).hasClass("active"))$("html, body").animate({scrollTop:$(this).offset().top-145},300);else{var n=$(this).closest(".c-newsletter");n.length>0&&$("html, body").animate({scrollTop:n.offset().top-145},300)}setTimeout(function(){$(".c-newsletter .c-newsletter__thank-you").css("height",$(".c-newsletter").height())},300)});if($(".c-get-in-touch__wrapper .c-newsletter__thank-you").length>0&&$(".c-get-in-touch__wrapper .c-newsletter__thank-you").css("height",$(".c-get-in-touch__wrapper.form-green-bg").parent(".c-get-in-touch").height()),$(".form-select").length>0){$(".form-select").select2({}).on("select2:open",function(){});$(".select2-results li").css({"padding-left":"14.5px","font-weight":"500"})}});$(document).ready(function(){applyArchiveAction($(document))});$(document).ready(function(){prepareFormButtons()});$(document).ajaxStart(function(){showPleaseWait()});$(document).ajaxStop(function(){$.unblockUI();prepareFontSize();prepareLazyImages()});$(document).ready(function(){$(".footer-mobile").length>0&&$(".footer-mobile__main-item .icon").click(function(){$(this).parent().parent().toggleClass("active")})});$(document).ready(function(){prepareEventsList()});$(document).ready(function(){$(".c-accessories__container").length>0&&$(window).width()<1366&&$(".c-accessories__container").slick({dots:!0,infinite:!0,speed:500,fade:!0,cssEase:"linear",prevArrow:`<button class="slide-arrow prev-arrow"></button>`,nextArrow:`<button class="slide-arrow next-arrow"></button>`,adaptiveHeight:!1,responsive:[{breakpoint:1024,settings:{adaptiveHeight:!0}}]})});$(document).ready(function(){resetSelectedValue();prepareFilterAutoSubmit()});$(document).ready(function(){$("input:file").change(function(n){if(n.target!=null&&n.target.files!=null&&n.target.files.length!==0){var i=$(n.target),t=i.siblings(".file-custom").find(".left-side");t!=null&&t.length!==0&&t.html(n.target.files[0].name)}})});$(document).ready(function(){prepareLazyImages()});$(document).ready(function(){prepareImageCaption()});$(document).ready(function(){prepareSegmentManagement();prepareArrowIssueFix()});$(document).ready(function(){renderBackgroundInformation()})