import{b as q}from"./chunk-SPNVV2KO.js";import{m as P,n as V}from"./chunk-N7PC5CHF.js";import{d as j}from"./chunk-JIDGXFMJ.js";import{j as z}from"./chunk-YJYOGSOO.js";import{ha as Q}from"./chunk-KVTHJWZA.js";import{Ab as _,Bc as M,Dc as A,Gb as w,Hb as f,Ic as d,Jc as u,Nc as N,Ob as g,Qb as I,Rb as L,Sb as a,Tb as l,Ub as F,Xb as h,Yb as D,hb as o,ic as y,jc as c,pc as R,qa as k,qc as B,sa as S,sc as $,tc as G,uc as x,va as O,vc as p,wa as E,wc as C,xc as b}from"./chunk-FWZCAEAJ.js";function K(t,e){if(t&1&&(a(0,"h6",8),p(1),d(2,"tr"),l()),t&2){let n=c();o(),C(u(2,1,n.titleTr))}}var H=(t,e)=>e.id;function U(t,e){t&1&&h(0)}function W(t,e){if(t&1&&p(0),t&2){let n=c().$implicit;C(n.name)}}var J=t=>({$implicit:t});function X(t,e){if(t&1&&(a(0,"a",9),_(1,U,1,0,"ng-container",10)(2,W,1,1,"ng-template",null,11,N),l()),t&2){let n=e.$implicit,s=x(3),i=c(2);f("routerLink",i.path+n.id),o(),f("ngTemplateOutlet",i.navItemRef||s)("ngTemplateOutletContext",A(3,J,n))}}function Y(t,e){if(t&1&&I(0,X,4,5,"a",12,H),t&2){let n=c();L(n.entities)}}function Z(t,e){t&1&&(a(0,"div",13),p(1),d(2,"tr"),a(3,"div",14)(4,"span",15),p(5),d(6,"tr"),l()()()),t&2&&(o(),b(" ",u(2,2,"LOADING")," "),o(4),C(u(6,4,"LOADING")))}function tt(t,e){t&1&&h(0)}function et(t,e){if(t&1&&p(0),t&2){let n=c().$implicit;C(n.name)}}function it(t,e){if(t&1&&(a(0,"a",9),_(1,tt,1,0,"ng-container",10)(2,et,1,1,"ng-template",null,11,N),l()),t&2){let n=e.$implicit,s=x(3),i=c(2);f("routerLink",i.path+n.id),o(),f("ngTemplateOutlet",i.navItemRef||s)("ngTemplateOutletContext",A(3,J,n))}}function nt(t,e){if(t&1&&I(0,it,4,5,"a",12,H),t&2){let n=c();L(n.entities)}}function ot(t,e){t&1&&(a(0,"div",13),p(1),d(2,"tr"),a(3,"div",14)(4,"span",15),p(5),d(6,"tr"),l()()()),t&2&&(o(),b(" ",u(2,2,"LOADING")," "),o(4),C(u(6,4,"LOADING")))}var at=(()=>{let e=class e{static ngTemplateContextGuard(s,i){return!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=S({type:e,selectors:[["ng-template","appListNavItem",""]],standalone:!0});let t=e;return t})(),gt=(()=>{let e=class e{constructor(){this.entities=null,this.selectTr="SELECT",this.isCollapsed=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=k({type:e,selectors:[["app-list-nav-items"]],contentQueries:function(i,r,m){if(i&1&&B(m,at,5,R),i&2){let v;$(v=G())&&(r.navItemRef=v.first)}},inputs:{entities:"entities",path:"path",selectTr:"selectTr",titleTr:"titleTr"},standalone:!0,features:[M],decls:14,vars:8,consts:[[1,"d-none","d-md-block"],["class","fw-bold"],[1,"list-group"],["type","button","aria-controls","collapseExample",1,"btn","w-100","btn-link","p-md-0","mb-2","mb-md-0","text-decoration-none","bd-toc-toggle","justify-content-between","align-items-center","d-flex","d-md-none",3,"click"],["name","chevron-expand"],[3,"ngbCollapse","ngbCollapseChange"],["collapse","ngbCollapse"],[1,"list-group",2,"max-height","185px","overflow","scroll"],[1,"fw-bold"],["routerLinkActive","active",1,"list-group-item","list-group-item-action",3,"routerLink"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["emptyRef",""],["class","list-group-item list-group-item-action ","routerLinkActive","active",3,"routerLink"],[1,"list-group-item","d-flex","justify-content-between","align-items-center"],[1,"spinner-border","spinner-border-sm"],[1,"visually-hidden"]],template:function(i,r){if(i&1){let m=D();a(0,"div",0),_(1,K,3,3,"h6",1),a(2,"div",2),_(3,Y,2,0)(4,Z,7,6),l()(),a(5,"button",3),y("click",function(){O(m);let T=x(10);return E(T.toggle())}),p(6),d(7,"tr"),F(8,"bi",4),l(),a(9,"div",5,6),y("ngbCollapseChange",function(T){return r.isCollapsed=T}),a(11,"div",7),_(12,nt,2,0)(13,ot,7,6),l()()}if(i&2){let m;o(),g(1,r.titleTr&&((m=r.entities==null?null:r.entities.length)!==null&&m!==void 0?m:0)>0?1:-1),o(2),g(3,r.entities?3:4),o(2),w("aria-expanded",!r.isCollapsed),o(),b(" ",u(7,6,r.selectTr)," "),o(3),f("ngbCollapse",r.isCollapsed),o(3),g(12,r.entities?12:13)}},dependencies:[P,V,z,q,Q,j],styles:[".bd-toc-toggle[_ngcontent-%COMP%]{color:var(--bs-body-color);border:1px solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.bd-toc-toggle[aria-expanded=true][_ngcontent-%COMP%]{box-shadow:0 0 0 3px rgba(var(--bd-violet-rgb),.25)}.bd-toc-toggle[aria-expanded=true][_ngcontent-%COMP%]{color:var(--bd-violet);background-color:var(--bs-body-bg);border-color:var(--bd-violet)}"],changeDetection:0});let t=e;return t})();export{at as a,gt as b};
