dcInner_log('digital circle version 4.12');dcInner_log('client file loaded');var dcConfig_debug=1;var dc_gtag={account:'11550532458',events:{'cec':{tag:'GKCjCKy88okaEOrG3IMr'},'cpc':{tag:'n2b3CK-88okaEOrG3IMr'},'cvc':{tag:'VDzFCKm88okaEOrG3IMr'},'frm':{tag:'fbZjCLK88okaEOrG3IMr'},'sel':{tag:'ACo9CICc-IkaEOrG3IMr'},}} var dc_url_events={'sk/kontakt':{event:'cvc',},'en/contact':{event:'cvc',},'pl/kontakt':{event:'cvc',},} var dc_datalayer_events=[{testMe(input){var ret=false;if(typeof(input.event)!=='undefined'){if(input.event=='purchase'){ret=true;}} return ret;},runMe(input){console.log(input) var dcEvent={event:'sel',clear:'1',cdata:{}} if(typeof(input.value)!=='undefined'){dcEvent['price']=input.value;} if(typeof(input.transaction_id)!=='undefined'){dcEvent.cdata['orderid']=input.transaction_id;} digitalCircleManual('event',dcEvent);}}] var dc_hashtag='PPL-8658';var dc_core_url='//core.digitalcircle.ipartner.company/dc/';var dc_config={};var dc_url_actual;var dc_disable_cookies=1;var dc_events=[];var dc_ssid,dc_ssid_new,dc_ssid_new_ga,dc_uid,uid,dc_uid_prev,dc_ssid_data;var dc_image_id=0;var dc_event_id=0;var dc_storage='';var dc_time=new Date();const crcW1=([][[]]+[])[!+[]+!+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]];const crcW2=(![]+[])[!+[]+!+[]+!+[]]+(![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[+[]];const crcW3=(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]+(![]+[])[+!+[]]+(![]+[+[]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]])[!+[]+!+[]+[+[]]]+(!![]+[])[!+[]+!+[]+!+[]];const crcW4=(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]];const crcW5=(+(+!+[]+[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+[!+[]+!+[]]+[+[]])+[])[+!+[]];const crcW6=(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]];const crcW7=([![]]+[][[]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+([][[]]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]];(function(){if(typeof(window.dcDataLayer)==='undefined'){dcInner_log('no datalayer found creating');window.dcDataLayer=window.dcDataLayer||[];}else{dcInner_log('datalayer found in page');} dc_url_actual=window.location.href;if(document.readyState!=='loading'){dcInner_log('main - readyState for loading HTML ready');dcInner_init();}else{document.addEventListener('DOMContentLoaded',function(){dcInner_log('main - DOMContentLoaded ready');dcInner_init();});}})(window) function dcInner_init(){dcInner_log('init time '+dc_time.getHours()+':'+dc_time.getMinutes()+':'+dc_time.getSeconds()+'.'+dc_time.getMilliseconds());dcInner_getData() dcInner_log('get data complete - '+new Date());dcInner_serverChecksum();dcInner_session(dc_config);dcInner_events(dc_events,dc_config);dcInner_urlEvents();dcInner_onclickEvents();dcInner_url_passing()} function digitalCircleEvent(){var digital_circle_manual=[];digital_circle_manual.push(arguments[0]);dcInner_events(digital_circle_manual,dc_config);} function digitalCircleManual(){if(arguments[0]=='event'){var digital_circle_manual=[];digital_circle_manual.push(arguments[1]);dcInner_events(digital_circle_manual,dc_config);}} function _dc_inner_anonimize(max){return Math.floor(Math.random()*max);} function _dc_inner_setsalt(salt){var s=salt+'';return s.substring(0,s.length/2)+'-'+s.substring(s.length/2,s.length)} function _dc_inner_padNum(num,size){num=num.toString();while(num.length>>'+value;} cdata='&cdata='+cdata_val;} if(typeof(dc_url_actual)!=='undefined'){if(typeof(dc_gtag)!=='undefined'){if(typeof(dc_gtag.account)!=='undefined'){if(typeof(dc_gtag.events)!=='undefined'){if(typeof(dc_gtag.events[event_arr.event])!=='undefined'){if(typeof(dc_gtag.events[event_arr.event].tag)!=='undefined'){dcInner_googleConversion(dc_gtag.account,dc_gtag.events[event_arr.event].tag,dc_url_actual,gtag_value,dc_gtag.events[event_arr.event].currency);}}}}}else{dcInner_log('gtag data array is not defined');}} var url='&checksum='+dc_uid+'&hashtag='+dc_hashtag+event+price+clear+cdata+'&time='+timestamp+tconf+writeAllConv;var query=dc_core_url+'?'+url;dcInner_log('event query - '+query);dcInner_doQuery('dc_event'+dc_event_id,query);dc_event_id=dc_event_id+1;}}} function dcInner_urlEvents(){if(typeof(dc_url_events)!=='undefined'){if(typeof(dc_url_actual)!=='undefined'){origin=dc_url_actual.split("?")[0];for(const[key,dcData]of Object.entries(dc_url_events)){if(origin.indexOf(key)>-1){digitalCircleManual('event',dcData);}}}}} function dcInner_onclickEvents(){if(typeof(dc_onclick_events)!=='undefined'){if(typeof(dc_url_actual)!=='undefined'){var i=1;for(const[key,dcData]of Object.entries(dc_onclick_events)){var element=document.getElementById(key);if(typeof(element)!=='undefined'&&element!=null){element.addEventListener('click',function(){digitalCircleManual('event',dcData);},false);dcInner_log('adding event listeners '+i+' for ['+key+'] action '+JSON.stringify(dcData));i++;}}}}} function icm(){dcInner_log('web is using old function icm() please remove it');} dcInner_log('plugin loaded gtag-init');if(typeof gtag!=='function'){console.log('gtag-init starting');window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}} dcInner_log('plugin loaded html-anchor-parsing-for-events');if(document.readyState!=='loading'){dcInner_log('anchor parsing - readyState for loading HTML ready');dcInner_anchor_check()}else{document.addEventListener('DOMContentLoaded',function(){dcInner_log('anchor parsing - DOMContentLoaded ready');dcInner_anchor_check()});} function dcInner_anchor_check(){var elements=document.getElementsByTagName('a');dcInner_log('found '+elements.length+' anchor elements');var j=1;for(var i=0;i1){var add=false;href_arr.shift();if(href_begin=='tel'){elements[i].setAttribute('dcClickEvent',j);dcInner_log('adding event listeners '+j+' for ['+href_begin+':'+href_arr.join(':')+'] action '+JSON.stringify({event:'cpc',cdata:{tel:href_arr.join(':')}}));var text=href_arr.join(':');elements[i].addEventListener('click',function(){var href_arr_in=this.getAttribute("href").split(':');href_arr_in.shift();digitalCircleManual('event',{event:'cpc',cdata:{tel:href_arr_in.join(':')}});},false);j++;} if(href_begin=='mailto'){elements[i].setAttribute('dcClickEvent',j);dcInner_log('adding event listeners '+j+' for ['+href_begin+':'+href_arr.join(':')+'] action '+JSON.stringify({event:'cec',cdata:{email:href_arr.join(':')}}));elements[i].addEventListener('click',function(){var href_arr_in=this.getAttribute("href").split(':');href_arr_in.shift();digitalCircleManual('event',{event:'cec',cdata:{email:href_arr_in.join(':')}});},false);j++;}}}}} dcInner_log('plugin loaded get-datalayer-events');if(typeof(window.dataLayer)!=='undefined'){for(i=0;i{if(typeof(dc_datalayer_events)!=='undefined'){for(j=0;j