PageSourceSearch

https://kia.pt/wp-content/plugins/kia-plugin-cookies-events/js/kia…in-cookies-events.min.js?ver=1.0.1662024711

js kia.pt collected 2026-09-26 01:28:51 UTC 6,010 bytes, 1 lines download raw bytes

1"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function gaEvents(e,o,t){if("function"!=typeof ga)return!1;ga("send","event",e,o,t)}function getCookie(e){for(var o=e+"=",t=document.cookie.split(";"),n=0;n<t.length;n++){for(var c=t[n];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(o))return console.log("value"),c.substring(o.length,c.length)}return""}function necessaryCookie(){var e=document.createElement("script");e.src="//grmtech.net/r/ptca9c267dad0305d1a6308d2a0cf1c39c.js",document.getElementsByTagName("head")[0].appendChild(e)}function statisticCookie(){}function marketingCookie(){var e,o,t,n,c,i,r,s,a,d;e=window,o=document,e.fbq||(t=e.fbq=function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)},e._fbq||(e._fbq=t),(t.push=t).loaded=!0,t.version="2.0",t.queue=[],(n=o.createElement("script")).async=!0,n.src="https://connect.facebook.net/en_US/fbevents.js",(c=o.getElementsByTagName("script")[0]).parentNode.insertBefore(n,c)),fbq("init","2394548600761296"),fbq("track","PageView"),i=window,r=document,s="reevooMark",(a=r.createElement("script")).type="text/javascript",a.src="https://cdn.mark.reevoo.com/assets/reevoo_mark.js",(d=r.getElementsByTagName("script")[0]).parentNode.insertBefore(a,d),i.ReevooMarkHandlerName=s,i[s]=function(){(i[s].q=i[s].q||[]).push(arguments)}}window.DPMEvents=function(e,o){if("undefined"===e||""===e||"function"!=typeof Krux)return console.error("no code or Krux is undefined"),!1;function t(){return n.apply(this,arguments)}var n;console.log("DPMEvents","code:",e,"args:",o),window.Krux||((Krux=(n=function(){Krux.q.push(arguments)},t.toString=function(){return n.toString()},t)).q=[]),Krux("ns:bergeautoinstance5","admEvent",e,o)},document.querySelector("#bh-sl-user-location")&&document.querySelector("#bh-sl-user-location").addEventListener("submit",function(e){var o=document.querySelector("#bh-sl-address").value;DPMEvents("M0cRCTwZ",{event_type:"clk","Dealer-province":o,"dealer-type-aftersales":"","dealer-type-sales":""})}),function(){for(var e=document.querySelectorAll("[data-dpm-code]"),o=0;o<e.length;o++)e[o].addEventListener("click",function(e){if(void 0===this.dataset.dpmCode||void 0===this.dataset.dpmArgs)return!1;var o=this.dataset,t=o.dpmCode,n=function(){try{var e=JSON.parse(o.dpmArgs);return!(!e||"object"!==(void 0===e?"undefined":_typeof(e)))&&e}catch(e){return console.error(e),!1}}();if(!n)return console.error("no args defined"),!1;DPMEvents(t,n)},!1);document.addEventListener("wpcf7mailsent",function(e){for(var o=e.detail.inputs,t=[],n=[],c=!1,i=!1,r=0;r<o.length;r++)o[r].name.includes("dpmCode")?t.push(o[r].value):"modelo"!==o[r].name&&"modeloC"!==o[r].name?o[r].name.includes("dpmArgs")&&((i=function(){try{var e=JSON.parse(o[r].value);return!(!e||"object"!==(void 0===e?"undefined":_typeof(e)))&&e}catch(e){return console.error(e),!1}}())&&n.push(i),void 0!==i["model-name"]&&""==i["model-name"]&&c&&(i["model-name"]=c)):c=o[r].value;for(var s=0;s<t.length;s++)DPMEvents(t[s],n[s])},!1)}(),window.cookieModule=function(){function o(e,o,t){var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var c="expires="+n.toUTCString();document.cookie=e+"="+o+";"+c+";domain=."+window.location.hostname+";path=/"}function t(e){for(var o=e+"=",t=decodeURIComponent(document.cookie).split(";"),n=0,c=t.length;n<c;n++){for(var i=t[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(o))return i.substring(o.length,i.length)}return""}function n(e){var o=t(e);return""!==o&&void 0!==o&&o}function i(e){return o(e,"",-1),!n(e)&&"done"}return{set:o,get:t,check:n,devare:i,deleteAll:function(){for(var e=document.cookie.split(";"),o=0;o<e.length;o++){var t=e[o],n=t.indexOf("="),c=-1<n?t.substr(0,n):t;i(c)}}}}(),function(e){necessaryCookie(),window.addEventListener("CookiebotOnAccept",function(e){Cookiebot.consent.marketing&&(marketingCookie(),cookieModule.set("cookie_marketing","true",100)),Cookiebot.consent.statistics&&(statisticCookie(),cookieModule.set("cookie_statistic","true",100),cookieModule.check("cookie_krux")||(cookieModule.set("cookie_krux","set",15),Krux("ns:bergeautoinstance5","consent:set",{dc:!0,tg:!0,al:!0,cd:!0,sh:!1,re:!1},function(e,o){console.log(e,o)})))},!1),document.getElementById("cn-accept-cookie-all")&&document.getElementById("cn-accept-cookie-all").addEventListener("click",function(){statisticCookie(),marketingCookie(),cookieModule.set("cookie_notice_accepted_all","true",100),cookieModule.set("cookie_performance","true",100),cookieModule.set("cookie_statistic","true",100),cookieModule.set("cookie_marketing","true",100),e("#cookie-notice").hide(),e("#cookie-preferences").hide()}),document.getElementById("cn-reject-cookie-all")&&document.getElementById("cn-reject-cookie-all").addEventListener("click",function(){cookieModule.set("cookie_statistic","fal
1se"),cookieModule.set("cookie_marketing","false",7),cookieModule.set("cookie_notice_accepted_all","false",100),e("#cookie-preferences").hide()}),document.getElementById("cn-accept-cookie")&&document.getElementById("cn-accept-cookie").addEventListener("click",function(){statisticCookie(),marketingCookie(),cookieModule.set("cookie_notice_accepted_all","true",100),e("#cookie-notice").hide(),e("#cookie-preferences").hide()}),document.getElementById("cn-save-cookies")&&document.getElementById("cn-save-cookies").addEventListener("click",function(){document.querySelector('input[name="statistic-cookies"]').checked?(cookieModule.set("cookie_statistic","true",100),statisticCookie()):cookieModule.set("cookie_statistic","false"),document.querySelector('input[name="marketing-cookies"]').checked?(cookieModule.set("cookie_marketing","true",100),marketingCookie()):cookieModule.set("cookie_marketing","false",7),cookieModule.set("cookie_notice_accepted_all","false",100),e("#cookie-notice").hide(),e("#cookie-preferences").hide()})}(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.