PageSourceSearch

https://www.hikhasi.eus/basics/js/cookie-consent.js

js hikhasi.eus collected 2026-10-02 11:07:46 UTC 12,271 bytes, 1 lines download raw bytes

vendor: 4,173 bytes, line 1
1!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=0)}([function(e,t,n){n(2),e.exports=n(3)},function(e,t){var n=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function(){if("undefined"!=typeof window){var e=Array.prototype.slice,t=Element.prototype.matches||Element.prototype.msMatchesSelector,i=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","details","summary","iframe","object","embed","[contenteditable]"].join(","),r=function(){function r(e,t){o(this,r),this._inertManager=t,this._rootElement=e,this._managedNodes=new Set,this._rootElement.hasAttribute("aria-hidden")?this._savedAriaHidden=this._rootElement.getAttribute("aria-hidden"):this._savedAriaHidden=null,this._rootElement.setAttribute("aria-hidden","true"),this._makeSubtreeUnfocusable(this._rootElement),this._observer=new MutationObserver(this._onMutation.bind(this)),this._observer.observe(this._rootElement,{attributes:!0,childList:!0,subtree:!0})}return n(r,[{key:"destructor",value:function(){this._observer.disconnect(),this._rootElement&&(null!==this._savedAriaHidden?this._rootElement.setAttribute("aria-hidden",this._savedAriaHidden):this._rootElement.removeAttribute("aria-hidden")),this._managedNodes.forEach((function(e){this._unmanageNode(e.node)}),this),this._observer=null,this._rootElement=null,this._managedNodes=null,this._inertManager=null}},{key:"_makeSubtreeUnfocusable",value:function(e){var t=this;u(e,(function(e){return t._visitNode(e)}));var n=document.activeElement;if(!document.body.contains(e)){for(var o=e,i=void 0;o;){if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){i=o;break}o=o.parentNode}i&&(n=i.activeElement)}e.contains(n)&&(n.blur(),n===document.activeElement&&document.body.focus())}},{key:"_visitNode",value:function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=e;n!==this._rootElement&&n.hasAttribute("inert")&&this._adoptInertRoot(n),(t.call(n,i)||n.hasAttribute("tabindex"))&&this._manageNode(n)}}},{key:"_manageNode",value:function(e){var t=this._inertManager.register(e,this);this._managedNodes.add(t)}},{key:"_unmanageNode",value:function(e){var t=this._inertManager.deregister(e,this);t&&this._managedNodes.delete(t)}},{key:"_unmanageSubtree",value:function(e){var t=this;u(e,(function(e){return t._unmanageNode(e)}))}},{key:"_adoptInertRoot",value:function(e){var t=this._inertManager.getInertRoot(e);t||(this._inertManager.setInert(e,!0),t=this._inertManager.getInertRoot(e)),t.managedNodes.forEach((function(e){this._manageNode(e.node)}),this)}},{key:"_onMutation",value:function(t,n){t.forEach((function(t){var n=t.target;if("childList"===t.type)e.call(t.addedNodes).forEach((function(e){this._makeSubtreeUnfocusable(e)}),this),e.call(t.removedNodes).forEach((function(e){this._unmanageSubtree(e)}),this);else if("attributes"===t.type)if("tabindex"===t.attributeName)this._manageNode(n);else if(n!==this._rootElement&&"inert"===t.attributeName&&n.hasAttribute("inert")){this._adoptInertRoot(n);var o=this._inertManager.getInertRoot(n);
1this._managedNodes.forEach((function(e){n.contains(e.node)&&o._manageNode(e.node)}))}}),this)}},{key:"managedNodes",get:function(){return new Set(this._managedNodes)}},{key:"hasSavedAriaHidden",get:function(){return null!==this._savedAriaHidden}},{key:"savedAriaHidden",set:function(e){this._savedAriaHidden=e},get:function(){return this._savedAriaHidden}}]),r}(),a=function(){function e(t,n){o(this,e),this._node=t,this._overrodeFocusMethod=!1,this._inertRoots=new Set([n]),this._savedTabIndex=null,this._destroyed=!1,this.ensureUntabbable()}return n(e,[{key:"destructor",value:function(){if(this._throwIfDestroyed(),this._node&&this._node.nodeType===Node.ELEMENT_NODE){var e=this._node;null!==this._savedTabIndex?e.setAttribute("tabindex",this._savedTabIndex):e.removeAttribute("tabindex"),this._overrodeFocusMethod&&delete e.focus}this._node=null,this._inertRoots=null,this._destroyed=!0}},{key:"_throwIfDestroyed",value:function(){if(this.destroyed)throw new Error("Trying to access destroyed InertNode")}},{key:"ensureUntabbable",value:function(){if(this.node.nodeType===Node.ELEMENT_NODE){var e=this.node;if(t.call(e,i)){if(-1===e.tabIndex&&this.hasSavedTabIndex)return;e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex),e.setAttribute("tabindex","-1"),e.nodeType===Node.ELEMENT_NODE&&(e.focus=function(){},this._overrodeFocusMethod=!0)}else e.hasAttribute("tabindex")&&(this._savedTabIndex=e.tabIndex,e.removeAttribute("tabindex"))}}},{key:"addInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.add(e)}},{key:"removeInertRoot",value:function(e){this._throwIfDestroyed(),this._inertRoots.delete(e),0===this._inertRoots.size&&this.destructor()}},{key:"destroyed",get:function(){return this._destroyed}},{key:"hasSavedTabIndex",get:function(){return null!==this._savedTabIndex}},{key:"node",get:function(){return this._throwIfDestroyed(),this._node}},{key:"savedTabIndex",set:function(e){this._throwIfDestroyed(),this._savedTabIndex=e},get:function(){return this._throwIfDestroyed(),this._savedTabIndex}}]),e}(),s=function(){function i(e){if(o(this,i),!e)throw new Error("Missing required argument; InertManager needs to wrap a document.");this._document=e,this._managedNodes=new Map,this._inertRoots=new Map,this._observer=new MutationObserver(this._watchForInert.bind(this)),c(e.head||e.body||e.documentElement),"loading"===e.readyState?e.addEventListener("DOMContentLoaded",this._onDocumentLoaded.bind(this)):this._onDocumentLoaded()}return n(i,[{key:"setInert",value:function(e,t){if(t){if(this._inertRoots.has(e))return;var n=new r(e,this);if(e.setAttribute("inert",""),this._inertRoots.set(e,n),!this._document.body.contains(e))for(var o=e.parentNode;o;)11===o.nodeType&&c(o),o=o.parentNode}else{if(!this._inertRoots.has(e))return;this._inertRoots.get(e).destructor(),this._inertRoots.delete(e),e.removeAttribute("inert")}}},{key:"getInertRoot",value:function(e){return this._inertRoots.get(e)}},{key:"register",value:function(e,t){var n=this._managedNodes.get(e);return void 0!==n?n.addInertRoot(t):n=new a(e,t),this._managedNodes.set(e,n),n}},{key:"deregister",value:function(e,t){var n=this._managedNodes.get(e);return n?(n.removeInertRoot(t),n.destroyed&&this._managedNodes.delete(e),n):null}},{key:"_onDocumentLoaded",value:function(){e.call(this._document.querySelectorAll("[inert]")).forEach((function(e){this.setInert(e,!0)}),this),this._observer.observe(this._document.body||this._document.documentElement,{attributes:!0,subtree:!0,childList:!0})}},{key:"_watchForInert",value:function(n,o){var i=this;n.forEach((function(n){switch(n.type){case"childList":e.call(n.addedNodes).forEach((function(n){if(n.nodeType===Node.ELEMENT_NODE){var o=e.call(n.querySelectorAll("[inert]"));t.call(n,"[inert]")&&o.unshift(n),o.forEach((function(e){this.setInert(e,!0)}),i)}}),i);break;case"attributes":if("inert"!==n.attributeName)return;var o=n.target,r=o.hasAttribute("inert");i.setInert(o,r)}}),this)}}]),i}();if(!Element.prototype.hasOwnProperty("inert")){var d=new s(document);Object.defineProperty(Element.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){d.setInert(this,e)}})}}function u(e,t,n){if(e.nodeType==Node.ELEMENT_NODE){var o=e;t&&t(o);var i=o.shadowRoot;if(i)return void u(i,t,i);if("content"==o.localName){for(var r=o,a=r.getDistributedNodes?r.getDistributedNodes():[],s=0;s<a.length;s++)u(a[s],t,n);return}if("slot"==o.localName){for(var d=o,c=d.assignedNodes?d.assignedNodes({flatten:!0}):[],l=0;l<c.length;l++)u(c[l],t,n);return}}for(var h=e.firstChild;null!=h;)u(h,t,n),h=h.nextSibling}function c(e){if(!e.querySelector("style#inert-style, link#inert-style")){var t=document.createElement("style");t.setAttribute("id","inert-style"),t.textContent="\n[inert] {\n  pointer-events: none;\n  cursor: default;\n}\n\n[inert], [inert] * {\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  user-select: none;\n}\n",e.appendChild(t)}}}()},function(e,t,n){"use strict";function o(e){return e&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function i(e){e.style.display=""}function r(e){e.style.display="none"}function a(e){return"none"===e.style.display}function s(e,t){if("function"==typeof e.matches)return e.matches(t);for(var n in e)if("MatchesSelector"===n.substring(n.length-"MatchesSelector".length,n.length))return e[n](t);return!1}function d(e,t){for(var n=[],o=e.parentNode.firstChild;o;)1===o.nodeType&&o!==e&&(void 0!==t?s(o,t)&&n.push(o):n.push(o)),o=o.nextSibling;return n}function u(e,t,n){[].forEach.call(document.querySelectorAll(t),(function(t){t.addEventListener(e,n)}))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d(e,":not(.js-lcc-backdrop)").forEach((function(e){e.inert=!0})),e.inert=!1,t||h(),i(e)}function l(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];d(e,":not(.js-lcc-modal)").forEach((function(e){e.inert=!1})),e.inert=!0,r(e),t||h()}function h(){var e=document.querySelector(".js-lcc-backdrop");a(e)?(i(e),e.style.opacity="1"):(e.addEventListener("transitionend",(function t(){r(e),e.removeEventListener("transitionend",t)})),e.style.opacity="0")}n.r(t);n(1);var f=document.querySelector(".js-lcc-modal-alert"),v=document.querySelector(".js-lcc-modal-settings"),b=document.querySelector("button.js-lcc-settings-toggle"),m=document.querySelector(".js-lcc-backdrop"),_=document.getElementById("lcc-checkbox-analytics"),y=document.getElementById("lcc-checkbox-marketing"),g=f.dataset.cookieKey||"__cookie_consent",p=f.dataset.cookieValueAnalytics||"2",E=f.dataset.cookieValueMarketing||"3",k=f.dataset.cookieValueNone||"false",N=f.dataset.cookieValueBoth||"true",I=f.dataset.cookieExpirationDays||"365",w=f.dataset.gtmEvent||"pageview",x=f.dataset.ignoredPaths||null;function M(){function e(){n()}function t(e){27==(e.which||e.keyCode)&&(e.preventDefault(),n())}function n(){m.removeEventListener("click",e),document.body.removeEventListener("keydown",t),l(v,!o(g)),o(g)||c(f,!0),b.focu
1s()}a(v)?(c(v,!a(f)),A(),m.addEventListener("click",e),document.body.addEventListener("keydown",t)):n()}function A(){var e=o(g);_.checked=e===N||e===p,y.checked=e===N||e===E}function T(e){var t,n,o,i,r;t=g,n=I,o=e,i=new Date,r=null,n&&(i.setTime(i.getTime()+24*n*60*60*1e3),r=i.toUTCString()),document.cookie="".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(o)).concat(r?"; expires=".concat(r):"","; path=/"),window.dataLayer&&window.dataLayer.push({event:w})}!function(){var e=(x?x.split(",").map((function(e){return e.trim()})):[]).indexOf(location.pathname)>-1;if(/bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex/i.test(navigator.userAgent)||!f||!v)return;o(g)||e||c(f);A(),u("click",".js-lcc-settings-toggle",(function(){M()})),u("click",".js-lcc-accept",(function(){T("true"),l(v,!0),l(f)})),u("click",".js-lcc-settings-save",(function(){!function(){var e;e=_.checked&&y.checked?N:_.checked?p:y.checked?E:k;T(e)}(),M(),l(f)}))}()},function(e,t){}]);

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.