var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); ASPxClientLoadingPanel = _aspxCreateClass(ASPxClientControl, { constructor: function(name) { this.constructor.prototype.constructor.call(this, name); this.containerElementID = ""; this.containerElement = null; this.horizontalOffset = 0; this.verticalOffset = 0; this.isTextEmpty = false; this.showImage = true; this.shown = false; this.currentoffsetElement = null; this.currentX = null; this.currentY = null; }, Initialize: function(){ if(this.containerElementID != "") this.containerElement = _aspxGetElementById(this.containerElementID); this.constructor.prototype.Initialize.call(this); }, SetCurrentShowArguments: function(offsetElement, x, y){ if(offsetElement == null) offsetElement = this.containerElement; if(offsetElement && !_aspxIsValidElement(offsetElement)) offsetElement = _aspxGetElementById(offsetElement.id); if(offsetElement == null) offsetElement = document.body; this.currentoffsetElement = offsetElement; this.currentX = x; this.currentY = y; }, ResetCurrentShowArguments: function(){ this.currentoffsetElement = null; this.currentX = null; this.currentY = null; }, SetLoadingPanelPosAndSize: function(){ var element = this.GetMainElement(); this.SetLoadingPanelLocation( this.currentoffsetElement, element, this.currentX, this.currentY, this.horizontalOffset, this.verticalOffset); }, SetLoadingDivPosAndSize: function(){ var element = this.GetLoadingDiv(); if(element != null){ _aspxSetElementDisplay(element, true); this.SetLoadingDivBounds(this.currentoffsetElement, element); } }, ShowInternal: function(offsetElement, x, y){ this.SetCurrentShowArguments(offsetElement, x, y); var element = this.GetMainElement(); _aspxSetElementDisplay(element, true); this.SetLoadingPanelPosAndSize(); this.SetLoadingDivPosAndSize(); this.shown = true; }, Show: function(){ this.ShowInternal(null); }, ShowInElement: function(htmlElement){ if(htmlElement) this.ShowInternal(htmlElement); }, ShowInElementByID: function(id){ var htmlElement = _aspxGetElementById(id); this.ShowInElement(htmlElement); }, ShowAtPos: function(x, y){ this.ShowInternal(null, x, y); }, SetText: function(text){ this.isTextEmpty = text == null || text == ""; this.GetTextLabel().innerHTML = this.isTextEmpty ? " " : text; }, GetText: function() { return this.isTextEmpty ? "" : this.GetTextLabel().innerHTML; }, Hide: function(){ var element = this.GetMainElement(); _aspxSetElementDisplay(element, false); element = this.GetLoadingDiv(); if(element != null) { _aspxSetStyleSize(element, 1, 1); _aspxSetElementDisplay(element, false); } this.ResetCurrentShowArguments(); this.shown = false; }, GetTextLabel: function(){ return this.GetChild("_TL"); }, GetVisible: function(){ return _aspxGetElementDisplay(this.GetMainElement()); }, SetVisible: function(visible){ if(visible && !this.IsVisible()) this.Show(); else if(!visible && this.IsVisible()) this.Hide(); }, OnBrowserWindowResizeInternal: function(){ if(this.shown){ this.SetLoadingPanelPosAndSize(); this.SetLoadingDivPosAndSize(); } } }); ASPxClientLoadingPanel.Cast = ASPxClientControl.Cast; } /* playback timings (ms): captures_list: 316.431 exclusion.robots: 0.119 exclusion.robots.policy: 0.112 RedisCDXSource: 2.33 esindex: 0.01 LoadShardBlock: 288.716 (3) PetaboxLoader3.datanode: 260.386 (4) CDXLines.iter: 21.831 (3) load_resource: 177.639 PetaboxLoader3.resolve: 134.344 */