1import{a as P,b as wt}from"./chunk-V35EPSLC.js";import{d as yt}from"./chunk-4GZF7AYE.js";import{a as Pt}from"./chunk-5MSBCKNO.js";import{a as E}from"./chunk-77GGAQET.js";import{A as Tt,B as vt,C as Mt,D as Rt,E as Et,a as x,b as I,c as A,d as k,e as H,f as rt,g as ct,i as it,j as st,m as at,n as nt,o as mt,p as pt,q as ut,r as dt,s as lt,t as ft,u as Ct,v as At,w as St,x as ht,y as Lt,z as It}from"./chunk-BNBVNC2U.js";import"./chunk-UFHLR6NU.js";import{K as tt,L as ot,M as et,a as B,b as $,c as V,g as q,h as z,i as J,o as K,p as Q,q as W,w as X,x as Y,y as Z}from"./chunk-LPSBN34L.js";import"./chunk-IVA3FLTA.js";import"./chunk-EVDPTSZP.js";import"./chunk-LWIUJFNA.js";import"./chunk-AYNM43TC.js";import"./chunk-F2EV7CMZ.js";import"./chunk-ZHVSDEWM.js";import"./chunk-KEXADXL6.js";import"./chunk-OOUN5NTZ.js";import"./chunk-XOZSQHGB.js";import{a as g,b as R}from"./chunk-YRO3BHNZ.js";import"./chunk-KQKVROK4.js";import"./chunk-LNKAQVVT.js";import{d as _}from"./chunk-DL57UGXS.js";import"./chunk-WKBGAK42.js";import"./chunk-HYFNU66K.js";import{v as j}from"./chunk-TIL2BXUZ.js";import"./chunk-FFSH4CMS.js";import"./chunk-Q4324DM7.js";import"./chunk-ZUDLJFVY.js";import"./chunk-EUNS5FXM.js";import"./chunk-XCLPVTZK.js";import"./chunk-GZSXTEYZ.js";import"./chunk-B46L77JZ.js";import"./chunk-FX7DTB5M.js";import"./chunk-75UZSSKM.js";import"./chunk-E2WWY3XV.js";import"./chunk-CWRK7QVJ.js";import{u as b}from"./chunk-Q3LTV6WD.js";import"./chunk-7ZWQBUHQ.js";import"./chunk-B7WN5ERR.js";import"./chunk-BMXPOK2J.js";import"./chunk-KOT5LASO.js";import"./chunk-C6PTJ6BN.js";import{Ma as L,Md as f,N as a,Nd as C,O as m,Sj as G,bi as U,ga as h,oa as M,vj as D,wj as O,xj as F}from"./chunk-QRKZBIR3.js";import{m as d,s as N}from"./chunk-ABJTGOAB.js";import{E as p,K as i,da as l,na as y,pb as w,ra as e,s as u,t as S}from"./chunk-TGUHKKUV.js";import"./chunk-NZ6L75S5.js";var Nt=(t,c)=>{let s=e(a),r=parseInt(t.params.masterAccountId,10);if(!isNaN(r))return s.dispatch(G({masterAccountId:r})),s.pipe(m(k),p(o=>!!o),i(1))};var Ut=(t,c)=>{let s=e(a),r=parseInt(t.params.masterAccountId,10);if(!isNaN(r))return s.dispatch(U({masterAccountId:r})),s.pipe(m(j),p(o=>!!o),p(o=>o.id===r),i(1))};var Dt=t=>{let c=e(a),s=e(f),r=e(d);return c.dispatch(D({accountId:t.params.accountId})),s.pipe(C(O,F),l(()=>c.pipe(m(A),u(o=>o?!0:r.parseUrl("/404")))),i(1))};var v=(t,c)=>{let s=e(H),r=e(a),o=e(d);return s.isAllowedFor(t.routeConfig.path).pipe(u(n=>n?!0:g(c,r,o)))};var Ot=()=>{let t=e(a),c=e(f),s=e(d),r={showHidden:!0,sortBy:"NAME",sortOrder:"ASC"};return S([t.select(I),t.select(L(h.MULTIPLE_COMPANIES)),t.select(A)]).pipe(p(([o,n,T])=>!!o&&T),i(1)).subscribe(([o,n])=>{n&&(r.legalEntityId=o?.legalEntity.id??-1),t.dispatch(B({listCustomerClientsParameters:r}))}),c.pipe(C($,V),l(()=>t.pipe(m(rt),u(o=>o?!0:s.parseUrl("/404")))),i(1))};var Ft=()=>{let t=e(a),c=e(f),s=e(d),r={showHidden:!0,sortBy:"DESCRIPTION",sortOrder:"ASC"};return S([t.select(I),t.select(L(h.MULTIPLE_COMPANIES)),t.select(A)]).pipe(p(([o,n,T])=>!!o&&T),i(1)).subscribe(([o,n])=>{n&&(r.legalEntityId=o?.legalEntity.id??-1),t.dispatch(q({listCustomerCostCentersParameters:r}))}),c.pipe(C(z,J),l(()=>t.pipe(m(it),u(o=>o?!0:s.parseUrl("/404")))),i(1))};var Gt=()=>{let t=e(a),c=e(f),s=e(d),r={showHidden:!0,sortBy:"DESCRIPTION",sortOrder:"ASC"};return S([t.select(I),t.select(L(h.MULTIPLE_COMPANIES)),t.select(A)]).pipe(p(([o,n,T])=>!!o&&T),i(1)).subscribe(([o,n])=>{n&&(r.legalEntityId=o?.legalEntity.id??-1),t.dispatch(K({listCustomerCostTypesParameters:r}))}),c.pipe(C(Q,W),l(()=>t.pipe(m(at),u(o=>o?!0:s.parseUrl("/404")))),i(1))};var gt=()=>{let t=e(a),c=e(f),s=e(d),r={showHidden:!0,sortBy:"DESCRIPTION",sortOrder:"ASC"};return S([t.select(I),t.select(L(h.MULTIPLE_COMPANIES)),t.select(A)]).pipe(p(([o,n,T])=>!!o&&T),i(1)).subscribe(([o,n])=>{n&&(r.legalEntityId=o?.legalEntity.id??-1),t.dispatch(X({listCustomerCostUnitsParameters:r}))}),c.pipe(C(Y,Z),l(()=>t.pipe(m(mt),u(o=>o?!0:s.parseUrl("/404")))),i(1))};var bt=()=>{let t=e(a),c=e(f),s=e(d),r={showHidden:!0,sortBy:"DESCRIPTION",sortOrder:"ASC"};return S([t.select(I),t.select(L(h.MULTIPLE_COMPANIES)),t.select(A)]).pipe(p(([o,n,T])=>!!o&&T),i(1)).subscribe(([o,n])=>{n&&(r.legalEntityId=o?.legalEntity.id??-1),t.dispatch(tt({listCustomerProjectsParameters:r}))}),c.pipe(C(ot,et),l(()=>t.pipe(m(lt),u(o=>o?!0:s.parseUrl("/404")))),i(1))};var jt=[{path:"",children:[{path:"",component:dt,resolve:[E]},{path:"add",component:x,canActivate:[R],resolve:[E],data:{allowedF
1orRole:[M.MASTER_ADMINISTRATOR]}},{path:"master/:masterAccountId",component:It,resolve:{masterAccount:Ut,masterAccountStatistics:Nt},children:[{path:"",pathMatch:"full",redirectTo:"overview"},{path:"overview",component:Tt,canActivate:[R],data:{allowedForRole:[M.MASTER_CASHMANAGER]}},{path:"upcoming",component:Mt,canActivate:[R],data:{allowedForRole:[M.CASHMANAGER]},children:[{path:":transferProcessId",pathMatch:"full",children:[],data:{gridId:vt},resolve:{transferProcessLoaded:P}}]}]},{path:":accountId",canActivate:[Dt],children:[{path:"",pathMatch:"full",redirectTo:"view"},{path:"view",component:Lt,children:[{path:"",pathMatch:"full",redirectTo:"transactions"},{path:"transactions",component:Ct,canActivate:[v]},{path:"upcoming-transactions",component:St,canActivate:[v],children:[{path:":transferProcessId",pathMatch:"full",children:[],data:{gridId:At},resolve:{transferProcessLoaded:P}}]},{path:"cost-types",component:nt,canActivate:[v,Gt]},{path:"cost-centers",component:st,canActivate:[v,Ft]},{path:"cost-units",component:pt,canActivate:[v,gt]},{path:"projects",component:ft,canActivate:[v,bt]},{path:"clients",component:ct,canActivate:[v,Ot]},{path:"users",component:ht,canActivate:[v]}]},{path:"edit",component:ut,canActivate:[R],data:{allowedForRole:[M.MASTER_ADMINISTRATOR]}}]}]}];var qe=(()=>{let c=class c{};c.\u0275fac=function(o){return new(o||c)},c.\u0275mod=w({type:c}),c.\u0275inj=y({providers:[Rt(),Et(),Pt(),yt(),b(),wt(),_()],imports:[N.forChild(jt)]});let t=c;return t})();export{qe as AccountsPageModule}; 2/**i18n:d26ce5dd71a124c87447f53010ad67246cc416145e338c06a2b48f77f6f864ba*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.