window.isMobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){window.isMobile=!0} function t_throttle(fn,threshhold,scope){var last;var deferTimer;threshhold||(threshhold=250);return function(){var context=scope||this;var now=+new Date();var args=arguments;if(last&&nowmaxHeight)maxHeight=textWrapHeight} if(window.innerWidth>=960){if(maxHeight>colHeight){for(var j=0;j=768){for(var i=0;imaxHeight)maxHeight=textWrapHeight} if(maxHeight>colHeight){for(var j=0;jimage.offsetWidth+text.offsetWidth){if(wrapper.classList.contains('t902_wrapper_flexEnd')){wrapper.classList.remove('t902_wrapper_flexEnd')}}else{if(!wrapper.classList.contains('t902_wrapper_flexEnd')){wrapper.classList.add('t902_wrapper_flexEnd')}}}} function t902_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t902');if(!container)return;var wraps=rec.querySelectorAll('.t902__wrap');var rows=[];var chunkSize=2;var cols=Array.prototype.slice.call(rec.querySelectorAll('.t-card__col'));for(var i=0;i960){for(var i=0;iheightBox)heightBox=wrapHeight} if(heightBox>0){for(var j=0;j960){t422_checkEqualHeight(recId)}else{var mobileImages=rec.querySelectorAll('.t422__img-mobile');var texts=rec.querySelectorAll('.t422__text');var imageWidth=mobileImages.length?getComputedStyle(mobileImages[0]).width:'0';imageWidth=parseInt(imageWidth,10);for(var i=0;itextWrapHeight){textWrap.style.height=imageHeight-borderWidth+'px'}} function t424_init(recId){t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})} function t650_init(recId){t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})} function t959__init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t959');if(!container)return;t959__updateLazyLoad(recId);t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})} function t959__updateLazyLoad(recId){var allRecords=document.getElementById('allrecords');var container=document.querySelector('#rec'+recId+' .t959__container_mobile-flex');var mode=allRecords.getAttribute('data-tilda-mode');if(container&&mode!=='edit'&&mode!=='preview'&&window.isMobile){if(window.lazy==='y'||allRecords.getAttribute('data-tilda-lazy')==='yes'){t_onFuncLoad('t_lazyload_update',function(){container.addEventListener('touchmove',t_throttle(function(){t_lazyload_update()}))})}}} function t983_init(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t983');if(!container)return;window.addEventListener('resize',t_throttle(function(){if(window.noAdaptive&&window.noAdaptive===!0&&window.isMobile)return;t983_unifyHeights(recId);t983_translateBlock(recId)}));window.addEventListener('load',function(){t983_unifyHeights(recId);t983_translateBlock(recId)});container.addEventListener('displayChanged',t_throttle(function(){t983_unifyHeights(recId);t983_translateBlock(recId)}));t983_unifyHeights(recId);t983_translateBlock(recId);t983__updateLazyLoad(recId);t_onFuncLoad('t_card__moveClickOnCard',function(){t_card__moveClickOnCard(recId)});t_onFuncLoad('t_card__addFocusOnTab',function(){t_card__addFocusOnTab(recId)})} function t983_translateBlock(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var container=rec.querySelector('.t983');if(!container)return;var hoverBlocks=rec.querySelectorAll('.t983__card-block_hover');var wrapMarginBottom=35;var isMobile=window.isMobile||window.innerWidth<960;for(var i=0;imaxHeightRow)maxHeightRow=cardHideHeight} for(var j=0;j=480){cardBlock.style.transform='translateY('+diff+'px)'}else{cardBlock.style.transform=null}}}}}} function t983_unifyHeights(recId){var rec=document.getElementById('rec'+recId);if(!rec)return;var main=rec.querySelector('.t983');if(!main)return;var container=rec.querySelector('.t983__container');var rows=main.querySelectorAll('.t983__row');for(var i=0;imaxHeight)maxHeight=cardContentHeight} if(maxHeight>minHeightFromRatio){for(var j=0;j=768){t829_initMasonry(rec,recId,grid)} if(!(grid.classList.contains('t829__container_mobile-flex')&&window.innerWidth<768)){t829_calcColumnWidth(rec,sizerWidth,grid,sizer,items)}}));if(typeof jQuery!=='undefined'){$(container).bind('displayChanged',function(){if(!grid.classList.contains('t829__container_mobile-flex')){grid.style.height='100vh';t829_initMasonry(rec,recId,grid)} if(grid.classList.contains('t829__container_mobile-flex')&&window.innerWidth>=768){t829_initMasonry(rec,recId,grid)} if(!(grid.classList.contains('t829__container_mobile-flex')&&window.innerWidth<768)){t829_calcColumnWidth(rec,sizerWidth,grid,sizer,items)}})}else{container.addEventListener('displayChanged',function(){if(!grid.classList.contains('t829__container_mobile-flex')){t829_initMasonry(rec,recId,grid)} if(grid.classList.contains('t829__container_mobile-flex')&&window.innerWidth>=768){t829_initMasonry(rec,recId,grid)} if(!(grid.classList.contains('t829__container_mobile-flex')&&window.innerWidth<768)){t829_calcColumnWidth(rec,sizerWidth,grid,sizer,items)}})}} function t829_initMasonry(rec,recId,grid){if(!rec)return;var gutterSizer=rec.querySelector('.t829__gutter-sizer');if(!gutterSizer)return;gutterSizer.style.width='';var gutterSizerWidth=parseInt(getComputedStyle(gutterSizer,null).width);var gutterElement=gutterSizerWidth===40?39:'#rec'+recId+' .t829__gutter-sizer';t_onFuncLoad('imagesLoaded',function(){imagesLoaded(grid,function(){new Masonry(grid,{itemSelector:'#rec'+recId+' .t829__grid-item',columnWidth:'#rec'+recId+' .t829__grid-sizer',gutter:gutterElement,isFitWidth:!0,transitionDuration:0,})})})} function t829_calcColumnWidth(rec,sizerWidth,grid,sizer,items){if(!rec)return;var container=rec.querySelector('.t829__container');if(!container)return;grid.style.width='';for(var i=0;i=itemWidth){sizer.style.width=newSizerWidth+'px';for(var i=0;i