1(function(Drupal,$,once,drupalSettings){'use strict';Drupal.behaviors.pgTestimonialsSlider={attach:function(context,settings){once('pgTestimonialsSlider','.paragraph--type--testimonials-slider',context).forEach(function(paragraph){let $carousel=$(paragraph).find('.field--name-field-node-refs');if($(paragraph).find('.view-testimonials-widget .view-content').length>0){$carousel=$(paragraph).find('.view-testimonials-widget .view-content')} 2if($carousel.find('article').length<2){return} 3function reapplyColorbox(){$('.video-play button.colorbox').colorbox('destroy');const windowWidth=$(window).width();let responsiveWidth='90%';let responsiveMaxWidth='1246px';if(windowWidth<1246){responsiveWidth='90%';responsiveMaxWidth='90%'} 4setTimeout(()=>{let activeSlide=$carousel.find('.carousel-item.active');if(!activeSlide.length){activeSlide=$carousel.find('.carousel-item').first()} 5activeSlide.find('.video-play button.colorbox').each(function(){$(this).colorbox({inline:!0,width:'1246px',maxWidth:responsiveMaxWidth,maxHeight:'90vh',returnFocus:!0,trapFocus:!0,onOpen:function(){let resizeTimer;$(window).on('resize.colorboxAutoResize',function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){if($('#colorbox').is(':visible')){$.colorbox.resize();if(!$('body').hasClass('body-scroll-lock')){$('body').addClass('body-scroll-lock')}}},50)})},onComplete:function(){const wrapperIframe=$('#cboxLoadedContent iframe');if(!wrapperIframe.length){console.warn('Outer iframe not found in #cboxLoadedContent');return} 6const outerIframe=wrapperIframe.get(0);try{const innerDoc=outerIframe.contentDocument||outerIframe.contentWindow.document;const innerIframe=$(innerDoc).find('iframe');if(!innerIframe.length){console.warn('Inner iframe not found inside the outer iframe');return} 7const originalSrc=innerIframe.attr('src')||'';const symbol=originalSrc.includes('?')?'&':'?';const updatedSrc=originalSrc+symbol+'autoplay=1&playsinline=1&mute=1&rel=0&cb='+Date.now();const finalSrc=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?updatedSrc+'&background=1':updatedSrc;const cssClass=innerIframe.attr('class')||'';const newIframe=$('<iframe>',{src:finalSrc,frameborder:0,allow:'autoplay; fullscreen',allowfullscreen:!0,class:cssClass});innerIframe.replaceWith(newIframe);$('#cboxClose').show();$('body').addClass('body-scroll-lock');$('#colorbox').attr('tabindex','0');$.colorbox.resize()}catch(e){console.error('Error accessing nested iframe:',e)}},onClosed:function(){$('body').removeClass('body-scroll-lock');$('#cboxClose').hide();$(window).off('resize.colorboxAutoResize')}});$(this).on('click',function(){setTimeout(()=>{$(window).trigger('resize')},1000)})})},300)} 8$carousel.find('.carousel-item button, .carousel-item a').attr('tabindex','-1');$carousel.find('.carousel-item.active button, .carousel-item.active a').attr('tabindex','0');setTimeout(()=>{reapplyColorbox()},1000);$carousel.on('slid.bs.carousel',function(event){$carousel.find('.carousel-item button, .carousel-item a').attr('tabindex','-1');$carousel.find('.carousel-item.active button, .carousel-item.active a').attr('tabindex','0');reapplyColorbox()})})},}})(Drupal,jQuery,once,drupalSettings)
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.