import{a as N}from"./chunk-NXO6GTTC.js";import{a as U}from"./chunk-2BQIESPP.js";import{a as M,b as H}from"./chunk-A3LCXFDR.js";import{a as G}from"./chunk-WQPF4UWC.js";import"./chunk-YYVE3SN6.js";import"./chunk-3EAHMU3P.js";import"./chunk-FVVYD7H6.js";import"./chunk-KZKY3ROD.js";import"./chunk-7ZFHDZI4.js";import{b as C}from"./chunk-SPNVV2KO.js";import{m as y,n as O}from"./chunk-N7PC5CHF.js";import"./chunk-ZTKV4AIV.js";import{cb as B}from"./chunk-JIDGXFMJ.js";import"./chunk-MTR2L2TG.js";import{c as h}from"./chunk-5JDCLYZA.js";import{j as I}from"./chunk-YJYOGSOO.js";import"./chunk-73IMXZSJ.js";import"./chunk-KVTHJWZA.js";import{Ab as S,Bc as x,Cc as A,Hb as l,Ic as m,Jc as d,Sb as i,Tb as n,Ub as T,bb as b,hb as e,na as _,qa as E,vc as o,wc as L,xc as r}from"./chunk-FWZCAEAJ.js";import"./chunk-CWTPBX7D.js";function k(a,t){if(a&1&&(i(0,"div",3)(1,"app-text-with-color-indicator",10),o(2),n(),i(3,"div")(4,"span",5),m(5,"tr"),o(6),n()()()),a&2){let u=t.$implicit;e(),l("color",u.color),e(),r(" ",u.name," "),e(2),l("ngbTooltip",d(5,4,"HOME_TABLES_COUNT")),e(2),L(u.tables.length)}}var D=()=>[],X=(()=>{let t=class t{constructor(){this.tableGroups=h(_(U).getAll$()),this.allTablesAmount=b(()=>this.tableGroups()?.map(s=>s.tables.length)?.reduce((s,p)=>s+p,0))}};t.\u0275fac=function(p){return new(p||t)},t.\u0275cmp=E({type:t,selectors:[["app-tables"]],standalone:!0,features:[x],decls:25,vars:16,consts:[["nav","",1,"d-flex","flex-column","gap-3"],[1,"list-group"],["routerLink","all","routerLinkActive","active",1,"list-group-item","list-group-item-action"],[1,"d-flex","justify-content-between"],["name","columns-gap"],["placement","left",1,"badge","bg-secondary","rounded-pill",3,"ngbTooltip"],["routerLink","groups/all","routerLinkActive","active",1,"list-group-item","list-group-item-action"],["name","diagram-3"],["path","groups/tables/","titleTr","HOME_TABLE_GROUPS","selectTr","HOME_TABLES_GROUPS_SELECT",3,"entities"],["appListNavItem",""],[3,"color"]],template:function(p,v){if(p&1&&(i(0,"entities-layout")(1,"div",0)(2,"div",1)(3,"a",2)(4,"div",3)(5,"div"),T(6,"bi",4),o(7),m(8,"tr"),n(),i(9,"div")(10,"span",5),m(11,"tr"),o(12),n()()()(),i(13,"a",6)(14,"div",3)(15,"div"),T(16,"bi",7),o(17),m(18,"tr"),n(),i(19,"div")(20,"span",5),m(21,"tr"),o(22),n()()()()(),i(23,"app-list-nav-items",8),S(24,k,7,6,"ng-template",9),n()()()),p&2){let f,c,g;e(7),r(" ",d(8,7,"HOME_TABLES")," "),e(3),l("ngbTooltip",d(11,9,"HOME_TABLES_COUNT")),e(2),r(" ",(f=v.allTablesAmount())!==null&&f!==void 0?f:""," "),e(5),r(" ",d(18,11,"HOME_TABLE_GROUPS")," "),e(3),l("ngbTooltip",d(21,13,"HOME_TABLE_GROUPS_COUNT")),e(2),r(" ",(c=(c=v.tableGroups())==null?null:c.length)!==null&&c!==void 0?c:"-"," "),e(),l("entities",(g=v.tableGroups())!==null&&g!==void 0?g:A(15,D))}},dependencies:[y,O,I,C,G,H,M,N,B],encapsulation:2,changeDetection:0});let a=t;return a})();export{X as TablesLayout};
