import {g as gn,h as hr}from'./chunk-CpiqmC1s.js';import {c,a}from'./chunk-BDoWEgDz.js';import {J,a5 as fh,cI as p,c as tS,G as vl,an as CD,xx as p$1,cN as g,bE as ff,aq as Sr,ah as ot,w as wo,M as ie,ao as yD,xy as j,f as QT,a0 as ks,a3 as Py,a2 as Uu,a4 as Sy,bu as dy}from'./main-WUGO6e7n.js';import'./chunk-CG1krqJx.js';import'./chunk-C376ttjU.js';import'./chunk-4Rs3CU3G.js';import'./chunk-D-ZPFpWw.js';import'./chunk-22oEX_gu.js';import'./chunk-CrrpxdQF.js';import'./chunk-B2bJFRol.js';import'./chunk-BKHl3Og6.js';import'./chunk-4dNjMamm.js';import'./chunk-CfiJ14IU.js';import'./chunk-KghqFjfJ.js';import'./chunk-BadIw3lc.js';import'./chunk-wP_7RXpA.js';import'./chunk-CXS_ax_f.js';import'./chunk-DGtGwlAK.js';var K,T=J(()=>{fh();c();p();gn();tS();vl();CD();p$1();K=(()=>{class i extends g{constructor(e,n,o){super(),this.route=e,this.displayModeService=n,this.connectionHandbookNavigationService=o,this.permissions=new a,this.displayModeService.isKioskMode=!0;}ngOnInit(){this.route.params.pipe(ff(this.destroyed$),Sr(e=>!!e.id)).subscribe(e=>this.handbookId=e.id),this.route.queryParams.pipe(ff(this.destroyed$)).subscribe(e=>this.pageId=e.page||this.handbookId),this.route.data.pipe(ff(this.destroyed$),ot(e=>e.permissions)).subscribe(e=>this.permissions=e);}onPageChange(e){this.connectionHandbookNavigationService.navigateToDocumentation(this.handbookId,e,!1);}static{this.\u0275fac=function(n){return new(n||i)(wo(ie),wo(yD),wo(j))};}static{this.\u0275cmp=QT({type:i,selectors:[["ng-component"]],features:[dy],decls:1,vars:5,consts:[[1,"block","h-full","min-h-0",3,"pageChange","handbookId","pageId","canEditHandbook","canDeleteHandbook","allowOpenInNewTab"]],template:function(n,o){n&1&&(ks(0,"dvls-doc-handbook-dashboard",0),Py("pageChange",function(C){return o.onPageChange(C)}),Uu()),n&2&&Sy("handbookId",o.handbookId)("pageId",o.pageId)("canEditHandbook",o.permissions?.canEditHandbook)("canDeleteHandbook",o.permissions?.canDeleteHandbook)("allowOpenInNewTab",!1);},dependencies:[hr],encapsulation:2,changeDetection:1});}}return i})();});T();export{K as ConnectionDocumentationComponent};