1(function($,Drupal){Drupal.behaviors.carouselWithPause={attach:function(context,settings){$('.mcarrusel',context).each(function(){var $wrapper=$(this);var $carousel=$wrapper.find('.contenedor-carusel');if(!$carousel.hasClass('slick-initialized')){$carousel.slick({autoplay:true,autoplaySpeed:3000,arrows:false,dots:true,pauseOnHover:false,pauseOnFocus:false});}else{console.log('â ï¸ Slick ya inicializado:',$carousel);} 2$carousel.on('init afterChange',function(event,slick,currentSlide){var index=typeof currentSlide==='undefined'?slick.currentSlide:currentSlide;$(slick.$slides).attr({'aria-hidden':'true','tabindex':'-1'}).find('a, input, button, select').attr({'tabindex':'-1'});var $current=$(slick.$slides.get(index));$current.attr({'aria-hidden':'false','tabindex':'0'}).find('a, input, button, select').removeAttr('tabindex');});$wrapper.on('click','.carousel-pause-btn',function(e){e.preventDefault();var $btn=$(this);if(!$carousel.hasClass('slick-initialized'))return;if($btn.hasClass('paused')){$carousel.slick('slickPlay');$btn.removeClass('paused').text('ââ');console.log('â¶ï¸ Reanudado');}else{$carousel.slick('slickPause');$btn.addClass('paused').text('â¶');console.log('â¸ï¸ Pausado');}});});var userInteracted=false;$(document).one('click keydown scroll',function(){userInteracted=true;});function playErrorSound(){if(!userInteracted)return;var audio=new Audio('data:audio/wav;base64,UklGRiQAAABXQVZFZm10IBAAAAABAAEAESsAACJWAAACABAAZGF0YRAAAAAA');audio.play().catch(function(err){console.warn('No se pudo reproducir el sonido:',err);});} 3function announceError($error){if(!$error.attr('role'))$error.attr('role','alert');if(!$error.attr('aria-live'))$error.attr('aria-live','assertive');if($error.is(':visible')){$error.attr('tabindex','-1');$error.focus();} 4playErrorSound();} 5$('.alert.alert-danger').each(function(){announceError($(this));});var observer=new MutationObserver(function(mutationsList){mutationsList.forEach(function(mutation){$(mutation.addedNodes).each(function(){var $node=$(this);
5if($node.hasClass&&$node.hasClass('alert')&&$node.hasClass('alert-danger')){announceError($node);}else{$node.find&&$node.find('.alert.alert-danger').each(function(){announceError($(this));});}});});});observer.observe(document.body,{childList:true,subtree:true});}};})(jQuery,Drupal);
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.