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"); MVCxClientDockPanel = _aspxCreateClass(ASPxClientDockPanel, { constructor: function(name) { this.constructor.prototype.constructor.call(this, name); this.callbackUrl = ""; this.callbackCustomArgs = {}; }, InlineInitialize: function() { if (this.callbackUrl != "") this.callBack = function (arg) { MVCx.PerformControlCallback(this.name, this.callbackUrl, arg, null, this.callbackCustomArgs) }; ASPxClientDockPanel.prototype.InlineInitialize.call(this); }, InitializeWindow: function(index) { if(!this.showOnPageLoad) { var loadedClientState = this.HasStateSavedInCookies() ? _aspxGetCookie(this.cookieName).split(":") : this.IsDockManagerLayoutStateLoaded() && ASPxClientDockManager.Get().clientLayoutState[this.panelUID]; this.showOnPageLoad = loadedClientState && loadedClientState[0] == "1"; } ASPxClientDockPanel.prototype.InitializeWindow.call(this, index); }, IsDockManagerLayoutStateLoaded: function() { return ASPxClientDockManager.Get() && ASPxClientDockManager.Get().layoutStateLoaded; }, HasStateSavedInCookies: function() { return !this.IsDockManagerLayoutStateLoaded() && _aspxGetCookie(this.cookieName); }, IsInZoneArea: function(zone) { var zoneArea = zone.GetMainElement().getBoundingClientRect(); var panelLeft = this.GetCurrentLeft(this.DefaultWindowIndex); var panelTop = this.GetCurrentTop(this.DefaultWindowIndex); return panelLeft >= zoneArea.left && panelLeft < zoneArea.right && panelTop >= zoneArea.top && panelTop < zoneArea.bottom; }, FirstShowWindow: function(index, allowChangeZIndex) { if(this.HasStateSavedInCookies()) { var element = this.GetWindowElement(index); var mainCell = this.GetWindowMainCell(element); var loadedState = _aspxGetCookie(this.cookieName).split(":"); _aspxSetElementVisibility(element, loadedState[0] == "1" ? loadedState[0] : null); this.SetIsDragged(index, parseInt(loadedState[1])); element.style.zIndex = loadedState[2]; var left = parseInt(loadedState[3]); var top = parseInt(loadedState[4]); this.SetWindowLeft(index, left); this.SetWindowTop(index, top); this.SetIsResized(index, parseInt(loadedState[5])); if(parseInt(loadedState[6]) != __aspxInvalidDimension) this.SetWindowWidth(index, parseInt(loadedState[6])); if(parseInt(loadedState[7]) != __aspxInvalidDimension) this.SetWindowHeight(index, parseInt(loadedState[7])); element.loaded = parseInt(loadedState[8]); } ASPxClientDockPanel.prototype.FirstShowWindow.call(this, index, allowChangeZIndex); }, DockOnFirstShow: function () { var hasInvalidDimensionInPos = this.GetCurrentLeft(this.DefaultWindowIndex) == __aspxInvalidDimension || this.GetCurrentTop(this.DefaultWindowIndex) == __aspxInvalidDimension; if(this.HasStateSavedInCookies() && !hasInvalidDimensionInPos) { var zone = ASPxClientDockZoneBag.Get().GetZoneByUID(this.GetZoneUID()); var isWindowPosRight = !zone || this.IsInZoneArea(zone); if(!isWindowPosRight) { this.SetZoneUID(""); var instance = this; ASPxClientDockZoneBag.Get().ForEachZone( function(zone) { if(instance.IsInZoneArea(zone)) instance.SetZoneUID(zone.zoneUID); } ); } } ASPxClientDockPanel.prototype.DockOnFirstShow.call(this); }, RaiseBeginCallbackInternal: function(command) { if (!this.BeginCallback.IsEmpty()) { var args = new MVCxClientBeginCallbackEventArgs(command); this.BeginCallback.FireEvent(this, args); this.callbackCustomArgs = args.customArgs; } }, CreateCallbackByInfo: function(arg, command, callbackInfo) { this.CreateCallbackInternal(arg, command, true, callbackInfo); }, EvalCallbackResult: function(resultString) { var resultStringParts = resultString.split(MVCx.CallbackHtmlContentPrefix); if (resultStringParts.length == 2) { var resultObj = ASPxClientDockPanel.prototype.EvalCallbackResult.call(this, resultStringParts[0]); resultObj.result.html = resultStringParts[1]; return resultObj; } return ASPxClientDockPanel.prototype.EvalCallbackResult.call(this, resultString); } }); } /* playback timings (ms): captures_list: 157.544 exclusion.robots: 0.132 exclusion.robots.policy: 0.122 RedisCDXSource: 0.666 esindex: 0.012 LoadShardBlock: 136.312 (3) PetaboxLoader3.datanode: 125.175 (4) CDXLines.iter: 17.679 (3) load_resource: 81.945 PetaboxLoader3.resolve: 43.004 */