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"); dx_PrintHelper = _aspxCreateClass(null, { constructor: function() { this.printFrame = null; if (__aspxOpera) { this.printElementName = "DXOperaPrinter"; this.printElement = null; this.mergeProperties(dx_XROperaPrintTrick); } }, pdfExists: function() { if (!_aspxIsExists(this.pdf)) this.pdf = this.existsIEPlugin() || this.existsFFPlugin(); return this.pdf; }, existsIEPlugin: function() { return this.createActiveXObject("PDF.PdfCtrl.5") || this.createActiveXObject("PDF.PdfCtrl.6") || this.createActiveXObject("AcroPDF.PDF.1"); }, createActiveXObject: function(classid) { try { return new ActiveXObject(classid); } catch (ex) { return null; } }, existsFFPlugin: function() { var plugins = navigator.mimeTypes["application/pdf"]; var plugin = plugins != null ? plugins.enabledPlugin : null; return ((plugin) && (plugin.description.indexOf("Adobe") != -1) && ((plugin.description.indexOf("Version") == -1 || parseFloat(plugin.description.split("Version")[1]) >= 6))); }, getFrame: function() { this.ensurePrintFrame(); return this.printFrame; }, getFrameRecreated: function() { if (this.printFrame != null) { var frameElement = document.getElementById("DXPrinter"); document.body.removeChild(frameElement); this.printFrame = null; } return this.getFrame(); }, mergeProperties: function(properties) { for (var name in properties) { this[name] = properties[name]; } }, print: function(result, className) { this.ensurePrintElement(className); this.fillPrintElement(result); if (__aspxIE && this.printFrame.document.readyState != "complete") { var func = function(printHelper) { return function() { if (this.readyState == "complete") printHelper.printCore(); } } this.printFrame.document.onreadystatechange = func(this); } else this.printCore(); }, printCore: function() { if (this.printFrame != null) { var style; if (__aspxIE && __aspxBrowserVersion >= 7) { style = _aspxGetElementById("DXRPrintHideContent"); if (style) style.styleSheet.disabled = false; } this.printFrame.focus(); this.printFrame.print(); if (__aspxIE && __aspxBrowserVersion >= 7 && style) style.styleSheet.disabled = true; } }, fillPrintElement: function(content) { var printDocument = this.printFrame.document; printDocument.open("text/html", "replace"); printDocument.write(content); printDocument.close(); }, ensurePrintElement: function(className) { this.ensurePrintFrame(); }, ensurePrintFrame: function() { if (this.printFrame == null) { this.printFrame = window.frames[this.createFrameElement("DXPrinter").id]; } }, createFrameElement: function(name) { var f = document.createElement("iframe"); f.frameBorder = "0"; f.style.overflow = "hidden"; var frameSize = __aspxSafari ? "1px" : "0px"; f.style.width = frameSize; f.style.height = frameSize; f.name = name; f.id = name; document.body.appendChild(f); return f; } }); } /* playback timings (ms): RedisCDXSource: 7.524 load_resource: 328.224 exclusion.robots.policy: 0.202 captures_list: 128.224 CDXLines.iter: 22.32 (3) LoadShardBlock: 93.82 (3) PetaboxLoader3.datanode: 180.161 (4) PetaboxLoader3.resolve: 216.374 exclusion.robots: 0.217 esindex: 0.011 */