homebridge-config-ui-x 5.12.1-beta.8 → 5.12.1-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/package.json +1 -1
  2. package/public/{chunk-Y2KMEFIC.js → chunk-2WY7OHS3.js} +1 -1
  3. package/public/{chunk-GCBDS3GC.js → chunk-5VQ42S62.js} +1 -1
  4. package/public/{chunk-QIA4NWRZ.js → chunk-ABEGZR4S.js} +1 -1
  5. package/public/{chunk-3NFIJAVV.js → chunk-B5VZPCMG.js} +1 -1
  6. package/public/{chunk-ILSKYQPT.js → chunk-BG5R3K3W.js} +1 -1
  7. package/public/{chunk-VLOR45KQ.js → chunk-C3OHEJYI.js} +1 -1
  8. package/public/{chunk-5QV4AFTV.js → chunk-DFIU7YL4.js} +1 -1
  9. package/public/{chunk-IFDM5E2G.js → chunk-DLFCGYGB.js} +1 -1
  10. package/public/{chunk-QJZKXCTT.js → chunk-DZHTCVQ3.js} +1 -1
  11. package/public/{chunk-TQLAUKPX.js → chunk-E773VJLI.js} +1 -1
  12. package/public/{chunk-L2CC3C2O.js → chunk-END6WICU.js} +1 -1
  13. package/public/{chunk-5HBMNH3H.js → chunk-EOQA6LYA.js} +1 -1
  14. package/public/{chunk-XGDK3N5D.js → chunk-ESCWTBUZ.js} +1 -1
  15. package/public/{chunk-BXHRVU6R.js → chunk-EYMA3MVV.js} +1 -1
  16. package/public/{chunk-RZDYLE7I.js → chunk-GEK4M54S.js} +1 -1
  17. package/public/{chunk-TILWVCNC.js → chunk-GZD66OFT.js} +1 -1
  18. package/public/{chunk-7CUUFGVO.js → chunk-IB247UL5.js} +1 -1
  19. package/public/{chunk-PQTJEZPB.js → chunk-ICKLYQ7C.js} +2 -2
  20. package/public/{chunk-YKKWB4CO.js → chunk-IMI2RZ46.js} +1 -1
  21. package/public/{chunk-FTKW2K5C.js → chunk-IZWQYACB.js} +1 -1
  22. package/public/{chunk-HU77Q72N.js → chunk-JJGNR7WT.js} +1 -1
  23. package/public/{chunk-AHP7QTOZ.js → chunk-JMPDHTJK.js} +1 -1
  24. package/public/{chunk-EGU3464G.js → chunk-JP5PZ43M.js} +1 -1
  25. package/public/{chunk-5RVYAZX5.js → chunk-JRGRN6QD.js} +1 -1
  26. package/public/{chunk-MZ3VFGHZ.js → chunk-LABZFZLD.js} +1 -1
  27. package/public/{chunk-XXVKRPGV.js → chunk-MBLEJVQV.js} +1 -1
  28. package/public/{chunk-OJHJQUWN.js → chunk-MGXPEQE7.js} +1 -1
  29. package/public/{chunk-L6HJRDN2.js → chunk-NT7IQCMH.js} +1 -1
  30. package/public/{chunk-XKDAPCBY.js → chunk-OMEQ6FGM.js} +1 -1
  31. package/public/{chunk-5ZOCCWK4.js → chunk-OX22563K.js} +1 -1
  32. package/public/{chunk-TGO22LD4.js → chunk-PE2GX5FN.js} +1 -1
  33. package/public/{chunk-NUELHUTK.js → chunk-PIUE42YY.js} +1 -1
  34. package/public/{chunk-XDDHMABU.js → chunk-PJYTYQ2O.js} +1 -1
  35. package/public/{chunk-AJOSXNZD.js → chunk-QTJHXXNA.js} +1 -1
  36. package/public/{chunk-M4HMWZLV.js → chunk-R6GUMZUN.js} +1 -1
  37. package/public/{chunk-MWE467IB.js → chunk-SHCRZWO6.js} +1 -1
  38. package/public/{chunk-I5UU2IJZ.js → chunk-SNF4UEIW.js} +1 -1
  39. package/public/{chunk-AE4N4VVU.js → chunk-SSWIXX3X.js} +1 -1
  40. package/public/{chunk-NVT3NZOF.js → chunk-U42INEHF.js} +1 -1
  41. package/public/{chunk-U3WYF2L2.js → chunk-UWIOFP4B.js} +1 -1
  42. package/public/{chunk-2AOJ6IEA.js → chunk-UZZUODGJ.js} +1 -1
  43. package/public/index.html +1 -1
  44. package/public/{main-YHQ3GPK2.js → main-KLJYWDOJ.js} +1 -1
@@ -1,4 +1,4 @@
1
- import{a as u,b as p,c as w}from"./chunk-Q2RBJQKF.js";import{a as d}from"./chunk-5ZOCCWK4.js";import{F as c,R as l,X as f,aa as a,d as h}from"./chunk-JJ5CEM72.js";var B=(()=>{class s{$ws=a(d);io;fitAddon;webLinksAddon;resize;elementResize;pluginName;searchFilter=null;logBuffer=[];maxBufferSize=1e3;destroy$=new h;term;startTerminal(e,r={},o,F){this.pluginName=F,this.elementResize=o,this.io=this.$ws.connectToNamespace("log"),this.fitAddon=new u,this.webLinksAddon=new p,this.term=new w(r),this.term.loadAddon(this.fitAddon),this.term.loadAddon(this.webLinksAddon),this.resize=new h,this.term.open(e.nativeElement),setTimeout(()=>{this.fitAddon.fit()}),this.io.connected.pipe(l(this.destroy$)).subscribe(()=>{this.term.reset(),this.logBuffer=[],this.io.socket.emit("tail-log",{cols:this.term.cols,rows:this.term.rows})}),this.io.socket.connected&&this.io.socket.emit("tail-log",{cols:this.term.cols,rows:this.term.rows}),this.io.socket.on("disconnect",()=>{this.term.write(`
1
+ import{a as u,b as p,c as w}from"./chunk-Q2RBJQKF.js";import{a as d}from"./chunk-OX22563K.js";import{F as c,R as l,X as f,aa as a,d as h}from"./chunk-JJ5CEM72.js";var B=(()=>{class s{$ws=a(d);io;fitAddon;webLinksAddon;resize;elementResize;pluginName;searchFilter=null;logBuffer=[];maxBufferSize=1e3;destroy$=new h;term;startTerminal(e,r={},o,F){this.pluginName=F,this.elementResize=o,this.io=this.$ws.connectToNamespace("log"),this.fitAddon=new u,this.webLinksAddon=new p,this.term=new w(r),this.term.loadAddon(this.fitAddon),this.term.loadAddon(this.webLinksAddon),this.resize=new h,this.term.open(e.nativeElement),setTimeout(()=>{this.fitAddon.fit()}),this.io.connected.pipe(l(this.destroy$)).subscribe(()=>{this.term.reset(),this.logBuffer=[],this.io.socket.emit("tail-log",{cols:this.term.cols,rows:this.term.rows})}),this.io.socket.connected&&this.io.socket.emit("tail-log",{cols:this.term.cols,rows:this.term.rows}),this.io.socket.on("disconnect",()=>{this.term.write(`
2
2
  \r
3
3
  \rWebsocket failed to connect. Is the server running?
4
4
  \r
@@ -1,3 +1,3 @@
1
- import{a as lt}from"./chunk-M4HMWZLV.js";import"./chunk-Q2RBJQKF.js";import{a as k}from"./chunk-5QV4AFTV.js";import{a as ht}from"./chunk-V62JRIHN.js";import{a as M}from"./chunk-HOWYXHPL.js";import"./chunk-5ZOCCWK4.js";import{a as st}from"./chunk-SGI3H2QJ.js";import{t as at}from"./chunk-BNNKKGLH.js";import{a as G}from"./chunk-GIBUKDL3.js";import{b as U}from"./chunk-RZDYLE7I.js";import{D as rt,c as X,e as Y,f as Z,g as tt,j as et,m as ot,r as it,s as nt}from"./chunk-XKDAPCBY.js";import{b as K}from"./chunk-HU77Q72N.js";import{C as H,D as Q,F as W,I as J}from"./chunk-AHP7QTOZ.js";import{Ab as v,Dc as a,Ec as s,F as I,Fb as f,Gb as m,Hb as c,I as V,Ib as p,Oc as E,Rb as y,Xb as h,Ya as F,Za as r,Zb as d,aa as l,d as P,ea as q,ec as N,fc as z,ga as u,ha as g,ic as B,jc as A,kc as T,lc as L,ma as D,mb as $,nb as j,sa as S,uc as R,yb as b,zb as w}from"./chunk-JJ5CEM72.js";import{g as pt,h as C}from"./chunk-VJN6YUS2.js";var O=pt(ht(),1);var ut=["logoutput"],gt=["searchInput"];function ft(n,x){if(n&1){let o=y();m(0,"div",5)(1,"button",9),a(2,"translate"),a(3,"translate"),h("click",function(){u(o);let t=d();return g(t.showSearch())}),p(4,"i"),c(),m(5,"button",9),a(6,"translate"),a(7,"translate"),h("click",function(){u(o);let t=d();return g(t.downloadLogFile())}),p(8,"i",10),c(),m(9,"button",11),a(10,"translate"),a(11,"translate"),h("click",function(){u(o);let t=d();return g(t.truncateLogFile())}),p(12,"i",12),c()()}if(n&2){let o=d();r(),f("openDelay",150)("ngbTooltip",s(2,12,"form.search")),b("aria-label",s(3,14,"form.search")),r(3),A(R("fas",o.showSearchBar()?" primary-text":""," fa-search")),r(),f("openDelay",150)("ngbTooltip",s(6,16,"form.button_download")),b("aria-label",s(7,18,"form.button_download")),r(4),f("openDelay",150)("ngbTooltip",s(10,20,"form.button_delete")),b("aria-label",s(11,22,"form.button_delete"))}}function bt(n,x){if(n&1){let o=y();m(0,"button",18),a(1,"translate"),h("click",function(){u(o);let t=d(2);return g(t.onClearSearch())}),p(2,"i",19),c()}n&2&&b("aria-label",s(1,1,"form.button_clear"))}function _t(n,x){n&1&&(m(0,"span",17),T(1),a(2,"translate"),c()),n&2&&(r(),L(s(2,1,"common.labels.beta")))}function wt(n,x){if(n&1){let o=y();m(0,"div",6)(1,"div",13)(2,"form",14),h("ngSubmit",function(){u(o);let t=d();return g(t.onSubmit(t.form.value))}),p(3,"input",15,1),a(5,"translate"),w(6,bt,3,3,"button",16)(7,_t,3,3,"span",17),c()()()}if(n&2){let o,e=d();r(2),f("formGroup",e.form),r(),B("is-invalid",e.searchInputInvalid),f("placeholder",s(5,5,"logs.placeholder_search_logs")),r(3),v((o=e.form.get("query"))!=null&&o.value?6:7)}}var Nt=(()=>{class n{destroyRef=l(D);injector=l(q);$api=l(J);$auth=l(U);$log=l(lt);$modal=l(at);$settings=l(K);$toastr=l(W);$translate=l(H);termTarget=E("logoutput");searchInput=E("searchInput");resizeEvent=new P;isAdmin=this.$auth.user.admin;showSearchBar=S(!1);showExitButton=S(!1);form=new tt({query:new et("")});get searchInputInvalid(){let o=(this.form.get("query")?.value||"").trim();return o.length>0&&o.length<3}onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){let o=this.$translate.instant("menu.linux.label_logs");if(this.$settings.setPageTitle(o),window.document.querySelector("body").classList.add("bg-black"),this.$settings.actualLightingMode==="light"){window.document.querySelector("body").classList.add("light-mode");let e=this.termTarget()?.nativeElement;e&&e.classList.add("light-mode")}this.$log.startTerminal(this.termTarget(),{allowProposedApi:!0},this.resizeEvent),this.form.get("query")?.valueChanges.pipe(I(500),V(),G(this.destroyRef)).subscribe(e=>{let t=e||"",i=t.trim();i!==t&&this.form.get("query")?.setValue(i,{emitEvent:!1}),i.length>=3?(this.showExitButton.set(!0),this.$log.setSearchFilter(i),this.$log.scrollToBottom()):i.length<3&&this.showExitButton()&&(this.showExitButton.set(!1),this.$log.clearSearchFilter(),this.$log.scrollToBottom())})}showSearch(){if(this.showSearchBar())this.showSearchBar.set(!1),this.showExitButton.set(!1),this.form.setValue({query:""}),this.$log.clearSearchFilter();else{this.showSearchBar.set(!0);let o=this.searchInput();o&&setTimeout(()=>o.nativeElement.focus(),10)}setTimeout(()=>this.resizeEvent.next(void 0),10),this.$log.scrollToBottom()}onSubmit(o){let e=(o.query||"").trim();!e.length||e.length<3?(e.length||this.showSearchBar.set(!1),this.form.setValue({query:""}),this.showExitButton.set(!1),this.$log.clearSearchFilter()):(this.showExitButton.set(!0),this.$log.setSearchFilter(e)),this.$log.scrollToBottom()}onClearSearch(){this.form.setValue({query:""}),this.showExitButton.set(!1),this.$log.clearSearchFilter(),this.$log.scrollToBottom()}canDeactivate(o){return this.$settings.actualLightingMode!=="light"?(window.document.querySelector("body").classList.remove("bg-black"),Promise.resolve(!0)):(this.showSearchBar()&&this.showSearchBar.set(!1),window.document.querySelector("body").classList.remove("light-mode"),new Promise(e=>{let t=o&&(o.includes("/platform-tools/terminal")||o.includes("/logs")),i=this.termTarget()?.nativeElement;i&&i.classList.add("fade-out"),t?setTimeout(()=>{e(!0)},250):(setTimeout(()=>{window.document.querySelector("body").classList.remove("bg-black")},250),setTimeout(()=>{e(!0)},500))}))}ngOnDestroy(){window.document.querySelector("body").classList.remove("light-mode"),this.resizeEvent.complete(),this.$log.destroyTerminal()}downloadLogFile(){return C(this,null,function*(){let o=$([{provide:M,useValue:{title:this.$translate.instant("logs.title_download_log_file"),message:this.$translate.instant("logs.download_warning"),confirmButtonLabel:this.$translate.instant("form.button_download"),faIconClass:"fas fa-user-secret primary-text"}}],this.injector),e=this.$modal.open(k,{size:"lg",backdrop:"static",injector:o});try{yield e.result;try{let t=yield this.$api.get("/platform-tools/hb-service/log/download",{observe:"response",responseType:"blob"}),i=this.$log.getSearchFilter();if(i){let ct=(yield t.body.text()).split(`
1
+ import{a as lt}from"./chunk-R6GUMZUN.js";import"./chunk-Q2RBJQKF.js";import{a as k}from"./chunk-DFIU7YL4.js";import{a as ht}from"./chunk-V62JRIHN.js";import{a as M}from"./chunk-HOWYXHPL.js";import"./chunk-OX22563K.js";import{a as st}from"./chunk-SGI3H2QJ.js";import{t as at}from"./chunk-BNNKKGLH.js";import{a as G}from"./chunk-GIBUKDL3.js";import{b as U}from"./chunk-GEK4M54S.js";import{D as rt,c as X,e as Y,f as Z,g as tt,j as et,m as ot,r as it,s as nt}from"./chunk-OMEQ6FGM.js";import{b as K}from"./chunk-JJGNR7WT.js";import{C as H,D as Q,F as W,I as J}from"./chunk-JMPDHTJK.js";import{Ab as v,Dc as a,Ec as s,F as I,Fb as f,Gb as m,Hb as c,I as V,Ib as p,Oc as E,Rb as y,Xb as h,Ya as F,Za as r,Zb as d,aa as l,d as P,ea as q,ec as N,fc as z,ga as u,ha as g,ic as B,jc as A,kc as T,lc as L,ma as D,mb as $,nb as j,sa as S,uc as R,yb as b,zb as w}from"./chunk-JJ5CEM72.js";import{g as pt,h as C}from"./chunk-VJN6YUS2.js";var O=pt(ht(),1);var ut=["logoutput"],gt=["searchInput"];function ft(n,x){if(n&1){let o=y();m(0,"div",5)(1,"button",9),a(2,"translate"),a(3,"translate"),h("click",function(){u(o);let t=d();return g(t.showSearch())}),p(4,"i"),c(),m(5,"button",9),a(6,"translate"),a(7,"translate"),h("click",function(){u(o);let t=d();return g(t.downloadLogFile())}),p(8,"i",10),c(),m(9,"button",11),a(10,"translate"),a(11,"translate"),h("click",function(){u(o);let t=d();return g(t.truncateLogFile())}),p(12,"i",12),c()()}if(n&2){let o=d();r(),f("openDelay",150)("ngbTooltip",s(2,12,"form.search")),b("aria-label",s(3,14,"form.search")),r(3),A(R("fas",o.showSearchBar()?" primary-text":""," fa-search")),r(),f("openDelay",150)("ngbTooltip",s(6,16,"form.button_download")),b("aria-label",s(7,18,"form.button_download")),r(4),f("openDelay",150)("ngbTooltip",s(10,20,"form.button_delete")),b("aria-label",s(11,22,"form.button_delete"))}}function bt(n,x){if(n&1){let o=y();m(0,"button",18),a(1,"translate"),h("click",function(){u(o);let t=d(2);return g(t.onClearSearch())}),p(2,"i",19),c()}n&2&&b("aria-label",s(1,1,"form.button_clear"))}function _t(n,x){n&1&&(m(0,"span",17),T(1),a(2,"translate"),c()),n&2&&(r(),L(s(2,1,"common.labels.beta")))}function wt(n,x){if(n&1){let o=y();m(0,"div",6)(1,"div",13)(2,"form",14),h("ngSubmit",function(){u(o);let t=d();return g(t.onSubmit(t.form.value))}),p(3,"input",15,1),a(5,"translate"),w(6,bt,3,3,"button",16)(7,_t,3,3,"span",17),c()()()}if(n&2){let o,e=d();r(2),f("formGroup",e.form),r(),B("is-invalid",e.searchInputInvalid),f("placeholder",s(5,5,"logs.placeholder_search_logs")),r(3),v((o=e.form.get("query"))!=null&&o.value?6:7)}}var Nt=(()=>{class n{destroyRef=l(D);injector=l(q);$api=l(J);$auth=l(U);$log=l(lt);$modal=l(at);$settings=l(K);$toastr=l(W);$translate=l(H);termTarget=E("logoutput");searchInput=E("searchInput");resizeEvent=new P;isAdmin=this.$auth.user.admin;showSearchBar=S(!1);showExitButton=S(!1);form=new tt({query:new et("")});get searchInputInvalid(){let o=(this.form.get("query")?.value||"").trim();return o.length>0&&o.length<3}onWindowResize(){this.resizeEvent.next(void 0)}ngOnInit(){let o=this.$translate.instant("menu.linux.label_logs");if(this.$settings.setPageTitle(o),window.document.querySelector("body").classList.add("bg-black"),this.$settings.actualLightingMode==="light"){window.document.querySelector("body").classList.add("light-mode");let e=this.termTarget()?.nativeElement;e&&e.classList.add("light-mode")}this.$log.startTerminal(this.termTarget(),{allowProposedApi:!0},this.resizeEvent),this.form.get("query")?.valueChanges.pipe(I(500),V(),G(this.destroyRef)).subscribe(e=>{let t=e||"",i=t.trim();i!==t&&this.form.get("query")?.setValue(i,{emitEvent:!1}),i.length>=3?(this.showExitButton.set(!0),this.$log.setSearchFilter(i),this.$log.scrollToBottom()):i.length<3&&this.showExitButton()&&(this.showExitButton.set(!1),this.$log.clearSearchFilter(),this.$log.scrollToBottom())})}showSearch(){if(this.showSearchBar())this.showSearchBar.set(!1),this.showExitButton.set(!1),this.form.setValue({query:""}),this.$log.clearSearchFilter();else{this.showSearchBar.set(!0);let o=this.searchInput();o&&setTimeout(()=>o.nativeElement.focus(),10)}setTimeout(()=>this.resizeEvent.next(void 0),10),this.$log.scrollToBottom()}onSubmit(o){let e=(o.query||"").trim();!e.length||e.length<3?(e.length||this.showSearchBar.set(!1),this.form.setValue({query:""}),this.showExitButton.set(!1),this.$log.clearSearchFilter()):(this.showExitButton.set(!0),this.$log.setSearchFilter(e)),this.$log.scrollToBottom()}onClearSearch(){this.form.setValue({query:""}),this.showExitButton.set(!1),this.$log.clearSearchFilter(),this.$log.scrollToBottom()}canDeactivate(o){return this.$settings.actualLightingMode!=="light"?(window.document.querySelector("body").classList.remove("bg-black"),Promise.resolve(!0)):(this.showSearchBar()&&this.showSearchBar.set(!1),window.document.querySelector("body").classList.remove("light-mode"),new Promise(e=>{let t=o&&(o.includes("/platform-tools/terminal")||o.includes("/logs")),i=this.termTarget()?.nativeElement;i&&i.classList.add("fade-out"),t?setTimeout(()=>{e(!0)},250):(setTimeout(()=>{window.document.querySelector("body").classList.remove("bg-black")},250),setTimeout(()=>{e(!0)},500))}))}ngOnDestroy(){window.document.querySelector("body").classList.remove("light-mode"),this.resizeEvent.complete(),this.$log.destroyTerminal()}downloadLogFile(){return C(this,null,function*(){let o=$([{provide:M,useValue:{title:this.$translate.instant("logs.title_download_log_file"),message:this.$translate.instant("logs.download_warning"),confirmButtonLabel:this.$translate.instant("form.button_download"),faIconClass:"fas fa-user-secret primary-text"}}],this.injector),e=this.$modal.open(k,{size:"lg",backdrop:"static",injector:o});try{yield e.result;try{let t=yield this.$api.get("/platform-tools/hb-service/log/download",{observe:"response",responseType:"blob"}),i=this.$log.getSearchFilter();if(i){let ct=(yield t.body.text()).split(`
2
2
  `).filter(dt=>dt.replace(/\x1b\[[0-9;]*m/g,"").toLowerCase().includes(i.toLowerCase())),mt=new Blob([ct.join(`
3
3
  `)],{type:"text/plain"});(0,O.saveAs)(mt,"homebridge.log.txt")}else(0,O.saveAs)(t.body,"homebridge.log.txt")}catch(t){let i;try{if(t&&typeof t=="object"&&"error"in t){let _=yield t.error.text();i=JSON.parse(_).message}}catch(_){console.error(_)}this.$toastr.error(i||this.$translate.instant("logs.download.error"),this.$translate.instant("toast.title_error"))}}catch{}})}truncateLogFile(){return C(this,null,function*(){let o=$([{provide:M,useValue:{title:this.$translate.instant("logs.title_truncate_log_file"),message:this.$translate.instant("logs.truncate_log_warning"),confirmButtonLabel:this.$translate.instant("form.button_delete"),confirmButtonClass:"btn-danger",faIconClass:"fas fa-circle-exclamation primary-text"}}],this.injector),e=this.$modal.open(k,{size:"lg",backdrop:"static",injector:o});try{yield e.result;try{yield this.$api.put("/platform-tools/hb-service/log/truncate",{}),this.$toastr.success(this.$translate.instant("logs.log_file_truncated"),this.$translate.instant("toast.title_success")),this.$log.term.clear()}catch(t){console.error(t);let i=t&&typeof t=="object"&&"error"in t&&t.error&&typeof t.error=="object"&&"message"in t.error?String(t.error.message):this.$translate.instant("logs.truncate.error");this.$toastr.error(i,this.$translate.instant("toast.title_error"))}}catch{}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=j({type:n,selectors:[["ng-component"]],viewQuery:function(e,t){e&1&&N(t.termTarget,ut,5)(t.searchInput,gt,5),e&2&&z(2)},hostBindings:function(e,t){e&1&&h("resize",function(){return t.onWindowResize()},F)},decls:10,vars:9,consts:[["logoutput",""],["searchInput",""],[1,"row","mb-3"],[1,"col-6"],[1,"primary-text","m-0"],[1,"col-6","text-end"],[1,"row"],[1,"flex-column","d-flex","align-items-stretch"],["id","log-output",1,"align-self-end","w-100","h-100","mb-1"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-2",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-download"],["container","body","placement","bottom","triggers","hover",1,"btn","btn-elegant","my-0","me-0",3,"click","openDelay","ngbTooltip"],[1,"fas","fa-trash-alt"],[1,"col-md-12"],["novalidate","",3,"ngSubmit","formGroup"],["type","text","id","logs-search","formControlName","query",1,"search-bar",3,"placeholder"],["type","button",1,"search-bar-clear"],[1,"search-bar-badge","badge","badge-primary","badge-beta"],["type","button",1,"search-bar-clear",3,"click"],["aria-hidden","true",1,"fas","fa-square-xmark"]],template:function(e,t){e&1&&(m(0,"div",2)(1,"div",3)(2,"h3",4),T(3),a(4,"translate"),c()(),w(5,ft,13,24,"div",5),c(),w(6,wt,8,7,"div",6),m(7,"div",7),p(8,"div",8,0),c()),e&2&&(r(3),L(s(4,7,"menu.linux.label_logs")),r(2),v(t.isAdmin?5:-1),r(),v(t.showSearchBar()?6:-1),r(),B("adjust-for-mobile",!t.showSearchBar())("adjust-for-mobile-with-search",t.showSearchBar()))},dependencies:[st,rt,ot,X,Y,Z,nt,it,Q],styles:["body.light-mode{transition:background-color .25s ease-in-out}#log-output.light-mode[_ngcontent-%COMP%]{opacity:0;animation:_ngcontent-%COMP%_fadeIn .25s ease-in-out .25s forwards}#log-output.light-mode.fade-out[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeOut .25s ease-in-out forwards!important;opacity:1}@keyframes _ngcontent-%COMP%_fadeIn{to{opacity:1}}@keyframes _ngcontent-%COMP%_fadeOut{to{opacity:0}}.search-bar[_ngcontent-%COMP%]{background-color:#111!important;color:#999!important;border:0 #242424!important}@media(hover:hover){.search-bar[_ngcontent-%COMP%]:hover{border:1px solid #242424!important}}.search-bar[_ngcontent-%COMP%]:focus{border:1px solid #242424!important;box-shadow:inherit!important;color:#eee!important}.search-bar[_ngcontent-%COMP%]::placeholder{color:#636363!important;opacity:1!important}.search-bar.is-invalid[_ngcontent-%COMP%]{border:1px solid #d32f2f!important;box-shadow:0 1px #d32f2f!important}@media(hover:hover){.search-bar.is-invalid[_ngcontent-%COMP%]:hover{border:1px solid #d32f2f!important;box-shadow:0 1px #d32f2f!important}}.search-bar.is-invalid[_ngcontent-%COMP%]:focus{border:1px solid #d32f2f!important;box-shadow:0 1px #d32f2f!important}.search-bar-badge[_ngcontent-%COMP%]{position:absolute;right:10px;top:16px;font-size:.75rem;padding:.25em .5em}.adjust-for-mobile-with-search[_ngcontent-%COMP%]{height:calc(100% - 97px);width:calc(100% + 17px);overflow:hidden}@media(max-width:767px){.adjust-for-mobile-with-search[_ngcontent-%COMP%]{height:calc(100% - 125px);width:calc(100% + 16px)}}"]})}return n})();export{Nt as LogsComponent};