PageSourceSearch

https://www.hawaiitours.com/wp-content/themes/mm/js/avia-snippet-cookieconsent.js?ver=4.8.9.1

js hawaiitours.com collected 2026-09-24 11:14:05 UTC 21,836 bytes, 825 lines download raw bytes

1
2var avia_cookie_consent_modal_callback = avia_cookie_consent_modal_callback ||
3		{
4			init: null,
5			open: null,
6			close: null
7		};
8
9
10( function($)
11{
12
13	"use strict";
14
15	/**
16	 * enfold\includes\helper-privacy.php  handler_manage_cookies() also checks cookies with php
17	 * =========================================================================================
18	 */
19
20	$( function()
21	{
22		//	FF throws error when all cookies blocked !!
23		var sessionBlocked = false;
24		try
25		{
26			var test = sessionStorage.getItem( 'aviaCookieRefused' );
27		}
28		catch(e)
29		{
30			sessionBlocked = true;
31		}
32
33		var $_html = $('html');
34		var aviaCookieConsentBarWrap = $( '.avia-cookie-consent-wrap' );
35		var aviaCookieConsentBar = $('.avia-cookie-consent');
36		var aviaCookieConsentBadge = $('#av-cookie-consent-badge');
37		var accept_btn = $('.avia-cookie-consent-button.avia-cookie-close-bar');
38		var newCookieContents = aviaCookieConsentBar.attr('data-contents');
39		var oldCookieContents = aviaGetCookie( 'aviaCookieConsent' );
40		var aviaCookieRefused = ! sessionBlocked ? sessionStorage.getItem( 'aviaCookieRefused' ) : null;
41		var forceHideMessageBar = aviaGetCookie('aviaPrivacyRefuseCookiesHideBar');
42		var cookie_paths = set_cookie_paths();		// object Cookie name: path  - filled from custom cookies
43		var reload_tooltip = $_html.find( 'a.avia-privacy-reload-tooltip-link' ).first();
44		var accept_essential_cookies = $_html.hasClass( 'av-cookies-essential-only' );
45
46		/**
47		 * Set a class to avoid calls to sessionStorage
48		 */
49		if( sessionBlocked || aviaCookieRefused )
50		{
51			$_html.addClass( 'av-cookies-session-refused' );
52		}
53
54		/**
55		 * Force setting of needed cookies on new pageload
56		 */
57		if( accept_essential_cookies && oldCookieContents == null )
58		{
59			check_fallback_cookie_setting();
60			aviaSetCookieToggles( 'set' );
61
62			aviaSetCookie( 'aviaCookieConsent', 'xxxxx||v1.0', 365 );
63			aviaSetCookie( 'aviaPrivacyMustOptInSetting', true, 365 );
64		}
65
66		/**
67		 * If user refuses cookies and silent accept of cookies is selected we need to remove this if we are in same session
68		 */
69		if( sessionBlocked || aviaCookieRefused || document.cookie.match(/aviaCookieConsent/) )
70		{
71			$_html.removeClass( 'av-cookies-user-silent-accept' );
72		}
73
74		if( reload_tooltip.length > 0 )
75		{
76			new $.AviaTooltip({"class": 'avia-privacy-reload-tooltip', data: 'avia-privacy-reload-tooltip', event:'click', position:'top', scope: "body", attach:'element', within_screen: true});
77		}
78
79		if( 'undefined' != typeof $.avia_utilities.av_popup && 'function' != typeof avia_cookie_consent_modal_callback.init )
80		{
81			avia_cookie_consent_modal_callback.init = avia_magnificPopup_init;
82			avia_cookie_consent_modal_callback.open = null;
83			avia_cookie_consent_modal_callback.close = avia_magnificPopup_close;
84		}
85
86		check_fallback_cookie_setting();
87
88		if( $_html.hasClass( 'avia-cookie-check-browser-settings' ) )
89		{
90			check_doNotTrack();
91		}
92
93		if( newCookieContents != oldCookieContents )
94		{
95			oldCookieContents = null;
96		}
97
98		var msgbar_changed = oldCookieContents == null;		//	message bar content changed - we must show message bar again
99
100		if( ! $_html.hasClass( 'av-cookies-consent-message-bar-only' ) )
101		{
102			if( ! forceHideMessageBar )
103			{
104				msgbar_changed = true;	//	user disabled hiding message bar and cookies via toggle - we must show it again.
105			}
106
107			if( aviaCookieRefused )
108			{
109				msgbar_changed = false;		//	do not ask again as long as in same session
110			}
111
112			if( ! ( oldCookieContents || aviaCookieRefused ) || msgbar_changed )
113			{
114				aviaCookieConsentBar.removeClass('cookiebar-hidden');
115				set_cookie_consent_aria_attr( 'show' );
116			}
117		}
118		else if( msgbar_changed )
119		{
120			aviaCookieConsentBar.removeClass('cookiebar-hidden');
121			set_cookie_consent_aria_attr( 'show' );
122		}
123
124		accept_btn.on( 'click', function(e) {
125					e.preventDefault();
126
127					var button = $(this);
128
129					if( button.hasClass( 'avia-cookie-select-all' ) )
130					{
131						aviaSetCookieToggles( 'select_all' );
132					}
133
134					aviaSetCookie( 'aviaCookieConsent', newCookieContents, 365 );
135					aviaCookieConsentBar.addClass('cookiebar-hidden');
136					aviaCookieConsentBadge.addClass('avia_pop_class');
137					set_cookie_consent_aria_attr( 'hide' );
138
139					if( button.hasClass('avia-cookie-consent-modal-button') )
140					{
141						if( 'function' == typeof avia_cookie_consent_modal_callback.close )
142						{
143							avia_cookie_consent_modal_callback.close( this );
144						}
145					}
146
147					if( $_html.hasClass( 'av-cookies-consent-message-bar-only' ) )
148					{
149						return;
150					}
151
152					if( $_html.hasClass( 'av-cookies-needs-opt-in' ) )
153					{
154						aviaSetCookie( 'aviaPrivacyMustOptInSetting', true, 365 );
155					}
156					else
157					{
158						aviaSetCookie( 'aviaPrivacyMustOptInSetting', false, -60 );
159					}
160
161					aviaSetCookieToggles( 'set' );
162
163					if( $_html.hasClass( 'avia-cookie-reload-accept' ) )
164					{
165						if( reload_tooltip.length > 0 )
166						{
167							reload_tooltip.closest( '.avia-privacy-reload-tooltip-link-container' ).addClass( 'av-display-tooltip' );
168							reload_tooltip.trigger( 'click' );
169						}
170						location.reload( true );
171					}
172
173					button.trigger( 'avia-cookie-settings-changed' );
174			});
175
176		//	hide and dismiss button
177		$('.avia-cookie-consent-button.avia-cookie-hide-notification').on( 'click', function(e) {
178					e.preventDefault();
179
180					var button = $(this);
181
182					if( 'undefined' != typeof AviaPrivacyCookieAdditionalData.cookie_refuse_button_alert && '' != AviaPrivacyCookieAdditionalData.cookie_refuse_button_alert.trim() )
183					{
184						if( ! window.confirm( AviaPrivacyCookieAdditionalData.cookie_refuse_button_alert ) )
185						{
186							return;
187						}
188					}
189
190					if( button.hasClass( 'avia-cookie-consent-modal-button' ) )
191					{
192						if( 'function' == typeof avia_cookie_consent_modal_callback.close )
193						{
194							avia_cookie_consent_modal_callback.close( this );
195						}
196					}
197
198					aviaSetCookieToggles( 'reset' );
199					if( ! sessionBlocked )
200					{
201						sessionStorage.setItem( 'aviaCookieRefused', newCookieContents );
202					}
203
204					$_html.addClass( 'av-cookies-session-refused' );
205					$_html.removeClass( 'av-cookies-user-silent-accept' );
206
207					aviaCookieConsentBar.addClass( 'cookiebar-hidden' );
208					aviaCookieConsentBadge.addClass( 'avia_pop_class' );
209					set_cookie_consent_aria_attr( 'hide' );
210
211					if( $_html.hasClass( 'avia-cookie-reload-no-accept' ) )
212					{
213						if( reload_tooltip.length > 0 )
214						{
215							reload_tooltip.closest( '.avia-privacy-reload-tooltip-link-container' ).addClass( 'av-display-tooltip' );
216							reload_tooltip.trigger( 'click' );
217						}
218						location.reload( true );
219					}
220
221					button.trigger( 'avia-cookie-settings-changed' );
222			});
223
224		//	info button
225		if( 'function' == typeof avia_cookie_consent_modal_callback.init )
226		{
227			var options = {
228					activate: '.avia-cookie-consent-button.avia-cookie-info-btn',
229					source:   '#av-consent-extra-info'
230				};
231
232			avia_cookie_consent_modal_callback.init( options );
233
234			$( '.avia-cookie-consent-button.avia-cookie-info-btn' ).on( 'click', function(e) {
235						if( 'function' == typeof avia_cookie_consent_modal_callback.open )
236						{
237							avia_cookie_consent_modal_callback.open( this );
238						}
239				});
240		}
241		else
242		{
243			$('.avia-cookie-consent-button.avia-cookie-info-btn').on( 'click', function(e) {
244						e.preventDefault();
245
246						var def_msg = "We need a lightbox to show the modal popup. Please enable the built in lightbox in Theme Options Tab or include your own modal window plugin.\n\nYou need to connect this plugin in JavaScript with callback wrapper functions - see avia_cookie_consent_modal_callback in file enfold\js\avia-snippet-cookieconsent.js";
247						var msg = 'string' == typeof AviaPrivacyCookieAdditionalData.no_lightbox ? AviaPrivacyCookieAdditionalData.no_lightbox : def_msg;
248
249						alert( msg );
250				});
251		}
252
253		//	Badge
254		aviaCookieConsentBadge.on( 'click', function(e) {
255					e.preventDefault();
256
257					aviaCookieConsentBar.removeClass('cookiebar-hidden');
258					aviaCookieConsentBadge.removeClass('avia_pop_class');
259					set_cookie_consent_aria_attr( 'show' );
260			});
261
262		function avia_magnificPopup_init( options )
263		{
264			var new_options = {
265				type:'inline',
266				midClick: true, // Allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source in href.
267				closeOnBgClick: false,
268				enableEscapeKey: false,
269				closeOnContentClick: false,
270				overflowY: scroll,
271				items:{
272					src: '#av-consent-extra-info',
273					type:'inline'
274				},
275				callbacks: {
276					open: function() {
277							$('html').css(
278									{	overflow: 'hidden',
279										'max-height': '100%'
280									});
281						},
282					close: function() {
283							$('html').css(
284									{	overflow: '',
285										'max-height': ''
286									});
287					}
288				}
289			};
290
291			new_options = $.extend( {}, $.avia_utilities.av_popup, new_options );
292			$( '.avia-cookie-info-btn' ).magnificPopup( new_options );
293		}
294
295		function avia_magnificPopup_close()
296		{
297			$.magnificPopup.close();
298			$_html.trigger( 'avia-cookie-settings-changed', 'avia_magnificPopup_close' );
299		}
300
301		function set_cookie_paths()
302		{
303			var paths = {};
304			if( 'undefined' != typeof AviaPrivacyCookieAdditionalData.remove_custom_cookies )
305			{
306				$.each( AviaPrivacyCookieAdditionalData.remove_custom_cookies, function( i, custom_cookie ) {
307								var path = custom_cookie.cookie_path.trim();
308								paths[ custom_cookie.cookie_name ] = ( '' != path ) ? path : '/';
309						});
310			}
311
312			return paths;
313		}
314
315		function aviaSetCookie( CookieName, CookieValue, CookieDays, custom_path )
316		{
317			var path = '/';
318			if( 'string' == typeof custom_path )
319			{
320				if( '' != custom_path )
321				{
322					path = custom_path;
323				}
324			}
325			else if( 'string' == typeof cookie_paths[ CookieName ] )
326			{
327				path = cookie_paths[ CookieName ];
328			}
329
330			if( CookieDays )
331			{
332				var date = new Date();
333				date.setTime( date.getTime() + ( CookieDays * 24 * 60 * 60 * 1000 ) );
334				var expires = "; expires=" + date.toGMTString();
335			}
336			else
337			{
338				var expires = "";
339			}
340
341			document.cookie = CookieName + "=" + CookieValue + expires + "; path=" + path + '; samesite=strict';
342		}
343
344		function aviaGetCookieNames( CookieName, check, path )
345		{
346			check = ( 'undefined' == typeof check ) ? 'equals' : check.trim();
347
348			var cookiesFound = [];
349			var docCookiesArr = document.cookie.split( ';' );
350
351			for( var i = 0; i < docCookiesArr.length; i++ )
352			{
353				var thisCookie = docCookiesArr[i];
354				var result = thisCookie.split( '=' );
355				var cookie_name = result[0].trim();
356				var found = false;
357
358				switch (check)
359				{
360					case 'starts_with':
361						found = cookie_name.startsWith( CookieName );
362						break;
363					case 'contains':
364						if( ! cookie_name.startsWith( 'aviaPrivacyCustomCookie' ) )
365						{
366							found = cookie_name.indexOf( CookieName ) != -1;
367						}
368						break;
369					case 'equals':
370					case '':
371					default:
372						found = cookie_name == CookieName;
373						break;
374				}
375
376				if ( found )
377				{
378					cookiesFound.push( { name: cookie_name, path: path } );
379				}
380			}
381
382			return cookiesFound;
383		}
384
385		function aviaGetCookie( CookieName )
386		{
387			var docCookiesArr = document.cookie.split( ';' );
388
389			for( var i = 0; i < docCookiesArr.length; i++ )
390			{
391				var thisCookie = docCookiesArr[i];
392				var result = thisCookie.split( '=' );
393				var cookie_name = result[0].trim();
394
395				if ( cookie_name == CookieName )
396				{
397					cookie_name += '=';
398					var savedContents = thisCookie.replace( cookie_name, '' );
399					savedContents = savedContents.trim();
400					return savedContents;
401                }
402            }
403
404			return null;
405		}
406
407		function aviaSetCookieToggles( action )
408		{
409			var toggles = $( '.av-toggle-switch.av-cookie-disable-external-toggle' );
410
411			toggles.each( function() {
412					var toggle = $(this);
413					var input = toggle.find( 'input' );
414					var cookie = input.attr( 'name' );
415
416					var value = true;
417					var days = 360;
418
419					if( action == 'select_all' )
420					{
421						if( ! input.prop( 'checked' ) )
422						{
423							input.trigger( 'click' );
424						}
425
426						return;
427					}
428					else if( action == 'set' )
429					{
430						if( input.prop( 'checked' ) && toggle.hasClass( 'av-cookie-save-unchecked' ) || false == input.prop( 'checked' ) && toggle.hasClass( 'av-cookie-save-checked' ) )
431						{
432							value = false;
433							days = -60;
434						}
435					}
436					else	//	reset
437					{
438						var hidden = input.closest( '.av-hidden-escential-sc' );
439						if( 0 == hidden.length )
440						{
441							input.prop( 'checked', false );
442						}
443
444						value = false;
445						days = -60;
446					}
447
448					aviaSetCookie( cookie, value, days );
449				});
450
451			if( action == 'reset' )
452			{
453				aviaSetCookie( 'aviaCookieConsent', false, -60 );
454				aviaSetCookie( 'aviaPrivacyMustOptInSetting', false, -60 );
455			}
456			else if( action == 'set' )
457			{
458				if( ! sessionBlocked )
459				{
460					sessionStorage.removeItem( 'aviaCookieRefused' );
461				}
462
463				$_html.removeClass( 'av-cookies-session-refused' );
464			}
465		}
466
467		function monitor_cookies()
468		{
469			if( $_html.hasClass( 'av-cookies-consent-message-bar-only' ) )
470			{
471				return;
472			}
473
474			var accepted = document.cookie.match(/aviaCookieConsent/) != null;
475			var allow_hide_bar = document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/) != null;
476			var allow_cookies = document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/) != null;
477			var keep_cookies = [];
478
479			if( ! ( accepted && allow_hide_bar && allow_cookies ) )
480			{
481				if( accepted && allow_hide_bar )
482				{
483					keep_cookies.push( 'aviaCookieConsent', 'aviaPrivacyRefuseCookiesHideBar', 'aviaPrivacyMustOptInSetting' );
484				}
485				else if( accepted )
486				{
487					keep_cookies.push( 'aviaCookieConsent', 'aviaPrivacyMustOptInSetting' );
488				}
489
490				remove_all_cookies( keep_cookies );
491			}
492			else
493			{
494				remove_custom_cookies();
495			}
496
497			update_cookie_info_box();
498
499			window.setTimeout( monitor_cookies, 300 );
500		}
501
502		function remove_custom_cookies()
503		{
504			if( 'undefined' == typeof AviaPrivacyCookieAdditionalData.remove_custom_cookies )
505			{
506				return;
507			}
508
509			$.each( AviaPrivacyCookieAdditionalData.remove_custom_cookies, function( i, custom_cookie ) {
510								var disable = aviaGetCookie( custom_cookie.avia_cookie_name );
511								if( disable != null )
512								{
513									var remove_cookies = aviaGetCookieNames( custom_cookie.cookie_name, custom_cookie.cookie_compare_action, custom_cookie.cookie_path );
514									for( var i = 0; i < remove_cookies.length; i++ )
515									{
516										aviaSetCookie( remove_cookies[i].name, false, -60, remove_cookies[i].path );
517									}
518								}
519						});
520		}
521
522		function remove_all_cookies( keep_cookies )
523		{
524			if( $_html.hasClass('av-cookies-user-silent-accept') )
525			{
526				return;
527			}
528
529			if( ! Array.isArray( keep_cookies ) )
530			{
531				keep_cookies = [];
532			}
533
534			if( $('body').hasClass( 'logged-in' ) && 'undefined' != typeof AviaPrivacyCookieAdditionalData.admin_keep_cookies )
535			{
536				$.merge( keep_cookies, AviaPrivacyCookieAdditionalData.admin_keep_cookies );
537			}
538
539			keep_cookies = keep_cookies.map( function( item ) { return item.trim().toLowerCase(); } );
540			var cookie_array = document.cookie.split(';').map( function( item ) { return item.trim(); } );
541
542			$.each( cookie_array, function( i, cookie ){
543
544							if( '' == cookie )
545							{
546								return;
547							}
548
549							var values = cookie.split( '=' );
550							var name = values[0].trim();
551							var test_name = name.toLowerCase();
552
553							if( $.inArray( test_name, keep_cookies ) >= 0 )
554							{
555								return;
556							}
557
558							var remove = true;
559							$.each( keep_cookies, function( i, keep_cookie ){
560									if( keep_cookie.indexOf( '*' ) >= 0 )
561									{
562										var new_val = keep_cookie.replace( '*', '' );
563										if( test_name.startsWith( new_val ) )
564										{
565											remove = false;
566											return false;
567										}
568									}
569								});
570
571							if( remove )
572							{
573								aviaSetCookie( name, false, -60 );
574								return;
575							}
576						});
577		}
578
579		function update_cookie_info_box()
580		{
581			if( 'undefined' == typeof AviaPrivacyCookieConsent )
582			{
583				return;
584			}
585
586			var infobox = $( '.avia-cookie-privacy-cookie-info' );
587			if( 0 == infobox.length )
588			{
589				return;
590			}
591
592			var info_array = [];
593			var html = '';
594
595			var cookies = document.cookie.split(';');
596			cookies.sort( function( a, b ){
597							var a = a.split( '=' );
598							var b = b.split( '=' );
599
600							if( a[0] < b[0] )
601							{
602								return -1;
603							}
604							else if( a[0] > b[0] )
605							{
606								return 1;
607							}
608
609							return 0;
610					});
611
612			$.each( cookies, function( i, cookie ){
613						if( '' == cookie.trim() )
614						{
615							return;
616						}
617
618						var values = cookie.split( '=' );
619						var name = values[0].trim();
620						var value = 'undefined' != typeof values[1] ? values[1].trim() : '';
621						var info = '';
622
623						if( name in AviaPrivacyCookieConsent )
624						{
625							info += AviaPrivacyCookieConsent[name];
626						}
627						else
628						{
629							if( '?' in AviaPrivacyCookieConsent )
630							{
631								info += AviaPrivacyCookieConsent['?'];
632							}
633							else
634							{
635								info += 'Usage unknown';
636							}
637
638							$.each( AviaPrivacyCookieConsent, function( key, content ){
639										var first = key.indexOf('*');
640										var last = key.lastIndexOf('*');
641
642										if( first < 0 && last < 0 )
643										{
644											return;
645										}
646
647										if( last == ( key.length - 1 ) )
648										{
649											key = key.substring( 0, key.length - 1 );
650										}
651										else
652										{
653											last = -1;
654										}
655
656										if( first == 0 )
657										{
658											key = key.replace( '*', '' );
659										}
660										else
661										{
662											first = -1;
663										}
664
665										if( first < 0 && last < 0 )
666										{
667											return;
668										}
669
670										var found = -1;
671										if( first >= 0 && last >= 0 )
672										{
673											found = name.indexOf( key );
674										}
675										else if( last >= 0 )
676										{
677											found = name.indexOf( key );
678											if( found != 0 )
679											{
680												found = -1;
681											}
682										}
683										else
684										{
685											found = name.lastIndexOf( key );
686											if( found < name.length - key.length )
687											{
688												found = -1;
689											}
690										}
691
692										if( found >= 0 )
693										{
694											info = content;
695											return false;
696										}
697								});
698
699						}
700
701						var out = '<strong>' + name + '</strong> ( ' + value + ' ) - ' + info;
702						info_array.push( out );
703					});
704
705			if( info_array.length > 0 )
706			{
707				html += '<ul>';
708
709				$.each( info_array, function( i, value ){
710								html += '<li>' + value + '</li>';
711							});
712
713				html += '</ul>';
714			}
715			else
716			{
717				var msg = 'string' == typeof AviaPrivacyCookieAdditionalData.no_cookies_found ? AviaPrivacyCookieAdditionalData.no_cookies_found : 'No accessable cookies found in domain';
718				html += '<p><strong>' + msg + '</strong></p>';
719			}
720
721			infobox.html( html );
722		}
723
724		function check_fallback_cookie_setting()
725		{
726			var hidden = $('#av-consent-extra-info').find('.av-hidden-escential
726-sc');
727			if( hidden.length == 0 )
728			{
729				return;
730			}
731
732			if( oldCookieContents == null )
733			{
734				return;
735			}
736
737			var data = hidden.data('hidden_cookies');
738			if( 'undefined' == typeof data )
739			{
740				return;
741			}
742
743			/**
744			 * If we have hidden toggles and user accepted cookies already we click the hidden cookies
745			 */
746			var hidden_cookies = data.split( ',' );
747
748			$.each( hidden_cookies, function( i, value ){
749						if( null == aviaGetCookie( value ) )
750						{
751							hidden.find('input.' + value ).trigger( 'click' );
752						}
753					});
754
755		}
756
757		function check_doNotTrack()
758		{
759			if( window.doNotTrack || navigator.doNotTrack || navigator.msDoNotTrack || ( 'undefined' != typeof window.external && 'msTrackingProtectionEnabled' in window.external ) )
760			{
761				// The browser supports Do Not Track!
762				if( window.doNotTrack == "1" || navigator.doNotTrack == "yes" || navigator.doNotTrack == "1" || navigator.msDoNotTrack == "1" || ( 'undefined' != typeof window.external && 'msTrackingProtectionEnabled' in window.external && window.external.msTrackingProtectionEnabled() ) )
763				{
764					var input = $( 'input.aviaPrivacyGoogleTrackingDisabled' );
765					if( input.length > 0 )
766					{
767						if( null == aviaGetCookie( 'aviaPrivacyGoogleTrackingDisabled' ) )
768						{
769							input.trigger( 'click' );
770						}
771
772						var container = input.closest( '.av-toggle-switch' );
773						var message = container.data( 'disabled_by_browser' ).trim();
774						container.addClass('av-cookie-sc-disabled');
775						container.append( '<p><strong>' + message + '</strong></p>');
776						input.attr( 'disabled', 'disabled' );
777					}
778				}
779			}
780		}
781
782		function set_cookie_consent_aria_attr( action )
783		{
784			if( 'undefined' == typeof action )
785			{
786				action = 'hide';
787			}
788
789			if( 'show' != action )
790			{
791				aviaCookieConsentBarWrap.attr( 'aria-hidden', 'true' );
792				aviaCookieConsentBarWrap.find( '[aria-hidden]').not( '#av-cookie-consent-badge' ).attr( 'aria-hidden', 'true' );
793			}
794			else
795			{
796				aviaCookieConsentBarWrap.attr( 'aria-hidden', 'false' );
797				aviaCookieConsentBarWrap.find( '[aria-hidden]').not( '#av-cookie-consent-badge' ).attr( 'aria-hidden', 'false' );
798			}
799		}
800
801		update_cookie_info_box();
802		monitor_cookies();
803
804		if( $_html.hasClass( 'avia-cookie-consent-modal-show-immediately' ) && ! $_html.hasClass( 'av-cookies-consent-message-bar-only' ) )
805		{
806			if( ! aviaCookieConsentBar.hasClass( 'cookiebar-hidden' ) )
807			{
808				$('.avia-cookie-info-btn').trigger('click');
809			}
810		}
811
812		if( aviaCookieConsentBadge.length > 0 )
813		{
814			if( aviaCookieConsentBar.hasClass( 'cookiebar-hidden' ) )
815			{
816				aviaCookieConsentBadge.addClass( 'avia_pop_class' );
817			}
818			else
819			{
820				aviaCookieConsentBadge.removeClass( 'avia_pop_class' );
821			}
822		}
823	});
824
825})( jQuery );

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.