PageSourceSearch

https://smartcity-partners.osaka/solution/wp-content/plugins/wp-statistics-data-plus/assets/js/events.min.js

js smartcity-partners.osaka collected 2026-10-02 17:50:29 UTC 2,718 bytes, 1 lines download raw bytes

1let hasEventsInitializedOnce=!1,wpStatisticsDataPlusEvents={init:async function(){hasEventsInitializedOnce||(hasEventsInitializedOnce=!0,"undefined"!=typeof WP_Statistics_Event_Object&&WP_Statistics_Event_Object.eventAjaxUrl?(this.ajaxUrl=WP_Statistics_Event_Object.eventAjaxUrl,this.linkTrackerEnabled=WP_Statistics_Event_Object.linkTrackerEnabled,this.downloadTrackerEnabled=WP_Statistics_Event_Object.downloadTrackerEnabled,this.captureEvent()):console.error("WP_Statistics_Event_Object is not available or missing ajaxUrl."))},captureEvent:function(){document.querySelectorAll("a").forEach((t=>{t.addEventListener("click",(async t=>await this.handleEvent(t))),t.addEventListener("mouseup",(async t=>await this.handleEvent(t)))}))},handleEvent:async function(t){if("mouseup"==t.type&&1!=t.button)return;const e=this.prepareEventData(t);e&&await this.sendEventData(e)},prepareEventData:function(t){let e={en:t.type,et:Date.now(),eid:t.currentTarget.id,ec:t.currentTarget.className,ev:"",mb:t.button,fn:"",fx:"",m:"",tu:"",pid:""};return"A"===t.currentTarget.tagName&&(e=this.extractLinkData(t,e)),"undefined"!=typeof WP_Statistics_Tracker_Object&&(e.pid=WP_Statistics_Tracker_Object.hitParams.source_id),e},extractLinkData(t,e){const n=t.target.textContent,a=t.currentTarget.href,i=WP_Statistics_Event_Object.fileExtensions,s=new RegExp("\\.("+i.join("|")+")$","i");n&&(e.ev=n),a&&(e.tu=a);const c=t.currentTarget.classList.contains("woocommerce-MyAccount-downloads-file")||a.includes("download_file=");if(e.wcdl=c,s.test(a)||c){const t=new URL(a).pathname;e.df=c?a.substring(a.lastIndexOf("download_file=")+14).split("&").shift():"",e.dk=c?a.substring(a.lastIndexOf("key=")+4).split("&").shift():"",e.en="file_download",e.fn=c?e.df:t.substring(t.lastIndexOf("/")+1).split(".").shift(),e.fx=c?e.df:t.split(".").pop()}if("click"===e.en){if(!this.linkTrackerEnabled)return!1;if(a.toLowerCase().includes(window.location.host))return!1}return!("file_download"===e.en&&!this.downloadTrackerEnabled)&&e},sendEventData:async function(t){const e=new URLSearchParams;for(const n in t)e.append(n,t[n]);try{(await fetch(this.ajaxUrl,{method:"POST",body:e})).ok}catch(t){console.error("Error:",t)}}};document.addEventListener("DOMContentLoaded",(function(){("disabled"==WP_Statistics_Tracker_Object.consentLevel||WP_Statistics_Tracker_Object.trackAnonymously||!WP_Statistics_Tracker_Object.isWpConsentApiActive||wp_has_consent(WP_Statistics_Tracker_Object.consentLevel))&&wpStatisticsDataPlusEvents.init(),document.addEventListener("wp_listen_for_consent_change",(function(t){const e=t.detail;for(let t in e)e.hasOwnProperty(t)&&t===WP_Statistics_Tracker_Object.consentLevel&&"allow"===e[t]&&wpStatisticsUserOnline.init()}))}));

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.