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"); MVCxClientReportViewer = _aspxCreateClass(ASPxClientReportViewer, { constructor: function(name) { this.constructor.prototype.constructor.call(this, name); this.callbackUrl = ""; this.exportUrl = ""; this.callbackCustomArgs = {}; this.BeforeExportRequest = new ASPxClientEvent(); }, InlineInitialize: function() { if(this.callbackUrl != "") this.callBack = function(arg) { MVCx.PerformControlCallback(this.name, this.callbackUrl, arg, this.GetCallbackParams(), this.callbackCustomArgs) }; ASPxClientReportViewer.prototype.InlineInitialize.call(this); }, GetCallbackParams: function() { var params = {}; var hiddenFields = this.getHiddenFields(); for(var field in hiddenFields) { var element = hiddenFields[field]; params[element.name] = element.value; } return params; }, getHiddenFields: function() { return [this.getCurrentPageIndexHiddenField(), this.getKeyHiddenField(), this.getParametersHiddenField()]; }, CreateCallbackByInfo: function(arg, command, callbackInfo) { this.CreateCallbackInternal(arg, command, true, callbackInfo); }, createFormHelper: function() { return new MVCxFormHelper(this.exportUrl, this.getHiddenFields(), this.name); }, RaiseBeginCallbackInternal: function(command) { if(!this.BeginCallback.IsEmpty()) { var args = new MVCxClientBeginCallbackEventArgs(command); this.BeginCallback.FireEvent(this, args); this.callbackCustomArgs = args.customArgs; } }, RaiseBeforeExportRequestEvent: function() { if(!this.BeforeExportRequest.IsEmpty()) { var args = new MVCxClientBeforeExportRequestEventArgs(); this.BeforeExportRequest.FireEvent(this, args); this.formHelper.customArgs = args.customArgs; } }, execExport: function(exportKind, params, win) { this.RaiseBeforeExportRequestEvent(); ASPxClientReportViewer.prototype.execExport.call(this, exportKind, params, win); } }); MVCxClientBeforeExportRequestEventArgs = _aspxCreateClass(ASPxClientEventArgs, { constructor: function() { this.constructor.prototype.constructor.call(this); this.customArgs = {}; } }); MVCxFormHelper = _aspxCreateClass(dx_FormHelper, { constructor: function(action, hiddenFields, viewerName) { this.action = action; this.viewerName = viewerName; this.argumentFieldName = "DXArgument"; this.hiddenFields = hiddenFields; this.hiddenFields.push({ tagName: "input", type: "hidden", id: this.argumentFieldName, name: this.argumentFieldName }); this.customArgs = {}; }, getTheForm: function() { return { method: "POST", action: this.action, id: "form1", elements: this.getElements(), name: "" }; }, getElements: function(originalName) { var elements = []; for(var i = 0; i < this.hiddenFields.length; i++) elements.push(this.hiddenFields[i]); for(var arg in this.customArgs) elements.push({ tagName: "input", type: "hidden", id: arg, name: arg, value: this.customArgs[arg] }); return elements; }, getElementName: function(originalName) { return (originalName.length > this.viewerName.length && originalName.substring(0, this.viewerName.length) == this.viewerName) ? originalName.substring(this.viewerName.length) : originalName; } }); } /* playback timings (ms): captures_list: 144.85 exclusion.robots: 0.086 exclusion.robots.policy: 0.08 RedisCDXSource: 2.037 esindex: 0.007 LoadShardBlock: 127.435 (3) PetaboxLoader3.datanode: 86.977 (4) CDXLines.iter: 12.883 (3) load_resource: 81.933 PetaboxLoader3.resolve: 47.732 */