PageSourceSearch

https://iesve.com/assets/packages/cookie-consent/cookieconsent.js

js iesve.com collected 2026-09-24 20:20:23 UTC 15,363 bytes, 2 lines download raw bytes

1/*! For license information please see cookieconsent.js.LICENSE.txt */
2!function(){"use strict";var e=function(n){var i,a,o,s,c,r,d,l,u={current_lang:"en",autorun:!0,cookie_name:"cc_cookie",cookie_expiration:182,cookie_domain:location.hostname,cookie_path:"/",cookie_same_site:"Lax",script_selector:"data-cookiecategory"},p={},h=!1,g=!1,f=!1,v=!1,m=!1,b=[],_=[],C=[],k=document.documentElement,y=function(e,t){return t.hasOwnProperty(e)?e:M(t).length>0?t.hasOwnProperty(u.current_lang)?u.current_lang:M(t)[0]:void 0},A=function(e,t){var n=document.querySelectorAll(".c-tgl")||[],a="",o=[],s=!1;if(n.length>0){switch(t){case-1:for(var c=0;c<n.length;c++)n[c].checked?(a+='"'+n[c].value+'",',C[c]||(o.push(n[c].value),C[c]=!0)):C[c]&&(o.push(n[c].value),C[c]=!1);break;case 0:for(c=0;c<n.length;c++)n[c].disabled?(a+='"'+n[c].value+'",',C[c]=!0):(n[c].checked=!1,C[c]&&(o.push(n[c].value),C[c]=!1));break;case 1:for(c=0;c<n.length;c++)n[c].checked=!0,a+='"'+n[c].value+'",',C[c]||o.push(n[c].value),C[c]=!0}if(a=a.slice(0,-1),e.autoclear_cookies&&g&&o.length>0){var r=e.languages[u.current_lang].settings_modal.blocks,d=r.length,l=-1,p=L("","all"),h=[u.cookie_domain,"."+u.cookie_domain];if("www."===u.cookie_domain.slice(0,4)){var f=u.cookie_domain.substr(4);h.push(f),h.push("."+f)}for(var v=0;v<d;v++){var m=r[v];if(m.hasOwnProperty("toggle")&&!C[++l]&&m.hasOwnProperty("cookie_table")&&w(o,m.toggle.value)>-1){var b=m.cookie_table,_=M(e.languages[u.current_lang].settings_modal.cookie_table_headers[0])[0],k=b.length;"on_disable"===m.toggle.reload&&(s=!0);for(var y=0;y<k;y++){var A=b[y],S=[],O=A[_],j=A.is_regex||!1,D=A.domain||null,H=A.path||!1;if(D&&(h=[D,"."+D]),j)for(var I=0;I<p.length;I++)p[I].match(O)&&S.push(p[I]);else{var q=w(p,O);q>-1&&S.push(p[q])}x("CookieConsent [AUTOCLEAR]: search cookie: '"+O+"', found:",S),S.length>0&&(E(S,H,h),"on_clear"===m.toggle.reload&&(s=!0))}}}}}if(i='{"level": ['+a+"]}",(!g||o.length>0)&&N(u.cookie_name,i),T(),"function"==typeof e.onAccept&&!g)return g=!0,e.onAccept(JSON.parse(i));"function"==typeof e.onChange&&o.length>0&&e.onChange(JSON.parse(i)),s&&window.location.reload()},w=function(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i]==t)return i;return-1},x=function(e,t,n){n?console.error(e,t||""):console.log(e,void 0!==t?t:" ")},S=function(e){var t=document.createElement(e);return"button"===e&&t.setAttribute("type",e),t};p.allowedCategory=function(e){return w(JSON.parse(L(u.cookie_name,"one",!0)||"{}").level||[],e)>-1},p.run=function(e){c?x("CookieConsent [NOTICE]: cookie consent alredy attached to body!"):(function(e){var t;x("CookieConsent [CONFIG]: recieved_config_settings ",e),"number"==typeof e.cookie_expiration&&(u.cookie_expiration=e.cookie_expiration),"boolean"==typeof e.autorun&&(u.autorun=e.autorun),"string"==typeof e.cookie_domain&&(u.cookie_domain=e.cookie_domain),"string"==typeof e.cookie_same_site&&(u.cookie_same_site=e.cookie_same_site),"string"==typeof e.cookie_path&&(u.cookie_path=e.cookie_path),"string"==typeof e.cookie_name&&(u.cookie_name=e.cookie_name),u.page_scripts=!0===e.page_scripts,u.page_scripts_order=!1!==e.page_scripts_order,!0===e.auto_language?u.current_lang=y(((t=navigator.language||navigator.browserLanguage).length>2&&(t=t[0]+t[1]),x("CookieConsent [LANG]: detected_browser_lang = '"+t+"'"),t.toLowerCase()),e.languages):"string"==typeof e.current_lang&&(u.current_lang=y(e.current_lang,e.languages)),!0===e.force_consent&&j(k,"force--consent"),x("CookieConsent [LANG]: setting current_lang = '"+u.current_lang+"'")}(e),i=L(u.cookie_name,"one",!0),function(e,t){(c=S("div")).id="cc--main",c.style.position="fixed",c.style.zIndex="1000000",c.innerHTML='\x3c!--[if lt IE 9 ]><div id="cc_div" class="cc_div ie"></div><![endif]--\x3e\x3c!--[if (gt IE 8)|!(IE)]>\x3c!--\x3e<div id="cc_div" class="cc_div"></div>\x3c!--<![endif]--\x3e';var a=c.children[0],o=u.current_lang,s="string"==typeof k.textContent?"textContent":"innerText";if(!e){r=S("div");var h=S("div"),g=S("div"),f=S("div"),v=S("div"),m=S("div"),b=S("button"),_=S("button"),y=S("div");r.id="cm",h.id="c-inr",g.id="c-inr-i",f.id="c-ttl",v.id="c-txt",m.id="c-bns",b.id="c-p-bn",_.id="c-s-bn",y.id="cm-ov",b.className="
2c-bn",_.className="c-bn c_link",f.setAttribute("role","heading"),f.setAttribute("aria-level","2"),r.setAttribute("role","dialog"),r.setAttribute("aria-modal","true"),r.setAttribute("aria-hidden","false"),r.setAttribute("aria-labelledby","c-ttl"),r.setAttribute("aria-describedby","c-txt"),r.style.visibility=y.style.visibility="hidden",y.style.opacity=0,f.insertAdjacentHTML("beforeend",t.languages[o].consent_modal.title),v.insertAdjacentHTML("beforeend",t.languages[o].consent_modal.description),b[s]=t.languages[o].consent_modal.primary_btn.text,_[s]=t.languages[o].consent_modal.secondary_btn.text;var T=-1;"accept_all"==t.languages[o].consent_modal.primary_btn.role&&(T=1),O(b,"click",(function(){p.hide(),x("CookieConsent [ACCEPT]: cookie_consent was accepted!"),A(t,T)})),"accept_necessary"==t.languages[o].consent_modal.secondary_btn.role?O(_,"click",(function(){p.hide(),A(t,0)})):O(_,"click",(function(){p.showSettings(0)})),g.appendChild(f),g.appendChild(v),m.appendChild(b),m.appendChild(_),h.appendChild(g),h.appendChild(m),r.appendChild(h),a.appendChild(r),a.appendChild(y)}d=S("div");var N=S("div"),L=S("div"),E=S("div");l=S("div");var I=S("div"),q=S("div"),G=S("button"),P=S("div"),J=S("div");y=S("div"),d.id="s-cnt",N.id="c-vln",E.id="c-s-in",L.id="cs",I.id="s-ttl",l.id="s-inr",q.id="s-hdr",J.id="s-bl",G.id="s-c-bn",y.id="cs-ov",P.id="s-c-bnc",G.className="c-bn",G.setAttribute("aria-label",t.languages[o].settings_modal.close_btn_label||"Close"),d.setAttribute("role","dialog"),d.setAttribute("aria-modal","true"),d.setAttribute("aria-hidden","true"),d.setAttribute("aria-labelledby","s-ttl"),I.setAttribute("role","heading"),d.style.visibility=y.style.visibility="hidden",y.style.opacity=0,P.appendChild(G),O(N,"keydown",(function(e){27==(e=e||window.event).keyCode&&p.hideSettings(0)}),!0),O(G,"click",(function(){p.hideSettings(0)}));var R=t.languages[u.current_lang].settings_modal.blocks,U=R.length;I.insertAdjacentHTML("beforeend",t.languages[u.current_lang].settings_modal.title);for(var z=0;z<U;++z){var B=S("div"),F=S("div"),K=S("div"),V=S("div");if(B.className="c-bl",F.className="desc",K.className="p",V.className="title",K.insertAdjacentHTML("beforeend",R[z].description),void 0!==R[z].toggle){var $="c-ac-"+z,X=S("button"),Q=S("label"),W=S("input"),Y=S("span"),Z=S("span"),ee=S("span"),te=S("span");X.className="b-tl",Q.className="b-tg",W.className="c-tgl",ee.className="on-i",te.className="off-i",Y.className="c-tg",Z.className="t-lb",X.setAttribute("aria-expanded","false"),X.setAttribute("aria-controls",$),W.type="checkbox",Y.setAttribute("aria-hidden","true");var ne=R[z].toggle.value;W.value=ne,Z[s]=R[z].title,X.insertAdjacentHTML("beforeend",R[z].title),V.appendChild(X),Y.appendChild(ee),Y.appendChild(te),e?w(JSON.parse(i).level,ne)>-1?(W.checked=!0,C.push(!0)):C.push(!1):R[z].toggle.enabled&&(W.checked=!0),R[z].toggle.readonly&&(W.disabled=!0,W.setAttribute("aria-readonly","true"),j(Y,"c-ro")),j(F,"b-acc"),j(V,"b-bn"),j(B,"b-ex"),F.id=$,F.setAttribute("aria-hidden","true"),Q.appendChild(W),Q.appendChild(Y),Q.appendChild(Z),V.appendChild(Q),function(e,t,n){O(X,"click",(function(){H(t,"act")?(D(t,"act"),n.setAttribute("aria-expanded","false"),e.setAttribute("aria-hidden","true")):(j(t,"act"),n.setAttribute("aria-expanded","true"),e.setAttribute("aria-hidden","false"))}),!1)}(F,B,X)}else{var ie=S("div");ie.className="b-tl",ie.setAttribute("role","heading"),ie.setAttribute("aria-level","3"),ie.insertAdjacentHTML("beforeend",R[z].title),V.appendChild(ie)}if(B.appendChild(V),F.appendChild(K),!0!==t.remove_cookie_tables&&void 0!==R[z].cookie_table){for(var ae=document.createDocumentFragment(),oe=t.languages[u.current_lang].settings_modal.cookie_table_headers,se=0;se<oe.length;++se){var ce=S("th"),re=oe[se];if(ce.setAttribute("scope","col"),re){var de=re&&M(re)[0];ce[s]=oe[se][de],ae.appendChild(ce)}}var le=S("tr");le.appendChild(ae);var ue=S("thead");ue.appendChild(le);var pe=S("table");pe.appendChild(ue);for(var he=document.createDocumentFragment(),ge=0;ge<R[z].cookie_table.length;ge++){for(var fe=S("tr"),ve=0;ve<oe.length;++ve)if(re=oe[ve]){de=M(re)[0];var me=S("td");me.insertAdjacentHTML("beforeend",R[z].cookie_table[ge][de]),me.setAttribute("data-column",re[de]),fe.appendChild(me)}he.appendChild(fe)}var be=S("tbody");be.appendChild(he),pe.appendChild(be),F.appendChild(pe)}B.appendChild(F),J.appendChild(B)}var _e=S("div"),Ce=S("button"),ke=S("button");
2_e.id="s-bns",Ce.id="s-sv-bn",ke.id="s-all-bn",Ce.className="c-bn",ke.className="c-bn",Ce.insertAdjacentHTML("beforeend",t.languages[u.current_lang].settings_modal.save_settings_btn),ke.insertAdjacentHTML("beforeend",t.languages[u.current_lang].settings_modal.accept_all_btn),_e.appendChild(ke),_e.appendChild(Ce),O(Ce,"click",(function(){p.hideSettings(),p.hide(),A(t,-1)})),O(ke,"click",(function(){p.hideSettings(),p.hide(),A(t,1)})),q.appendChild(I),q.appendChild(P),l.appendChild(q),l.appendChild(J),l.appendChild(_e),E.appendChild(l),L.appendChild(E),N.appendChild(L),d.appendChild(N),a.appendChild(d),a.appendChild(y),(n||document.body).appendChild(c)}(!(h=""==i),e),function(e,t){if("string"!=typeof e||""==e||document.getElementById("cc--style"))t();else{var n=S("style");n.id="cc--style";var i=new XMLHttpRequest;i.onreadystatechange=function(){4==this.readyState&&200==this.status&&(n.setAttribute("type","text/css"),n.styleSheet?n.styleSheet.cssText=this.responseText:n.appendChild(document.createTextNode(this.responseText)),document.getElementsByTagName("head")[0].appendChild(n),x("CookieConsent [AUTOLOAD_CSS]: loaded style = '"+e+"'"),t())},i.open("GET",e),i.send()}}(e.theme_css,(function(){!function(){var e=["[href]","button","input","details",'[tabindex="0"]'];function t(t,n){var i=!1,a=!1;try{for(var o,s=t.querySelectorAll(e.join(':not([tabindex="-1"]), ')),c=s.length,r=0;r<c;)o=s[r].getAttribute("data-focus"),a||"1"!==o?"0"===o&&(i=s[r],a||"0"===s[r+1].getAttribute("data-focus")||(a=s[r+1])):a=s[r],r++}catch(n){return t.querySelectorAll(e.join(", "))}n[0]=s[0],n[1]=s[s.length-1],n[2]=i,n[3]=a}t(l,_),h&&t(r,b)}(),function(e){if("object"==typeof e){var t=e.consent_modal,n=e.settings_modal;h&&t&&i(r,["box","bar","cloud"],["top","bottom"],["zoom","slide"],t.layout,t.position,t.transition),n&&i(d,["bar"],["left","right"],["zoom","slide"],n.layout,n.position,n.transition)}function i(e,t,n,i,a,o,s){if(o=o&&o.split(" ")||[],w(t,a)>-1&&(j(e,a),w(n,o[0])>-1))for(var c=0;c<o.length;c++)j(e,o[c]);w(i,s)>-1&&j(e,s)}}(e.gui_options),function(){for(var e=document.querySelectorAll('a[data-cc="c-settings"], button[data-cc="c-settings"]'),t=0;t<e.length;t++)e[t].setAttribute("aria-haspopup","dialog"),O(e[t],"click",(function(e){p.showSettings(0),e.preventDefault?e.preventDefault():e.returnValue=!1}))}(),!i&&u.autorun&&p.show(e.delay||0),setTimeout((function(){j(c,"c--anim")}),30),setTimeout((function(){var e,t;e=!1,t=!1,O(document,"keydown",(function(n){"Tab"===(n=n||window.event).key&&(a&&(n.shiftKey?document.activeElement===a[0]&&(a[1].focus(),n.preventDefault()):document.activeElement===a[1]&&(a[0].focus(),n.preventDefault()),t||m||(t=!0,!e&&n.preventDefault(),n.shiftKey?a[3]?a[2]?a[2].focus():a[0].focus():a[1].focus():a[3]?a[3].focus():a[0].focus())),!t&&(e=!0))})),document.contains&&O(c,"click",(function(e){e=e||window.event,v?l.contains(e.target)?m=!0:(p.hideSettings(0),m=!1):f&&r.contains(e.target)&&(m=!0)}),!0)}),100)})),i&&(g=!0),g&&(T(),"function"==typeof e.onAccept&&e.onAccept(JSON.parse(i||"{}"))))},p.showSettings=function(e){setTimeout((function(){j(k,"show--settings"),d.setAttribute("aria-hidden","false"),v=!0,f?s=document.activeElement:o=document.activeElement,setTimeout((function(){0!==_.length&&(_[3]?_[3].focus():_[0].focus(),a=_)}),100),x("CookieConsent [SETTINGS]: show settings_modal")}),e>0?e:0)};var T=function(){if(u.page_scripts){var e=document.querySelectorAll("script["+u.script_selector+"]"),t=u.page_scripts_order,n=JSON.parse(i).level||[];x("CookieConsent [SCRIPT_MANAGER]: sequential loading:",t);var a=function(e,i){if(i<e.length){var o=e[i],s=o.getAttribute(u.script_selector);if(w(n,s)>-1){o.type="text/javascript",o.removeAttribute(u.script_selector);var c=o.getAttribute("data-src"),r=S("script");if(r.textContent=o.innerHTML,function(e,t){for(var n,i=t.attributes,a=i.length,o=0;o<a;o++)n=i[o],e.setAttribute(n.nodeName,n.nodeValue)}(r,o),c?r.src=c:c=o.src,c&&(t?r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,a(e,++i))}:r.onload=function(){r.onload=null,a(e,++i)}:c=!1),o.parentNode.replaceChild(r,o),c)return}a(e,++i)}};a(e,0)}};p.loadScript=function(e,t,n){var i="function"==typeof t;
2if(document.querySelector('script[src="'+e+'"]'))i&&t();else{var a=S("script");if(n&&n.length>0)for(var o=0;o<n.length;++o)n[o]&&a.setAttribute(n[o].name,n[o].value);i&&(a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=t),a.src=e,(document.head?document.head:document.getElementsByTagName("head")[0]).appendChild(a)}},p.show=function(e){h&&setTimeout((function(){j(k,"show--consent"),r.setAttribute("aria-hidden","false"),f=!0,o=document.activeElement,a=b,x("CookieConsent [MODAL]: show consent_modal")}),e>0?e:0)},p.hide=function(){h&&(D(k,"show--consent"),r.setAttribute("aria-hidden","true"),f=!1,o.focus(),a=null,x("CookieConsent [MODAL]: hide"))},p.hideSettings=function(){D(k,"show--settings"),v=!1,d.setAttribute("aria-hidden","true"),f?(s&&s.focus(),a=b):(o.focus(),a=null),m=!1,x("CookieConsent [SETTINGS]: hide settings_modal")};var N=function(e,t){var n=new Date;n.setTime(n.getTime()+24*u.cookie_expiration*60*60*1e3);var i=e+"="+(t||"")+"; expires="+n.toUTCString()+"; Path="+u.cookie_path+";";i+=" SameSite="+u.cookie_same_site+";",location.hostname.indexOf(".")>-1&&(i+=" Domain="+u.cookie_domain+";"),"https:"===location.protocol&&(i+=" Secure;"),document.cookie=i,x("CookieConsent [SET_COOKIE]: cookie "+e+"='"+t+"' was set!")},L=function(e,t,n){var i;if("one"===t)i=(i=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)"))?n?i.pop():e:"";else if("all"===t){var a=document.cookie.split(/;\s*/);i=[];for(var o=0;o<a.length;o++)i.push(a[o].split("=")[0])}return i},E=function(e,t,n){for(var i=t||"/",a=0;a<e.length;a++){for(var o=0;o<n.length;o++)document.cookie=e[a]+"=; Path="+i+"; Domain="+n[o]+"; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";x("CookieConsent [AUTOCLEAR]: deleting cookie: '"+e[a]+"' path: '"+i+"' domain:",n)}};p.validCookie=function(e){return""!=L(e,"one",!0)};var O=function(e,t,n,i){i=i||!1,e.addEventListener?i?e.addEventListener(t,n,{passive:!0}):e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},M=function(e){if("object"==typeof e){var t=[],n=0;for(t[n++]in e);return t}},j=function(e,t){e.classList?e.classList.add(t):H(e,t)||(e.className+=" "+t)},D=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(\\s|^)"+t+"(\\s|$)")," ")},H=function(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))};return e=window[t]=void 0,p},t="initCookieConsent";"function"!=typeof window[t]&&(window[t]=e)}();

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.