<?php

/**
 * Debug Bar screen template.
 *
 * It uses Silk Icons created by Mark James and released under Creative Commons Attribution 2.5 License.
 *
 * This file is part of the Nette Framework (http://nette.org)
 * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 *
 * @param      array     $panels
 * @return     void
 */

namespace Nette\Diagnostics;

use Nette;

?>




<!-- Nette Debug Bar -->

<?php ob_start() ?>
&nbsp;

<style id="nette-debug-style" class="nette-debug">#nette-debug{display:none;direction:ltr}body#nette-debug{margin:5px 5px 0;display:block}body #nette-debug{position:absolute;bottom:0;right:0}#nette-debug *{font:inherit;color:inherit;background:transparent;margin:0;padding:0;border:none;text-align:inherit;list-style:inherit;opacity:1;border-radius:0;box-shadow:none}#nette-debug b,#nette-debug strong{font-weight:bold}#nette-debug i,#nette-debug em{font-style:italic}#nette-debug a{color:#125EAE;text-decoration:none}#nette-debug .nette-panel a{color:#125EAE;text-decoration:none}#nette-debug a:hover,#nette-debug a:active,#nette-debug a:focus{background-color:#125EAE;color:white}#nette-debug .nette-panel h2,#nette-debug .nette-panel h3,#nette-debug .nette-panel p{margin:.4em 0}#nette-debug .nette-panel table{border-collapse:collapse;background:#FDF5CE}#nette-debug .nette-panel tr:nth-child(2n) td{background:#F7F0CB}#nette-debug .nette-panel td,#nette-debug .nette-panel th{border:1px solid #E6DFBF;padding:2px 5px;vertical-align:top;text-align:left}#nette-debug .nette-panel th{background:#F4F3F1;color:#655E5E;font-size:90%;font-weight:bold}#nette-debug .nette-panel pre,#nette-debug .nette-panel code{font:9pt/1.5 Consolas,monospace}#nette-debug table .nette-right{text-align:right}#nette-debug-bar{font:normal normal 12px/21px Tahoma,sans-serif;color:#333;border:1px solid #c9c9c9;background:#EDEAE0 url('data:image/png;base64,R0lGODlhAQAVALMAAOTh1/Px6eHe1fHv5e/s4vLw6Ofk2u3q4PPw6PPx6PDt5PLw5+Dd1OXi2Ojm3Orn3iH5BAAAAAAALAAAAAABABUAAAQPMISEyhpYkfOcaQAgCEwEADs=') top;position:fixed;right:0;bottom:0;overflow:auto;min-height:21px;min-width:50px;white-space:nowrap;z-index:30000;opacity:.9;border-radius:3px;box-shadow:1px 1px 10px rgba(0,0,0,.15)}#nette-debug-bar:hover{opacity:1}#nette-debug-bar ul{list-style:none none;margin-left:4px;clear:left}#nette-debug-bar li{float:left}#nette-debug-bar ul.nette-previous li{font-size:90%;opacity:.6;background:#F5F3EE}#nette-debug-bar ul.nette-previous li:first-child{width:45px}#nette-debug-bar img{vertical-align:middle;position:relative;top:-1px;margin-right:3px}#nette-debug-bar li a{color:#000;display:block;padding:0 4px}#nette-debug-bar li a:hover{color:black;background:#c3c1b8}#nette-debug-bar li .nette-warning{color:#D32B2B;font-weight:bold}#nette-debug-bar li>span{padding:0 4px}#nette-debug-logo{background:url('data:image/png;base64,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') 0 50% no-repeat;min-width:45px;cursor:move}#nette-debug-logo span{display:none}#nette-debug .nette-panel{font:normal normal 12px/1.5 sans-serif;background:white;color:#333;text-align:left}#nette-debug h1{font:normal normal 23px/1.4 Tahoma,sans-serif;color:#575753;margin:-5px -5px 5px;padding:0 25px 5px 5px}#nette-debug .nette-mode-peek .nette-inner,#nette-debug .nette-mode-float .nette-inner{max-width:700px;max-height:500px;overflow:auto}#nette-debug .nette-panel .nette-icons{display:none}#nette-debug .nette-mode-peek{display:none;position:fixed;right:0;bottom:0;padding:10px;min-width:150px;min-height:50px;border-radius:5px;box-shadow:1px 1px 20px rgba(102,102,102,0.36);border:1px solid rgba(0,0,0,0.1)}#nette-debug .nette-mode-peek h1{cursor:move}#nette-debug .nette-mode-float{position:fixed;right:0;bottom:0;padding:10px;min-width:150px;min-height:50px;border-radius:5px;opacity:.95;box-shadow:1px 1px 30px rgba(102,102,102,0.36);border:1px solid rgba(0,0,0,0.1)}#nette-debug .nette-focused{opacity:1}#nette-debug .nette-mode-float h1{cursor:move}#nette-debug .nette-mode-float .nette-icons{display:block;position:absolute;top:0;right:5px;font-size:18px}#nette-debug .nette-icons a{color:#575753}#nette-debug .nette-icons a:hover{color:white}#nette-debug pre.nette-dump div{padding-left:3ex}#nette-debug pre.nette-dump div div{border-left:1px solid rgba(0,0,0,.1);margin-left:.5ex}#nette-debug pre.nette-dump{background:#FDF5CE;padding:.4em .7em;border:1px dotted silver;overflow:auto}#nette-debug table pre.nette-dump{padding:0;margin:0;border:none}#nette-debug .nette-dump-array,#nette-debug .nette-dump-object{color:#C22}#nette-debug .nette-dump-string{color:#35D}#nette-debug .nette-dump-number{color:#090}#nette-debug .nette-dump-null,#nette-debug .nette-dump-bool{color:#850}#nette-debug .nette-dump-visibility,#nette-debug .nette-dump-hash{font-size:85%;color:#999}#nette-debug .nette-dump-indent{display:none}@media print{#nette-debug *{display:none}}.nette-collapsed{display:none}.nette-toggle,.nette-toggle-collapsed{cursor:pointer}.nette-toggle:after{content:" ▼";opacity:.4}.nette-toggle-collapsed:after{content:" ►";opacity:.4}pre.nette-dump{color:#444;background:white}pre.nette-dump div{padding-left:3ex}pre.nette-dump div div{border-left:1px solid rgba(0,0,0,.1);margin-left:.5ex}.nette-dump-array,.nette-dump-object{color:#C22}.nette-dump-string{color:#35D}.nette-dump-number{color:#090}.nette-dump-null,.nette-dump-bool{color:#850}.nette-dump-visibility,.nette-dump-hash{font-size:85%;color:#999}.nette-dump-indent{display:none}span[data-nette-href]{border-bottom:1px dotted rgba(0,0,0,.2)}</style>

<!--[if lt IE 8]><style class="nette-debug">#nette-debug-bar img{display:none}#nette-debug-bar li{border-left:1px solid #DCD7C8;padding:0 3px}#nette-debug-logo span{background:#edeae0;display:inline}</style><![endif]-->


<script id="nette-debug-script">/*<![CDATA[*/var Nette=Nette||{};
(function(){var c=Nette.Query=function(a){if("string"===typeof a)a=this._find(document,a);else if(!a||a.nodeType||void 0===a.length||a===window)a=[a];for(var b=0,c=a.length;b<c;b++)a[b]&&(this[this.length++]=a[b])};c.factory=function(a){return new c(a)};c.prototype.length=0;c.prototype.find=function(a){return new c(this._find(this[0],a))};c.prototype._find=function(a,b){if(a&&b){if(document.querySelectorAll)return a.querySelectorAll(b);if("#"===b.charAt(0))return[document.getElementById(b.substring(1))];b=
b.split(".");var c=a.getElementsByTagName(b[0]||"*");if(b[1]){for(var d=[],f=RegExp("(^|\\s)"+b[1]+"(\\s|$)"),e=0,h=c.length;e<h;e++)f.test(c[e].className)&&d.push(c[e]);return d}return c}return[]};c.prototype.dom=function(){return this[0]};c.prototype.each=function(a){for(var b=0;b<this.length&&!1!==a.apply(this[b]);b++);return this};c.prototype.bind=function(a,b){if(document.addEventListener&&("mouseenter"===a||"mouseleave"===a)){var c=b;a="mouseenter"===a?"mouseover":"mouseout";b=function(a){for(var b=
a.relatedTarget;b;b=b.parentNode)if(b===this)return;c.call(this,a)}}return this.each(function(){var d=this,c=d.nette?d.nette:d.nette={},c=c.events=c.events||{};if(!c[a]){var e=c[a]=[],g=function(a){a.target||(a.target=a.srcElement);a.preventDefault||(a.preventDefault=function(){a.returnValue=!1});a.stopPropagation||(a.stopPropagation=function(){a.cancelBubble=!0});a.stopImmediatePropagation=function(){this.stopPropagation();b=e.length};for(var b=0;b<e.length;b++)e[b].call(d,a)};document.addEventListener?
d.addEventListener(a,g,!1):document.attachEvent&&d.attachEvent("on"+a,g)}c[a].push(b)})};c.prototype.addClass=function(a){return this.each(function(){this.className=this.className.replace(/^|\s+|$/g," ").replace(" "+a+" "," ")+" "+a})};c.prototype.removeClass=function(a){return this.each(function(){this.className=this.className.replace(/^|\s+|$/g," ").replace(" "+a+" "," ")})};c.prototype.hasClass=function(a){return this[0]&&-1<this[0].className.replace(/^|\s+|$/g," ").indexOf(" "+a+" ")};c.prototype.show=
function(){c.displays=c.displays||{};return this.each(function(){var a=this.tagName;c.displays[a]||(c.displays[a]=(new c(document.body.appendChild(document.createElement(a)))).css("display"));this.style.display=c.displays[a]})};c.prototype.hide=function(){return this.each(function(){this.style.display="none"})};c.prototype.css=function(a){if(this[0]&&this[0].currentStyle)return this[0].currentStyle[a];if(this[0]&&window.getComputedStyle)return document.defaultView.getComputedStyle(this[0],null).getPropertyValue(a)};
c.prototype.data=function(){if(this[0])return this[0].nette?this[0].nette:this[0].nette={}};c.prototype.val=function(){var a=this[0];if(a)if(a.nodeName){if("select"===a.nodeName.toLowerCase()){var b=a.selectedIndex,c=a.options;if(0>b)return null;if("select-one"===a.type)return c[b].value;b=0;a=[];for(d=c.length;b<d;b++)c[b].selected&&a.push(c[b].value);return a}if("checkbox"===a.type)return a.checked;if(a.value)return a.value.replace(/^\s+|\s+$/g,"")}else{for(var b=0,d=a.length;b<d;b++)if(this[b].checked)return this[b].value;
return null}};c.prototype._trav=function(a,b,g){for(b=b.split(".");a&&(1!==a.nodeType||b[0]&&a.tagName.toLowerCase()!==b[0]||b[1]&&!(new c(a)).hasClass(b[1]));)a=a[g];return new c(a||[])};c.prototype.closest=function(a){return this._trav(this[0],a,"parentNode")};c.prototype.prev=function(a){return this._trav(this[0]&&this[0].previousSibling,a,"previousSibling")};c.prototype.next=function(a){return this._trav(this[0]&&this[0].nextSibling,a,"nextSibling")};c.prototype.offset=function(a){if(a)return this.each(function(){for(var d=
this,b=-a.left||0,c=-a.top||0;d=d.offsetParent;)b+=d.offsetLeft,c+=d.offsetTop;this.style.left=-b+"px";this.style.top=-c+"px"});if(this[0]){for(var b=this[0],c={left:b.offsetLeft,top:b.offsetTop};b=b.offsetParent;)c.left+=b.offsetLeft,c.top+=b.offsetTop;return c}};c.prototype.position=function(a){if(a)return this.each(function(){this.nette&&this.nette.onmove&&this.nette.onmove.call(this,a);for(var b in a)this.style[b]=a[b]+"px"});if(this[0])return{left:this[0].offsetLeft,top:this[0].offsetTop,right:this[0].style.right?
parseInt(this[0].style.right,10):0,bottom:this[0].style.bottom?parseInt(this[0].style.bottom,10):0,width:this[0].offsetWidth,height:this[0].offsetHeight}};c.prototype.draggable=function(a){var b=this[0],g=document.documentElement,d;a=a||{};(a.handle?new c(a.handle):this).bind("mousedown",function(f){var e=new c(a.handle?b:this);f.preventDefault();f.stopPropagation();if(c.dragging)return g.onmouseup(f);var h=e.position(),k=a.rightEdge?h.right+f.clientX:h.left-f.clientX,l=a.bottomEdge?h.bottom+f.clientY:
h.top-f.clientY;c.dragging=!0;d=!1;g.onmousemove=function(b){b=b||event;d||(a.draggedClass&&e.addClass(a.draggedClass),a.start&&a.start(b,e),d=!0);var c={};c[a.rightEdge?"right":"left"]=a.rightEdge?k-b.clientX:b.clientX+k;c[a.bottomEdge?"bottom":"top"]=a.bottomEdge?l-b.clientY:b.clientY+l;e.position(c);return!1};g.onmouseup=function(b){d&&(a.draggedClass&&e.removeClass(a.draggedClass),a.stop&&a.stop(b||event,e));c.dragging=g.onmousemove=g.onmouseup=null;return!1}}).bind("click",function(a){d&&a.stopImmediatePropagation()});
return this}})();
(function(){var c=Nette.Query.factory,a=Nette.DebugPanel=function(a){this.id="nette-debug-panel-"+a;this.elem=c("#"+this.id)};a.PEEK="nette-mode-peek";a.FLOAT="nette-mode-float";a.WINDOW="nette-mode-window";a.FOCUSED="nette-focused";a.zIndex=2E4;a.prototype.init=function(){var a=this;this.elem.data().onmove=function(b){a.moveConstrains(this,b)};this.elem.draggable({rightEdge:!0,bottomEdge:!0,handle:this.elem.find("h1"),stop:function(){a.toFloat()}}).bind("mouseenter",function(){a.focus()}).bind("mouseleave",function(){a.blur()});
this.elem.find(".nette-icons").find("a").bind("click",function(b){"close"===this.rel?a.toPeek():a.toWindow();b.preventDefault()});this.restorePosition()};a.prototype.is=function(a){return this.elem.hasClass(a)};a.prototype.focus=function(b){var c=this.elem;this.is(a.WINDOW)?c.data().win.focus():(clearTimeout(c.data().displayTimeout),c.data().displayTimeout=setTimeout(function(){c.addClass(a.FOCUSED).show();c[0].style.zIndex=a.zIndex++;b&&b()},50))};a.prototype.blur=function(){var b=this.elem;b.removeClass(a.FOCUSED);
this.is(a.PEEK)&&(clearTimeout(b.data().displayTimeout),b.data().displayTimeout=setTimeout(function(){b.hide()},50))};a.prototype.toFloat=function(){this.elem.removeClass(a.WINDOW).removeClass(a.PEEK).addClass(a.FLOAT).show();this.reposition()};a.prototype.toPeek=function(){this.elem.removeClass(a.WINDOW).removeClass(a.FLOAT).addClass(a.PEEK).hide();document.cookie=this.id+"=; path=/"};a.prototype.toWindow=function(){var b=this.elem.offset();b.left+="number"===typeof window.screenLeft?window.screenLeft:
window.screenX+10;b.top+="number"===typeof window.screenTop?window.screenTop:window.screenY+50;var f=window.open("",this.id.replace(/-/g,"_"),"left="+b.left+",top="+b.top+",width="+b.width+",height="+(b.height+15)+",resizable=yes,scrollbars=yes");if(f){b=f.document;b.write('<!DOCTYPE html><meta charset="utf-8"><style>'+c("#nette-debug-style").dom().innerHTML+"</style><script>"+c("#nette-debug-script").dom().innerHTML+'\x3c/script><body id="nette-debug">');b.body.innerHTML='<div class="nette-panel nette-mode-window" id="'+
this.id+'">'+this.elem.dom().innerHTML+"</div>";var e=f.Nette.Debug.getPanel(this.id);f.Nette.Dumper.init();e.reposition();b.title=this.elem.find("h1").dom().innerHTML;var h=this;c([f]).bind("unload",function(){h.toPeek();f.close()});c(b).bind("keyup",function(a){27!==a.keyCode||(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)||f.close()});document.cookie=this.id+"=window; path=/";this.elem.hide().removeClass(a.FLOAT).removeClass(a.PEEK).addClass(a.WINDOW).data().win=f}};a.prototype.reposition=function(){if(this.is(a.WINDOW)){var b=
document.documentElement;window.resizeBy(b.scrollWidth-b.clientWidth,b.scrollHeight-b.clientHeight)}else b=this.elem.position(),b.width&&(this.elem.position({right:b.right,bottom:b.bottom}),document.cookie=this.id+"="+b.right+":"+b.bottom+"; path=/")};a.prototype.moveConstrains=function(a,b){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;b.right=Math.min(Math.max(b.right,
-0.2*a.offsetWidth),c-0.8*a.offsetWidth);b.bottom=Math.min(Math.max(b.bottom,-0.2*a.offsetHeight),h-a.offsetHeight)};a.prototype.restorePosition=function(){var b=document.cookie.match(RegExp(this.id+"=(window|(-?[0-9]+):(-?[0-9]+))"));b&&b[2]?(this.elem.position({right:b[2],bottom:b[3]}),this.toFloat()):b?this.toWindow():this.elem.addClass(a.PEEK)};var b=Nette.DebugBar=function(){};b.prototype.id="nette-debug-bar";b.prototype.init=function(){var b=c("#"+this.id),f=this;b.data().onmove=function(a){f.moveConstrains(this,
a)};b.draggable({rightEdge:!0,bottomEdge:!0,draggedClass:"nette-dragged",stop:function(){f.savePosition()}});b.find("a").bind("click",function(b){if("close"===this.rel)f.close();else if(this.rel){var c=g.getPanel(this.rel);b.shiftKey?(c.toFloat(),c.toWindow()):c.is(a.FLOAT)?c.toPeek():(c.toFloat(),c.elem.position({right:c.elem.position().right+Math.round(100*Math.random())+20,bottom:c.elem.position().bottom+Math.round(100*Math.random())+20}),c.reposition())}b.preventDefault()}).bind("mouseenter",
function(){if(this.rel&&"close"!==this.rel&&!b.hasClass("nette-dragged")){var e=g.getPanel(this.rel),f=c(this);e.focus(function(){e.is(a.PEEK)&&e.elem.position({right:e.elem.position().right-f.offset().left+e.elem.position().width-f.position().width-4+e.elem.offset().left,bottom:e.elem.position().bottom-b.offset().top+e.elem.position().height+4+e.elem.offset().top})})}}).bind("mouseleave",function(){this.rel&&("close"!==this.rel&&!b.hasClass("nette-dragged"))&&g.getPanel(this.rel).blur()});this.restorePosition()};
b.prototype.close=function(){c("#nette-debug").hide();window.opera&&c("body").show()};b.prototype.moveConstrains=function(a,b){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;b.right=Math.min(Math.max(b.right,0),c-a.offsetWidth);b.bottom=Math.min(Math.max(b.bottom,0),g-a.offsetHeight)};b.prototype.savePosition=function(){var a=c("#"+this.id).position();document.cookie=this.id+
"="+a.right+":"+a.bottom+"; path=/"};b.prototype.restorePosition=function(){var a=document.cookie.match(RegExp(this.id+"=(-?[0-9]+):(-?[0-9]+)"));a&&c("#"+this.id).position({right:a[1],bottom:a[2]})};var g=Nette.Debug={};g.init=function(){g.initResize();(new b).init();c(".nette-panel").each(function(){g.getPanel(this.id).init()})};g.getPanel=function(b){return new a(b.replace("nette-debug-panel-",""))};g.initResize=function(){c(window).bind("resize",function(){var a=c("#"+b.prototype.id);a.position({right:a.position().right,
bottom:a.position().bottom});c(".nette-panel").each(function(){g.getPanel(this.id).reposition()})})}})();
(function(){var c=Nette.Query.factory;(Nette.Dumper={}).init=function(){c(document.body).bind("click",function(a){var b;for(b=a.target;b&&(!b.getAttribute||!b.getAttribute("data-nette-href"));b=b.parentNode);if(a.ctrlKey&&b)return location.href=b.getAttribute("data-nette-href"),!1;if(!(a.shiftKey||a.altKey||a.ctrlKey||a.metaKey)){for(b=a.target;b&&(!b.tagName||"string"!==typeof b.className||!b.className.match(/\bnette-toggle(-collapsed)?\b/));b=b.parentNode);if(b){var g=c(b).hasClass("nette-toggle-collapsed"),
d=b.getAttribute("data-ref")||b.getAttribute("href",2),f=d&&"#"!==d?c(d):c(b).next(""),d=c(b).closest(".nette-panel"),e=d.position();b.className="nette-toggle"+(g?"":"-collapsed");f[g?"show":"hide"]();a.preventDefault();d.length&&(a=d.position(),d.position({right:a.right-a.width+e.width,bottom:a.bottom-a.height+e.height}))}}})}})();/*]]>*/</script>


<?php foreach ($panels as $panel): if (!$panel['panel']) continue; ?>
	<div class="nette-panel" id="nette-debug-panel-<?php echo $panel['id'] ?>">
		<?php echo $panel['panel'] ?>
		<div class="nette-icons">
			<a href="#" title="open in window">&curren;</a>
			<a href="#" rel="close" title="close window">&times;</a>
		</div>
	</div>
<?php endforeach ?>

<div id="nette-debug-bar">
	<ul>
		<li id="nette-debug-logo" title="PHP <?php echo htmlSpecialChars(PHP_VERSION . " |\n"
		. (isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] . " |\n" : '')
		. (class_exists('Nette\Framework') ? 'Nette Framework ' . Nette\Framework::VERSION . ' (' . substr(Nette\Framework::REVISION, 8) . ')' : '')) ?>">&nbsp;<span>Nette Framework</span></li>
		<?php foreach ($panels as $panel): if (!$panel['tab']) continue; ?>
		<?php if (!empty($panel['previous'])) echo '</ul><ul class="nette-previous">'; ?>
		<li><?php if ($panel['panel']): ?><a href="#" rel="<?php echo $panel['id'] ?>"><?php echo trim($panel['tab']) ?></a><?php else: echo '<span>', trim($panel['tab']), '</span>'; endif ?></li>
		<?php endforeach ?>
		<li><a href="#" rel="close" title="close debug bar">&times;</a></li>
	</ul>
</div>
<?php $output = ob_get_clean(); ?>


<script>
(function(onloadOrig) {
	window.onload = function() {
		if (typeof onloadOrig === 'function') onloadOrig();
		var debug = document.body.appendChild(document.createElement('div'));
		debug.id = 'nette-debug';
		debug.innerHTML = <?php echo json_encode(Nette\Utils\Strings::fixEncoding($output)) ?>;
		for (var i = 0, scripts = debug.getElementsByTagName('script'); i < scripts.length; i++) eval(scripts[i].innerHTML);
		Nette.Dumper.init();
		Nette.Debug.init();
		debug.style.display = 'block';
	};
})(window.onload);
</script>

<!-- /Nette Debug Bar -->
