PageSourceSearch

https://vi.be/platform/chunk-GQR4MATG.js

js vi.be collected 2026-10-01 10:42:41 UTC 6,220 bytes, 20 lines download raw bytes

1import{a as ct}from"./chunk-SUGECZKT.js";import{a as A}from"./chunk-OEBPY6FT.js";import{a as et,b as it}from"./chunk-CVGPV64B.js";import"./chunk-IW7IFGPC.js";import"./chunk-FSFCTZH4.js";import"./chunk-RAL3NUGM.js";import"./chunk-2EXYA5CF.js";import{C as rt,c as nt,i as ot,o as at}from"./chunk-4D2MQVLD.js";import{a as tt}from"./chunk-EORYVYXT.js";import"./chunk-TM3BW4ZH.js";import{a as st}from"./chunk-H7Z2H326.js";import{a as N}from"./chunk-ZNJ5NAKN.js";import"./chunk-NGSUFSIY.js";import{a as Y}from"./chunk-CYETWE2E.js";import{g as v}from"./chunk-VHASJZ3A.js";import"./chunk-SIKV2SR4.js";import"./chunk-63GPT4DW.js";import{$a as O,A as $,Aa as b,Ba as c,Eb as o,Fa as L,Fb as H,Fc as B,G as j,Ga as S,J as _,Jb as z,Kb as F,Lb as W,Na as G,Q as q,Qb as X,R as h,Sa as u,T as g,Ta as f,Xc as K,Ya as C,Za as l,_a as m,c as R,dc as Q,dd as Z,e as x,fd as V,gd as J,id as T,kb as k,o as E,pb as w,rb as I,va as s,za as D,zb as U}from"./chunk-N74ZWEBC.js";import"./chunk-7OYYC5OR.js";var lt=(()=>{class t{constructor(e,i,n,a){this.paginationHelper=e,this.organisationService=i,this.utilsService=n,this.authService=a;}resolve(e,i){let n=this.paginationHelper.getPage(parseInt(e.queryParams.page,10)||1),a=e.queryParams.query,r=this.authService.currentUser.value,y=r?.roles?.includes("REGION_ADMIN")?r?.adminLocations?.map(p=>p.uuid):void 0,M=`organisationService.getOrganisations.${n.offset}.${n.limit}`,dt=this.organisationService.getOrganisations(n.offset,n.limit,"name",!1,a,y);return this.utilsService.getServerCachedObservable(dt,M).pipe(E(p=>p.total&&n.offset>=p.total?(this.paginationHelper.redirectToPage("last",i.url,p),null):p));}static{this.ɵfac=function(i){return new(i||t)(g(N),g(A),g(Y),g(v));};}static{this.ɵprov=q({token:t,factory:t.ɵfac,providedIn:"root"});}}return t;})();function _t(t,d){if(t&1&&(o(0,`
2    `),l(1,"a",7),o(2),m(),o(3,`
3  `)),t&2){let e=d.$implicit;s(),C("routerLink",X("/",e.slug)),s(),H(e.name);}}function ht(t,d){if(t&1&&(o(0,`
4    `),O(1,"app-pagination",8),o(2,`
5  `)),t&2){let e=I(2);s(),C("link","/admin/organisations")("current",e.page==null?null:e.page.digit)("list",e.organisations);}}function St(t,d){if(t&1&&(o(0,`
6  `),O(1,"app-content-list",6),o(2,`
7  `),G(3,_t,4,3,"ng-template",null,0,Q),o(5,`
8  `),u(6,ht,3,3)),t&2){let e=U(4),i=I();s(),C("items",i.organisations==null?null:i.organisations.items)("contentTemplate",e),s(5),f(i.organisations.total>i.page?.limit?6:-1);}}function Ct(t,d){t&1&&(o(0,`
9  `),O(1,"i",9),o(2,`
10`));}function Ot(t,d){t&1&&(o(0,`
11  `),l(1,"p",10),k(2,1),m(),o(3,`
12`));}var mt=(()=>{class t{constructor(e,i,n,a,r,y,M){this.paginationHelper=e,this.router=i,this.activatedRoute=n,this.organisationService=a,this.titleService=r,this.contentService=y,this.authService=M,this.queryChanged=new R(),this.destroyed$=new x(1);}ngOnInit(){this.titleService.setTitle(`${"Organisaties"} | ${"Admin"} | ${this.contentService.getContentByPath("settings.siteTitle")}`),this.organisations=this.activatedRoute.snapshot.data.organisations,this.page=this.paginationHelper.getPage(parseInt(this.activatedRoute.snapshot.queryParams?.page,10)||1),this.query=this.activatedRoute.snapshot.queryParams?.query,this.queryChanged.pipe($(250),_(this.destroyed$)).subscribe(()=>{this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{query:this.query?this.query:null},replaceUrl:!0});}),this.activatedRoute.queryParams.pipe(j(1),_(this.destroyed$)).subscribe(e=>{this.page=this.paginationHelper.getPage(parseInt(e.page,10)||1);let i=this.authService.currentUser.value,n=i?.roles?.includes("REGION_ADMIN")?i?.adminLocations?.map(a=>a.uuid):void 0;this.organisationService.getOrganisations(this.page.offset,this.page.limit,"name",!1,this.query,n).pipe(_(this.destroyed$)).subscribe(a=>this.organisations=a);});}handleQueryChange(e){this.queryChanged.next(e);}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete();}static{this.ɵfac=function(i){return new(i||t)(c(N),c(V),c(Z),c(A),c(K),c(tt),c(v));};}static{this.ɵcmp=L({type:t,selectors:[["app-admin-organisations"]],standalone:!1,decls:14,vars:4,consts:()=>{let e;e="Zoek organisaties";let i;return i="Er zijn geen organisaties.",[["contentTemplate",""],i,[1,"_section-header","_section-header--wrapWhenNarrow"],[1,"_section-header-title"],[1,"_section-header-actions"],["type","search","placeholder",e,1,"_section-header-action","_input--textSmall",3,"input","ngModelChange","ngModel"],[3,"items","contentTemplate"],[1,"organisation-link",3,"routerLink"],[3,"link","current","list"],[1,"spinner","fal","fa-fw","fa-spinner-third","fa-spin"],[1,"empty"]];},template:function(i,n){i&1&&(l(0,"header",2),o(1,`
13  `),l(2,"h3",3),o(3,"Organisaties"),m(),o(4,`
14  `),l(5,"div",4),o(6,`
15    `),l(7,"input",5),w("input",function(r){return n.handleQueryChange(r);}),W("ngModelChange",function(r){return F(n.query,r)||(n.query=r),r;}
15),m(),D(),o(8,`
16  `),m(),o(9,`
17`),m(),o(10,`
18
19`),u(11,St,7,3),u(12,Ct,3,0),u(13,Ot,4,0)),i&2&&(s(7),z("ngModel",n.query),b(),s(4),f(!n.organisationsLoading&&n.organisations?.total?11:-1),s(),f(n.organisationsLoading?12:-1),s(),f(!n.organisationsLoading&&!n.organisations?.total?13:-1));},dependencies:[J,st,et,nt,ot,at],styles:[`._section-header[_ngcontent-%COMP%]{margin-bottom:clamp(.5rem,.4074074074rem + .4115226337vw,.75rem)}.organisation-link[_ngcontent-%COMP%]{text-decoration:none}.organisation-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.pagination[_ngcontent-%COMP%]{margin-top:clamp(1.125rem,.8472222222rem + 1.2345679012vw,1.875rem)}.empty[_ngcontent-%COMP%]{opacity:.5;margin:0}
20/*# sourceMappingURL=admin-organisations.component-ERAQEUWE.css.map */`],changeDetection:1});}}return t;})();var vt=[{path:"",component:mt,canActivate:[ct],resolve:{organisations:lt}}],pt=(()=>{class t{static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵmod=S({type:t});}static{this.ɵinj=h({imports:[T.forChild(vt),T]});}}return t;})();var Qt=(()=>{class t{static{this.ɵfac=function(i){return new(i||t)();};}static{this.ɵmod=S({type:t});}static{this.ɵinj=h({imports:[B,pt,it,rt]});}}return t;})();export{Qt as OrganisationsListModule};/**i18n:5a3ffb5ae51252a8c4d0639ab71d71b63fe3c51b99ec34bb95bd2ce88f51ff30*///# sourceMappingURL=chunk-GQR4MATG.js.map

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.