(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{jaWL:function(n,t,e){"use strict";e.r(t);var o=e("CcnG"),i=function(){return function(){}}(),l=e("pMnS"),r=e("buEt"),s=e("Gi3i"),u=e("Wb/s"),c=e("xVS5"),a=e("+WIb");u.Terminal.applyAddon(c);var d=function(){function n(n){this.$ws=n,this.io=this.$ws.connectToNamespace("log"),this.term=new u.Terminal,this.resize=new r.a}return n.prototype.ngOnInit=function(){var n=this;window.document.querySelector("body").classList.add("bg-black"),this.termTarget=document.getElementById("log-output"),this.term.open(this.termTarget),this.term.fit(),this.io.connected.subscribe(function(){n.io.socket.emit("tail-log",{cols:n.term.cols,rows:n.term.rows})}),this.io.socket.on("disconnect",function(){n.term.write("Websocket failed to connect. Is the server running?\n\r\n\r")}),this.resize.pipe(Object(s.a)(500)).subscribe(function(t){n.io.socket.emit("resize",t)}),this.io.socket.on("stdout",function(t){n.term.write(t)}),this.term.on("resize",function(t){n.resize.next(t)})},n.prototype.onWindowResize=function(n){this.term.fit()},n.prototype.ngOnDestroy=function(){window.document.querySelector("body").classList.remove("bg-black"),this.io.end(),this.term.dispose()},n}(),m=o["\u0275crt"]({encapsulation:2,styles:[],data:{}});function p(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"div",[["class","flex-column d-flex align-items-stretch h-100"]],null,null,null,null,null)),(n()(),o["\u0275eld"](1,0,null,null,0,"div",[["class","terminal align-self-end w-100 h-100 mb-1"],["id","log-output"]],null,null,null,null,null))],null,null)}function f(n){return o["\u0275vid"](0,[(n()(),o["\u0275eld"](0,0,null,null,1,"app-logs",[],null,[["window","resize"]],function(n,t,e){var i=!0;return"window:resize"===t&&(i=!1!==o["\u0275nov"](n,1).onWindowResize(e)&&i),i},p,m)),o["\u0275did"](1,245760,null,0,d,[a.a],null,null)],function(n,t){n(t,1,0)},null)}var w=o["\u0275ccf"]("app-logs",d,f,{},{},[]),g=e("Ip0R"),h=e("ZYCi"),b=function(){return function(){}}();e.d(t,"LogsModuleNgFactory",function(){return v});var v=o["\u0275cmf"](i,[],function(n){return o["\u0275mod"]([o["\u0275mpd"](512,o.ComponentFactoryResolver,o["\u0275CodegenComponentFactoryResolver"],[[8,[l.a,w]],[3,o.ComponentFactoryResolver],o.NgModuleRef]),o["\u0275mpd"](4608,g.NgLocalization,g.NgLocaleLocalization,[o.LOCALE_ID,[2,g["\u0275angular_packages_common_common_a"]]]),o["\u0275mpd"](1073742336,g.CommonModule,g.CommonModule,[]),o["\u0275mpd"](1073742336,h.p,h.p,[[2,h.u],[2,h.l]]),o["\u0275mpd"](1073742336,b,b,[]),o["\u0275mpd"](1073742336,i,i,[]),o["\u0275mpd"](1024,h.j,function(){return[[{path:"",component:d}]]},[])])})}}]);