1/* eslint-disable no-empty */ 2/* eslint-disable guard-for-in */ 3/* eslint-disable no-undef */ 4(function () { 5 'use strict'; 6 var element = document.createElement('script'); 7 var firstScript = document.getElementsByTagName('script')[0]; 8 var host = 'iefimerida.gr'; 9 var url = 'https://cmp.inmobi.com'.concat('/choice/', 'b0xUC-p4nMqe1', '/', host, '/choice.js?tag_version=V3'); 10 // var url = '/themes/on/js/choice.js'; 11 var uspTries = 0; 12 var uspTriesLimit = 3; 13 element.async = true; 14 element.type = 'text/javascript'; 15 element.src = url; 16 firstScript.parentNode.insertBefore(element, firstScript); 17 window._gdpr_consent_pg = 0; 18 window._gdpr_string = ''; 19 window._pageview = 0; 20 21 function makeStub() { 22 var TCF_LOCATOR_NAME = '__tcfapiLocator'; 23 var queue = []; 24 var win = window; 25 var cmpFrame; 26 27 function addFrame() { 28 var doc = win.document; 29 var otherCMP = !!win.frames[TCF_LOCATOR_NAME]; 30 31 if (!otherCMP) { 32 if (doc.body) { 33 var iframe = doc.createElement('iframe'); 34 35 iframe.style.cssText = 'display:none'; 36 iframe.name = TCF_LOCATOR_NAME; 37 doc.body.appendChild(iframe); 38 } 39 else { 40 setTimeout(addFrame, 5); 41 } 42 } 43 return !otherCMP; 44 } 45 46 function tcfAPIHandler() { 47 var gdprApplies; 48 var args = arguments; 49 50 if (!args.length) { 51 return queue; 52 } 53 else if (args[0] === 'setGdprApplies') { 54 if (args.length > 3 && args[2] === 2 && typeof args[3] === 'boolean') { 55 gdprApplies = args[3]; 56 if (typeof args[2] === 'function') { 57 args[2]('set', true); 58 } 59 } 60 } 61 else if (args[0] === 'ping') { 62 var retr = { 63 gdprApplies: gdprApplies, 64 cmpLoaded: false, 65 cmpStatus: 'stub' 66 }; 67 68 if (typeof args[2] === 'function') { 69 args[2](retr); 70 } 71 } 72 else { 73 queue.push(args); 74 } 75 } 76 77 function postMessageEventHandler(event) { 78 var msgIsString = typeof event.data === 'string'; 79 var json = {}; 80 81 try { 82 if (msgIsString) { 83 json = JSON.parse(event.data); 84 } 85 else { 86 json = event.data; 87 } 88 } 89 catch (ignore) {} 90 91 var payload = json.__tcfapiCall; 92 93 if (payload) { 94 window.__tcfapi( 95 payload.command, 96 payload.version, 97 function (retValue, success) { 98 var returnMsg = { 99 __tcfapiReturn: { 100 returnValue: retValue, 101 success: success, 102 callId: payload.callId 103 } 104 }; 105 if (msgIsString) { 106 returnMsg = JSON.stringify(returnMsg); 107 } 108 event.source.postMessage(returnMsg, '*'); 109 }, 110 payload.parameter 111 ); 112 } 113 } 114 115 while (win) { 116 try { 117 if (win.frames[TCF_LOCATOR_NAME]) { 118 cmpFrame = win; 119 break; 120 } 121 } 122 catch (ignore) {} 123 124 if (win === window.top) { 125 break; 126 } 127 win = win.parent; 128 } 129 if (!cmpFrame) { 130 addFrame(); 131 win.__tcfapi = tcfAPIHandler; 132 win.addEventListener('message', postMessageEventHandler, false); 133 } 134 } 135 136 if (typeof module !== 'undefined') { 137 module.exports = makeStub; 138 } 139 else { 140 makeStub(); 141 } 142 143 var uspStubFunction = function () { 144 var arg = arguments; 145 if (typeof window.__uspapi !== uspStubFunction) { 146 setTimeout(function () { 147 if (typeof window.__uspapi !== 'undefined') { 148 window.__uspapi.apply(window.__uspapi, arg); 149 } 150 }, 500); 151 } 152 }; 153 154 var checkIfUspIsReady = function () { 155 uspTries++; 156 if (window.__uspapi === uspStubFunction && uspTries < uspTriesLimit) { 157 // eslint-disable-next-line no-console 158 console.warn('USP is not accessible'); 159 } 160 else { 161 // eslint-disable-next-line block-scoped-var 162 clearInterval(uspInterval); 163 } 164 }; 165 166 if (typeof window.__uspapi === 'undefined') { 167 window.__uspapi = uspStubFunction; 168 var uspInterval = setInterval(checkIfUspIsReady, 6000); 169 } 170 171 __tcfapi('addEventListener', 2, function (tcData, success) { 172 if (tcData.eventStatus === 'useractioncomplete') { 173 __tcfapi('getNonIABVendorConsents', 2, function (consent, success) { 174 if (success) {
175 for (var key in consent.nonIabVendorConsents) { 176 switch (key) { 177 default: 178 break; 179 } 180 } 181 } 182 }); 183 } 184 185 if (success && (tcData.eventStatus === 'tcloaded' || tcData.eventStatus === 'useractioncomplete')) { 186 if (window._pageview === 0) { 187 window._pageview = 1; 188 gtag('event', 'page_view'); 189 } 190 191 window._gdpr_string = tcData.tcString; 192 193 // Pixel must load after the CMP so it can read the TC string. 194 if (typeof loadPixel === 'function') { 195 loadPixel(); 196 } 197 198 if (!tcData.gdprApplies) { 199 // GDPR DOES NOT APPLY (non-EU/UK visitors) 200 window._nonEU = 1; 201 } 202 else { 203 var hasPurposeOneConsent = tcData.purpose.consents['1']; 204 window.serveNonPersonalized = true; 205 var hasGoogleConsent = false; 206 207 // Purpose 1 208 if (hasPurposeOneConsent) { 209 if (tcData.vendor.consents['755'] && tcData.vendor.legitimateInterests['755']) { 210 if ( 211 (tcData.purpose.consents['2'] || tcData.purpose.legitimateInterests['2']) && 212 (tcData.purpose.consents['7'] || tcData.purpose.legitimateInterests['7']) && 213 (tcData.purpose.consents['9'] || tcData.purpose.legitimateInterests['9']) && 214 (tcData.purpose.consents['10'] || tcData.purpose.legitimateInterests['10']) 215 ) { 216 hasGoogleConsent = true; 217 218 if ( 219 (tcData.purpose.consents['3'] || tcData.purpose.legitimateInterests['3']) && 220 (tcData.purpose.consents['4'] || tcData.purpose.legitimateInterests['4']) 221 ) { 222 window.serveNonPersonalized = false; 223 } 224 225 } 226 } 227 if (hasGoogleConsent) { 228 // Load ads 229 initAds(); 230 } 231 232 if (tcData.vendor.consents['89'] && 233 tcData.vendor.consents['577'] && 234 tcData.purpose.legitimateInterests['2'] && 235 tcData.purpose.legitimateInterests['3'] && 236 tcData.purpose.legitimateInterests['4'] && 237 tcData.purpose.legitimateInterests['5'] && 238 tcData.purpose.legitimateInterests['6'] && 239 tcData.purpose.legitimateInterests['7'] && 240 tcData.purpose.legitimateInterests['8'] && 241 tcData.purpose.legitimateInterests['9'] 242 ) { 243 window._gdpr_consent_pg = 1; 244 } 245 246 initPng(); 247 } 248 } 249 } 250 251 252 if (success && (tcData.eventStatus === 'useractioncomplete' || tcData.eventStatus === 'tcloaded')) { 253 initAds(); 254 } 255 256 if (tcData.eventStatus === 'tcloaded') { 257 loadOnesignal(); 258 } 259 }); 260})(); 261
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.