"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[615],{4615:(T,a,i)=>{i.r(a),i.d(a,{TerminalModule:()=>g});var m=i(6895),l=i(4463),c=i(7750),u=i(7579),t=i(4650),d=i(6272);const f=["terminaloutput"],p=[{path:"",component:(()=>{class e{$terminal;termTarget;resizeEvent=new u.x;constructor(r){this.$terminal=r}onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){window.document.querySelector("body").classList.add("bg-black"),this.$terminal.startTerminal(this.termTarget,{},this.resizeEvent),this.$terminal.term.focus()}ngOnDestroy(){window.document.querySelector("body").classList.remove("bg-black"),this.$terminal.destroyTerminal()}static \u0275fac=function(n){return new(n||e)(t.Y36(d.z))};static \u0275cmp=t.Xpm({type:e,selectors:[["app-terminal"]],viewQuery:function(n,o){if(1&n&&t.Gf(f,7),2&n){let s;t.iGM(s=t.CRH())&&(o.termTarget=s.first)}},hostBindings:function(n,o){1&n&&t.NdJ("resize",function(v){return o.onWindowResize(v)},!1,t.Jf7)},decls:8,vars:3,consts:[[1,"row","mb-3"],[1,"col-12"],[1,"primary-text","m-0"],[1,"flex-column","d-flex","align-items-stretch",2,"height","calc(100% - 52px)"],["id","docker-terminal",1,"terminal","align-self-end","w-100","h-100","mb-1"],["terminaloutput",""]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h3",2),t._uU(3),t.ALo(4,"translate"),t.qZA()()(),t.TgZ(5,"div",3),t._UZ(6,"div",4,5),t.qZA()),2&n&&(t.xp6(3),t.Oqu(t.lcZ(4,1,"menu.linux.label_terminal")))},dependencies:[l.X$],encapsulation:2})}return e})()}];let h=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=t.oAB({type:e});static \u0275inj=t.cJS({imports:[c.Bz.forChild(p),c.Bz]})}return e})(),g=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=t.oAB({type:e});static \u0275inj=t.cJS({imports:[m.ez,h,l.aw.forChild()]})}return e})()}}]);