define(["./common/servicelocator.js","./emby-elements/emby-button/paper-icon-button-light.js"],function(_servicelocator,_paperIconButtonLight){var div;(div=document.createElement("div")).innerHTML='<button is="paper-icon-button-light" class="controlBoxButton minimizeButton" tabindex="-1"><i class="md-icon controlBoxButtonIcon">remove</i></button><button is="paper-icon-button-light" class="controlBoxButton maximizeButton" tabindex="-1"><i class="md-icon controlBoxButtonIcon">crop_square</i></button><button is="paper-icon-button-light" class="controlBoxButton appExitButton" tabindex="-1"><i class="md-icon controlBoxButtonIcon">close</i></button>',div.classList.add("controlBox"),document.querySelector(".windowDragRegion").appendChild(div),document.querySelector(".appExitButton").addEventListener("click",function(){_servicelocator.appHost.exit()}),document.querySelector(".minimizeButton").addEventListener("click",function(){_servicelocator.appHost.setWindowState("Minimized")}),document.querySelector(".maximizeButton").addEventListener("click",function(){"Normal"===_servicelocator.appHost.getWindowState()?_servicelocator.appHost.setWindowState("Maximized"):_servicelocator.appHost.setWindowState("Normal")})});