PageSourceSearch

https://www.placemania.sk/wp-content/cache/min/1/wp-content/plugin…/assets/js/google-runtime.js?ver=1790283853

js placemania.sk collected 2026-09-25 09:53:57 UTC 14,476 bytes, 77 lines download raw bytes

1(function(window,document){'use strict';var PREFIX='[PMRG Runtime]';var ADSENSE_FRAGMENT='pagead2.googlesyndication.com/pagead/js/adsbygoogle.js';var SCRIPT_TIMEOUT_MS=15000;var attempts=[];var nextAttemptId=1;var noticeOpenScheduled=!1;var activeNoticeKind=null;var state={consentApiReady:!1,consentDataReady:!1,consentModeDataReady:!1,consentMode:null,adBlockDataReady:!1,adBlockerStatus:null,allowAdsStatus:null,adsenseTransport:'not-seen',adsenseAttempts:attempts,postConsentTransportUnavailable:!1,adBlockNoticeEligible:!1,networkBlockNoticeEligible:!1,adBlockNoticeOpen:!1,networkBlockNoticeOpen:!1,recoveryNoticeOpen:!1,recoveryNoticeKind:null,googleAdBlockMessageSuppressed:!!window.__pmrgGoogleAdBlockingMessageSuppressed};function safeClone(value){try{return JSON.parse(JSON.stringify(value))}catch(error){return value}}
2function snapshot(){return safeClone(state)}
3function log(name,detail){if(window.console&&typeof window.console.info==='function'){window.console.info(PREFIX,name,detail||'',snapshot())}}
4function warn(name,detail){if(window.console&&typeof window.console.warn==='function'){window.console.warn(PREFIX,name,detail||'',snapshot())}}
5function enumLabel(enumObject,value){var key;if(!enumObject||typeof enumObject!=='object'){return null}
6for(key in enumObject){if(Object.prototype.hasOwnProperty.call(enumObject,key)&&enumObject[key]===value){return key}}
7return null}
8function normalizeEnumValue(enumObject,value){return{value:value,label:enumLabel(enumObject,value)}}
9function normalizeConsentMode(values){var result={};var key;var enumObject=window.googlefc&&window.googlefc.ConsentModePurposeStatusEnum;if(!values||typeof values!=='object'){return values}
10for(key in values){if(Object.prototype.hasOwnProperty.call(values,key)){result[key]=normalizeEnumValue(enumObject,values[key])}}
11return result}
12function adConsentGranted(){var mode=state.consentMode;var consentEnum=window.googlefc&&window.googlefc.ConsentModePurposeStatusEnum;var granted=consentEnum&&typeof consentEnum.GRANTED!=='undefined'?consentEnum.GRANTED:1;var keys=['adStoragePurposeConsentStatus','adUserDataPurposeConsentStatus','adPersonalizationPurposeConsentStatus'];var index;if(!state.consentModeDataReady||!mode||typeof mode!=='object'){return!1}
13for(index=0;index<keys.length;index+=1){if(!mode[keys[index]]||mode[keys[index]].value!==granted){return!1}}
14return!0}
15function recoveryModal(kind){return typeof document.querySelector==='function'?document.querySelector('[data-pmrg-recovery-modal="'+kind+'"]'):null}
16function recoveryBackdrop(kind){return typeof document.querySelector==='function'?document.querySelector('[data-pmrg-recovery-backdrop="'+kind+'"]'):null}
17function setRecoveryBackdropOpen(kind,open){var backdrop=recoveryBackdrop(kind);if(!backdrop){return}
18backdrop.hidden=!open}
19function eligibleNoticeKind(){if(state.adBlockNoticeEligible&&recoveryModal('adblock')){return'adblock'}
20if(state.networkBlockNoticeEligible&&recoveryModal('transport')){return'transport'}
21return null}
22function closeRecoveryNotice(reason){var closingKind=activeNoticeKind;var target=closingKind?recoveryModal(closingKind):null;if(target){if(typeof target.close==='function'&&target.open){target.close()}else{target.removeAttribute('open');target.classList.remove('is-fallback-open')}}
23if(closingKind){setRecoveryBackdropOpen(closingKind,!1)}
24if(state.recoveryNoticeOpen){log('RECOVERY_NOTICE_CLOSED',{kind:closingKind,reason:reason||'state-cleared'})}
25activeNoticeKind=null;state.recoveryNoticeOpen=!1;state.recoveryNoticeKind=null;state.adBlockNoticeOpen=!1;state.networkBlockNoticeOpen=!1}
26function openRecoveryNotice(){var kind;var target;noticeOpenScheduled=!1;kind=eligibleNoticeKind();if(!kind){if(state.recoveryNoticeOpen){closeRecoveryNotice('state-cleared')}
27return}
28if(state.recoveryNoticeOpen&&activeNoticeKind===kind){return}
29if(state.recoveryNoticeOpen){closeRecoveryNotice('priority-changed')}
30target=recoveryModal(kind);if(!target){return}
31try{if(kind==='adblock'){setRecoveryBackdropOpen(kind,!0);if(typeof target.show==='function'){if(!target.open){target.show()}}else{target.setAttribute('open','');target.classList.add('is-fallback-open')}}else if(typeof target.showModal==='function'){if(!target.open){target.showModal()}}else{target.setAttribute('open','');target.classList.add('is-fallback-open')}}catch(error){target.setAttribute('open','');target.classList.add('is-fallback-open');
31if(kind==='adblock'){setRecoveryBackdropOpen(kind,!0)}
32warn('RECOVERY_NOTICE_OPEN_FAILED',error&&error.message?error.message:error)}
33activeNoticeKind=kind;state.recoveryNoticeOpen=!0;state.recoveryNoticeKind=kind;state.adBlockNoticeOpen=kind==='adblock';state.networkBlockNoticeOpen=kind==='transport';log('RECOVERY_NOTICE_OPENED',{kind:kind,presentation:kind==='adblock'?'page-layer':'top-layer',trigger:kind==='adblock'?'granted ad consent + failed + EXTENSION_AD_BLOCKER + ADS_NOT_ALLOWED':'granted ad consent + failed + NETWORK_LEVEL_AD_BLOCKER + ADS_NOT_ALLOWED'})}
34function scheduleRecoveryNotice(){if(noticeOpenScheduled){return}
35noticeOpenScheduled=!0;window.setTimeout(openRecoveryNotice,0)}
36function updateRecoveryNoticeState(){var blockerEnum=window.googlefc&&window.googlefc.AdBlockerStatusEnum;var allowAdsEnum=window.googlefc&&window.googlefc.AllowAdsStatusEnum;var extensionLevel=blockerEnum&&typeof blockerEnum.EXTENSION_AD_BLOCKER!=='undefined'?blockerEnum.EXTENSION_AD_BLOCKER:1;var networkLevel=blockerEnum&&typeof blockerEnum.NETWORK_LEVEL_AD_BLOCKER!=='undefined'?blockerEnum.NETWORK_LEVEL_AD_BLOCKER:2;var adsNotAllowed=allowAdsEnum&&typeof allowAdsEnum.ADS_NOT_ALLOWED!=='undefined'?allowAdsEnum.ADS_NOT_ALLOWED:1;var common=!!(state.consentDataReady&&adConsentGranted()&&state.adBlockDataReady&&state.adsenseTransport==='failed'&&state.adBlockerStatus&&state.allowAdsStatus&&state.allowAdsStatus.value===adsNotAllowed);var nextAdBlock=!!(common&&state.adBlockerStatus.value===extensionLevel&&recoveryModal('adblock'));var nextNetwork=!!(common&&state.adBlockerStatus.value===networkLevel&&recoveryModal('transport'));if(nextAdBlock!==state.adBlockNoticeEligible){state.adBlockNoticeEligible=nextAdBlock;log('ADBLOCK_NOTICE_ELIGIBLE_CHANGED',{value:nextAdBlock})}
37if(nextNetwork!==state.networkBlockNoticeEligible){state.networkBlockNoticeEligible=nextNetwork;log('NETWORK_BLOCK_NOTICE_ELIGIBLE_CHANGED',{value:nextNetwork})}
38if(nextAdBlock||nextNetwork){scheduleRecoveryNotice()}else if(state.recoveryNoticeOpen){closeRecoveryNotice('state-cleared')}}
39function updatePostConsentState(){var next=state.consentDataReady&&(state.adsenseTransport==='failed'||state.adsenseTransport==='timeout');if(next!==state.postConsentTransportUnavailable){state.postConsentTransportUnavailable=next;log('POST_CONSENT_TRANSPORT_UNAVAILABLE_CHANGED',{value:next})}
40updateRecoveryNoticeState()}
41function recomputeTransport(){var hasLoaded=!1;var hasPending=!1;var hasFailed=!1;var hasTimeout=!1;var next='not-seen';var index;for(index=0;index<attempts.length;index+=1){hasLoaded=hasLoaded||attempts[index].state==='loaded';hasPending=hasPending||attempts[index].state==='pending';hasFailed=hasFailed||attempts[index].state==='failed';hasTimeout=hasTimeout||attempts[index].state==='timeout'}
42if(hasLoaded){next='loaded'}else if(hasPending){next='pending'}else if(hasFailed){next='failed'}else if(hasTimeout){next='timeout'}
43if(next!==state.adsenseTransport){state.adsenseTransport=next;log('ADSENSE_TRANSPORT_CHANGED',{state:next})}
44updatePostConsentState()}
45function isAdSenseScript(node){return!!(node&&node.tagName==='SCRIPT'&&typeof node.src==='string'&&node.src.indexOf(ADSENSE_FRAGMENT)!==-1)}
46function attemptForNode(node){var id=node&&node.__pmrgRuntimeAttemptId;var index;if(!id){return null}
47for(index=0;index<attempts.length;index+=1){if(attempts[index].id===id){return attempts[index]}}
48return null}
49function firstPendingAttemptForSrc(src){var index;for(index=0;index<attempts.length;index+=1){if(attempts[index].src===src&&attempts[index].state==='pending'){return attempts[index]}}
50return null}
51function resolveAttempt(attempt,result,source){if(!attempt||attempt.state!=='pending'){return}
52attempt.state=result;attempt.resolvedAt=Date.now();attempt.resolutionSource=source||'runtime';if(result==='loaded'){log('ADSENSE_SCRIPT_LOADED',{id:attempt.id,src:attempt.src,source:attempt.resolutionSource})}else if(result==='failed'){warn('ADSENSE_SCRIPT_FAILED',{id:attempt.id,src:attempt.src,source:attempt.resolutionSource})}else{warn('ADSENSE_SCRIPT_TIMEOUT',{id:attempt.id,src:attempt.src,timeoutMs:SCRIPT_TIMEOUT_MS})}
53recomputeTransport()}
54function watchAdSenseScript(node){var attempt;if(!isAdSenseScript(node)){return null}
55attempt=attemptForNode(node);if(attempt){return attempt}
56attempt={id:nextAttemptId,src:node.src,state:'pending',seenAt:Date.now(),resolvedAt:null,resolutionSource:null};nextAttemptId+=1;node.__pmrgRuntimeAttemptId=attempt.id;attempts.push(attempt);log('ADSENSE_SCRIPT_SEEN',{id:attempt.id,src:node.src});recomputeTransport();node.addEventListener('load',function(){resolveAttempt(attempt,'loaded','element-event')},{once:!0});node.addEventListener('error',function(){resolveAttempt(attempt,'failed','element-event')},{once:!0});window.setTimeout(function(){resolveAttempt(attempt,'timeout','timeout')},SCRIPT_TIMEOUT_MS);return attempt}
57function handleResourceEvent(event,source){var attempt;if(!event||!isAdSenseScript(event.target)){return}
58attempt=watchAdSenseScript(event.target);resolveAttempt(attempt,event.type==='load'?'loaded':'failed',source||'capture-event')}
59function inspectNode(node){var scripts;var index;if(!node||node.nodeType!==1){return}
60watchAdSenseScript(node);if(typeof node.querySelectorAll!=='function'){return}
61scripts=node.querySelectorAll('script[src*="pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"]');for(index=0;index<scripts.length;index+=1){watchAdSenseScript(scripts[index])}}
62function installTransportMonitoring(){var scripts=typeof document.querySelectorAll==='function'?document.querySelectorAll('script[src]'):[];var early=window.__pmrgGoogleRuntimeEarly;var earlyEvents;var index;if(early&&early.adBlockingMessageSuppressed){state.googleAdBlockMessageSuppressed=!0}
63if(window.__pmrgGoogleAdBlockingMessageSuppressed){state.googleAdBlockMessageSuppressed=!0}
64for(index=0;index<scripts.length;index+=1){watchAdSenseScript(scripts[index])}
65if(early&&early.handler){document.removeEventListener('load',early.handler,!0);document.removeEventListener('error',early.handler,!0)}
66document.addEventListener('load',function(event){handleResourceEvent(event,'capture-event')},!0);document.addEventListener('error',function(event){handleResourceEvent(event,'capture-event')},!0);if(early&&Array.isArray(early.events)){earlyEvents=early.events.slice(0);for(index=0;index<earlyEvents.length;index+=1){var buffered=earlyEvents[index];var attempt=buffered.target?attemptForNode(buffered.target):null;attempt=attempt||firstPendingAttemptForSrc(buffered.src);if(!attempt){attempt={id:nextAttemptId,src:buffered.src,state:'pending',seenAt:buffered.at||Date.now(),resolvedAt:null,resolutionSource:null};nextAttemptId+=1;attempts.push(attempt)}
67resolveAttempt(attempt,buffered.type==='load'?'loaded':'failed','early-buffer')}}
68if('MutationObserver' in window&&document.documentElement){new MutationObserver(function(mutations){var mutationIndex;var nodeIndex;for(mutationIndex=0;mutationIndex<mutations.length;mutationIndex+=1){for(nodeIndex=0;nodeIndex<mutations[mutationIndex].addedNodes.length;nodeIndex+=1){inspectNode(mutations[mutationIndex].addedNodes[nodeIndex])}}}).observe(document.documentElement,{childList:!0,subtree:!0})}}
69function installRecoveryNoticeControls(){document.addEventListener('click',function(event){var reload=event.target&&event.target.closest?event.target.closest('[data-pmrg-recovery-reload]'):null;
69if(reload){event.preventDefault();window.location.reload()}});document.addEventListener('cancel',function(event){var target=event.target;if(target&&typeof target.getAttribute==='function'&&target.getAttribute('data-pmrg-recovery-modal')){event.preventDefault();log('RECOVERY_NOTICE_DISMISS_PREVENTED',{reason:'escape'})}},!0);document.addEventListener('close',function(event){var target=event.target;var kind=target&&typeof target.getAttribute==='function'?target.getAttribute('data-pmrg-recovery-modal'):null;if(kind){setRecoveryBackdropOpen(kind,!1)}
70if(kind&&kind===activeNoticeKind){activeNoticeKind=null;state.recoveryNoticeOpen=!1;state.recoveryNoticeKind=null;state.adBlockNoticeOpen=!1;state.networkBlockNoticeOpen=!1;if(eligibleNoticeKind()){scheduleRecoveryNotice()}}},!0)}
71function installGoogleFcMonitoring(){window.googlefc=window.googlefc||{};window.googlefc.callbackQueue=window.googlefc.callbackQueue||[];window.googlefc.callbackQueue.push({CONSENT_API_READY:function(){state.consentApiReady=!0;log('CONSENT_API_READY')}});window.googlefc.callbackQueue.push({CONSENT_DATA_READY:function(){state.consentDataReady=!0;log('CONSENT_DATA_READY');updatePostConsentState()}});window.googlefc.callbackQueue.push({CONSENT_MODE_DATA_READY:function(){var values=null;state.consentModeDataReady=!0;try{if(typeof window.googlefc.getGoogleConsentModeValues==='function'){values=window.googlefc.getGoogleConsentModeValues()}
72state.consentMode=normalizeConsentMode(values);log('CONSENT_MODE_DATA_READY',state.consentMode)}catch(error){warn('CONSENT_MODE_READ_FAILED',error&&error.message?error.message:error)}
73updateRecoveryNoticeState()}});window.googlefc.callbackQueue.push({AD_BLOCK_DATA_READY:function(){state.adBlockDataReady=!0;try{if(typeof window.googlefc.getAdBlockerStatus==='function'){state.adBlockerStatus=normalizeEnumValue(window.googlefc.AdBlockerStatusEnum,window.googlefc.getAdBlockerStatus())}
74if(typeof window.googlefc.getAllowAdsStatus==='function'){state.allowAdsStatus=normalizeEnumValue(window.googlefc.AllowAdsStatusEnum,window.googlefc.getAllowAdsStatus())}
75log('AD_BLOCK_DATA_READY',{adBlockerStatus:state.adBlockerStatus,allowAdsStatus:state.allowAdsStatus})}catch(error){warn('AD_BLOCK_DATA_READ_FAILED',error&&error.message?error.message:error)}
76updateRecoveryNoticeState()}})}
77window.pmrgGoogleRuntime={state:state,snapshot:snapshot};installTransportMonitoring();installRecoveryNoticeControls();installGoogleFcMonitoring();log('MONITOR_READY',{timeoutMs:SCRIPT_TIMEOUT_MS,adblockNotice:!!recoveryModal('adblock'),networkNotice:!!recoveryModal('transport'),googleMessageSuppression:state.googleAdBlockMessageSuppressed})}(window,document))

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.