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"); ASPxClientCallbackPanel = _aspxCreateClass(ASPxClientControl, { constructor: function (name) { this.constructor.prototype.constructor.call(this, name); this.allowMultipleCallbacks = false; this.touchUIScroller = null; this.animationProcessing = false; this.inCallback = false; this.resposedContent = null; this.enableAnimation = false; this.hideContentOnCallback = true; this.isLoadingPanelTextEmpty = false; }, Initialize: function () { this.touchUIScroller = ASPxClientTouchUI.makeScrollableIfRequired(this.GetMainElement()); }, GetContentElement: function () { var element = this.GetMainElement(); return element.tagName == "TABLE" ? element.rows[0].cells[0] : element; }, DoCallback: function (result) { this.inCallback = false; this.resposedContent = result; if (!this.enableAnimation || !this.animationProcessing) ASPxClientControl.prototype.DoCallback.call(this, result); }, OnCallback: function (result) { _aspxSetInnerHtml(this.GetContentElement(), result); if (this.touchUIScroller) this.touchUIScroller.ChangeElement(this.GetMainElement()); }, DoEndCallback: function () { if (this.enableAnimation) { this.ShowResult(this.resposedContent); } else ASPxClientControl.prototype.DoEndCallback.call(this); }, HideContent: function () { var mainElement = this.GetMainElement(); this.animationProcessing = true; ASPxAnimationHelper.fadeOut(mainElement, ASPxClientCallbackPanel.DURATION_TIME, this.HideContentComplete.aspxBind(this)); }, HideContentComplete: function () { var mainElement = this.GetMainElement(); if (__aspxSafari) { _aspxSetElementOpacity(mainElement, 0); _aspxSetElementVisibility(mainElement, false); } this.animationProcessing = false; if (this.inCallback) { this.ShowLoadingPanel(); _aspxSetElementVisibility(mainElement, false); _aspxSetElementOpacity(mainElement, 1); if (this.GetLoadingPanelElement()) { var clone = _aspxGetElementById(this.GetLoadingPanelElement().id + "V"); if (clone) _aspxSetElementVisibility(clone, true); } } else { ASPxClientControl.prototype.DoCallback.call(this, this.resposedContent); } }, ShowResult: function (result) { var mainElement = this.GetMainElement(); _aspxSetElementOpacity(mainElement, 0); _aspxSetElementVisibility(mainElement, true); ASPxAnimationHelper.fadeIn(mainElement, ASPxClientCallbackPanel.DURATION_TIME, this.ShowResultComplete.aspxBind(this)); }, ShowResultComplete: function () { if (__aspxOpera) { var position = document.body.style.position; document.body.style.position = 'relative'; window.setTimeout(function () { document.body.style.position = position; }, 0); } if (__aspxIE && __aspxBrowserVersion < 9) { var mainElement = this.GetMainElement(); if (mainElement.style.filter) { mainElement.style.filter = ""; } } ASPxClientControl.prototype.DoEndCallback.call(this); }, ShowLoadingPanel: function () { var element = this.GetContentElement(); var mainElement = (element.tagName == "TD") ? this.GetMainElement() : element; this.CreateLoadingDiv(element); if(!this.hideContentOnCallback) this.CreateLoadingPanelWithAbsolutePosition(element, mainElement); else this.CreateLoadingPanelInsideContainer(element, true, true, false); }, PerformCallback: function (parameter) { this.CreateCallback(parameter); }, CreateCallback: function (arg, command, callbackInfo) { if (this.CanCreateCallback()) { this.inCallback = true; if (!this.enableAnimation) this.ShowLoadingPanel(); else this.HideContent(); } ASPxClientControl.prototype.CreateCallback.call(this, arg, command); }, GetLoadingPanelTextLabelID: function () { return this.name + "_TL"; }, GetLoadingPanelTextLabel: function () { return _aspxGetElementById(this.GetLoadingPanelTextLabelID()); }, GetLoadingPanelText: function () { var textLabel = this.GetLoadingPanelTextLabel(); if(textLabel && !this.isLoadingPanelTextEmpty) return textLabel.innerHTML; return ""; }, SetLoadingPanelText: function (text) { this.isLoadingPanelTextEmpty = text == null || text == ""; var textLabel = this.GetLoadingPanelTextLabel(); if(textLabel) textLabel.innerHTML = this.isLoadingPanelTextEmpty ? " " : text; }, GetContentHtml: function () { return this.GetContentElement().innerHTML; }, SetContentHtml: function (html) { this.GetContentElement().innerHTML = html; } }); ASPxClientCallbackPanel.DURATION_TIME = 500; ASPxClientCallbackPanel.Cast = ASPxClientControl.Cast; } /* playback timings (ms): esindex: 0.017 exclusion.robots.policy: 0.205 captures_list: 94.927 exclusion.robots: 0.22 PetaboxLoader3.datanode: 157.452 (4) load_resource: 146.291 RedisCDXSource: 0.706 CDXLines.iter: 17.877 (3) PetaboxLoader3.resolve: 54.17 LoadShardBlock: 72.596 (3) */