import{b as I}from"./chunk-A3LCXFDR.js";import{a as D}from"./chunk-WQPF4UWC.js";import{b as C}from"./chunk-YYVE3SN6.js";import"./chunk-3EAHMU3P.js";import{a as k}from"./chunk-V5RONT72.js";import{b as B}from"./chunk-FVVYD7H6.js";import"./chunk-KZKY3ROD.js";import"./chunk-7ZFHDZI4.js";import{b as _}from"./chunk-SPNVV2KO.js";import{m as N,n as h}from"./chunk-N7PC5CHF.js";import"./chunk-ZTKV4AIV.js";import"./chunk-JIDGXFMJ.js";import"./chunk-MTR2L2TG.js";import"./chunk-5JDCLYZA.js";import{j as x}from"./chunk-YJYOGSOO.js";import"./chunk-73IMXZSJ.js";import{ia as T}from"./chunk-KVTHJWZA.js";import{Ab as S,Bc as O,Hb as E,Ic as d,Jc as u,Ob as y,Sb as m,Tb as c,Ub as l,aa as v,hb as p,na as a,qa as g,u as f,vc as A,yc as L}from"./chunk-FWZCAEAJ.js";import"./chunk-CWTPBX7D.js";function M(t,e){return t.selectedNotNull$.pipe(v(s=>e.getAll$().pipe(f(r=>{if(!s)return r;let i=r.filter(({id:n})=>s?.id!==n),o=r.find(({id:n})=>s?.id===n);return o?[o].concat(i):i}))))}function w(){let t=a(k),e=a(C);return M(e,t)}function R(t,e){t&1&&(m(0,"a",4),l(1,"bi",5),A(2),d(3,"tr"),c()),t&2&&(p(2),L(" ",e.name," ",u(3,2,"HOME_WAITERS_NAV_ORGANISATION"),""))}var te=(()=>{let e=class e{constructor(){this.selectedOrganisation=a(B).selected,this.events$=w()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=g({type:e,selectors:[["app-waiters"]],standalone:!0,features:[O],decls:6,vars:4,consts:[["nav","",1,"d-flex","flex-column","gap-3"],[1,"list-group"],["class","list-group-item list-group-item-action","routerLink","organisation","routerLinkActive","active"],["path","event/","titleTr","NAV_EVENTS","selectTr","HOME_EVENTS_SELECT",3,"entities"],["routerLink","organisation","routerLinkActive","active",1,"list-group-item","list-group-item-action"],["name","people"]],template:function(i,o){if(i&1&&(m(0,"entities-layout")(1,"div",0)(2,"div",1),S(3,R,4,4,"a",2),c(),l(4,"app-list-nav-items",3),d(5,"async"),c()()),i&2){let n;p(3),y(3,(n=o.selectedOrganisation())?3:-1,n),p(),E("entities",u(5,2,o.events$))}},dependencies:[T,N,h,x,_,D,I],encapsulation:2,changeDetection:0});let t=e;return t})();export{te as WaitersLayout};
