1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2(function(){if(typeof window.CustomEvent==="function")return false;function CustomEvent(event,params){params=params||{bubbles:false,cancelable:false,detail:null};var evt=document.createEvent('CustomEvent');evt.initCustomEvent(event,params.bubbles,params.cancelable,params.detail);return evt;}window.CustomEvent=CustomEvent;})();(function(Drupal,$,drupalSettings){function ucfirst(string){return string.charAt(0).toUpperCase()+string.slice(1);}$.fn.extend({cookiesOverlay:function(serviceId){return this.each(function(){var classStr='cookies-fallback';var baseStr=classStr+'--'+serviceId;var classes=[classStr,baseStr];var $element=$(this);var $elementWrapper=$element.parent();if(!($element.parent().hasClass(baseStr+'--wrap')))$elementWrapper=$element.wrapAll("<div />").parent().addClass(baseStr+'--wrap');if($element.data('status')!=='fallback'){$element.data('status','fallback').addClass(classStr+'--element');var $fallback=$('<div />').addClass(classes.join(' '));$fallback.addClass(baseStr+'--overlay');var $textbox=$('<div />').addClass('cookies-fallback--text');$textbox.text(drupalSettings.cookies.services[serviceId].placeholderMainText);var $button=$('<button />').addClass(baseStr+'--btn '+classStr+'--btn');$button.text(drupalSettings.cookies.services[serviceId].placeholderAcceptText);$button.on('click',function(event){event.preventDefault();var services={};services[serviceId]=true;document.dispatchEvent(new CustomEvent('cookiesjsrSetService',{detail:{services}}));});var $acceptLink=$('<a href="#cookiesjsrAccept"/>').addClass(classStr+'--link');$acceptLink.text(drupalSettings.cookies.cookiesTexts.placeholderAcceptAllText);$acceptLink.on('click',function(event){event.preventDefault();document.dispatchEvent(new CustomEvent('cookiesjsrSetService',{detail:{all:true}}));});document.addEventListener('cookiesjsrUserConsent',function(event){var service=(typeof event.detail.services==='object')?event.detail.services:{};if(typeof service[serviceId]!=='undefined'&&service[serviceId]){var $wrapper=$element.parent('.'+baseStr+'--wrap');$element.data('status','active');$wrapper.after($element);$wrapper.remove();}});$fallback.append($textbox);$fallback.append($button);$fallback.append($acceptLink);$elementWrapper.append($fallback);}if(!$elementWrapper.is('.disabled')){var wrapperClasses=classes.map(function(c){return c+'--wrap';});wrapperClasses.push('disabled');$elementWrapper.addClass(wrapperClasses.join(' '));}});},cookiesLegacyOverlay:function(serviceName){return this.each(function(){var classStr='cookies-fallback';var baseStr=classStr+'--'+serviceName;var classes=[classStr,baseStr];var $element=$(this);var $elementWrapper=$element.parent();if(!($element.parent().hasClass(baseStr+'--wrap')))$elementWrapper=$element.wrapAll("<div />").parent().addClass(baseStr+'--wrap');if($element.data('status')!=='fallback'){$element.data('status','fallback').addClass(classStr+'--element');var $fallback=$('<div />
2').addClass(classes.join(' '));$fallback.addClass(baseStr+'--overlay');var $textbox=$('<div />').addClass('cookies-fallback--text');$textbox.text(Drupal.t('This content is blocked because @service cookies have not been accepted.',{'@service':ucfirst(serviceName)}));var $button=$('<button />').addClass(baseStr+'--btn '+classStr+'--btn');$button.text(drupalSettings.cookies.cookiesTexts.placeholderAcceptAllText);$button.on('click',function(event){event.preventDefault();document.dispatchEvent(new CustomEvent('cookiesjsrSetService',{detail:{all:true}}));});var $acceptLink=$('<a href="#cookiesjsrAccept"/>').addClass(classStr+'--link');$acceptLink.text(Drupal.t('Only accept @service cookies',{'@service':ucfirst(serviceName)}));$acceptLink.on('click',function(event){event.preventDefault();var services={};services[serviceName]=true;document.dispatchEvent(new CustomEvent('cookiesjsrSetService',{detail:{services}}));});document.addEventListener('cookiesjsrUserConsent',function(event){var service=(typeof event.detail.services==='object')?event.detail.services:{};if(typeof service[serviceName]!=='undefined'&&service[serviceName]){var $wrapper=$element.parent('.'+baseStr+'--wrap');$element.data('status','active');$wrapper.after($element);$wrapper.remove();}});$fallback.append($textbox);$fallback.append($button);$fallback.append($acceptLink);$elementWrapper.append($fallback);}if(!$elementWrapper.is('.disabled')){var wrapperClasses=classes.map(function(c){return c+'--wrap';});wrapperClasses.push('disabled');$elementWrapper.addClass(wrapperClasses.join(' '));}});}});})(Drupal,jQuery,drupalSettings);; 3(function(Drupal){"use strict";Drupal.behaviors.cookies_google_translator={id:"google_translator",blockSelector:"div[data-block-plugin-id=\"google_translator\"]",scriptSelector:"script[src*=\"//translate.google\"]",consentGiven:function(context,config){document.querySelectorAll(this.blockSelector).forEach((block)=>{block.style.display="";block.querySelector(config.selector)?.click();});},consentDenied:function(context,config){const getCookieNames=(names=[])=>decodeURIComponent(document.cookie).split(";").map((cookie)=>cookie.trimStart().split("=",1).toString()).filter((cookieName)=>names.length>0?names.includes(cookieName):true);let needReload=false;document.querySelectorAll(this.blockSelector).forEach((block)=>block.style.display="none");const cookieNames=["googtrans"];getCookieNames(cookieNames).forEach((name)=>{document.cookie=`${name}=;domain=${location.hostname};path=/;max-age=0;`;needReload=true;});if(!needReload&&document.querySelector(`${this.scriptSelector}:not([type]),${this.scriptSelector}[type="text/javascript"]`)!=null)needReload=true;if(needReload)location.reload();},attach:function(context,settings){const self=this;const config=settings.googleTranslatorDisclaimer||{};document.addEventListener("cookiesjsrUserConsent",function(event){const service=(typeof event.detail.services==="object")?event.detail.services:{};if(typeof service[self.id]!=="undefined"&&service[self.id])self.consentGiven(context,config);else self.consentDenied(context,config);});}};})(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.