PageSourceSearch

https://widgets.mypadel.de/padel/zkau/web/js/zkmax/embedded/embedded.js

js mypadel.de collected 2026-10-05 08:02:53 UTC 3,731 bytes, 1 lines download raw bytes

1window.zEmbedded={_loadedResourceKey:"_zk_loadedResource",_token:0,_ids:{},_loaded:!1,_afterEmbLoads:[],load:function(d,e,t){var r,n,o=document.getElementById(d),i=this._token,a="_zEmbeddedID_"+i,s=this._ids[a]={};if(o?(s.status||(s.status="initial"),(r=!!t||e.startsWith("//")||e.startsWith("http://")||e.startsWith("https://"))&&null==t&&(t="$fromZKEmbeddedScriptSrc$"),n=e+(e.match(/\?/)?"&":"?")+"_zEmbeddedID_="+a+(r?"&_zEmbeddedAbsURL_="+t:""),this._token++,(l=this)._afterEmbeddedLoad(function(){l._loaded=!0,l.destroy(d,!0);var e="_z_embedded"+i,t=document.createElement("script");t.defer=!0,t.id=e,t.src=n,s.domId=d,s.zkHostURLEnabled=r,l._ids[d]=e,document.head.appendChild(t);t=l._loadedResourceKey;zEmbedded[t]||(zEmbedded[t]={})})):this._logError(s,"Unknown element #: "+d),window.Promise){var l=this;return new Promise(function(d,r){var n=setInterval(function(){var e,t=l._ids[a];!t||"initial"!=(e=t.status)&&(clearInterval(n),delete l._ids[a],"completed"==e?d({widget:t.desktop.firstChild.firstChild}):r(new Error(t.errMsg)))},100)})}},_afterEmbeddedLoad:function(e){var t;this._loaded?((t=this)._afterEmbLoads.push(e),null==t._loadingInterval&&(t._loadingInterval=setInterval(function(){"undefined"!=typeof zk&&(zk.afterMount(t._afterEmbLoads.shift(),-1),0==t._afterEmbLoads.length&&(clearInterval(t._loadingInterval),t._loadingInterval=null))},100))):e()},destroy:function(e,t){if("undefined"==typeof zk){if(t)return;throw new Error("zk is not loaded.")}var d=document.getElementById(e);if(d){var r=d.hasChildNodes()?zk.$(d.firstChild):null;if(r)zk.Desktop.destroy(r.desktop),zAu.cmd1.rm(r),d.innerHTML="";else if(!t)throw new Error("ZK Page not found, under #: "+e)}else if(!t)throw new Error("Unknown element #: "+e)},_injectDOM:function(e,t){var d=this._ids[e];if(d){var r=d.domId,n=document.getElementById(r);if(n){document.head.removeChild(document.getElementById(this._ids[r])),delete this._ids[r];for(var o=n.lastChild;null!==o;o=n.lastChild)n.removeChild(o);var i=document.createElement("div");i.id=t,n.appendChild(i)}else this._logError(d,"Unknown element #: "+r)}else this._logError(d,"Invalid embedded token: "+e)},_loadStyleSheets:function(e,t){if("error"!=this._ids[t].status)for(var d=zEmbedded[this._loadedResourceKey],r=0,n=e.length;r<n;r++){var o=e[r],i=o.href;if(d[i])return;var a=o.type,s=o.media,o=document.createElement("link");o.rel="stylesheet",o.type=a,o.href=i,s&&(o.media=s),document.head.appendChild(o),d[i]=!0}},_loadJavaScripts:function(e,t){var d=e.token,r=this._ids[d];if("error"!=r.status){for(var n=e.pageUuid,o=e.zkHostURL,i=zEmbedded[this._loadedResourceKey],a=this,s=[],l=t.length,c=0;c<l;c++){var u,h=t[c],m=h.src;m&&i[m]||(_=document.createElement("script"),u=h.content,_.type="text/javascript",_.charset=h.charset,m?(_.src=m,_.async=!1,_.onerror=function(){a._logError(r,"Error loading "+this.src)},i[m]=!0,s.push(_)):u&&(_.text=u,s.push(_)))}var f,_,p=e.zkSrc;"undefined"!=typeof zk?(a._addScripts(s),a._renderZKContent(r,d,n)):(f=r.zkHostURLEnabled,(_=document.createElement("script")).type="text/javascript",_.src=p,_.async=!1,_.charset=e.zkCharset,_.onerror=function(){a._logError(r,"Error loading "+this.src)},_.onload=function(){f&&(zk.updateURI=o+zk.updateURI,zk.resourceURI=o+zk.resourceURI,zk.xhrWithCredentials=!0),a._addScripts(s),a._renderZKContent(r,d,n)},document.head.appendChild(_))}},_renderZKContent:function(t,d,r){zk.afterLoad(function(){var e="_z_loadZKContent_"+d;zEmbedded[e](),zk.afterMount(function(){t.desktop=zk.Desktop.$(r),t.status="completed",delete zEmbedded[e]})})},_addScripts:function(e){for(var t=0,d=e.length;t<d;t++)document.head.appendChild(e[t])},_logError:function(e,t){console.error(t),window.Promise&&(e.status="error",e.errMsg=t)}};

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.