Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/amp/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/mets.corals.io/wp-content/plugins/amp/assets/js/amp-paired-browsing-app.js
!function(){"use strict";var e={};function t(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var i=window.wp.url;const{ampPairedBrowsingAppData:n,history:s}=window,{noampQueryVar:r,noampMobile:a,ampPairedBrowsingQueryVar:o,documentTitlePrefix:m}=n;window.pairedBrowsingApp=new class{constructor(){t(this,"disconnectedClient",void 0),t(this,"ampIframe",void 0),t(this,"ampHeartbeatTimestamp",Date.now()),t(this,"nonAmpIframe",void 0),t(this,"nonAmpHeartbeatTimestamp",Date.now()),t(this,"currentAmpUrl",void 0),t(this,"initialAmpUrlObject",void 0),t(this,"navigateAmpUrl",void 0),t(this,"currentNonAmpUrl",void 0),t(this,"initialNonAmpUrlObject",void 0),t(this,"navigateNonAmpUrl",void 0),t(this,"nonAmpLink",void 0),t(this,"ampLink",void 0),t(this,"activeIframe",void 0),this.nonAmpIframe=document.querySelector("#non-amp iframe"),this.ampIframe=document.querySelector("#amp iframe"),this.currentNonAmpUrl=this.nonAmpIframe.src,this.initialNonAmpUrlObject=new URL(this.currentNonAmpUrl),this.currentAmpUrl=this.ampIframe.src,this.initialAmpUrlObject=new URL(this.currentNonAmpUrl),this.nonAmpLink=document.getElementById("non-amp-link"),this.ampLink=document.getElementById("amp-link"),this.disconnectOverlay=document.querySelector(".disconnect-overlay"),this.disconnectButtons={exit:document.querySelector(".disconnect-overlay .button.exit"),goBack:document.querySelector(".disconnect-overlay .button.go-back")},this.addDisconnectButtonListeners(),e.g.addEventListener("message",(e=>{this.receiveMessage(e)})),document.getElementById("non-amp").addEventListener("mouseenter",(()=>{this.activeIframe=this.nonAmpIframe})),document.getElementById("amp").addEventListener("mouseenter",(()=>{this.activeIframe=this.ampIframe})),Promise.all(this.getIframeLoadedPromises()).then((()=>{setInterval((()=>{this.checkConnectedClients()}),100)}))}isAmpWindow(e){return e===this.ampIframe.contentWindow}isNonAmpWindow(e){return e===this.nonAmpIframe.contentWindow}sendMessage(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.postMessage({type:t,...i,ampPairedBrowsing:!0},this.isAmpWindow(e)?this.currentAmpUrl:this.currentNonAmpUrl)}receiveMessage(e){if(e.data&&e.data.type&&e.data.ampPairedBrowsing&&e.source&&[this.initialNonAmpUrlObject.origin,this.initialAmpUrlObject.origin].includes(e.origin)&&(this.isAmpWindow(e.source)||this.isNonAmpWindow(e.source)))switch(e.data.type){case"loaded":this.receiveLoaded(e.data,e.source);break;case"scroll":this.receiveScroll(e.data,e.source);break;case"heartbeat":this.receiveHeartbeat(e.source);break;case"navigate":this.receiveNavigate(e.data,e.source)}}getIframeLoadedPromises(){return[new Promise((e=>{this.nonAmpIframe.addEventListener("load",e)})),new Promise((e=>{this.ampIframe.addEventListener("load",e)}))]}receiveHeartbeat(e){this.isAmpWindow(e)?this.ampHeartbeatTimestamp=Date.now():this.nonAmpHeartbeatTimestamp=Date.now()}receiveNavigate(e,t){let{href:i}=e;this.isAmpWindow(t)?this.navigateAmpUrl=i:this.navigateNonAmpUrl=i}checkConnectedClients(){this.sendMessage(this.ampIframe.contentWindow,"init"),this.sendMessage(this.nonAmpIframe.contentWindow,"init"),this.isClientConnected(this.ampIframe)?this.isClientConnected(this.nonAmpIframe)?this.disconnectOverlay.classList.remove("disconnected"):this.showDisconnectOverlay(this.nonAmpIframe):this.showDisconnectOverlay(this.ampIframe)}addDisconnectButtonListeners(){this.disconnectButtons.goBack.addEventListener("click",(()=>{window.history.back()}))}showDisconnectOverlay(e){const t=this.ampIframe===e?this.navigateAmpUrl:this.navigateNonAmpUrl;t?(this.disconnectButtons.exit.hidden=!1,this.disconnectButtons.exit.href=t):this.disconnectButtons.exit.hidden=!0,this.disconnectButtons.goBack.hidden=0>=window.history.length,this.disconnectOverlay.classList.toggle("amp",this.ampIframe===e),this.disconnectOverlay.classList.add("disconnected")}isClientConnected(e){return e===this.ampIframe?Date.now()-this.ampHeartbeatTimestamp<2e3:Date.now()-this.nonAmpHeartbeatTimestamp<2e3}purgeRemovableQueryVars(e){return(0,i.removeQueryArgs)(e,r,o)}addPairedBrowsingQueryVar(e){return(0,i.addQueryArgs)(e,{[o]:"1"})}removeUrlHash(e){const t=new URL(e);return t.hash="",t.href}replaceLocation(e,t){this.sendMessage(e.contentWindow,"replaceLocation",{href:t})}receiveScroll(e,t){let{x:i,y:n}=e;if(this.activeIframe||(this.activeIframe=this.isAmpWindow(t)?this.ampIframe:this.nonAmpIframe),!this.activeIframe||t!==this.activeIframe.contentWindow)return;const s=this.isAmpWindow(t)?this.nonAmpIframe.contentWindow:this.ampIframe.contentWindow;this.sendMessage(s,"scroll",{x:i,y:n})}receiveLoaded(e,t){let{isAmpDocument:n,ampUrl:o,nonAmpUrl:c,documentTitle:h}=e;const d=this.isAmpWindow(t),p=d?this.ampIframe:this.nonAmpIframe;if(d){if(!n)return void this.replaceLocation(p,o);this.currentAmpUrl=o,this.ampLink.href=(0,i.removeQueryArgs)(o,r)}else{if(n)return void this.replaceLocation(p,c);this.currentNonAmpUrl=c,this.nonAmpLink.href=(0,i.addQueryArgs)(c,{[r]:a})}const l=d?c:o,u=d?this.currentNonAmpUrl:this.currentAmpUrl;if(this.purgeRemovableQueryVars(this.removeUrlHash(l))===this.purgeRemovableQueryVars(this.removeUrlHash(u)))document.title=m+" "+h,s.replaceState({},"",this.addPairedBrowsingQueryVar(this.purgeRemovableQueryVars(c)));else{const e=d?c:o;this.replaceLocation(d?this.nonAmpIframe:this.ampIframe,this.purgeRemovableQueryVars(e))}}}}();

Spamworldpro Mini